invitationUserqy.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <template>
  2. <view class="content">
  3. <view class="flex justify-between align-center margin-lr-sm padding"
  4. style="background: #FFFFFF;border-radius: 20upx;">
  5. <view class="flex">
  6. <view>
  7. <image :src="userImageUrl?userImageUrl:'../../static/logo.png'"
  8. style="width: 72upx;height: 72upx;border-radius: 12upx;"></image>
  9. </view>
  10. <view class="margin-left-sm">
  11. <view class="text-sm"><text class="text-bold" style="font-size: 48upx;">{{peopleNum}}</text>人</view>
  12. <view style="color: #82A9FE;">已成功邀请人数</view>
  13. </view>
  14. </view>
  15. <view @click="goTeam()" v-if="zhiRate>0">
  16. 我的团队
  17. <image src="../../static/images/my/right_icon.png"
  18. style="width: 10rpx;height: 20rpx;margin-left: 10rpx;"></image>
  19. </view>
  20. </view>
  21. <view class="view1" v-bind:style="{backgroundImage: 'url('+backgroundImage+')'}">
  22. <view style="padding-top: 820upx;" @longpress="logoTime(userImageUrl)">
  23. <view style="width: 100%;height: 150upx;display: flex;background: #FFFFFF;padding: 20upx 10upx;">
  24. <image :src="userImageUrl"
  25. style="border-radius: 100upx;width: 100upx;height: 100upx;margin-left: 30upx;"></image>
  26. <view class="login-view-text1" style="margin-left: 30upx;width: 59%;">
  27. <view style="font-size: 16px;">{{ nickName }}</view>
  28. <view style=" font-size: 12px;margin-top: 20upx;">邀请码:{{invitationCode}}</view>
  29. </view>
  30. <canvas canvas-id="qrcode" style="width: 140upx;height: 130upx;" />
  31. </view>
  32. </view>
  33. </view>
  34. <view style="display: flex;flex-direction: row; padding:20upx 40upx;justify-content: center;">
  35. <!-- #ifdef H5 -->
  36. <button @click="share()" type="default"
  37. style="background: #E4ECFF;border: 2upx solid #82A9FE;font-size: 16px;font-weight: bold;color: #82A9FE; width: 50%;">文案推广</button>
  38. <button @tap="showModal()" type="default"
  39. style="background-color: #82A9FE;font-size: 16px;font-weight: bold;color: #FFFFFF; width: 50%; margin-left: 40upx;">生成海报</button>
  40. <!-- #endif -->
  41. <!-- #ifdef APP-PLUS -->
  42. <button v-if="isShowWxAPPShare=='是'" @click="shareWeiXin()" type="default"
  43. style="background: #E4ECFF;border: 2upx solid #82A9FE;font-size: 16px;font-weight: bold;color: #82A9FE; width: 50%;">文案推广</button>
  44. <button v-if="isShowWxAPPShare=='否'" @click="sharAPPUrl()" type="default"
  45. style="background: #E4ECFF;border: 2upx solid #82A9FE;font-size: 16px;font-weight: bold;color: #82A9FE; width: 50%;">文案推广</button>
  46. <button @tap="showModal()" type="default"
  47. style="background-color: #557EFD;font-size: 16px;font-weight: bold;color: #FFFFFF; width: 50%; margin-left: 40upx;">生成海报</button>
  48. <!-- #endif -->
  49. <!-- #ifdef MP-WEIXIN -->
  50. <button open-type="share"
  51. style="background: #E4ECFF;border: 2upx solid #82A9FE;font-size: 16px;font-weight: bold;color: #82A9FE; width: 48%;">一键分享</button>
  52. <!-- <button @click="share()" type="default" style="background-color: #FFCB49;font-size: 16px;font-weight: bold;color: #FFFFFF; width: 40%;">文案推广</button> -->
  53. <button @tap="onSaveImg()" type="default"
  54. style="background-color: #82A9FE;font-size: 16px;font-weight: bold;color: #FFFFFF; width: 48%;">生成海报</button>
  55. <!-- #endif -->
  56. <!-- 生成海报 -->
  57. <!-- 图片展示由自己实现 -->
  58. <view class="flex_row_c_c modalView" :class="qrShow?'show':''" @tap="hideQr()">
  59. <view class="flex_column">
  60. <view class="backgroundColor-white padding1vh border_radius_10px">
  61. <image :src="poster.finalPath || ''" mode="widthFix" class="posterImage"></image>
  62. </view>
  63. <view class="flex_row marginTop2vh">
  64. <!-- #ifdef H5 -->
  65. <button type="primary" size="mini">长按上方图片保存</button>
  66. <!-- #endif -->
  67. <!-- #ifndef H5 -->
  68. <button type="primary" size="mini" @tap.prevent.stop="saveImage()">保存图片</button>
  69. <!-- #endif -->
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 画布 -->
  74. <view class="hideCanvasView">
  75. <canvas class="hideCanvas" canvas-id="default_PosterCanvasId"
  76. :style="{width: (poster.width||10) + 'px', height: (poster.height||10) + 'px'}"></canvas>
  77. </view>
  78. </view>
  79. <!-- #ifndef MP-WEIXIN -->
  80. <tki-qrcode ref="qrcode" :val="url" :size="200" background="#fff" foreground="#000" pdground="#000"
  81. :onval="true" :loadMake="true" @result="qrR" :show="false"></tki-qrcode>
  82. <view class="cu-modal" :class="modalName == 'Image' ? 'show' : ''" @tap="hideModal">
  83. <view class="cu-dialog" v-if="backgroundImage && erweimapath && haibaoShow" @tap="hideModal">
  84. <view class="bg-img">
  85. <wm-poster @success="posterSuccess" :imgSrc="backgroundImage" :Referrer="'我的邀请码:'+invitationCode"
  86. :QrSrc="erweimapath" :Title="tuiguang" :LineType="false"></wm-poster>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- #endif -->
  91. <!-- #ifdef MP-WEIXIN -->
  92. <view @tap="hideModal" :class="modalName == 'Image' ? 'show' : ''" class="modal"
  93. style="text-align: center;display: flex;justify-content: center;">
  94. <view style="width:100%;margin: auto;">
  95. <image :src="h5SaveImg" mode="widthFix" style="width: 90%;"></image>
  96. </view>
  97. </view>
  98. <canvas canvas-id="poster" class="poster_canvas"></canvas>
  99. <!-- #endif -->
  100. </view>
  101. </template>
  102. <script>
  103. let settingWritePhotosAlbum = false;
  104. import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
  105. import appShare from '@/utils/share.js';
  106. import wmPoster from '@/components/wm-poster/wm-posterorders.vue';
  107. import uQRCode from "../../js_sdk/Sansnn-uQRCode/uqrcode.js"
  108. import _app from '../../js_sdk/QuShe-SharerPoster/QS-SharePoster/app.js';
  109. import configdata from '../../common/config.js';
  110. // import {
  111. // getSharePoster
  112. // } from '../../js_sdk/QuShe-SharerPoster/QS-SharePoster/QS-SharePoster.js';
  113. export default {
  114. components: {
  115. tkiQrcode,
  116. wmPoster,
  117. // getSharePoster
  118. },
  119. data() {
  120. return {
  121. erweimapath: '',
  122. poster: {},
  123. qrShow: false,
  124. haibaoImg: null,
  125. haibaoShow: false,
  126. modalName: '',
  127. canvasId: 'default_PosterCanvasId',
  128. imageUrl: '',
  129. userImageUrl: '',
  130. isShowWxAPPShare: '否',
  131. nickName: '',
  132. invitationCode: '',
  133. backgroundImage: '',
  134. tuiguang: '',
  135. tuiguang1: '',
  136. url: '',
  137. peopleNum: 0,
  138. zhiRate: 0
  139. };
  140. },
  141. onLoad() {
  142. //我邀请的人数
  143. this.getYaoNum();
  144. this.getBackImageList();
  145. let avatar = this.$queue.getData('avatar');
  146. if (avatar && avatar !== 'undefined') {
  147. this.userImageUrl = avatar;
  148. } else {
  149. this.userImageUrl = '/static/logo.png';
  150. }
  151. this.$Request.getT('/app/common/type/255').then(res => {
  152. if (res.code === 0) {
  153. if (res.data && res.data.value) {
  154. this.tuiguang = res.data.value;
  155. }
  156. }
  157. });
  158. //文案推广
  159. this.$Request.getT('/app/common/type/255').then(res => {
  160. if (res.code === 0) {
  161. if (res.data && res.data.value) {
  162. this.tuiguang1 = res.data.value;
  163. }
  164. }
  165. });
  166. //检测书否开启APP微信分享
  167. this.$Request.getT('/app/common/type/136').then(res => {
  168. if (res.code === 0) {
  169. if (res.data && res.data.value) {
  170. this.isShowWxAPPShare = res.data.value;
  171. }
  172. }
  173. });
  174. this.invitationCode = this.$queue.getData('invitationCode');
  175. // #ifndef H5
  176. this.$Request.getT('/app/common/type/25').then(res => {
  177. if (res.code === 0) {
  178. if (res.data && res.data.value) {
  179. this.url = res.data.value;
  180. }
  181. }
  182. });
  183. //#endif
  184. // #ifdef H5
  185. this.$Request.getT('/app/common/type/141').then(res => {
  186. if (res.code === 0) {
  187. if (res.data && res.data.value && res.data.value == '是') {
  188. this.$Request.getT('/app/common/type/25').then(ress => {
  189. if (ress.code === 0) {
  190. if (ress.data && ress.data.value) {
  191. this.url = ress.data.value;
  192. }
  193. }
  194. });
  195. } else {
  196. this.url = this.$queue.publicYuMing() + '/?invitation=' + this.invitationCode;
  197. }
  198. }
  199. });
  200. //#endif
  201. let userName = this.$queue.getData('userName');
  202. if (userName && userName !== 'undefined') {
  203. this.nickName = userName;
  204. } else {
  205. this.nickName = '游客';
  206. }
  207. },
  208. onShow() {
  209. this.zhiRate = this.$queue.getData('zhiRate')
  210. },
  211. onShareAppMessage(res) {
  212. return {
  213. path: '/pages/index/index?invitation=' + this.invitationCode, //这是为了传参 onload(data){let id=data.id;}
  214. title: this.tuiguang,
  215. imageUrl: this.backgroundImage
  216. }
  217. },
  218. onShareTimeline(res) {
  219. return {
  220. path: '/pages/index/index?invitation=' + uni.getStorageSync(
  221. 'invitationCode'), //这是为了传参
  222. title: this.tuiguang,
  223. imageUrl: this.backgroundImage
  224. }
  225. },
  226. methods: {
  227. goTeam() {
  228. uni.navigateTo({
  229. url: '/my/team/team'
  230. })
  231. },
  232. //获取我邀请的人数
  233. getYaoNum() {
  234. this.$Request.getT('/app/invite/selectInviteCount', {}).then(res => {
  235. if (res.code === 0) {
  236. this.peopleNum = res.data
  237. }
  238. });
  239. },
  240. posterSuccess(haibaoImg) {
  241. this.haibaoImg = haibaoImg;
  242. this.modalName = 'Image';
  243. },
  244. showModal() {
  245. if (!this.haibaoImg) {
  246. this.haibaoShow = true;
  247. this.$queue.showLoading('海报生成中...');
  248. } else {
  249. this.modalName = 'Image';
  250. }
  251. },
  252. hideModal() {
  253. this.modalName = null;
  254. },
  255. qrR(path) {
  256. this.erweimapath = path;
  257. },
  258. getBackImageList() {
  259. this.$Request.getT('/app/banner/selectBannerList?state=-1&classify=6').then(res => {
  260. if (res.code === 0) {
  261. this.backgroundImage = res.data[0].imageUrl;
  262. }
  263. });
  264. this.make();
  265. },
  266. make() {
  267. uQRCode.make({
  268. canvasId: 'default_PosterCanvasId',
  269. componentInstance: this,
  270. text: this.url,
  271. size: 68,
  272. margin: 4,
  273. backgroundColor: '#ffffff',
  274. foregroundColor: '#000000',
  275. fileType: 'jpg',
  276. correctLevel: uQRCode.errorCorrectLevel.H,
  277. success: res => {
  278. console.log(res)
  279. }
  280. })
  281. },
  282. shareWeiXin() {
  283. this.$Request.getT('/app/common/type/103').then(res => {
  284. if (res.code === 0) {
  285. if (res.data && res.data.value) {
  286. let relationId = this.invitationCode;
  287. let shareData = {
  288. shareUrl: this.url,
  289. shareTitle: res.data.value,
  290. shareContent: '邀请码:' + relationId + ',' + res.data.value,
  291. shareImg: this.$queue.publicYuMing() + '/logo.png',
  292. type: 0
  293. };
  294. appShare(shareData, res => {
  295. console.log('分享成功回调', res);
  296. });
  297. }
  298. }
  299. });
  300. },
  301. share() {
  302. this.sharurl();
  303. },
  304. sharAPPUrl() {
  305. let that = this;
  306. let relationId = this.invitationCode;
  307. uni.showModal({
  308. title: '文案推广',
  309. content: this.tuiguang1 + relationId + '\n' + this.url,
  310. showCancel: true,
  311. cancelText: '关闭',
  312. confirmText: '一键复制',
  313. confirmColor: '#00B88F',
  314. success: res => {
  315. if (res.confirm) {
  316. uni.setClipboardData({
  317. data: this.tuiguang1 + relationId + '\n' + this.url,
  318. success: function() {
  319. console.log('success');
  320. that.$queue.showToast('文案复制成功');
  321. }
  322. });
  323. }
  324. }
  325. });
  326. },
  327. sharurl() {
  328. let that = this;
  329. // this.$queue.showLoading('加载中...');
  330. let relationId = this.invitationCode;
  331. uni.showModal({
  332. title: '文案推广',
  333. content: this.tuiguang1 + relationId + '\n' + this.url,
  334. showCancel: true,
  335. cancelText: '关闭',
  336. confirmText: '一键复制',
  337. confirmColor: '#00B88F',
  338. success: res => {
  339. if (res.confirm) {
  340. uni.setClipboardData({
  341. data: this.tuiguang1 + relationId + '\n' + this.url,
  342. success: function() {
  343. console.log('success');
  344. that.$queue.showToast('复制成功');
  345. }
  346. });
  347. }
  348. }
  349. });
  350. },
  351. logoTime(urlList) {
  352. uni.previewImage({
  353. current: 0,
  354. urls: urlList,
  355. loop: true,
  356. longPressActions: {
  357. itemList: ['收藏'],
  358. itemColor: "#007AFF"
  359. }
  360. })
  361. },
  362. goList() {
  363. let userId = this.$queue.getData('userId');
  364. this.$Request.getT('/app/invite/selectInviteAndPoster?userId=' + userId).then(res => {
  365. if (res.code === 0) {
  366. if (res.data.user.imageUrl) {
  367. this.userImageUrl = res.data.user.imageUrl;
  368. } else {
  369. this.userImageUrl = '/static/img/common/logo.jpg';
  370. }
  371. if (res.data.user.nickName) {
  372. this.nickName = res.data.user.nickName;
  373. } else {
  374. this.nickName = res.data.user.phone;
  375. }
  376. this.invitationCode = res.data.user.invitationCode;
  377. this.imageUrl = res.data.url;
  378. }
  379. });
  380. },
  381. async shareFc() {
  382. let _this = this;
  383. try {
  384. const d = await getSharePoster({
  385. type: 'testShareType',
  386. backgroundImage: _this.backgroundImage,
  387. posterCanvasId: _this.canvasId, //canvasId
  388. delayTimeScale: 20, //延时系数
  389. drawArray: ({
  390. bgObj,
  391. type,
  392. bgScale
  393. }) => {
  394. const dx = bgObj.width * 0.3;
  395. const fontSize = bgObj.width * 0.045;
  396. const lineHeight = bgObj.height * 0.04;
  397. //可直接return数组,也可以return一个promise对象, 但最终resolve一个数组, 这样就可以方便实现后台可控绘制海报
  398. return new Promise((rs, rj) => {
  399. rs([{
  400. type: 'custom',
  401. setDraw(Context) {
  402. Context.setFillStyle('black');
  403. Context.setGlobalAlpha(0.3);
  404. Context.fillRect(0, bgObj.height - bgObj
  405. .height * 0.2, bgObj.width, bgObj
  406. .height * 0.2);
  407. Context.setGlobalAlpha(1);
  408. }
  409. },
  410. {
  411. type: 'text',
  412. fontStyle: 'italic',
  413. text: '邀请码:' + _this.invitationCode,
  414. size: fontSize,
  415. color: 'white',
  416. alpha: 1,
  417. textAlign: 'left',
  418. textBaseline: 'middle',
  419. infoCallBack(textLength) {
  420. return {
  421. dx: bgObj.width - textLength - fontSize,
  422. dy: bgObj.height - lineHeight * 3
  423. }
  424. },
  425. serialNum: 0,
  426. id: 'tag1' //自定义标识
  427. },
  428. {
  429. type: 'qrcode',
  430. text: _this.url,
  431. size: bgObj.width * 0.2,
  432. dx: bgObj.width * 0.05,
  433. dy: bgObj.height - bgObj.width * 0.25
  434. }
  435. ]);
  436. })
  437. },
  438. setCanvasWH: ({
  439. bgObj,
  440. type,
  441. bgScale
  442. }) => { // 为动态设置画布宽高的方法,
  443. _this.poster = bgObj;
  444. }
  445. });
  446. //_app.log('海报生成成功, 时间:' + new Date() + ', 临时路径: ' + d.poster.tempFilePath)
  447. _this.poster.finalPath = d.poster.tempFilePath;
  448. _this.qrShow = true;
  449. } catch (e) {
  450. _app.hideLoading();
  451. }
  452. },
  453. saveImage() {
  454. uni.saveImageToPhotosAlbum({
  455. filePath: this.poster.finalPath,
  456. success(res) {
  457. _app.showToast('保存成功');
  458. }
  459. })
  460. },
  461. hideQr() {
  462. this.qrShow = false;
  463. },
  464. // 微信小程序保存图片
  465. async onSaveImg() {
  466. // #ifdef MP-WEIXIN
  467. let imgUrl = await this.createPoster();
  468. uni.showLoading({
  469. title: '海报下载中'
  470. });
  471. if (settingWritePhotosAlbum) {
  472. uni.getSetting({
  473. success: res => {
  474. if (res.authSetting['scope.writePhotosAlbum']) {
  475. uni.saveImageToPhotosAlbum({
  476. filePath: imgUrl,
  477. success: () => {
  478. uni.hideLoading();
  479. uni.showToast({
  480. title: '保存成功'
  481. });
  482. }
  483. });
  484. } else {
  485. uni.showModal({
  486. title: '提示',
  487. content: '请先在设置页面打开“保存相册”使用权限',
  488. confirmText: '去设置',
  489. cancelText: '算了',
  490. confirmColor: '#00B88F',
  491. success: data => {
  492. if (data.confirm) {
  493. uni.hideLoading();
  494. uni.openSetting();
  495. }
  496. }
  497. });
  498. }
  499. }
  500. });
  501. } else {
  502. uni.hideLoading();
  503. settingWritePhotosAlbum = true;
  504. uni.authorize({
  505. scope: 'scope.writePhotosAlbum',
  506. success: () => {
  507. uni.saveImageToPhotosAlbum({
  508. filePath: imgUrl,
  509. success: () => {
  510. uni.hideLoading();
  511. uni.showToast({
  512. title: '保存成功'
  513. });
  514. }
  515. });
  516. }
  517. });
  518. }
  519. // #endif
  520. },
  521. //生成海报
  522. createPoster() {
  523. let that = this;
  524. return new Promise((resolve, reject) => {
  525. uni.showLoading({
  526. title: '海报生成中'
  527. });
  528. const ctx = uni.createCanvasContext('poster');
  529. ctx.fillRect(0, 0, 375, 673);
  530. ctx.setFillStyle("#FFF");
  531. ctx.fillRect(0, 0, 375, 673);
  532. let imgUrl = that.backgroundImage;
  533. uni.downloadFile({
  534. url: imgUrl,
  535. success: (res) => {
  536. if (res.statusCode === 200) {
  537. console.log(that.config("APIHOST1") +
  538. '/app/invite/mpCreateQr?invitationCode=' + that.invitationCode)
  539. uni.downloadFile({
  540. url: that.config("APIHOST1") +
  541. '/app/invite/mpCreateQr?invitationCode=' + that
  542. .invitationCode,
  543. success: (res2) => {
  544. console.log(res2)
  545. uni.hideLoading();
  546. if (res.statusCode === 200) {
  547. ctx.drawImage(res.tempFilePath, 0, 0, 375,
  548. 500);
  549. // 长按识别二维码访问
  550. let textTop = 0;
  551. ctx.setFontSize(19);
  552. ctx.setFillStyle('#333');
  553. ctx.fillText("长按识别图中二维码", 17, textTop + 590);
  554. // 二维码
  555. ctx.drawImage(res2.tempFilePath, 238, textTop +
  556. 526, 120, 120);
  557. ctx.draw(true, () => {
  558. // canvas画布转成图片并返回图片地址
  559. uni.canvasToTempFilePath({
  560. canvasId: 'poster',
  561. width: 375,
  562. height: 673,
  563. success: (res) => {
  564. console.log(
  565. "海报制作成功!"
  566. );
  567. resolve(res
  568. .tempFilePath
  569. );
  570. },
  571. fail: () => {
  572. uni
  573. .hideLoading();
  574. reject();
  575. }
  576. })
  577. });
  578. } else {
  579. uni.hideLoading();
  580. uni.showToast({
  581. title: '海报制作失败,图片下载失败',
  582. icon: 'none'
  583. });
  584. }
  585. },
  586. fail: err => {
  587. console.log(err)
  588. uni.hideLoading();
  589. uni.showToast({
  590. title: '海报制作失败,图片下载失败',
  591. icon: 'none'
  592. });
  593. },
  594. complete: com => {
  595. console.log(com)
  596. uni.showToast({
  597. title: com,
  598. icon: 'none'
  599. });
  600. },
  601. });
  602. } else {
  603. uni.hideLoading();
  604. uni.showToast({
  605. title: '海报制作失败,图片下载失败',
  606. icon: 'none'
  607. });
  608. }
  609. },
  610. fail: err => {
  611. // that.yu.toast(err)
  612. console.log(err)
  613. uni.hideLoading();
  614. uni.showToast({
  615. title: '海报制作失败,图片下载失败',
  616. icon: 'none',
  617. });
  618. }
  619. });
  620. });
  621. },
  622. config: function(name) {
  623. var info = null;
  624. if (name) {
  625. var name2 = name.split("."); //字符分割
  626. if (name2.length > 1) {
  627. info = configdata[name2[0]][name2[1]] || null;
  628. } else {
  629. info = configdata[name] || null;
  630. }
  631. if (info == null) {
  632. let web_config = cache.get("web_config");
  633. if (web_config) {
  634. if (name2.length > 1) {
  635. info = web_config[name2[0]][name2[1]] || null;
  636. } else {
  637. info = web_config[name] || null;
  638. }
  639. }
  640. }
  641. }
  642. return info;
  643. },
  644. }
  645. }
  646. </script>
  647. <style>
  648. .content {
  649. height: 50vh;
  650. background: linear-gradient(0deg, #FFFFFF 0%, #E5EEFF 51%);
  651. }
  652. .modal {
  653. position: fixed;
  654. top: 0;
  655. right: 0;
  656. bottom: 0;
  657. left: 0;
  658. z-index: 1110;
  659. opacity: 0;
  660. outline: 0;
  661. text-align: center;
  662. -ms-transform: scale(1.185);
  663. transform: scale(1.185);
  664. backface-visibility: hidden;
  665. perspective: 2000upx;
  666. /* background: rgba(0, 0, 0, 0.6); */
  667. background: #FFFFFF;
  668. transition: all 0.3s ease-in-out 0s;
  669. pointer-events: none;
  670. }
  671. .modal.show {
  672. opacity: 1;
  673. transition-duration: 0.3s;
  674. -ms-transform: scale(1);
  675. transform: scale(1);
  676. overflow-x: hidden;
  677. overflow-y: auto;
  678. pointer-events: auto;
  679. }
  680. page {
  681. background: #FFFFFF;
  682. }
  683. .view1 {
  684. border-radius: 15upx;
  685. /* background-size: 100%; */
  686. background-size: cover;
  687. margin: 20upx 20upx 0 20upx;
  688. }
  689. .hideCanvasView {
  690. position: relative;
  691. }
  692. .hideCanvas {
  693. position: fixed;
  694. top: -99999upx;
  695. left: -99999upx;
  696. z-index: -99999;
  697. }
  698. .flex_row_c_c {
  699. display: flex;
  700. flex-direction: row;
  701. justify-content: center;
  702. align-items: center;
  703. }
  704. .modalView {
  705. width: 100%;
  706. height: 100%;
  707. position: fixed;
  708. top: 0;
  709. left: 0;
  710. right: 0;
  711. bottom: 0;
  712. opacity: 0;
  713. outline: 0;
  714. transform: scale(1.2);
  715. perspective: 2500upx;
  716. /* background: rgba(0, 0, 0, 0.6); */
  717. background: #FFFFFF;
  718. transition: all .3s ease-in-out;
  719. pointer-events: none;
  720. backface-visibility: hidden;
  721. z-index: 999;
  722. }
  723. .modalView.show {
  724. opacity: 1;
  725. transform: scale(1);
  726. pointer-events: auto;
  727. }
  728. .flex_column {
  729. display: flex;
  730. flex-direction: column;
  731. }
  732. .backgroundColor-white {
  733. background-color: white;
  734. }
  735. .border_radius_10px {
  736. border-radius: 10px;
  737. }
  738. .padding1vh {
  739. padding: 1vh;
  740. }
  741. .posterImage {
  742. width: 60vw;
  743. }
  744. .flex_row {
  745. display: flex;
  746. flex-direction: row;
  747. }
  748. .marginTop2vh {
  749. margin-top: 2vh;
  750. }
  751. .poster_canvas {
  752. width: 750upx;
  753. height: 1334upx;
  754. position: fixed;
  755. top: -10000upx;
  756. left: 0;
  757. }
  758. </style>