invitationUser.vue 19 KB

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