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-activity-goods_combin...

1 lines
15 KiB

(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/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.home[data-v-732b5737]{top:%?20?%!important}.home.opacity[data-v-732b5737]{background:#fff;border:1px solid #d7d7d7}.home[data-v-732b5737]{color:#333;position:fixed;height:%?62?%;z-index:99;left:%?33?%;border:1px solid #d7d7d7;background:hsla(0,0%,100%,.8);border-radius:%?30?%;display:flex;align-items:center;justify-content:space-around}.home .opacity[data-v-732b5737]{color:#000}.home .icon-gengduo4[data-v-732b5737],\n.home .icon-guanbi5[data-v-732b5737]{position:absolute;width:%?40?%;font-weight:700}.home .icon-xiangzuo[data-v-732b5737]{font-weight:700;line-height:%?28?%}.home .icon-gengduo4[data-v-732b5737]{font-size:%?28?%;text-align:center}.home .animation-box[data-v-732b5737]{position:relative;width:%?40?%;height:%?28?%}.icon-guanbi5[data-v-732b5737]{font-size:%?28?%;text-align:center}.home .homeCon[data-v-732b5737]{display:flex;flex-direction:column;font-size:%?26?%;padding:%?4?%;opacity:0;border:1px solid #f2f2f2}.home .homeCon[data-v-732b5737]::before{content:"";width:0;height:0;border-left:%?15?% solid transparent;border-right:%?15?% solid transparent;border-bottom:%?17?% solid #fff;position:absolute;top:%?-15?%;right:%?66?%;border-bottom-color:#f2f2f2}.home .homeCon[data-v-732b5737]::after{content:"";width:0;height:0;border-left:%?15?% solid transparent;border-right:%?15?% solid transparent;border-bottom:%?17?% solid #fff;position:absolute;top:%?-13?%;right:%?66?%}.home .homeCon .homeCon-box[data-v-732b5737]{display:flex;align-items:center;flex-wrap:nowrap;width:100%;padding:%?15?% %?20?%}.home .homeCon .homeCon-box .text[data-v-732b5737]{display:flex;flex-wrap:nowrap}.home .homeCon .iconfont[data-v-732b5737]{display:flex;align-items:center;padding:%?5?% %?3?%;margin-right:%?5?%}.home .homeCon .homeCon-box[data-v-732b5737]:nth-child(even){border-top:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2}.home .homeCon.active[data-v-732b5737]{position:absolute;opacity:1;top:%?75?%;-webkit-animation:bounceInLeft .5s cubic-bezier(.215,.31,.655,1);animation:bounceInLeft .5s cubic-bezier(.215,.31,.655,1);width:-webkit-max-content;width:max-content;display:flex;justify-content:center;align-items:center;border-radius:%?10?%;color:#333;background:#fff!important;box-shadow:%?0?% %?3?% %?10?% %?2?% rgba(0,0,0,.03)}.home .line[data-v-732b5737]{width:%?2?%;height:%?26?%;margin:0 %?18?% 0 %?16?%;background:#fff}.home .line.opacity[data-v-732b5737]{color:#050505;background-color:#050505}.home .icon-xiangzuo[data-v-732b5737]{font-size:%?28?%}.fade-enter-active[data-v-732b5737],\n.fade-leave-active[data-v-732b5737]{transition:opacity .3s}.fade-enter[data-v-732b5737],\n.fade-leave-to[data-v-732b5737]{opacity:0}.p10[data-v-732b5737]{padding:0 %?25?%}.p20[data-v-732b5737]{padding:0 %?40?%}',""]),t.exports=e},"5c80":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showBox?n("v-uni-view",{staticClass:"previewImg",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}}},[n("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[n("v-uni-swiper",{staticClass:"mask-swiper",attrs:{current:t.currentIndex,circular:t.circular,duration:t.duration},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeSwiper.apply(void 0,arguments)}}},t._l(t.list,(function(t,e){return n("v-uni-swiper-item",{key:e,staticClass:"flex flex-column justify-center align-center"},[n("v-uni-image",{staticClass:"mask-swiper-img",attrs:{src:t,mode:"widthFix"}})],1)})),1)],1),t.list.length>0?n("v-uni-view",{staticClass:"pagebox"},[t._v(t._s(Number(t.currentIndex)+1)+" / "+t._s(t.list.length))]):t._e()],1):t._e()},i=[]},6909: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/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.previewImg[data-v-4ac411c0]{position:fixed;top:0;left:0;z-index:300;width:100%;height:100%}.previewImg .mask[data-v-4ac411c0]{display:flex;justify-content:center;align-items:center;background-color:#000;opacity:1;z-index:8;width:100%;height:100%}.previewImg .mask-swiper[data-v-4ac411c0]{width:100%;height:100%}.previewImg .mask-swiper-img[data-v-4ac411c0]{width:100%}.previewImg .pagebox[data-v-4ac411c0]{position:absolute;width:100%;bottom:%?20?%;z-index:300;color:#fff;text-align:center}.mask_sku[data-v-4ac411c0]{color:#fff;max-width:80%;z-index:300;text-align:center;display:flex;flex-direction:column;align-items:center;margin-top:%?30?%}.mask_sku .sku_name[data-v-4ac411c0]{font-size:12px;border:1px solid #fff;padding:%?10?% %?30?% %?10?%;border-radius:40px;box-sizing:border-box}.mask_sku .sku_price[data-v-4ac411c0]{padding-top:10px}.font12[data-v-4ac411c0]{font-size:%?24?%}.share_btn[data-v-4ac411c0]{position:absolute;top:%?70?%;right:%?50?%;font-size:%?40?%;color:#fff;z-index:300}.flex-column[data-v-4ac411c0]{flex-direction:column}.justify-center[data-v-4ac411c0]{justify-content:center}.align-center[data-v-4ac411c0]{align-items:center}',""]),t.exports=e},"6f72":function(t,e,n){"use strict";var o=n("d0b8"),i=n.n(o);i.a},"86eb":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var o={name:"cusPreviewImg",props:{list:{type:Array,required:!0,default:function(){return[]}},circular:{type:Boolean,default:!0},duration:{type:Number,default:500}},data:function(){return{currentIndex:0,showBox:!1}},watch:{list:function(t){}},methods:{changeSwiper:function(t){this.currentIndex=t.target.current},open:function(t){this.list.length&&(this.currentIndex=t,this.showBox=!0)},close:function(){this.showBox=!1}}};e.default=o},9099:function(t,e,n){"use strict";n.r(e);var o=n("cd53"),i=n("abca");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("6f72");var s=n("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"732b5737",null,!1,o["a"],void 0);e["default"]=c.exports},abca:function(t,e,n){"use strict";n.r(e);var o=n("b5aa"),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},b018:function(t,e,n){"use strict";var o=n("e4d0"),i=n.n(o);i.a},b5aa:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var o={name:"menuIcon",data:function(){return{Active:!1,returnShow:!0,homeTop:20,text_opacity:0,menuButton:{},iconList:[{name:this.$t("首页"),iconName:"icon-shouye8",path:"/pages/index/index",jumpType:1},{name:this.$t("购物车"),iconName:"icon-gouwuche7",path:"/pages/order_addcart/order_addcart",jumpType:1},{name:this.$t("搜索"),iconName:"icon-sousuo6",path:"/pages/goods/goods_search/index",jumpType:0},{name:this.$t("我的收藏"),iconName:"icon-shoucang3",path:"/pages/users/user_goods_collection/index",jumpType:0},{name:this.$t("个人中心"),iconName:"icon-yonghu1",path:"/pages/user/index",jumpType:1}]}},props:{showMenuIcon:{type:Boolean,default:!1},opacity:{type:Number,default:1}},watch:{showMenuIcon:function(t){this.Active=t},opacity:function(t){this.text_opacity=t}},mounted:function(){var t=getCurrentPages();this.returnShow=1!==t.length,this.$nextTick((function(){}))},methods:{open:function(){this.Active=!this.Active,this.Active&&this.$emit("open",!0)},returns:function(){uni.navigateBack()},jumpUrl:function(t,e){(1===e?uni.switchTab:uni.navigateTo)({url:t})}}};e.default=o},cd53:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"home acea-row row-center-wrapper",class:[t.returnShow?"p10":"p20",t.text_opacity>=1?"opacity":""],style:{marginTop:t.menuButton.top+"px",width:t.menuButton.width+"px"},attrs:{id:"home"}},[t.returnShow?n("v-uni-view",{staticClass:"iconfont icon-xiangzuo",class:t.text_opacity>=1?"opacity":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.returns.apply(void 0,arguments)}}}):t._e(),t.returnShow?n("v-uni-view",{staticClass:"line"}):t._e(),n("v-uni-view",{staticClass:"animation-box"},[n("transition",{attrs:{name:"fade"}},[t.Active?t._e():n("v-uni-view",{staticClass:"iconfont icon-gengduo4",class:t.text_opacity>=1?"opacity":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}})],1),n("transition",{attrs:{name:"fade",mode:"out-in"}},[t.Active?n("v-uni-view",{staticClass:"iconfont icon-guanbi5",class:t.text_opacity>=1?"opacity":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}}):t._e()],1)],1),t.Active?n("v-uni-view",{staticClass:"homeCon bg-color",class:!0===t.Active?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},t._l(t.iconList,(function(e,o){return n("v-uni-view",{key:o,staticClass:"homeCon-box",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.jumpUrl(e.path,e.jumpType)}}},[n("v-uni-text",{staticClass:"iconfont",class:e.iconName}),n("v-uni-text",{staticClass:"text"},[t._v(t._s(e.name))])],1)})),1):t._e()],1)],1)},i=[]},d0b8:function(t,e,n){var o=n("5b54");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("3fd05f14",o,!0,{sourceMap:!1,shadowMode:!1})},e4d0:function(t,e,n){var o=n("6909");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("15313b4d",o,!0,{sourceMap:!1,shadowMode:!1})}}]);