jingjiren.vue 19 KB

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