invitationUser.vue 21 KB

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