You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
15 KiB
1 line
15 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-goods_combination_details-index~pages-activity-goods_seckill_details-index"],{"190a":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.sharePoster=void 0,n("d401"),n("d3b7"),n("25f0"),n("c975"),n("ac1f"),n("5319");var i=o(n("c7eb")),a=o(n("1da1")),s=n("a9a5"),c=(n("1579"),n("6a71"),o(n("10aa"))),r=uni.getSystemInfoSync().statusBarHeight+"px",d={data:function(){return{codeShow:!1,cid:"1",codeVal:"",size:200,unit:"upx",background:"#FFF",foreground:"#000",pdground:"#000",codeIcon:"",iconsize:40,lv:3,onval:!0,loadMake:!0,base64Show:0,shareQrcode:0,followCode:"",selectSku:{},currentPage:!1,sysHeight:r,isShow:0,storeImageBase64:""}},methods:{qrR:function(t){this.$wechat.isWeixin()&&"1"==this.shareQrcode||(this.PromotionCode=t,this.followCode="")},getImageBase64:function(){var t=this,e=this;(0,s.imageBase64)(e.storeImage,this.storeInfo.wechat_code).then((function(n){e.storeImageBase64=n.data.image,t.storeInfo.wechat_code&&(e.PromotionCode=n.data.code)})).catch((function(){}))},initPoster:function(t){var e=this;uni.getImageInfo({src:e.PromotionCode,success:function(){""==t[2]?e.downloadFilePromotionCode((function(n){if(t[2]=n,""==t[2])return e.$util.Tips({title:c.default.t("海报二维码生成失败")});e.$util.PosterCanvas(t,e.storeInfo.store_name,e.storeInfo.price,e.storeInfo.ot_price,(function(t){e.$set(e,"posterImage",t),e.$set(e,"posterImageStatus",!0),e.$set(e,"canvasStatus",!1),e.$set(e,"actionSheetHidden",!e.actionSheetHidden)}))})):e.$nextTick((function(n){e.$util.PosterCanvas(t,e.storeInfo.store_name,e.storeInfo.price,e.storeInfo.ot_price,(function(t){e.$set(e,"posterImage",t),e.$set(e,"posterImageStatus",!0),e.$set(e,"canvasStatus",!1),e.$set(e,"actionSheetHidden",!e.actionSheetHidden)}))}))},fail:function(t){return e.$util.Tips({title:t})}})},goPoster:function(t){var e=this;return(0,a.default)((0,i.default)().mark((function t(){var n,o;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e,n.posters=!1,n.$set(n,"canvasStatus",!0),o=[n.posterbackgd,n.storeImageBase64,n.PromotionCode],n.storeImageBase64){t.next=6;break}return t.abrupt("return",n.$util.Tips({title:c.default.t("正在下载海报,请稍后再试")}));case 6:n.initPoster(o);case 7:case"end":return t.stop()}}),t)})))()},setDomain:function(t){return t=t?t.toString():"",t.indexOf("https://")>-1?t:t.replace("http://","https://")},downloadFilestoreImage:function(){var t=this;uni.downloadFile({url:t.setDomain(t.storeInfo.image),success:function(e){t.storeImage=e.tempFilePath,t.storeImageBase64=e.tempFilePath},fail:function(){return t.$util.Tips({title:""})}})},downloadFilePromotionCode:function(t){}}};e.sharePoster=d},"253a":function(t,e,n){"use strict";n.r(e);var o=n("5c80"),i=n("25d7");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("b018");var s=n("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"4ac411c0",null,!1,o["a"],void 0);e["default"]=c.exports},"25d7":function(t,e,n){"use strict";n.r(e);var o=n("86eb"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"5b54":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为
|