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.
shipin/public/static/js/pages-goods_details-index.d...

1 line
127 KiB

10 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_details-index","pages-activity-goods_combination_details-index~pages-activity-goods_seckill_details-index"],{"190a":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.sharePoster=void 0,i("d401"),i("d3b7"),i("25f0"),i("c975"),i("ac1f"),i("5319");var a=n(i("c7eb")),o=n(i("1da1")),s=i("a9a5"),r=(i("1579"),i("6a71"),n(i("10aa"))),c=uni.getSystemInfoSync().statusBarHeight+"px",u={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:c,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(i){e.storeImageBase64=i.data.image,t.storeInfo.wechat_code&&(e.PromotionCode=i.data.code)})).catch((function(){}))},initPoster:function(t){var e=this;uni.getImageInfo({src:e.PromotionCode,success:function(){""==t[2]?e.downloadFilePromotionCode((function(i){if(t[2]=i,""==t[2])return e.$util.Tips({title:r.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(i){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,o.default)((0,a.default)().mark((function t(){var i,n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e,i.posters=!1,i.$set(i,"canvasStatus",!0),n=[i.posterbackgd,i.storeImageBase64,i.PromotionCode],i.storeImageBase64){t.next=6;break}return t.abrupt("return",i.$util.Tips({title:r.default.t("正在下载海报,请稍后再试")}));case 6:i.initPoster(n);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=u},"1d44":function(t,e,i){"use strict";var n=i("924c"),a=i.n(n);a.a},"253a":function(t,e,i){"use strict";i.r(e);var n=i("5c80"),a=i("25d7");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("b018");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"4ac411c0",null,!1,n["a"],void 0);e["default"]=r.exports},"25d7":function(t,e,i){"use strict";i.r(e);var n=i("86eb"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"2c86":function(t,e,i){var n=i("24fb");e=n(!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 <EFBFBD>