yaoqing.vue 20 KB

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