From 5057927904d4ac2bc773c6e3d21449b9b477ff63 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Sat, 27 Dec 2025 11:48:40 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=95=86=E5=93=81=E7=9A=84=E7=AB=8B?= =?UTF-8?q?=E5=8D=B3=E5=92=A8=E8=AF=A2=E4=BF=AE=E6=94=B9=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/vendor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/vendor.js b/common/vendor.js index 28aabb2..039b736 100644 --- a/common/vendor.js +++ b/common/vendor.js @@ -1,4 +1,4 @@ -import site from "../site.js";(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"011a":function(e,t){function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=o=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},"03f5":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"找回密码",findPassword:"找回密码",accountPlaceholder:"请输入手机号",captchaPlaceholder:"请输入验证码",dynacodePlaceholder:"请输入动态码",passwordPlaceholder:"请输入新密码",rePasswordPlaceholder:"请确认新密码",next:"下一步",save:"确认修改"}},"058d":function(e,t){e.exports={error:"",check:function(e,t){for(var o=0;on[1]||e[t[o].name]n[1]||e[t[o].name]n[1]||e[t[o].name]t[o].checkRule)return this.error=t[o].errorMsg,!1;break}}return!0},isNumber:function(e){return/^-?[1-9][0-9]?.?[0-9]*$/.test(e)}}},"05d9":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"收货地址",newAddAddress:"添加收货地址",getAddress:"一键获取地址",is_default:"默认",modify:"编辑",del:"删除"}},"07c2":function(e,t,o){var i={"./en-us/common.js":"aaf5","./en-us/contact/contact.js":"dd11","./en-us/goods/category.js":"ee71","./en-us/goods/detail.js":"1f3b","./en-us/member/index.js":"5a17","./zh-cn/article/detail.js":"3481","./zh-cn/article/list.js":"f7e6","./zh-cn/bale/detail.js":"c39f","./zh-cn/bale/payment.js":"2172","./zh-cn/bargain/detail.js":"3b90","./zh-cn/bargain/launch.js":"823e","./zh-cn/bargain/list.js":"e032","./zh-cn/bargain/my_bargain.js":"ccec","./zh-cn/bargain/payment.js":"5418","./zh-cn/combo/detail.js":"2416","./zh-cn/combo/payment.js":"684c","./zh-cn/common.js":"7c64","./zh-cn/contact/contact.js":"238a","./zh-cn/diy/diy.js":"64f5","./zh-cn/fenxiao/apply.js":"5999","./zh-cn/fenxiao/bill.js":"4779","./zh-cn/fenxiao/follow.js":"945d","./zh-cn/fenxiao/goods_list.js":"b2e5","./zh-cn/fenxiao/index.js":"f230","./zh-cn/fenxiao/level.js":"46f4","./zh-cn/fenxiao/order.js":"51f3","./zh-cn/fenxiao/order_detail.js":"755e","./zh-cn/fenxiao/promote_code.js":"d733","./zh-cn/fenxiao/team.js":"e9df","./zh-cn/fenxiao/withdraw_apply.js":"33ef","./zh-cn/fenxiao/withdraw_list.js":"1017","./zh-cn/game/cards.js":"2193","./zh-cn/game/record.js":"c5b3","./zh-cn/game/smash_eggs.js":"fda8","./zh-cn/game/turntable.js":"ee2d","./zh-cn/goods/brand.js":"641c","./zh-cn/goods/cart.js":"f0df","./zh-cn/goods/category.js":"357b","./zh-cn/goods/consult.js":"93cc","./zh-cn/goods/consult_edit.js":"f47f","./zh-cn/goods/coupon.js":"1944","./zh-cn/goods/coupon_receive.js":"ebf8","./zh-cn/goods/detail.js":"1074","./zh-cn/goods/evaluate.js":"44bc","./zh-cn/goods/list.js":"b67f","./zh-cn/goods/not_exist.js":"b465","./zh-cn/goods/point.js":"7e77","./zh-cn/goods/search.js":"84c0","./zh-cn/groupbuy/detail.js":"6b84","./zh-cn/groupbuy/list.js":"7c49","./zh-cn/groupbuy/payment.js":"2da9","./zh-cn/help/detail.js":"a56f","./zh-cn/help/list.js":"31c1","./zh-cn/hongbao/list.js":"ecff","./zh-cn/hongbao/my_hongbao.js":"66ef","./zh-cn/index/index.js":"212b","./zh-cn/live/list.js":"30c6","./zh-cn/login/find.js":"03f5","./zh-cn/login/login.js":"133a","./zh-cn/login/register.js":"ed79","./zh-cn/member/account.js":"9d8b","./zh-cn/member/account_edit.js":"4ff4","./zh-cn/member/address.js":"05d9","./zh-cn/member/address_edit.js":"6381","./zh-cn/member/apply_withdrawal.js":"fa51","./zh-cn/member/assets.js":"7c5d","./zh-cn/member/balance.js":"1045","./zh-cn/member/balance_detail.js":"fdfe","./zh-cn/member/cancellation.js":"c567","./zh-cn/member/cancelrefuse.js":"16af","./zh-cn/member/cancelstatus.js":"8c2d","./zh-cn/member/cancelsuccess.js":"17e9","./zh-cn/member/card.js":"a047","./zh-cn/member/card_buy.js":"6675","./zh-cn/member/collection.js":"afbd","./zh-cn/member/contact.js":"d5b6","./zh-cn/member/coupon.js":"e7ae","./zh-cn/member/footprint.js":"5b8f","./zh-cn/member/gift.js":"d000","./zh-cn/member/gift_detail.js":"6b54","./zh-cn/member/index.js":"60d7","./zh-cn/member/info.js":"dcd1","./zh-cn/member/info_edit.js":"f785","./zh-cn/member/invite_friends.js":"7780","./zh-cn/member/level.js":"f8c7","./zh-cn/member/message.js":"2819","./zh-cn/member/modify_face.js":"a100","./zh-cn/member/pay_password.js":"ef02","./zh-cn/member/point.js":"be98","./zh-cn/member/point_detail.js":"36f8","./zh-cn/member/signin.js":"9f9e","./zh-cn/member/withdrawal.js":"d2b3","./zh-cn/member/withdrawal_detail.js":"9908","./zh-cn/notice/detail.js":"ef5b","./zh-cn/notice/list.js":"fa55","./zh-cn/order/activist.js":"d35b","./zh-cn/order/detail.js":"ca49","./zh-cn/order/detail_local_delivery.js":"8ddc","./zh-cn/order/detail_pickup.js":"d0fd","./zh-cn/order/detail_point.js":"92a0","./zh-cn/order/detail_virtual.js":"ab7b","./zh-cn/order/evaluate.js":"b07f","./zh-cn/order/list.js":"2914","./zh-cn/order/logistics.js":"649d","./zh-cn/order/payment.js":"e41b","./zh-cn/order/refund.js":"78b8","./zh-cn/order/refund_batch.js":"300f","./zh-cn/order/refund_detail.js":"769e","./zh-cn/pay/index.js":"f270","./zh-cn/pay/result.js":"4e31","./zh-cn/pintuan/detail.js":"86fa","./zh-cn/pintuan/list.js":"b878","./zh-cn/pintuan/my_spell.js":"6090","./zh-cn/pintuan/payment.js":"d5fe","./zh-cn/pintuan/share.js":"46b3","./zh-cn/point/detail.js":"2a4e","./zh-cn/point/goods_detail.js":"0e7a","./zh-cn/point/list.js":"b2af","./zh-cn/point/order_detail.js":"df74","./zh-cn/point/order_list.js":"5452","./zh-cn/point/payment.js":"dbec","./zh-cn/point/result.js":"6208","./zh-cn/presale/detail.js":"e7d2","./zh-cn/presale/list.js":"36a6","./zh-cn/presale/order_detail.js":"9457","./zh-cn/presale/order_list.js":"4d7a","./zh-cn/presale/payment.js":"9b09","./zh-cn/recharge/detail.js":"9ceb","./zh-cn/recharge/list.js":"bd1f","./zh-cn/recharge/order_list.js":"b647","./zh-cn/seckill/detail.js":"aefd","./zh-cn/seckill/list.js":"4191","./zh-cn/seckill/payment.js":"a50b","./zh-cn/store_notes/note_detail.js":"682c","./zh-cn/store_notes/note_list.js":"4406","./zh-cn/storeclose/storeclose.js":"7d44","./zh-cn/topics/detail.js":"161a","./zh-cn/topics/goods_detail.js":"bba4","./zh-cn/topics/list.js":"0fd4","./zh-cn/topics/payment.js":"9152","./zh-cn/verification/detail.js":"47e7","./zh-cn/verification/index.js":"7749","./zh-cn/verification/list.js":"7307"};function n(e){var t=r(e);return o(t)}function r(e){if(!o.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=r,e.exports=n,n.id="07c2"},"0bdb":function(e,t,o){var i=o("d551");function n(e,t){for(var o=0;o=0&&t.data&&(e.wechatQrcode=t.data.qrcode)}})},officialAccountsOpen:function(){this.$refs.officialAccountsPopup.open()},officialAccountsClose:function(){this.$refs.officialAccountsPopup.close()}}}},"133a":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"登录",mobileLogin:"手机号登录",accountLogin:"账号登录",autoLogin:"一键授权登录",login:"登录",mobilePlaceholder:"手机号登录仅限中国大陆用户",dynacodePlaceholder:"请输入动态码",captchaPlaceholder:"请输入验证码",accountPlaceholder:"请输入账号",passwordPlaceholder:"请输入密码",rePasswordPlaceholder:"请确认密码",forgetPassword:"忘记密码",register:"注册",registerTips:"没有账号的用户快来",registerTips1:"注册",registerTips2:"吧",newUserRegister:"新用户注册"}},"15b5":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("3b2d")),r=i(o("3240")),a=i(o("8f59")),s=i(o("6be8")),c=i(o("e95f"));r.default.use(a.default);var l=new a.default.Store({state:{token:null,siteInfo:null,memberInfo:null,tabBarList:"",siteState:1,themeStyle:"",addonIsExist:{bundling:0,coupon:0,discount:0,fenxiao:0,gift:0,groupbuy:0,manjian:0,memberconsume:0,memberrecharge:0,memberregister:0,membersignin:0,memberwithdraw:0,memberrecommend:0,pintuan:0,pointexchange:0,seckill:0,store:0,topic:0,bargain:0,membercancel:0,servicer:0,supermember:0,giftcard:0,divideticket:0,scenefestival:0,birthdaygift:0,pinfan:0,form:0},authInfo:{},flRefresh:0,location:null,defaultImg:{goods:"",head:"",store:"",article:""},cartList:{},cartIds:[],cartNumber:0,cartMoney:0,cartChange:0,bottomNavHidden:!1,globalStoreConfig:null,globalStoreInfo:null,defaultStoreInfo:null,cartPosition:null,componentRefresh:0,servicerConfig:null,diySeckillInterval:0,diyGroupPositionObj:{},diyGroupShowModule:"",tabBarHeight:"56px",mapConfig:{tencent_map_key:"",wap_is_open:1,wap_valid_time:0},copyright:null},mutations:{setDiyGroupShowModule:function(e,t){e.diyGroupShowModule=t},setDiyGroupPositionObj:function(e,t){e.diyGroupPositionObj=Object.assign({},e.diyGroupPositionObj,t)},setSiteState:function(e,t){e.siteState=t},setThemeStyle:function(t,o){t.themeStyle=o,e.setStorageSync("themeStyle",o)},setTabBarList:function(e,t){e.tabBarList=t},setAddonIsExist:function(t,o){t.addonIsExist=o,e.setStorageSync("addonIsExist",o)},setToken:function(t,o){t.token=o,o?e.setStorageSync("token",o):e.removeStorageSync("token")},setAuthinfo:function(e,t){e.authInfo=t},setflRefresh:function(e,t){e.flRefresh=t},setLocation:function(t,o){var i=new Date;i.setSeconds(60*t.mapConfig.wap_valid_time),o.valid_time=i.getTime()/1e3,t.location=o,e.setStorageSync("location",o)},setDefaultImg:function(t,o){t.defaultImg=o,e.setStorageSync("defaultImg",o)},setSiteInfo:function(t,o){t.siteInfo=o,e.setStorageSync("siteInfo",o)},setShopInfo:function(t,o){t.shopInfo=o,e.setStorageSync("shopInfo",o)},setCartChange:function(e){e.cartChange+=1},setBottomNavHidden:function(e,t){e.bottomNavHidden=t},setGlobalStoreConfig:function(t,o){t.globalStoreConfig=o,e.setStorageSync("globalStoreConfig",o)},setGlobalStoreInfo:function(t,o){t.globalStoreInfo=o,e.setStorageSync("globalStoreInfo",o)},setDefaultStoreInfo:function(t,o){t.defaultStoreInfo=o,e.setStorageSync("defaultStoreInfo",o)},setCartPosition:function(e,t){e.cartPosition=t},setComponentRefresh:function(e){e.componentRefresh+=1},setServicerConfig:function(t,o){t.servicerConfig=o,e.setStorageSync("servicerConfig",o)},setDiySeckillInterval:function(e,t){e.diySeckillInterval=t},setTabBarHeight:function(e,t){e.tabBarHeight=t},setMapConfig:function(t,o){t.mapConfig=o,e.setStorageSync("mapConfig",o)},setCopyright:function(t,o){t.copyright=o,e.setStorageSync("copyright",o)},setMemberInfo:function(t,o){t.memberInfo=o,o?e.setStorageSync("memberInfo",o):e.removeStorageSync("memberInfo")},setCartNumber:function(e,t){e.cartNumber=t},setCartList:function(e,t){e.cartList=t},setCartIds:function(e,t){e.cartIds=t},setCartMoney:function(e,t){e.cartMoney=t}},actions:{init:function(){var e=this;return new Promise((function(t,o){s.default.sendRequest({url:"/api/config/init",success:function(o){var i=o.data;i&&(e.commit("setThemeStyle",c.default[i.style_theme.name]),e.commit("setTabBarList",i.diy_bottom_nav),e.commit("setAddonIsExist",i.addon_is_exist),e.commit("setDefaultImg",i.default_img),e.commit("setSiteInfo",i.site_info),e.commit("setServicerConfig",i.servicer),e.commit("setCopyright",i.copyright),e.commit("setMapConfig",i.map_config),e.commit("setGlobalStoreConfig",i.store_config),e.commit("setShopInfo",i.shop_info),i.store_info?e.commit("setDefaultStoreInfo",i.store_info):(e.commit("setDefaultStoreInfo",null),e.commit("setGlobalStoreInfo",null)),t(i))}})}))},getCartNumber:function(){var e=this;s.default.sendRequest({url:"/api/cart/lists",data:{},success:function(t){if(0==t.code){var o=[],i=[],r=0,a=0;if(t.data.length)for(var s in t.data.forEach((function(e){var t={cart_id:e.cart_id,goods_id:e.goods_id,sku_id:e.sku_id,num:e.num,discount_price:e.discount_price};o["goods_"+t.goods_id]||(o["goods_"+t.goods_id]={}),o["goods_"+t.goods_id]["sku_"+t.sku_id]=t,i.push(t.cart_id)})),o){var c=0,l=0;for(var u in o[s]){var d=o[s][u];"object"==(0,n.default)(d)&&(c+=d.num,l+=parseFloat(d.discount_price)*parseInt(d.num))}o[s].num=c,o[s].total_money=l,a+=c,r+=l}e.commit("setCartList",o),e.commit("setCartIds",i),e.commit("setCartNumber",a),e.commit("setCartMoney",r)}}})},emptyCart:function(){this.commit("setCartList",{}),this.commit("setCartIds",[]),this.commit("setCartNumber",0),this.commit("setCartMoney",0)},cartCalculate:function(){var e=[],t=0,o=0;for(var i in this.state.cartList){var r=this.state.cartList[i],a=0,s=0;for(var c in r)"object"==(0,n.default)(r[c])&&(a+=r[c].num,s+=parseFloat(r[c].discount_price)*parseInt(r[c].num),e.push(r[c].cart_id));r.num=a,r.total_money=s,o+=a,t+=s}this.commit("setCartNumber",o),this.commit("setCartMoney",t),this.commit("setCartIds",e)}}}),u=l;t.default=u}).call(this,o("df3c")["default"])},"15e3":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("3b2d")),r={data:function(){return{themeColor:""}},onLoad:function(){},onShow:function(){var e=this;this.$langConfig.refresh();var t=setInterval((function(){var o=e.themeStyle;o&&o.main_color&&(e.themeColorSet(),clearInterval(t))}),50)},computed:{themeStyle:function(){return this.$store.state.themeStyle},addonIsExist:function(){return this.$store.state.addonIsExist},tabBarList:function(){return this.$store.state.tabBarList},siteInfo:function(){return this.$store.state.siteInfo},memberInfo:function(){return this.$store.state.memberInfo},storeToken:function(){return this.$store.state.token},bottomNavHidden:function(){return this.$store.state.bottomNavHidden},globalStoreConfig:function(){return this.$store.state.globalStoreConfig},globalStoreInfo:function(){return this.$store.state.globalStoreInfo},location:function(){return this.$store.state.location},locationStorage:function(){var t=e.getStorageSync("location");if(t){var o=new Date;this.mapConfig.wap_valid_time>0?t.is_expired=o.getTime()/1e3>t.valid_time:t.is_expired=!1}return t},defaultStoreInfo:function(){return this.$store.state.defaultStoreInfo},componentRefresh:function(){return this.$store.state.componentRefresh},servicerConfig:function(){return this.$store.state.servicerConfig},diySeckillInterval:function(){return this.$store.state.diySeckillInterval},tabBarHeight:function(){return this.$store.state.tabBarHeight},mapConfig:function(){return this.$store.state.mapConfig},copyright:function(){var e=this.$store.state.copyright;return e&&!e.auth&&(e.logo="",e.copyright_link=""),e},cartList:function(){return this.$store.state.cartList},cartIds:function(){return this.$store.state.cartIds},cartNumber:function(){return this.$store.state.cartNumber},cartMoney:function(){return this.$store.state.cartMoney}},methods:{themeColorSet:function(){var e=this,t=this.themeStyle;this.themeColor="--base-color:".concat(t.main_color,";--base-help-color:").concat(t.aux_color,";"),"56px"!=this.tabBarHeight&&(this.themeColor+="--tab-bar-height:".concat(this.tabBarHeight,";")),Object.keys(t).forEach((function(o){var i=t[o];"object"==(0,n.default)(i)?Object.keys(i).forEach((function(t){e.themeColor+="--"+t.replace(/_/g,"-")+":"+i[t]+";"})):"string"==typeof o&&o&&(e.themeColor+="--"+o.replace(/_/g,"-")+":"+i+";")}));for(var o=9;o>=5;o--){var i=this.$util.colourBlend(t.main_color,"#ffffff",o/10);this.themeColor+="--base-color-light-".concat(o,":").concat(i,";")}},lightenDarkenColor:function(e,t){var o=!1;"#"==e[0]&&(e=e.slice(1),o=!0);var i=parseInt(e,16),n=(i>>16)+t;n>255?n=255:n<0&&(n=0);var r=(i>>8&255)+t;r>255?r=255:r<0&&(r=0);var a=(255&i)+t;return a>255?a=255:a<0&&(a=0),(o?"#":"")+(a|r<<8|n<<16).toString(16)},changeStore:function(t,o){t&&this.$store.commit("setGlobalStoreInfo",t);var i=this.$util.getCurrRoute();o&&"pages/index/index"!=i&&(e.setStorageSync("manual_change_store",!0),this.$store.dispatch("getCartNumber"),this.$util.redirectTo("/pages/index/index"))}},filters:{moneyFormat:function(e){return isNaN(parseFloat(e))?e:parseFloat(e).toFixed(2)}}};t.default=r}).call(this,o("df3c")["default"])},"161a":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"专题活动详情"}},"16af":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账号注销"}},"174f":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("7eb4")),r=i(o("3b2d")),a=i(o("ee10")),s=(i(o("e5ac")),{data:function(){return{skuId:0,goodsId:0,goodsSkuDetail:{goods_id:0,goods_service:[]},preview:0,contactData:{title:"",path:"",img:""},shareQuery:"",shareUrl:"",source_member:0,chatRoomParams:{},isIphoneX:!1,whetherCollection:0,posterParams:{},shareImg:"",navbarData:{title:"",topNavColor:"#ffffff",topNavBg:!1,navBarSwitch:!0,textNavColor:"#333333",moreLink:{name:""},navStyle:1,bgUrl:"",textImgPosLink:"left"}}},onLoad:function(t){if(this.$langConfig.refresh(),this.preview=t.preview||0,this.isIphoneX=this.$util.uniappIsIPhoneX(),t.source_member&&(e.setStorageSync("source_member",t.source_member),this.source_member=t.source_member),this.storeToken&&e.getStorageSync("source_member")&&this.$util.onSourceMember(e.getStorageSync("source_member")),t.scene){var o=decodeURIComponent(t.scene);o=o.split("&"),o.length&&o.forEach((function(t){-1!=t.indexOf("m")&&e.setStorageSync("source_member",t.split("-")[1]),-1!=t.indexOf("is_test")&&e.setStorageSync("is_test",1)}))}},onShow:function(){},methods:{handleGoodsSkuData:function(){this.goodsSkuDetail.config&&(this.navbarData.navBarSwitch=this.goodsSkuDetail.config.nav_bar_switch),this.whetherCollection=this.goodsSkuDetail.is_collect,this.modifyGoodsInfo(),this.$refs.goodsDetailView&&this.$refs.goodsDetailView.init({sku_id:this.skuId,goods_id:this.goodsSkuDetail.goods_id,preview:this.preview,source_member:this.source_member,posterParams:this.posterParams,posterApi:this.posterApi,shareUrl:this.shareUrl,goodsRoute:this.goodsRoute,isVirtual:this.goodsSkuDetail.is_virtual,deliveryType:this.goodsSkuDetail.express_type,whetherCollection:this.goodsSkuDetail.is_collect,evaluateConfig:this.goodsSkuDetail.evaluate_config,evaluateList:this.goodsSkuDetail.evaluate_list,evaluateCount:this.goodsSkuDetail.evaluate_count}),this.goodsSkuDetail.video_url&&(this.switchMedia="video"),Array.isArray(this.goodsSkuDetail.sku_images)||(this.goodsSkuDetail.sku_images?this.goodsSkuDetail.sku_images=this.goodsSkuDetail.sku_images.split(","):this.goodsSkuDetail.sku_images=[]),this.goodsSkuDetail.goods_spec_format&&this.goodsSkuDetail.goods_image&&(Array.isArray(this.goodsSkuDetail.goods_image)||(this.goodsSkuDetail.goods_image=this.goodsSkuDetail.goods_image.split(",")),this.goodsSkuDetail.sku_images=this.goodsSkuDetail.goods_image.concat(this.goodsSkuDetail.sku_images));var t="",o=e.getSystemInfoSync();if(this.goodsSkuDetail.goods_image_list.forEach((function(e,i){"string"==typeof e.pic_spec&&(e.pic_spec=e.pic_spec.split("*"));var n=e.pic_spec[0]/o.windowWidth;e.pic_spec[0]=e.pic_spec[0]/n,e.pic_spec[1]=e.pic_spec[1]/n,(!t||t>e.pic_spec[1])&&(t=e.pic_spec[1])})),this.goodsSkuDetail.swiperHeight=t+"px",this.goodsSkuDetail.unit=this.goodsSkuDetail.unit||"件",this.goodsSkuDetail.sku_spec_format&&(this.goodsSkuDetail.sku_spec_format=JSON.parse(this.goodsSkuDetail.sku_spec_format)),this.goodsSkuDetail.goods_attr_format){var i=JSON.parse(this.goodsSkuDetail.goods_attr_format);this.goodsSkuDetail.goods_attr_format=this.$util.unique(i,"attr_id");for(var n=0;nthis.goodsSkuDetail.sku_images.length&&(this.swiperAutoplay=!0,this.swiperCurrent=1,setTimeout((function(){t.swiperAutoplay=!1}),40))),this.navbarData.title=this.goodsSkuDetail.goods_name.length>9?this.goodsSkuDetail.goods_name.substr(0,9)+"...":this.goodsSkuDetail.goods_name,this.$langConfig.title(this.navbarData.title),this.goodsSkuDetail.membercard&&(this.membercard=this.goodsSkuDetail.membercard)},goodsDetailViewInit:function(){this.$refs.goodsDetailView&&this.$refs.goodsDetailView.init({sku_id:this.skuId,goods_id:this.goodsSkuDetail.goods_id,preview:this.preview,source_member:this.source_member,posterParams:this.posterParams,posterApi:this.posterApi,shareUrl:this.shareUrl,goodsRoute:this.goodsRoute,isVirtual:this.goodsSkuDetail.is_virtual,deliveryType:this.goodsSkuDetail.express_type,whetherCollection:this.goodsSkuDetail.is_collect,evaluateConfig:this.goodsSkuDetail.evaluate_config,evaluateList:this.goodsSkuDetail.evaluate_list,evaluateCount:this.goodsSkuDetail.evaluate_count})},goHome:function(){this.preview||this.$util.redirectTo("/pages/index/index")},goCart:function(){this.preview||this.$util.redirectTo("/pages/goods/cart")},modifyGoodsInfo:function(){this.preview||(this.$api.sendRequest({url:"/api/goods/modifyclicks",data:{sku_id:this.skuId},success:function(e){}}),this.$api.sendRequest({url:"/api/goodsbrowse/add",data:{goods_id:this.goodsSkuDetail.goods_id,sku_id:this.skuId},success:function(e){}}))},editCollection:function(){var e=this;return(0,a.default)(n.default.mark((function t(){return n.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.$refs.goodsDetailView){t.next=4;break}return t.next=3,e.$refs.goodsDetailView.collection();case 3:e.whetherCollection=t.sent;case 4:case"end":return t.stop()}}),t)})))()},openSharePopup:function(){this.$refs.goodsDetailView&&this.$refs.goodsDetailView.openSharePopup()},getBarrageData:function(){var e=this;this.$api.sendRequest({url:"/api/goods/goodsbarrage",data:{goods_id:this.goodsSkuDetail.goods_id},success:function(t){if(0==t.code&&t.data){var o=[];for(var i in t.data.list)if(t.data.list[i]["title"]){var n=t.data.list[i]["title"].substr(0,1)+"*"+t.data.list[i]["title"].substr(t.data.list[i]["title"].length-1,1);o.push({img:t.data.list[i]["img"]?t.data.list[i]["img"]:e.$util.getDefaultImage().head,title:n+"已下单"})}e.goodsSkuDetail.barrageData=o}}})},setPublicShare:function(){var e=this.$config.h5Domain+this.shareUrl;this.memberInfo&&this.memberInfo.member_id&&(e+="&source_member="+this.memberInfo.member_id),this.$util.setPublicShare({title:this.goodsSkuDetail.goods_name,desc:"",link:e,imgUrl:"object"==(0,r.default)(this.goodsSkuDetail.goods_image)?this.goodsSkuDetail.goods_image[0]:this.goodsSkuDetail.goods_image.split(",")[0]})},getGoodsForm:function(){var e=this;this.$api.sendRequest({url:"/form/api/form/goodsform",data:{goods_id:this.goodsSkuDetail.goods_id},success:function(t){0==t.code&&t.data&&e.$set(e.goodsSkuDetail,"goods_form",t.data)}})}},onShareAppMessage:function(e){var t=this.shareUrl;return this.memberInfo&&this.memberInfo.member_id&&(t+="&source_member="+this.memberInfo.member_id),{title:this.goodsSkuDetail.sku_name,imageUrl:this.shareImg?this.$util.img(this.shareImg):this.$util.img(this.goodsSkuDetail.sku_image,{size:"big"}),path:t,success:function(e){},fail:function(e){}}},onShareTimeline:function(){var e=this.shareQuery;return this.memberInfo&&this.memberInfo.member_id&&(e+="&source_member="+this.memberInfo.member_id),{title:this.goodsSkuDetail.sku_name,query:e,imageUrl:this.$util.img(this.goodsSkuDetail.sku_image,{size:"big"})}}});t.default=s}).call(this,o("df3c")["default"])},"17e9":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账号注销"}},1944:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"优惠券领取"}},"1a12":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{showTop:!1,scrollTop:0,oldLocation:0}},methods:{scrollToTopNative:function(){e.pageScrollTo({duration:200,scrollTop:0})}},onReachBottom:function(){this.$refs.goodrecommend&&this.$refs.goodrecommend.getLikeList(10)},onPageScroll:function(e){this.oldLocation=e.scrollTop,e.scrollTop>400?this.showTop=!0:this.showTop=!1}};t.default=o}).call(this,o("df3c")["default"])},"1c28":function(e,t,o){"use strict";(function(t){var i=o("47a9"),n=i(o("67ad")),r=i(o("0bdb")),a=i(o("96b0")),s={KEY_ERR:311,KEY_ERR_MSG:"key格式错误",PARAM_ERR:310,PARAM_ERR_MSG:"请求参数信息有误",SYSTEM_ERR:600,SYSTEM_ERR_MSG:"系统错误",WX_ERR_CODE:1e3,WX_OK_CODE:200},c="https://apis.map.qq.com/ws/",l=c+"place/v1/suggestion",u={driving:"driving",transit:"transit"},d={safeAdd:function(e,t){var o=(65535&e)+(65535&t),i=(e>>16)+(t>>16)+(o>>16);return i<<16|65535&o},bitRotateLeft:function(e,t){return e<>>32-t},md5cmn:function(e,t,o,i,n,r){return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(t,e),this.safeAdd(i,r)),n),o)},md5ff:function(e,t,o,i,n,r,a){return this.md5cmn(t&o|~t&i,e,t,n,r,a)},md5gg:function(e,t,o,i,n,r,a){return this.md5cmn(t&i|o&~i,e,t,n,r,a)},md5hh:function(e,t,o,i,n,r,a){return this.md5cmn(t^o^i,e,t,n,r,a)},md5ii:function(e,t,o,i,n,r,a){return this.md5cmn(o^(t|~i),e,t,n,r,a)},binlMD5:function(e,t){var o,i,n,r,a;e[t>>5]|=128<>>9<<4)]=t;var s=1732584193,c=-271733879,l=-1732584194,u=271733878;for(o=0;o>5]>>>t%32&255);return o},rstr2binl:function(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<16&&(n=this.binlMD5(n,8*e.length)),o=0;o<16;o+=1)r[o]=909522486^n[o],a[o]=1549556828^n[o];return i=this.binlMD5(r.concat(this.rstr2binl(t)),512+8*t.length),this.binl2rstr(this.binlMD5(a.concat(i),640))},rstr2hex:function(e){var t,o,i="";for(o=0;o>>4&15)+"0123456789abcdef".charAt(15&t);return i},str2rstrUTF8:function(e){return unescape(encodeURIComponent(e))},rawMD5:function(e){return this.rstrMD5(this.str2rstrUTF8(e))},hexMD5:function(e){return this.rstr2hex(this.rawMD5(e))},rawHMACMD5:function(e,t){return this.rstrHMACMD5(this.str2rstrUTF8(e),str2rstrUTF8(t))},hexHMACMD5:function(e,t){return this.rstr2hex(this.rawHMACMD5(e,t))},md5:function(e,t,o){return t?o?this.rawHMACMD5(t,e):this.hexHMACMD5(t,e):o?this.rawMD5(e):this.hexMD5(e)},getSig:function(e,t,o,i){var n=null,r=[];return Object.keys(e).sort().forEach((function(t){r.push(t+"="+e[t])})),"search"==o&&(n="/ws/place/v1/search?"+r.join("&")+t),"suggest"==o&&(n="/ws/place/v1/suggestion?"+r.join("&")+t),"reverseGeocoder"==o&&(n="/ws/geocoder/v1/?"+r.join("&")+t),"geocoder"==o&&(n="/ws/geocoder/v1/?"+r.join("&")+t),"getCityList"==o&&(n="/ws/district/v1/list?"+r.join("&")+t),"getDistrictByCityId"==o&&(n="/ws/district/v1/getchildren?"+r.join("&")+t),"calculateDistance"==o&&(n="/ws/distance/v1/?"+r.join("&")+t),"direction"==o&&(n="/ws/direction/v1/"+i+"?"+r.join("&")+t),n=this.md5(n),n},location2query:function(e){if("string"==typeof e)return e;for(var t="",o=0;o0&&Number(this.goodsSkuDetail.member_price)>Number(this.goodsSkuDetail.discount_price))&&(e=!0),e},memberCardDiscount:function(){var e=0,t=this.goodsSkuDetail.member_price>0&&Number(this.goodsSkuDetail.member_price)0&&parseFloat(t)>parseFloat(this.membercard.member_price)&&(e=parseFloat(t)-parseFloat(this.membercard.member_price)),e.toFixed(2)},FormHeight:function(){var e=48;return this.goodsForm&&this.goodsForm.length&&(e+=5*this.goodsForm.length),e+="vh",e}},onLoad:function(e){var t=this;if(this.skuId=e.sku_id||0,this.goodsId=e.goods_id||0,e.scene){var o=decodeURIComponent(e.scene);o=o.split("&"),o.length&&o.forEach((function(e){-1!=e.indexOf("goods_id")&&(t.goodsId=e.split("-")[1])}))}this.getShareImg()},onShow:function(){var e=this;return(0,r.default)(n.default.mark((function t(){return n.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getGoodsSkuDetail();case 2:case"end":return t.stop()}}),t)})))()},onHide:function(){this.couponBtnSwitch=!1},methods:{phoneClick:function(t){e.makePhoneCall({phoneNumber:t+"",success:function(){},fail:function(){}})},setSkuId:function(e){e&&(this.skuId=e,this.getBundling())},getGoodsSkuDetail:function(){var t=this;return(0,r.default)(n.default.mark((function o(){var i,r,a;return n.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,t.$api.sendRequest({url:"/api/goodssku/detail",async:!1,data:{sku_id:t.skuId,goods_id:t.goodsId}});case 2:if(i=o.sent,r=i.data,null==r.goods_sku_detail){o.next=27;break}if("presale"!=r.goods_sku_detail.promotion_type||!r.goods_sku_detail.presale_id){o.next=8;break}return t.$util.redirectTo("/pages_promotion/presale/detail",{id:r.goods_sku_detail.presale_id,sku_id:t.skuId},"reLaunch"),o.abrupt("return");case 8:"en-us"==e.getStorageSync("lang")&&(r.goods_sku_detail.goods_name=r.goods_sku_detail.en_goods_name),t.goodsSkuDetail=r.goods_sku_detail,t.skuId||(t.skuId=t.goodsSkuDetail.sku_id),t.goodsId||(t.goodsId=t.goodsSkuDetail.goods_id),t.shareQuery="goods_id="+t.goodsSkuDetail.goods_id,t.shareUrl=t.goodsRoute+"?"+t.shareQuery,t.chatRoomParams={sku_id:t.goodsSkuDetail.sku_id},a=t.goodsSkuDetail.goods_promotion[0],a&&a.discount_id&&(t.chatRoomParams.type="discount",t.chatRoomParams.type_id=a.discount_id),t.posterParams={goods_id:t.goodsId},t.handleGoodsSkuData(),1==t.goodsSkuDetail.promotion_type&&t.addonIsExist.discount&&(t.goodsSkuDetail.end_time-i.timestamp>0?t.goodsSkuDetail.discountTimeMachine=t.$util.countDown(t.goodsSkuDetail.end_time-i.timestamp):t.goodsSkuDetail.promotion_type=0),1==t.goodsSkuDetail.promotion_type&&t.goodsSkuDetail.discountTimeMachine?t.goodsSkuDetail.member_price>0&&Number(t.goodsSkuDetail.member_price)<=Number(t.goodsSkuDetail.discount_price)?t.goodsSkuDetail.show_price=t.goodsSkuDetail.member_price:t.goodsSkuDetail.show_price=t.goodsSkuDetail.discount_price:t.goodsSkuDetail.member_price>0?t.goodsSkuDetail.show_price=t.goodsSkuDetail.member_price:t.goodsSkuDetail.show_price=t.goodsSkuDetail.price,t.goodsSkuDetail.manjian&&t.getManjian(t.goodsSkuDetail.manjian),t.goodsSkuDetail.membercard&&(t.membercard=t.goodsSkuDetail.membercard),t.goodsSkuDetail.coupon_list&&(t.couponList=t.goodsSkuDetail.coupon_list,t.couponList.forEach((function(e){e.count==e.lead_count?e.useState=2:0!=e.max_fetch&&e.member_coupon_num&&e.member_coupon_num>=e.max_fetch?e.useState=1:e.useState=0})),t.couponList=t.couponList.sort(t.sortBy("useState"))),t.$refs.loadingCover&&t.$refs.loadingCover.hide(),o.next=28;break;case 27:t.$util.redirectTo("/pages_tool/goods/not_exist",{},"redirectTo");case 28:case"end":return o.stop()}}),o)})))()},choiceSku:function(){var e=this;this.$refs.goodsSku.show("buy_now",(function(){e.$store.dispatch("getCartNumber")}))},showinformation:function(){this.informationform=this.goodsSkuDetail.goods_form,this.$refs.informationPopup.open()},closeinformationPopup:function(){this.$refs.informationPopup.close()},saveubfirnation:function(){var e=this;this.$refs.form.verify()&&this.$api.sendRequest({url:"/api/goods/information",data:{goods_id:this.goodsSkuDetail.goods_id,form_data:JSON.stringify(this.$refs.form.formData)},success:function(t){t.data;0==t.code||e.$util.showToast({title:t.msg})}})},joinCart:function(){var e=this;this.storeToken||0!=this.preview?1==this.goodsSkuDetail.is_virtual?this.$refs.goodsSku.show("buy_now",(function(){e.$store.dispatch("getCartNumber")})):this.$refs.goodsSku.show("join_cart",(function(){e.$store.dispatch("getCartNumber")})):this.$refs.login.open(this.shareUrl)},buyNow:function(){this.storeToken||0!=this.preview?this.$refs.goodsSku.show("buy_now",(function(){})):this.$refs.login.open(this.shareUrl)},sortBy:function(e){return function(t,o){return t[e]-o[e]}},openCouponPopup:function(){this.$refs.couponPopup.open()},closeCouponPopup:function(){this.$refs.couponPopup.close()},receiveCoupon:function(e){var t=this,o=this;this.preview||this.couponBtnSwitch||(this.couponBtnSwitch=!0,this.storeToken?this.$api.sendRequest({url:"/coupon/api/coupon/receive",data:{coupon_type_id:e.coupon_type_id,get_type:2},success:function(i){i.data;var n="",r=t.couponList;if(n=1==i.data.is_exist&&i.code<0?"您已领取过该优惠券,快去使用吧":0==i.code?"领取成功,快去使用吧":i.message,1==i.data.is_exist)for(var a=0;a1&&(i=o.splice(t))}));var n=i.length?t[0]+"."+i.reverse().join(""):t[0];return n}}};t.default=a}).call(this,o("df3c")["default"])},2819:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我的消息"}},2914:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单列表",emptyTips:"暂无相关订单",all:"全部",waitPay:"待付款",readyDelivery:"待发货",waitDelivery:"待收货",waitEvaluate:"待评价",waitUse:"待使用",update:"释放刷新",updateIng:"加载中..."}},"2a4e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"兑换"}},"2da9":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"待付款订单"}},"2e3b":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=52.35987755982988,n=3.141592653589793,r=6378245,a=.006693421622965943;function s(e,t){var o=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return o+=2*(20*Math.sin(6*e*n)+20*Math.sin(2*e*n))/3,o+=2*(20*Math.sin(t*n)+40*Math.sin(t/3*n))/3,o+=2*(160*Math.sin(t/12*n)+320*Math.sin(t*n/30))/3,o}function c(e,t){var o=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return o+=2*(20*Math.sin(6*e*n)+20*Math.sin(2*e*n))/3,o+=2*(20*Math.sin(e*n)+40*Math.sin(e/3*n))/3,o+=2*(150*Math.sin(e/12*n)+300*Math.sin(e/30*n))/3,o}function l(e,t){return e<72.004||e>137.8347||t<.8293||t>55.8271||!1}var u={bd09togcj02:function(e,t){var o=52.35987755982988,i=e-.0065,n=t-.006,r=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*o),a=Math.atan2(n,i)-3e-6*Math.cos(i*o),s=r*Math.cos(a),c=r*Math.sin(a);return[s,c]},gcj02tobd09:function(e,t){var o=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*i),n=Math.atan2(t,e)+3e-6*Math.cos(e*i),r=o*Math.cos(n)+.0065,a=o*Math.sin(n)+.006;return[r,a]},wgs84togcj02:function(e,t){if(l(e,t))return[e,t];var o=s(e-105,t-35),i=c(e-105,t-35),u=t/180*n,d=Math.sin(u);d=1-a*d*d;var f=Math.sqrt(d);o=180*o/(r*(1-a)/(d*f)*n),i=180*i/(r/f*Math.cos(u)*n);var p=t+o,h=e+i;return[h,p]},gcj02towgs84:function(e,t){if(l(e,t))return[e,t];var o=s(e-105,t-35),i=c(e-105,t-35),u=t/180*n,d=Math.sin(u);d=1-a*d*d;var f=Math.sqrt(d);return o=180*o/(r*(1-a)/(d*f)*n),i=180*i/(r/f*Math.cos(u)*n),mglat=t+o,mglng=e+i,[2*e-mglng,2*t-mglat]}};t.default=u},"2ee7":function(e,t,o){"use strict";(function(e,i){var n=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o("7ca3")),a=n(o("3b2d")),s=n(o("e5ac"));function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function l(e){for(var t=1;t0){var e=[],t=this.paymentData.recommend_member_card.charge_rule;return Object.keys(t).forEach((function(o,i){switch(o){case"week":e.push({key:o,value:t[o],title:"周卡",unit:"周"});break;case"month":e.push({key:o,value:t[o],title:"月卡",unit:"月"});break;case"quarter":e.push({key:o,value:t[o],title:"季卡",unit:"季"});break;case"year":e.push({key:o,value:t[o],title:"年卡",unit:"年"});break}})),e}}},watch:{storeToken:function(e,t){this.payment()},deliveryTime:function(e){e||this.$refs.timePopup.refresh()},location:function(e){e&&(this.orderCreateData.latitude=e.latitude,this.orderCreateData.longitude=e.longitude,this.latitude=e.latitude,this.longitude=e.longitude,this.payment())},calculateGoodsData:function(e){e&&e.local_config&&e.local_config.info.time_is_open&&!this.deliveryTime&&this.localtime("no")}},methods:{bindPickerChange:function(e){console.log(e),this.bindex=e.detail.value,console.log(this.bindex),this.orderCreateData.business=this.businesslist[this.bindex].realname},getBusiness:function(){var e=this;this.$api.sendRequest({url:"/api/member/getbusiness",success:function(t){console.log(t),e.businesslist=t.data}})},goodsSpecFormat:function(e){return e.forEach((function(e){console.log(e.sku_spec_format),e.sku_spec_format})),e},pageShow:function(){e.getStorageSync("addressBack")&&(e.removeStorageSync("addressBack"),this.payment())},payment:function(){var t=this;this.$api.sendRequest({url:this.api.payment,data:this.handleCreateData(),success:function(o){if(0==o.code&&o.data){var n=o.data,r=e.getStorageSync("is_test")?1175:i.getLaunchOptionsSync().scene;if(-1!=[1175,1176,1177,1191,1195].indexOf(r)&&n.delivery.express_type&&(n.delivery.express_type=n.delivery.express_type.filter((function(e){return"express"==e.name}))),n&&n.delivery.express_type&&n.delivery.express_type.length){var a=e.getStorageSync("delivery"),s=n.delivery.express_type[0];n.delivery.express_type.forEach((function(e){a&&e.name==a.delivery_type&&(s=e),"local"==e.name&&(t.localConfig=e),"store"==e.name&&(t.storeConfig=e)})),t.selectDeliveryType(s,!1,n.member_account)}n.is_virtual&&(t.orderCreateData.member_address={mobile:n.member_account.mobile?n.member_account.mobile:""}),t.orderCreateData.order_key=n.order_key,t.modules=n.modules,t.orderCreateData.coupon=n.coupon,t.getCouponList(),n=t.handleGoodsFormData(n),t.promotionInfo=t.promotion(n),t.paymentData=n,t.$forceUpdate(),t.calculate()}else t.$util.showToast({title:o.message}),setTimeout((function(){t.$util.redirectTo("/pages/index/index")}),1e3)}})},getCouponList:function(){var e=this;-1!=this.modules.indexOf("coupon")&&this.$api.sendRequest({url:"/api/ordercreate/getcouponlist",data:this.orderCreateData,success:function(t){if(0==t.code&&t.data){var o=t.data;e.coupon_list=o,e.$forceUpdate()}else e.$util.showToast({title:t.message})}})},handleGoodsFormData:function(t){var o=e.getStorageSync("goodFormData");return t.goods_list.forEach((function(e){if(e.goods_form){var t={};e.form_data?e.form_data.map((function(e){t[e.id]=e})):o&&o.goods_id==e.goods_id&&o.form_data.map((function(e){t[e.id]=e})),Object.keys(t).length&&e.goods_form.json_data.forEach((function(e){t[e.id]&&(e.val=t[e.id].val)}))}})),t},calculate:function(){var e=this;this.$api.sendRequest({url:this.api.calculate,data:this.handleCreateData(),success:function(t){e.$refs.loadingCover&&e.$refs.loadingCover.isShow&&e.$refs.loadingCover.hide(),0==t.code&&t.data?(e.calculateData=e.handleGoodsFormData(t.data),e.shop_goods_list=t.data.shop_goods_list,e.calculateData.coupon_list=e.coupon_list,t.data.delivery&&("express"==t.data.delivery.delivery_type&&(e.memberAddress=t.data.delivery.member_address),"local"==t.data.delivery.delivery_type&&(e.localMemberAddress=t.data.delivery.member_address)),t.data.goods_list.forEach((function(t){if(t.member_card_list){if(e.orderCreateData.member_goods_card[t.sku_id]){var o=e.orderCreateData.member_goods_card[t.sku_id];t.member_card_list[o]||delete e.orderCreateData.member_goods_card[t.sku_id]}}else e.orderCreateData.member_goods_card[t.sku_id]&&delete e.orderCreateData.member_goods_card[t.sku_id]})),e.orderCreateData.coupon=t.data.coupon,e.$forceUpdate()):e.$util.showToast({title:t.message})}})},create:function(){var t=this;this.verify()&&!this.isRepeat&&(this.isRepeat=!0,e.showLoading({title:""}),this.$api.sendRequest({url:this.api.create,data:this.handleCreateData(),success:function(o){e.hideLoading(),0==o.code?(t.outTradeNo=o.data,e.removeStorageSync("deliveryTime"),e.removeStorageSync("goodFormData"),e.setStorageSync("paySource",""),0==t.calculateData.pay_money?((t.paymentData.is_virtual||"store"==t.orderCreateData.delivery.delivery_type)&&t.$util.subscribeMessage("ORDER_VERIFY_OUT_TIME,VERIFY_CODE_EXPIRE,VERIFY"),t.$util.redirectTo("/pages_tool/pay/result",{code:o.data},"redirectTo")):t.openChoosePayment(),t.$store.dispatch("getCartNumber")):(t.$util.showToast({title:o.message}),t.isRepeat=!1)}}))},handleCreateData:function(){var e=this,t=this.$util.deepClone(this.orderCreateData);return this.$refs.form&&(t.form_data={form_id:this.paymentData.system_form.id,form_data:this.$util.deepClone(this.$refs.form.formData)}),this.$refs.goodsForm&&(t.form_data||(t.form_data={}),t.form_data.goods_form={},this.$refs.goodsForm.forEach((function(o){t.form_data.goods_form[o._props.customAttr.sku_id]={form_id:o._props.customAttr.form_id,form_data:e.$util.deepClone(o.formData)}}))),Object.keys(t).forEach((function(e){var o=t[e];"object"==(0,a.default)(o)&&(t[e]=JSON.stringify(o))})),this.paymentData&&0==this.orderCreateData.is_virtual&&t.member_address&&this.orderCreateData.delivery&&"store"!=this.orderCreateData.delivery.delivery_type&&delete t.member_address,t},openChoosePayment:function(){if(this.paymentData.is_virtual)this.$util.subscribeMessage("ORDER_URGE_PAYMENT,ORDER_PAY");else switch(this.orderCreateData.delivery.delivery_type){case"express":this.$util.subscribeMessage("ORDER_URGE_PAYMENT,ORDER_PAY,ORDER_DELIVERY");break;case"store":this.$util.subscribeMessage("ORDER_URGE_PAYMENT,ORDER_PAY");break;case"local":this.$util.subscribeMessage("ORDER_URGE_PAYMENT,ORDER_PAY,ORDER_DELIVERY");break}this.$refs.choosePaymentPopup.getPayInfo(this.outTradeNo)},verify:function(){if(1==this.paymentData.is_virtual){if(!this.orderCreateData.member_address.mobile)return this.$util.showToast({title:"请输入预留手机"}),!1;if(!this.$util.verifyMobile(this.orderCreateData.member_address.mobile))return this.$util.showToast({title:"请输入正确的手机号"}),!1}else{if(!this.orderCreateData.delivery||!this.orderCreateData.delivery.delivery_type)return this.$util.showToast({title:"商家未设置配送方式"}),!1;if("express"==this.orderCreateData.delivery.delivery_type&&!this.memberAddress||"local"==this.orderCreateData.delivery.delivery_type&&!this.localMemberAddress)return this.$util.showToast({title:"请先选择您的收货地址"}),!1;if("store"==this.orderCreateData.delivery.delivery_type){if(!this.orderCreateData.delivery.store_id)return this.$util.showToast({title:"没有可提货的门店,请选择其他配送方式"}),!1;if(!this.orderCreateData.member_address.mobile)return this.$util.showToast({title:"请输入预留手机"}),!1;if(!this.$util.verifyMobile(this.orderCreateData.member_address.mobile))return this.$util.showToast({title:"请输入正确的手机号"}),!1;if(!this.deliveryTime)return this.$util.showToast({title:"请选择提货时间"}),!1}if("local"==this.orderCreateData.delivery.delivery_type){if(!this.orderCreateData.delivery.store_id)return this.$util.showToast({title:"没有可配送的门店,请选择其他配送方式"}),!1;if(this.calculateGoodsData.config.local.is_use&&1==this.calculateGoodsData.delivery.local.info.time_is_open&&!this.deliveryTime)return this.$util.showToast({title:"请选择送达时间"}),!1}}if(this.$refs.goodsForm){for(var e=!0,t=0;t1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.orderCreateData.delivery||this.orderCreateData.delivery.delivery_type!=t.name){this.orderCreateData.delivery.buyer_ask_delivery_time={start_date:"",end_date:""},this.deliveryTime="";var n={delivery_type:t.name,delivery_type_name:t.title};"store"!=t.name&&"local"!=t.name||(t.store_list[0]&&(n.store_id=t.store_list[0].store_id),this.storeId=n.store_id?n.store_id:0,this.orderCreateData.member_address||(this.paymentData?this.orderCreateData.member_address={name:this.paymentData.member_account.nickname,mobile:this.paymentData.member_account.mobile}:i&&(this.orderCreateData.member_address={name:i.nickname,mobile:i.mobile}))),this.$set(this.orderCreateData,"delivery",n),e.setStorageSync("delivery",n),"express"==this.orderCreateData.delivery.delivery_type||this.location||this.$util.getLocation(),o&&this.payment(),"store"==t.name&&this.storetime("no"),"local"==t.name&&this.localtime("no")}},imageError:function(e){this.paymentData.goods_list[e].sku_image=this.$util.getDefaultImage().goods,this.calculateData.goods_list[e].sku_image=this.$util.getDefaultImage().goods,this.$forceUpdate()},selectPickupPoint:function(t){if(t.store_id!=this.storeId){this.storeId=t.store_id,this.orderCreateData.delivery.store_id=t.store_id,this.payment(),this.resetDeliveryTime();var o=e.getStorageSync("delivery");o.store_id=t.store_id,e.setStorageSync("delivery",o)}this.$refs.deliveryPopup.close()},resetDeliveryTime:function(){this.orderCreateData.delivery.buyer_ask_delivery_time={start_date:"",end_date:""},this.deliveryTime="",e.removeStorageSync("deliveryTime")},storetime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.storeInfo){var t=this.$util.deepClone(this.storeInfo);t.delivery_time="string"==typeof t.delivery_time&&t.delivery_time?JSON.parse(t.delivery_time):t.delivery_time,t.delivery_time&&(void 0!=t.delivery_time.length||t.delivery_time.length)||(t.delivery_time=[{start_time:t.start_time,end_time:t.end_time}]);var o={delivery:this.orderCreateData.delivery,dataTime:t};this.$refs.timePopup.open(o,e),this.$forceUpdate()}},selectPickupTime:function(t){this.deliveryTime=t.data.month+"("+t.data.time+")",this.orderCreateData.delivery.buyer_ask_delivery_time={start_date:t.data.start_date,end_date:t.data.end_date},e.setStorageSync("deliveryTime",{deliveryTime:this.deliveryTime,buyer_ask_delivery_time:this.orderCreateData.delivery.buyer_ask_delivery_time,delivery_type:this.orderCreateData.delivery.delivery_type})},storeImgError:function(){this.storeInfo.store_image=this.$util.getDefaultImage().store},openPopup:function(e){"deliveryPopup"==e&&(!this.storeList||Object.keys(this.storeList).length<=1)||(this.tempData=this.$util.deepClone(this.orderCreateData),this.$refs[e].open())},closePopup:function(e){this.orderCreateData=this.$util.deepClone(this.tempData),this.$refs[e].close(),this.tempData=null},openSiteCoupon:function(e){this.tempData=this.$util.deepClone(this.orderCreateData),this.merchCoupon.merch_id=e,this.selectCouponId=this.orderCreateData.coupon[e].coupon_id,this.merchCoupon.data=this.coupon_list[e],this.$refs.couponPopup.open(),this.$forceUpdate()},selectCoupon:function(e,t){this.selectCouponId!=e.coupon_id?this.selectCouponId=e.coupon_id:this.selectCouponId=0,this.$forceUpdate(),console.log(this.selectCouponId)},useCpopon:function(){console.log(this.merchCoupon.merch_id),this.orderCreateData.coupon[this.merchCoupon.merch_id].coupon_id=this.selectCouponId,console.log(this.orderCreateData.coupon),this.$refs.couponPopup.close(),this.calculate()},changeIsInvoice:function(){0==this.orderCreateData.is_invoice?(this.orderCreateData.is_invoice=1,this.orderCreateData.invoice_type||(this.orderCreateData.invoice_type=this.goodsData.invoice.invoice_type.split(",")[0])):this.orderCreateData.is_invoice=0},changeInvoiceType:function(e){this.orderCreateData.invoice_type=e},changeInvoiceTitleType:function(e){this.orderCreateData.invoice_title_type=e},changeIsTaxInvoice:function(){0==this.orderCreateData.is_tax_invoice?this.orderCreateData.is_tax_invoice=1:this.orderCreateData.is_tax_invoice=0,this.$forceUpdate()},changeInvoiceContent:function(e){this.orderCreateData.invoice_content=e,this.$forceUpdate()},invoiceVerify:function(){if(!this.orderCreateData.invoice_title)return this.$util.showToast({title:"请填写发票抬头"}),!1;if(!this.orderCreateData.taxpayer_number&&2==this.orderCreateData.invoice_title_type)return this.$util.showToast({title:"请填写纳税人识别号"}),!1;if(1==this.orderCreateData.invoice_type&&!this.orderCreateData.invoice_full_address&&1==this.paymentData.is_virtual)return this.$util.showToast({title:"请填写发票邮寄地址"}),!1;if(2==this.orderCreateData.invoice_type&&!this.orderCreateData.invoice_email)return this.$util.showToast({title:"请填写邮箱"}),!1;if(2==this.orderCreateData.invoice_type){if(!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.orderCreateData.invoice_email))return this.$util.showToast({title:"请填写正确的邮箱"}),!1}return!!this.orderCreateData.invoice_content||(this.$util.showToast({title:"请选择发票内容"}),!1)},saveInvoice:function(){(1!=this.orderCreateData.is_invoice||this.invoiceVerify())&&(this.calculate(),this.$refs.invoicePopup.close())},saveBuyerMessage:function(){this.$refs.buyerMessagePopup.close()},selectMemberCard:function(){this.orderCreateData.is_open_card=this.orderCreateData.is_open_card?0:1,this.orderCreateData.member_card_unit||(this.orderCreateData.member_card_unit=this.cardChargeType[0].key),this.payment()},selectMembercardUnit:function(e){this.orderCreateData.member_card_unit=e,this.calculate()},usePoint:function(){this.orderCreateData.is_point=this.orderCreateData.is_point?0:1,this.calculate()},payClose:function(){this.$store.dispatch("getCartNumber"),this.$util.redirectTo("/pages/order/detail",{order_id:this.$refs.choosePaymentPopup.payInfo.order_id},"redirectTo")},localtime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.calculateGoodsData&&this.calculateGoodsData.config.local){var t=this.$util.deepClone(this.calculateGoodsData.delivery.local.info);if(Object.keys(t).length){t.delivery_time&&(t.end_time=t.delivery_time[t.delivery_time.length-1].end_time);var o={delivery:this.orderCreateData.delivery,dataTime:t};this.$refs.timePopup.open(o,e)}}},surplusStartMoney:function(){var e=0;if(this.calculateData&&this.calculateData.delivery&&"local"==this.calculateData.delivery.delivery_type){var t,o=null!==(t=this.calculateGoodsData.delivery.start_money)&&void 0!==t?t:0;e=parseFloat(o)-parseFloat(this.calculateData.goods_money),e=e<0?0:e}return e},getTransactionAgreement:function(){var e=this;this.$api.sendRequest({url:"/api/order/transactionagreement",success:function(t){t.data&&(e.transactionAgreement=t.data,e.transactionAgreement.content&&(e.transactionAgreement.content=(0,s.default)(e.transactionAgreement.content)))}})},editForm:function(e){this.tempFormData={index:e,json_data:this.$util.deepClone(this.goodsData.goods_list[e].goods_form.json_data)},this.$refs.editFormPopup.open()},saveForm:function(){this.$refs.tempForm.verify()&&(this.$set(this.paymentData.goods_list[this.tempFormData.index].goods_form,"json_data",this.$refs.tempForm.formData),this.$refs.editFormPopup.close())},selectMemberGoodsCard:function(e){var t=this,o=this.goodsData.goods_list[e].sku_id;this.selectGoodsCard={skuId:o,itemId:this.orderCreateData.member_goods_card[o]?this.orderCreateData.member_goods_card[o]:0,cardList:this.$util.deepClone(this.calculateGoodsData.goods_list[e].member_card_list),click:function(e){t.selectGoodsCard.itemId=t.selectGoodsCard.itemId==e?0:e}},this.$refs.memberGoodsCardPopup.open()},saveMemberGoodsCard:function(){this.orderCreateData.member_goods_card[this.selectGoodsCard.skuId]=this.selectGoodsCard.itemId||0,this.$refs.memberGoodsCardPopup.close(),this.payment()},back:function(){e.navigateBack({delta:1})},getStoreList:function(){var e=null;return this.orderCreateData.delivery&&("local"==this.orderCreateData.delivery.delivery_type&&this.localConfig&&(e=this.localConfig.store_list,e=e.reduce((function(e,t){return l(l({},e),{},(0,r.default)({},t.store_id,t))}),{})),"store"==this.orderCreateData.delivery.delivery_type&&this.storeConfig&&(e=this.storeConfig.store_list,e=e.reduce((function(e,t){return l(l({},e),{},(0,r.default)({},t.store_id,t))}),{}))),e},getStore:function(e){var t,o,i=this;this.$api.sendRequest({url:"/api/store/getStorePage",data:{page_size:e.size,page:e.num,latitude:null!==(t=this.latitude)&&void 0!==t?t:"",longitude:null!==(o=this.longitude)&&void 0!==o?o:"",type:this.orderCreateData.delivery.delivery_type},success:function(t){var o=[];t.message;0==t.code&&t.data&&(o=t.data.list),e.endSuccess(o.length),1==e.num&&(i.storeData=[]),i.storeData=i.storeData.concat(o)},fail:function(t){e.endErr()}})}},filters:{moneyFormat:function(e){return parseFloat(e).toFixed(2)}}};t.default=u}).call(this,o("df3c")["default"],o("3223")["default"])},"300f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"申请退款"}},"30c6":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"直播"}},"31c1":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"帮助中心",emptyText:"当前暂无帮助信息"}},3223:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],n=["lanDebug","router","worklet"],r="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=r[a],c=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function l(e){return(!c||1154!==c.scene||!n.includes(e))&&(i.indexOf(e)>-1||"function"===typeof s[e])}r[a]=function(){var e={};for(var t in s)l(t)&&(e[t]=s[t]);return e}();var u=r[a];t.default=u},3240:function(e,t,o){"use strict";o.r(t),function(e){ +import site from "../site.js";(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"011a":function(e,t){function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=o=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},"03f5":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"找回密码",findPassword:"找回密码",accountPlaceholder:"请输入手机号",captchaPlaceholder:"请输入验证码",dynacodePlaceholder:"请输入动态码",passwordPlaceholder:"请输入新密码",rePasswordPlaceholder:"请确认新密码",next:"下一步",save:"确认修改"}},"058d":function(e,t){e.exports={error:"",check:function(e,t){for(var o=0;on[1]||e[t[o].name]n[1]||e[t[o].name]n[1]||e[t[o].name]t[o].checkRule)return this.error=t[o].errorMsg,!1;break}}return!0},isNumber:function(e){return/^-?[1-9][0-9]?.?[0-9]*$/.test(e)}}},"05d9":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"收货地址",newAddAddress:"添加收货地址",getAddress:"一键获取地址",is_default:"默认",modify:"编辑",del:"删除"}},"07c2":function(e,t,o){var i={"./en-us/common.js":"aaf5","./en-us/contact/contact.js":"dd11","./en-us/goods/category.js":"ee71","./en-us/goods/detail.js":"1f3b","./en-us/member/index.js":"5a17","./zh-cn/article/detail.js":"3481","./zh-cn/article/list.js":"f7e6","./zh-cn/bale/detail.js":"c39f","./zh-cn/bale/payment.js":"2172","./zh-cn/bargain/detail.js":"3b90","./zh-cn/bargain/launch.js":"823e","./zh-cn/bargain/list.js":"e032","./zh-cn/bargain/my_bargain.js":"ccec","./zh-cn/bargain/payment.js":"5418","./zh-cn/combo/detail.js":"2416","./zh-cn/combo/payment.js":"684c","./zh-cn/common.js":"7c64","./zh-cn/contact/contact.js":"238a","./zh-cn/diy/diy.js":"64f5","./zh-cn/fenxiao/apply.js":"5999","./zh-cn/fenxiao/bill.js":"4779","./zh-cn/fenxiao/follow.js":"945d","./zh-cn/fenxiao/goods_list.js":"b2e5","./zh-cn/fenxiao/index.js":"f230","./zh-cn/fenxiao/level.js":"46f4","./zh-cn/fenxiao/order.js":"51f3","./zh-cn/fenxiao/order_detail.js":"755e","./zh-cn/fenxiao/promote_code.js":"d733","./zh-cn/fenxiao/team.js":"e9df","./zh-cn/fenxiao/withdraw_apply.js":"33ef","./zh-cn/fenxiao/withdraw_list.js":"1017","./zh-cn/game/cards.js":"2193","./zh-cn/game/record.js":"c5b3","./zh-cn/game/smash_eggs.js":"fda8","./zh-cn/game/turntable.js":"ee2d","./zh-cn/goods/brand.js":"641c","./zh-cn/goods/cart.js":"f0df","./zh-cn/goods/category.js":"357b","./zh-cn/goods/consult.js":"93cc","./zh-cn/goods/consult_edit.js":"f47f","./zh-cn/goods/coupon.js":"1944","./zh-cn/goods/coupon_receive.js":"ebf8","./zh-cn/goods/detail.js":"1074","./zh-cn/goods/evaluate.js":"44bc","./zh-cn/goods/list.js":"b67f","./zh-cn/goods/not_exist.js":"b465","./zh-cn/goods/point.js":"7e77","./zh-cn/goods/search.js":"84c0","./zh-cn/groupbuy/detail.js":"6b84","./zh-cn/groupbuy/list.js":"7c49","./zh-cn/groupbuy/payment.js":"2da9","./zh-cn/help/detail.js":"a56f","./zh-cn/help/list.js":"31c1","./zh-cn/hongbao/list.js":"ecff","./zh-cn/hongbao/my_hongbao.js":"66ef","./zh-cn/index/index.js":"212b","./zh-cn/live/list.js":"30c6","./zh-cn/login/find.js":"03f5","./zh-cn/login/login.js":"133a","./zh-cn/login/register.js":"ed79","./zh-cn/member/account.js":"9d8b","./zh-cn/member/account_edit.js":"4ff4","./zh-cn/member/address.js":"05d9","./zh-cn/member/address_edit.js":"6381","./zh-cn/member/apply_withdrawal.js":"fa51","./zh-cn/member/assets.js":"7c5d","./zh-cn/member/balance.js":"1045","./zh-cn/member/balance_detail.js":"fdfe","./zh-cn/member/cancellation.js":"c567","./zh-cn/member/cancelrefuse.js":"16af","./zh-cn/member/cancelstatus.js":"8c2d","./zh-cn/member/cancelsuccess.js":"17e9","./zh-cn/member/card.js":"a047","./zh-cn/member/card_buy.js":"6675","./zh-cn/member/collection.js":"afbd","./zh-cn/member/contact.js":"d5b6","./zh-cn/member/coupon.js":"e7ae","./zh-cn/member/footprint.js":"5b8f","./zh-cn/member/gift.js":"d000","./zh-cn/member/gift_detail.js":"6b54","./zh-cn/member/index.js":"60d7","./zh-cn/member/info.js":"dcd1","./zh-cn/member/info_edit.js":"f785","./zh-cn/member/invite_friends.js":"7780","./zh-cn/member/level.js":"f8c7","./zh-cn/member/message.js":"2819","./zh-cn/member/modify_face.js":"a100","./zh-cn/member/pay_password.js":"ef02","./zh-cn/member/point.js":"be98","./zh-cn/member/point_detail.js":"36f8","./zh-cn/member/signin.js":"9f9e","./zh-cn/member/withdrawal.js":"d2b3","./zh-cn/member/withdrawal_detail.js":"9908","./zh-cn/notice/detail.js":"ef5b","./zh-cn/notice/list.js":"fa55","./zh-cn/order/activist.js":"d35b","./zh-cn/order/detail.js":"ca49","./zh-cn/order/detail_local_delivery.js":"8ddc","./zh-cn/order/detail_pickup.js":"d0fd","./zh-cn/order/detail_point.js":"92a0","./zh-cn/order/detail_virtual.js":"ab7b","./zh-cn/order/evaluate.js":"b07f","./zh-cn/order/list.js":"2914","./zh-cn/order/logistics.js":"649d","./zh-cn/order/payment.js":"e41b","./zh-cn/order/refund.js":"78b8","./zh-cn/order/refund_batch.js":"300f","./zh-cn/order/refund_detail.js":"769e","./zh-cn/pay/index.js":"f270","./zh-cn/pay/result.js":"4e31","./zh-cn/pintuan/detail.js":"86fa","./zh-cn/pintuan/list.js":"b878","./zh-cn/pintuan/my_spell.js":"6090","./zh-cn/pintuan/payment.js":"d5fe","./zh-cn/pintuan/share.js":"46b3","./zh-cn/point/detail.js":"2a4e","./zh-cn/point/goods_detail.js":"0e7a","./zh-cn/point/list.js":"b2af","./zh-cn/point/order_detail.js":"df74","./zh-cn/point/order_list.js":"5452","./zh-cn/point/payment.js":"dbec","./zh-cn/point/result.js":"6208","./zh-cn/presale/detail.js":"e7d2","./zh-cn/presale/list.js":"36a6","./zh-cn/presale/order_detail.js":"9457","./zh-cn/presale/order_list.js":"4d7a","./zh-cn/presale/payment.js":"9b09","./zh-cn/recharge/detail.js":"9ceb","./zh-cn/recharge/list.js":"bd1f","./zh-cn/recharge/order_list.js":"b647","./zh-cn/seckill/detail.js":"aefd","./zh-cn/seckill/list.js":"4191","./zh-cn/seckill/payment.js":"a50b","./zh-cn/store_notes/note_detail.js":"682c","./zh-cn/store_notes/note_list.js":"4406","./zh-cn/storeclose/storeclose.js":"7d44","./zh-cn/topics/detail.js":"161a","./zh-cn/topics/goods_detail.js":"bba4","./zh-cn/topics/list.js":"0fd4","./zh-cn/topics/payment.js":"9152","./zh-cn/verification/detail.js":"47e7","./zh-cn/verification/index.js":"7749","./zh-cn/verification/list.js":"7307"};function n(e){var t=r(e);return o(t)}function r(e){if(!o.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=r,e.exports=n,n.id="07c2"},"0bdb":function(e,t,o){var i=o("d551");function n(e,t){for(var o=0;o=0&&t.data&&(e.wechatQrcode=t.data.qrcode)}})},officialAccountsOpen:function(){this.$refs.officialAccountsPopup.open()},officialAccountsClose:function(){this.$refs.officialAccountsPopup.close()}}}},"133a":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"登录",mobileLogin:"手机号登录",accountLogin:"账号登录",autoLogin:"一键授权登录",login:"登录",mobilePlaceholder:"手机号登录仅限中国大陆用户",dynacodePlaceholder:"请输入动态码",captchaPlaceholder:"请输入验证码",accountPlaceholder:"请输入账号",passwordPlaceholder:"请输入密码",rePasswordPlaceholder:"请确认密码",forgetPassword:"忘记密码",register:"注册",registerTips:"没有账号的用户快来",registerTips1:"注册",registerTips2:"吧",newUserRegister:"新用户注册"}},"15b5":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("3b2d")),r=i(o("3240")),a=i(o("8f59")),s=i(o("6be8")),c=i(o("e95f"));r.default.use(a.default);var l=new a.default.Store({state:{token:null,siteInfo:null,memberInfo:null,tabBarList:"",siteState:1,themeStyle:"",addonIsExist:{bundling:0,coupon:0,discount:0,fenxiao:0,gift:0,groupbuy:0,manjian:0,memberconsume:0,memberrecharge:0,memberregister:0,membersignin:0,memberwithdraw:0,memberrecommend:0,pintuan:0,pointexchange:0,seckill:0,store:0,topic:0,bargain:0,membercancel:0,servicer:0,supermember:0,giftcard:0,divideticket:0,scenefestival:0,birthdaygift:0,pinfan:0,form:0},authInfo:{},flRefresh:0,location:null,defaultImg:{goods:"",head:"",store:"",article:""},cartList:{},cartIds:[],cartNumber:0,cartMoney:0,cartChange:0,bottomNavHidden:!1,globalStoreConfig:null,globalStoreInfo:null,defaultStoreInfo:null,cartPosition:null,componentRefresh:0,servicerConfig:null,diySeckillInterval:0,diyGroupPositionObj:{},diyGroupShowModule:"",tabBarHeight:"56px",mapConfig:{tencent_map_key:"",wap_is_open:1,wap_valid_time:0},copyright:null},mutations:{setDiyGroupShowModule:function(e,t){e.diyGroupShowModule=t},setDiyGroupPositionObj:function(e,t){e.diyGroupPositionObj=Object.assign({},e.diyGroupPositionObj,t)},setSiteState:function(e,t){e.siteState=t},setThemeStyle:function(t,o){t.themeStyle=o,e.setStorageSync("themeStyle",o)},setTabBarList:function(e,t){e.tabBarList=t},setAddonIsExist:function(t,o){t.addonIsExist=o,e.setStorageSync("addonIsExist",o)},setToken:function(t,o){t.token=o,o?e.setStorageSync("token",o):e.removeStorageSync("token")},setAuthinfo:function(e,t){e.authInfo=t},setflRefresh:function(e,t){e.flRefresh=t},setLocation:function(t,o){var i=new Date;i.setSeconds(60*t.mapConfig.wap_valid_time),o.valid_time=i.getTime()/1e3,t.location=o,e.setStorageSync("location",o)},setDefaultImg:function(t,o){t.defaultImg=o,e.setStorageSync("defaultImg",o)},setSiteInfo:function(t,o){t.siteInfo=o,e.setStorageSync("siteInfo",o)},setShopInfo:function(t,o){t.shopInfo=o,e.setStorageSync("shopInfo",o)},setCartChange:function(e){e.cartChange+=1},setBottomNavHidden:function(e,t){e.bottomNavHidden=t},setGlobalStoreConfig:function(t,o){t.globalStoreConfig=o,e.setStorageSync("globalStoreConfig",o)},setGlobalStoreInfo:function(t,o){t.globalStoreInfo=o,e.setStorageSync("globalStoreInfo",o)},setDefaultStoreInfo:function(t,o){t.defaultStoreInfo=o,e.setStorageSync("defaultStoreInfo",o)},setCartPosition:function(e,t){e.cartPosition=t},setComponentRefresh:function(e){e.componentRefresh+=1},setServicerConfig:function(t,o){t.servicerConfig=o,e.setStorageSync("servicerConfig",o)},setDiySeckillInterval:function(e,t){e.diySeckillInterval=t},setTabBarHeight:function(e,t){e.tabBarHeight=t},setMapConfig:function(t,o){t.mapConfig=o,e.setStorageSync("mapConfig",o)},setCopyright:function(t,o){t.copyright=o,e.setStorageSync("copyright",o)},setMemberInfo:function(t,o){t.memberInfo=o,o?e.setStorageSync("memberInfo",o):e.removeStorageSync("memberInfo")},setCartNumber:function(e,t){e.cartNumber=t},setCartList:function(e,t){e.cartList=t},setCartIds:function(e,t){e.cartIds=t},setCartMoney:function(e,t){e.cartMoney=t}},actions:{init:function(){var e=this;return new Promise((function(t,o){s.default.sendRequest({url:"/api/config/init",success:function(o){var i=o.data;i&&(e.commit("setThemeStyle",c.default[i.style_theme.name]),e.commit("setTabBarList",i.diy_bottom_nav),e.commit("setAddonIsExist",i.addon_is_exist),e.commit("setDefaultImg",i.default_img),e.commit("setSiteInfo",i.site_info),e.commit("setServicerConfig",i.servicer),e.commit("setCopyright",i.copyright),e.commit("setMapConfig",i.map_config),e.commit("setGlobalStoreConfig",i.store_config),e.commit("setShopInfo",i.shop_info),i.store_info?e.commit("setDefaultStoreInfo",i.store_info):(e.commit("setDefaultStoreInfo",null),e.commit("setGlobalStoreInfo",null)),t(i))}})}))},getCartNumber:function(){var e=this;s.default.sendRequest({url:"/api/cart/lists",data:{},success:function(t){if(0==t.code){var o=[],i=[],r=0,a=0;if(t.data.length)for(var s in t.data.forEach((function(e){var t={cart_id:e.cart_id,goods_id:e.goods_id,sku_id:e.sku_id,num:e.num,discount_price:e.discount_price};o["goods_"+t.goods_id]||(o["goods_"+t.goods_id]={}),o["goods_"+t.goods_id]["sku_"+t.sku_id]=t,i.push(t.cart_id)})),o){var c=0,l=0;for(var u in o[s]){var d=o[s][u];"object"==(0,n.default)(d)&&(c+=d.num,l+=parseFloat(d.discount_price)*parseInt(d.num))}o[s].num=c,o[s].total_money=l,a+=c,r+=l}e.commit("setCartList",o),e.commit("setCartIds",i),e.commit("setCartNumber",a),e.commit("setCartMoney",r)}}})},emptyCart:function(){this.commit("setCartList",{}),this.commit("setCartIds",[]),this.commit("setCartNumber",0),this.commit("setCartMoney",0)},cartCalculate:function(){var e=[],t=0,o=0;for(var i in this.state.cartList){var r=this.state.cartList[i],a=0,s=0;for(var c in r)"object"==(0,n.default)(r[c])&&(a+=r[c].num,s+=parseFloat(r[c].discount_price)*parseInt(r[c].num),e.push(r[c].cart_id));r.num=a,r.total_money=s,o+=a,t+=s}this.commit("setCartNumber",o),this.commit("setCartMoney",t),this.commit("setCartIds",e)}}}),u=l;t.default=u}).call(this,o("df3c")["default"])},"15e3":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("3b2d")),r={data:function(){return{themeColor:""}},onLoad:function(){},onShow:function(){var e=this;this.$langConfig.refresh();var t=setInterval((function(){var o=e.themeStyle;o&&o.main_color&&(e.themeColorSet(),clearInterval(t))}),50)},computed:{themeStyle:function(){return this.$store.state.themeStyle},addonIsExist:function(){return this.$store.state.addonIsExist},tabBarList:function(){return this.$store.state.tabBarList},siteInfo:function(){return this.$store.state.siteInfo},memberInfo:function(){return this.$store.state.memberInfo},storeToken:function(){return this.$store.state.token},bottomNavHidden:function(){return this.$store.state.bottomNavHidden},globalStoreConfig:function(){return this.$store.state.globalStoreConfig},globalStoreInfo:function(){return this.$store.state.globalStoreInfo},location:function(){return this.$store.state.location},locationStorage:function(){var t=e.getStorageSync("location");if(t){var o=new Date;this.mapConfig.wap_valid_time>0?t.is_expired=o.getTime()/1e3>t.valid_time:t.is_expired=!1}return t},defaultStoreInfo:function(){return this.$store.state.defaultStoreInfo},componentRefresh:function(){return this.$store.state.componentRefresh},servicerConfig:function(){return this.$store.state.servicerConfig},diySeckillInterval:function(){return this.$store.state.diySeckillInterval},tabBarHeight:function(){return this.$store.state.tabBarHeight},mapConfig:function(){return this.$store.state.mapConfig},copyright:function(){var e=this.$store.state.copyright;return e&&!e.auth&&(e.logo="",e.copyright_link=""),e},cartList:function(){return this.$store.state.cartList},cartIds:function(){return this.$store.state.cartIds},cartNumber:function(){return this.$store.state.cartNumber},cartMoney:function(){return this.$store.state.cartMoney}},methods:{themeColorSet:function(){var e=this,t=this.themeStyle;this.themeColor="--base-color:".concat(t.main_color,";--base-help-color:").concat(t.aux_color,";"),"56px"!=this.tabBarHeight&&(this.themeColor+="--tab-bar-height:".concat(this.tabBarHeight,";")),Object.keys(t).forEach((function(o){var i=t[o];"object"==(0,n.default)(i)?Object.keys(i).forEach((function(t){e.themeColor+="--"+t.replace(/_/g,"-")+":"+i[t]+";"})):"string"==typeof o&&o&&(e.themeColor+="--"+o.replace(/_/g,"-")+":"+i+";")}));for(var o=9;o>=5;o--){var i=this.$util.colourBlend(t.main_color,"#ffffff",o/10);this.themeColor+="--base-color-light-".concat(o,":").concat(i,";")}},lightenDarkenColor:function(e,t){var o=!1;"#"==e[0]&&(e=e.slice(1),o=!0);var i=parseInt(e,16),n=(i>>16)+t;n>255?n=255:n<0&&(n=0);var r=(i>>8&255)+t;r>255?r=255:r<0&&(r=0);var a=(255&i)+t;return a>255?a=255:a<0&&(a=0),(o?"#":"")+(a|r<<8|n<<16).toString(16)},changeStore:function(t,o){t&&this.$store.commit("setGlobalStoreInfo",t);var i=this.$util.getCurrRoute();o&&"pages/index/index"!=i&&(e.setStorageSync("manual_change_store",!0),this.$store.dispatch("getCartNumber"),this.$util.redirectTo("/pages/index/index"))}},filters:{moneyFormat:function(e){return isNaN(parseFloat(e))?e:parseFloat(e).toFixed(2)}}};t.default=r}).call(this,o("df3c")["default"])},"161a":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"专题活动详情"}},"16af":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账号注销"}},"174f":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("7eb4")),r=i(o("3b2d")),a=i(o("ee10")),s=(i(o("e5ac")),{data:function(){return{skuId:0,goodsId:0,goodsSkuDetail:{goods_id:0,goods_service:[]},preview:0,contactData:{title:"",path:"",img:""},shareQuery:"",shareUrl:"",source_member:0,chatRoomParams:{},isIphoneX:!1,whetherCollection:0,posterParams:{},shareImg:"",navbarData:{title:"",topNavColor:"#ffffff",topNavBg:!1,navBarSwitch:!0,textNavColor:"#333333",moreLink:{name:""},navStyle:1,bgUrl:"",textImgPosLink:"left"}}},onLoad:function(t){if(this.$langConfig.refresh(),this.preview=t.preview||0,this.isIphoneX=this.$util.uniappIsIPhoneX(),t.source_member&&(e.setStorageSync("source_member",t.source_member),this.source_member=t.source_member),this.storeToken&&e.getStorageSync("source_member")&&this.$util.onSourceMember(e.getStorageSync("source_member")),t.scene){var o=decodeURIComponent(t.scene);o=o.split("&"),o.length&&o.forEach((function(t){-1!=t.indexOf("m")&&e.setStorageSync("source_member",t.split("-")[1]),-1!=t.indexOf("is_test")&&e.setStorageSync("is_test",1)}))}},onShow:function(){},methods:{handleGoodsSkuData:function(){this.goodsSkuDetail.config&&(this.navbarData.navBarSwitch=this.goodsSkuDetail.config.nav_bar_switch),this.whetherCollection=this.goodsSkuDetail.is_collect,this.modifyGoodsInfo(),this.$refs.goodsDetailView&&this.$refs.goodsDetailView.init({sku_id:this.skuId,goods_id:this.goodsSkuDetail.goods_id,preview:this.preview,source_member:this.source_member,posterParams:this.posterParams,posterApi:this.posterApi,shareUrl:this.shareUrl,goodsRoute:this.goodsRoute,isVirtual:this.goodsSkuDetail.is_virtual,deliveryType:this.goodsSkuDetail.express_type,whetherCollection:this.goodsSkuDetail.is_collect,evaluateConfig:this.goodsSkuDetail.evaluate_config,evaluateList:this.goodsSkuDetail.evaluate_list,evaluateCount:this.goodsSkuDetail.evaluate_count}),this.goodsSkuDetail.video_url&&(this.switchMedia="video"),Array.isArray(this.goodsSkuDetail.sku_images)||(this.goodsSkuDetail.sku_images?this.goodsSkuDetail.sku_images=this.goodsSkuDetail.sku_images.split(","):this.goodsSkuDetail.sku_images=[]),this.goodsSkuDetail.goods_spec_format&&this.goodsSkuDetail.goods_image&&(Array.isArray(this.goodsSkuDetail.goods_image)||(this.goodsSkuDetail.goods_image=this.goodsSkuDetail.goods_image.split(",")),this.goodsSkuDetail.sku_images=this.goodsSkuDetail.goods_image.concat(this.goodsSkuDetail.sku_images));var t="",o=e.getSystemInfoSync();if(this.goodsSkuDetail.goods_image_list.forEach((function(e,i){"string"==typeof e.pic_spec&&(e.pic_spec=e.pic_spec.split("*"));var n=e.pic_spec[0]/o.windowWidth;e.pic_spec[0]=e.pic_spec[0]/n,e.pic_spec[1]=e.pic_spec[1]/n,(!t||t>e.pic_spec[1])&&(t=e.pic_spec[1])})),this.goodsSkuDetail.swiperHeight=t+"px",this.goodsSkuDetail.unit=this.goodsSkuDetail.unit||"件",this.goodsSkuDetail.sku_spec_format&&(this.goodsSkuDetail.sku_spec_format=JSON.parse(this.goodsSkuDetail.sku_spec_format)),this.goodsSkuDetail.goods_attr_format){var i=JSON.parse(this.goodsSkuDetail.goods_attr_format);this.goodsSkuDetail.goods_attr_format=this.$util.unique(i,"attr_id");for(var n=0;nthis.goodsSkuDetail.sku_images.length&&(this.swiperAutoplay=!0,this.swiperCurrent=1,setTimeout((function(){t.swiperAutoplay=!1}),40))),this.navbarData.title=this.goodsSkuDetail.goods_name.length>9?this.goodsSkuDetail.goods_name.substr(0,9)+"...":this.goodsSkuDetail.goods_name,this.$langConfig.title(this.navbarData.title),this.goodsSkuDetail.membercard&&(this.membercard=this.goodsSkuDetail.membercard)},goodsDetailViewInit:function(){this.$refs.goodsDetailView&&this.$refs.goodsDetailView.init({sku_id:this.skuId,goods_id:this.goodsSkuDetail.goods_id,preview:this.preview,source_member:this.source_member,posterParams:this.posterParams,posterApi:this.posterApi,shareUrl:this.shareUrl,goodsRoute:this.goodsRoute,isVirtual:this.goodsSkuDetail.is_virtual,deliveryType:this.goodsSkuDetail.express_type,whetherCollection:this.goodsSkuDetail.is_collect,evaluateConfig:this.goodsSkuDetail.evaluate_config,evaluateList:this.goodsSkuDetail.evaluate_list,evaluateCount:this.goodsSkuDetail.evaluate_count})},goHome:function(){this.preview||this.$util.redirectTo("/pages/index/index")},goCart:function(){this.preview||this.$util.redirectTo("/pages/goods/cart")},modifyGoodsInfo:function(){this.preview||(this.$api.sendRequest({url:"/api/goods/modifyclicks",data:{sku_id:this.skuId},success:function(e){}}),this.$api.sendRequest({url:"/api/goodsbrowse/add",data:{goods_id:this.goodsSkuDetail.goods_id,sku_id:this.skuId},success:function(e){}}))},editCollection:function(){var e=this;return(0,a.default)(n.default.mark((function t(){return n.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.$refs.goodsDetailView){t.next=4;break}return t.next=3,e.$refs.goodsDetailView.collection();case 3:e.whetherCollection=t.sent;case 4:case"end":return t.stop()}}),t)})))()},openSharePopup:function(){this.$refs.goodsDetailView&&this.$refs.goodsDetailView.openSharePopup()},getBarrageData:function(){var e=this;this.$api.sendRequest({url:"/api/goods/goodsbarrage",data:{goods_id:this.goodsSkuDetail.goods_id},success:function(t){if(0==t.code&&t.data){var o=[];for(var i in t.data.list)if(t.data.list[i]["title"]){var n=t.data.list[i]["title"].substr(0,1)+"*"+t.data.list[i]["title"].substr(t.data.list[i]["title"].length-1,1);o.push({img:t.data.list[i]["img"]?t.data.list[i]["img"]:e.$util.getDefaultImage().head,title:n+"已下单"})}e.goodsSkuDetail.barrageData=o}}})},setPublicShare:function(){var e=this.$config.h5Domain+this.shareUrl;this.memberInfo&&this.memberInfo.member_id&&(e+="&source_member="+this.memberInfo.member_id),this.$util.setPublicShare({title:this.goodsSkuDetail.goods_name,desc:"",link:e,imgUrl:"object"==(0,r.default)(this.goodsSkuDetail.goods_image)?this.goodsSkuDetail.goods_image[0]:this.goodsSkuDetail.goods_image.split(",")[0]})},getGoodsForm:function(){var e=this;this.$api.sendRequest({url:"/form/api/form/goodsform",data:{goods_id:this.goodsSkuDetail.goods_id},success:function(t){0==t.code&&t.data&&e.$set(e.goodsSkuDetail,"goods_form",t.data)}})}},onShareAppMessage:function(e){var t=this.shareUrl;return this.memberInfo&&this.memberInfo.member_id&&(t+="&source_member="+this.memberInfo.member_id),{title:this.goodsSkuDetail.sku_name,imageUrl:this.shareImg?this.$util.img(this.shareImg):this.$util.img(this.goodsSkuDetail.sku_image,{size:"big"}),path:t,success:function(e){},fail:function(e){}}},onShareTimeline:function(){var e=this.shareQuery;return this.memberInfo&&this.memberInfo.member_id&&(e+="&source_member="+this.memberInfo.member_id),{title:this.goodsSkuDetail.sku_name,query:e,imageUrl:this.$util.img(this.goodsSkuDetail.sku_image,{size:"big"})}}});t.default=s}).call(this,o("df3c")["default"])},"17e9":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账号注销"}},1944:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"优惠券领取"}},"1a12":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{showTop:!1,scrollTop:0,oldLocation:0}},methods:{scrollToTopNative:function(){e.pageScrollTo({duration:200,scrollTop:0})}},onReachBottom:function(){this.$refs.goodrecommend&&this.$refs.goodrecommend.getLikeList(10)},onPageScroll:function(e){this.oldLocation=e.scrollTop,e.scrollTop>400?this.showTop=!0:this.showTop=!1}};t.default=o}).call(this,o("df3c")["default"])},"1c28":function(e,t,o){"use strict";(function(t){var i=o("47a9"),n=i(o("67ad")),r=i(o("0bdb")),a=i(o("96b0")),s={KEY_ERR:311,KEY_ERR_MSG:"key格式错误",PARAM_ERR:310,PARAM_ERR_MSG:"请求参数信息有误",SYSTEM_ERR:600,SYSTEM_ERR_MSG:"系统错误",WX_ERR_CODE:1e3,WX_OK_CODE:200},c="https://apis.map.qq.com/ws/",l=c+"place/v1/suggestion",u={driving:"driving",transit:"transit"},d={safeAdd:function(e,t){var o=(65535&e)+(65535&t),i=(e>>16)+(t>>16)+(o>>16);return i<<16|65535&o},bitRotateLeft:function(e,t){return e<>>32-t},md5cmn:function(e,t,o,i,n,r){return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(t,e),this.safeAdd(i,r)),n),o)},md5ff:function(e,t,o,i,n,r,a){return this.md5cmn(t&o|~t&i,e,t,n,r,a)},md5gg:function(e,t,o,i,n,r,a){return this.md5cmn(t&i|o&~i,e,t,n,r,a)},md5hh:function(e,t,o,i,n,r,a){return this.md5cmn(t^o^i,e,t,n,r,a)},md5ii:function(e,t,o,i,n,r,a){return this.md5cmn(o^(t|~i),e,t,n,r,a)},binlMD5:function(e,t){var o,i,n,r,a;e[t>>5]|=128<>>9<<4)]=t;var s=1732584193,c=-271733879,l=-1732584194,u=271733878;for(o=0;o>5]>>>t%32&255);return o},rstr2binl:function(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<16&&(n=this.binlMD5(n,8*e.length)),o=0;o<16;o+=1)r[o]=909522486^n[o],a[o]=1549556828^n[o];return i=this.binlMD5(r.concat(this.rstr2binl(t)),512+8*t.length),this.binl2rstr(this.binlMD5(a.concat(i),640))},rstr2hex:function(e){var t,o,i="";for(o=0;o>>4&15)+"0123456789abcdef".charAt(15&t);return i},str2rstrUTF8:function(e){return unescape(encodeURIComponent(e))},rawMD5:function(e){return this.rstrMD5(this.str2rstrUTF8(e))},hexMD5:function(e){return this.rstr2hex(this.rawMD5(e))},rawHMACMD5:function(e,t){return this.rstrHMACMD5(this.str2rstrUTF8(e),str2rstrUTF8(t))},hexHMACMD5:function(e,t){return this.rstr2hex(this.rawHMACMD5(e,t))},md5:function(e,t,o){return t?o?this.rawHMACMD5(t,e):this.hexHMACMD5(t,e):o?this.rawMD5(e):this.hexMD5(e)},getSig:function(e,t,o,i){var n=null,r=[];return Object.keys(e).sort().forEach((function(t){r.push(t+"="+e[t])})),"search"==o&&(n="/ws/place/v1/search?"+r.join("&")+t),"suggest"==o&&(n="/ws/place/v1/suggestion?"+r.join("&")+t),"reverseGeocoder"==o&&(n="/ws/geocoder/v1/?"+r.join("&")+t),"geocoder"==o&&(n="/ws/geocoder/v1/?"+r.join("&")+t),"getCityList"==o&&(n="/ws/district/v1/list?"+r.join("&")+t),"getDistrictByCityId"==o&&(n="/ws/district/v1/getchildren?"+r.join("&")+t),"calculateDistance"==o&&(n="/ws/distance/v1/?"+r.join("&")+t),"direction"==o&&(n="/ws/direction/v1/"+i+"?"+r.join("&")+t),n=this.md5(n),n},location2query:function(e){if("string"==typeof e)return e;for(var t="",o=0;o0&&Number(this.goodsSkuDetail.member_price)>Number(this.goodsSkuDetail.discount_price))&&(e=!0),e},memberCardDiscount:function(){var e=0,t=this.goodsSkuDetail.member_price>0&&Number(this.goodsSkuDetail.member_price)0&&parseFloat(t)>parseFloat(this.membercard.member_price)&&(e=parseFloat(t)-parseFloat(this.membercard.member_price)),e.toFixed(2)},FormHeight:function(){var e=48;return this.goodsForm&&this.goodsForm.length&&(e+=5*this.goodsForm.length),e+="vh",e}},onLoad:function(e){var t=this;if(this.skuId=e.sku_id||0,this.goodsId=e.goods_id||0,e.scene){var o=decodeURIComponent(e.scene);o=o.split("&"),o.length&&o.forEach((function(e){-1!=e.indexOf("goods_id")&&(t.goodsId=e.split("-")[1])}))}this.getShareImg()},onShow:function(){var e=this;return(0,r.default)(n.default.mark((function t(){return n.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getGoodsSkuDetail();case 2:case"end":return t.stop()}}),t)})))()},onHide:function(){this.couponBtnSwitch=!1},methods:{phoneClick:function(t){e.makePhoneCall({phoneNumber:t+"",success:function(){},fail:function(){}})},setSkuId:function(e){e&&(this.skuId=e,this.getBundling())},getGoodsSkuDetail:function(){var t=this;return(0,r.default)(n.default.mark((function o(){var i,r,a;return n.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,t.$api.sendRequest({url:"/api/goodssku/detail",async:!1,data:{sku_id:t.skuId,goods_id:t.goodsId}});case 2:if(i=o.sent,r=i.data,null==r.goods_sku_detail){o.next=27;break}if("presale"!=r.goods_sku_detail.promotion_type||!r.goods_sku_detail.presale_id){o.next=8;break}return t.$util.redirectTo("/pages_promotion/presale/detail",{id:r.goods_sku_detail.presale_id,sku_id:t.skuId},"reLaunch"),o.abrupt("return");case 8:"en-us"==e.getStorageSync("lang")&&(r.goods_sku_detail.goods_name=r.goods_sku_detail.en_goods_name),t.goodsSkuDetail=r.goods_sku_detail,t.skuId||(t.skuId=t.goodsSkuDetail.sku_id),t.goodsId||(t.goodsId=t.goodsSkuDetail.goods_id),t.shareQuery="goods_id="+t.goodsSkuDetail.goods_id,t.shareUrl=t.goodsRoute+"?"+t.shareQuery,t.chatRoomParams={sku_id:t.goodsSkuDetail.sku_id},a=t.goodsSkuDetail.goods_promotion[0],a&&a.discount_id&&(t.chatRoomParams.type="discount",t.chatRoomParams.type_id=a.discount_id),t.posterParams={goods_id:t.goodsId},t.handleGoodsSkuData(),1==t.goodsSkuDetail.promotion_type&&t.addonIsExist.discount&&(t.goodsSkuDetail.end_time-i.timestamp>0?t.goodsSkuDetail.discountTimeMachine=t.$util.countDown(t.goodsSkuDetail.end_time-i.timestamp):t.goodsSkuDetail.promotion_type=0),1==t.goodsSkuDetail.promotion_type&&t.goodsSkuDetail.discountTimeMachine?t.goodsSkuDetail.member_price>0&&Number(t.goodsSkuDetail.member_price)<=Number(t.goodsSkuDetail.discount_price)?t.goodsSkuDetail.show_price=t.goodsSkuDetail.member_price:t.goodsSkuDetail.show_price=t.goodsSkuDetail.discount_price:t.goodsSkuDetail.member_price>0?t.goodsSkuDetail.show_price=t.goodsSkuDetail.member_price:t.goodsSkuDetail.show_price=t.goodsSkuDetail.price,t.goodsSkuDetail.manjian&&t.getManjian(t.goodsSkuDetail.manjian),t.goodsSkuDetail.membercard&&(t.membercard=t.goodsSkuDetail.membercard),t.goodsSkuDetail.coupon_list&&(t.couponList=t.goodsSkuDetail.coupon_list,t.couponList.forEach((function(e){e.count==e.lead_count?e.useState=2:0!=e.max_fetch&&e.member_coupon_num&&e.member_coupon_num>=e.max_fetch?e.useState=1:e.useState=0})),t.couponList=t.couponList.sort(t.sortBy("useState"))),t.$refs.loadingCover&&t.$refs.loadingCover.hide(),o.next=28;break;case 27:t.$util.redirectTo("/pages_tool/goods/not_exist",{},"redirectTo");case 28:case"end":return o.stop()}}),o)})))()},choiceSku:function(){var e=this;this.$refs.goodsSku.show("buy_now",(function(){e.$store.dispatch("getCartNumber")}))},showinformation:function(){this.informationform=this.goodsSkuDetail.goods_form,this.$refs.informationPopup.open()},closeinformationPopup:function(){this.$refs.informationPopup.close()},saveubfirnation:function(){var e=this;this.$refs.form.verify()&&this.$api.sendRequest({url:"/api/goods/information",data:{goods_id:this.goodsSkuDetail.goods_id,form_data:JSON.stringify(this.$refs.form.formData)},success:function(t){t.data;0==t.code||e.$util.showToast({title:t.msg})}})},joinCart:function(){var e=this;this.storeToken||0!=this.preview?1==this.goodsSkuDetail.is_virtual?this.$refs.goodsSku.show("buy_now",(function(){e.$store.dispatch("getCartNumber")})):this.$refs.goodsSku.show("join_cart",(function(){e.$store.dispatch("getCartNumber")})):this.$refs.login.open(this.shareUrl)},buyNow:function(){this.storeToken||0!=this.preview?this.$refs.goodsSku.show("buy_now",(function(){})):this.$refs.login.open(this.shareUrl)},sortBy:function(e){return function(t,o){return t[e]-o[e]}},openCouponPopup:function(){this.$refs.couponPopup.open()},closeCouponPopup:function(){this.$refs.couponPopup.close()},receiveCoupon:function(e){var t=this,o=this;this.preview||this.couponBtnSwitch||(this.couponBtnSwitch=!0,this.storeToken?this.$api.sendRequest({url:"/coupon/api/coupon/receive",data:{coupon_type_id:e.coupon_type_id,get_type:2},success:function(i){i.data;var n="",r=t.couponList;if(n=1==i.data.is_exist&&i.code<0?"您已领取过该优惠券,快去使用吧":0==i.code?"领取成功,快去使用吧":i.message,1==i.data.is_exist)for(var a=0;a1&&(i=o.splice(t))}));var n=i.length?t[0]+"."+i.reverse().join(""):t[0];return n}}};t.default=a}).call(this,o("df3c")["default"])},2819:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我的消息"}},2914:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单列表",emptyTips:"暂无相关订单",all:"全部",waitPay:"待付款",readyDelivery:"待发货",waitDelivery:"待收货",waitEvaluate:"待评价",waitUse:"待使用",update:"释放刷新",updateIng:"加载中..."}},"2a4e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"兑换"}},"2da9":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"待付款订单"}},"2e3b":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=52.35987755982988,n=3.141592653589793,r=6378245,a=.006693421622965943;function s(e,t){var o=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return o+=2*(20*Math.sin(6*e*n)+20*Math.sin(2*e*n))/3,o+=2*(20*Math.sin(t*n)+40*Math.sin(t/3*n))/3,o+=2*(160*Math.sin(t/12*n)+320*Math.sin(t*n/30))/3,o}function c(e,t){var o=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return o+=2*(20*Math.sin(6*e*n)+20*Math.sin(2*e*n))/3,o+=2*(20*Math.sin(e*n)+40*Math.sin(e/3*n))/3,o+=2*(150*Math.sin(e/12*n)+300*Math.sin(e/30*n))/3,o}function l(e,t){return e<72.004||e>137.8347||t<.8293||t>55.8271||!1}var u={bd09togcj02:function(e,t){var o=52.35987755982988,i=e-.0065,n=t-.006,r=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*o),a=Math.atan2(n,i)-3e-6*Math.cos(i*o),s=r*Math.cos(a),c=r*Math.sin(a);return[s,c]},gcj02tobd09:function(e,t){var o=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*i),n=Math.atan2(t,e)+3e-6*Math.cos(e*i),r=o*Math.cos(n)+.0065,a=o*Math.sin(n)+.006;return[r,a]},wgs84togcj02:function(e,t){if(l(e,t))return[e,t];var o=s(e-105,t-35),i=c(e-105,t-35),u=t/180*n,d=Math.sin(u);d=1-a*d*d;var f=Math.sqrt(d);o=180*o/(r*(1-a)/(d*f)*n),i=180*i/(r/f*Math.cos(u)*n);var p=t+o,h=e+i;return[h,p]},gcj02towgs84:function(e,t){if(l(e,t))return[e,t];var o=s(e-105,t-35),i=c(e-105,t-35),u=t/180*n,d=Math.sin(u);d=1-a*d*d;var f=Math.sqrt(d);return o=180*o/(r*(1-a)/(d*f)*n),i=180*i/(r/f*Math.cos(u)*n),mglat=t+o,mglng=e+i,[2*e-mglng,2*t-mglat]}};t.default=u},"2ee7":function(e,t,o){"use strict";(function(e,i){var n=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o("7ca3")),a=n(o("3b2d")),s=n(o("e5ac"));function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function l(e){for(var t=1;t0){var e=[],t=this.paymentData.recommend_member_card.charge_rule;return Object.keys(t).forEach((function(o,i){switch(o){case"week":e.push({key:o,value:t[o],title:"周卡",unit:"周"});break;case"month":e.push({key:o,value:t[o],title:"月卡",unit:"月"});break;case"quarter":e.push({key:o,value:t[o],title:"季卡",unit:"季"});break;case"year":e.push({key:o,value:t[o],title:"年卡",unit:"年"});break}})),e}}},watch:{storeToken:function(e,t){this.payment()},deliveryTime:function(e){e||this.$refs.timePopup.refresh()},location:function(e){e&&(this.orderCreateData.latitude=e.latitude,this.orderCreateData.longitude=e.longitude,this.latitude=e.latitude,this.longitude=e.longitude,this.payment())},calculateGoodsData:function(e){e&&e.local_config&&e.local_config.info.time_is_open&&!this.deliveryTime&&this.localtime("no")}},methods:{bindPickerChange:function(e){console.log(e),this.bindex=e.detail.value,console.log(this.bindex),this.orderCreateData.business=this.businesslist[this.bindex].realname},getBusiness:function(){var e=this;this.$api.sendRequest({url:"/api/member/getbusiness",success:function(t){console.log(t),e.businesslist=t.data}})},goodsSpecFormat:function(e){return e.forEach((function(e){console.log(e.sku_spec_format),e.sku_spec_format})),e},pageShow:function(){e.getStorageSync("addressBack")&&(e.removeStorageSync("addressBack"),this.payment())},payment:function(){var t=this;this.$api.sendRequest({url:this.api.payment,data:this.handleCreateData(),success:function(o){if(0==o.code&&o.data){var n=o.data,r=e.getStorageSync("is_test")?1175:i.getLaunchOptionsSync().scene;if(-1!=[1175,1176,1177,1191,1195].indexOf(r)&&n.delivery.express_type&&(n.delivery.express_type=n.delivery.express_type.filter((function(e){return"express"==e.name}))),n&&n.delivery.express_type&&n.delivery.express_type.length){var a=e.getStorageSync("delivery"),s=n.delivery.express_type[0];n.delivery.express_type.forEach((function(e){a&&e.name==a.delivery_type&&(s=e),"local"==e.name&&(t.localConfig=e),"store"==e.name&&(t.storeConfig=e)})),t.selectDeliveryType(s,!1,n.member_account)}n.is_virtual&&(t.orderCreateData.member_address={mobile:n.member_account.mobile?n.member_account.mobile:""}),t.orderCreateData.order_key=n.order_key,t.modules=n.modules,t.orderCreateData.coupon=n.coupon,t.getCouponList(),n=t.handleGoodsFormData(n),t.promotionInfo=t.promotion(n),t.paymentData=n,t.$forceUpdate(),t.calculate()}else t.$util.showToast({title:o.message}),setTimeout((function(){t.$util.redirectTo("/pages/index/index")}),1e3)}})},getCouponList:function(){var e=this;-1!=this.modules.indexOf("coupon")&&this.$api.sendRequest({url:"/api/ordercreate/getcouponlist",data:this.orderCreateData,success:function(t){if(0==t.code&&t.data){var o=t.data;e.coupon_list=o,e.$forceUpdate()}else e.$util.showToast({title:t.message})}})},handleGoodsFormData:function(t){var o=e.getStorageSync("goodFormData");return t.goods_list.forEach((function(e){if(e.goods_form){var t={};e.form_data?e.form_data.map((function(e){t[e.id]=e})):o&&o.goods_id==e.goods_id&&o.form_data.map((function(e){t[e.id]=e})),Object.keys(t).length&&e.goods_form.json_data.forEach((function(e){t[e.id]&&(e.val=t[e.id].val)}))}})),t},calculate:function(){var e=this;this.$api.sendRequest({url:this.api.calculate,data:this.handleCreateData(),success:function(t){e.$refs.loadingCover&&e.$refs.loadingCover.isShow&&e.$refs.loadingCover.hide(),0==t.code&&t.data?(e.calculateData=e.handleGoodsFormData(t.data),e.shop_goods_list=t.data.shop_goods_list,e.calculateData.coupon_list=e.coupon_list,t.data.delivery&&("express"==t.data.delivery.delivery_type&&(e.memberAddress=t.data.delivery.member_address),"local"==t.data.delivery.delivery_type&&(e.localMemberAddress=t.data.delivery.member_address)),t.data.goods_list.forEach((function(t){if(t.member_card_list){if(e.orderCreateData.member_goods_card[t.sku_id]){var o=e.orderCreateData.member_goods_card[t.sku_id];t.member_card_list[o]||delete e.orderCreateData.member_goods_card[t.sku_id]}}else e.orderCreateData.member_goods_card[t.sku_id]&&delete e.orderCreateData.member_goods_card[t.sku_id]})),e.orderCreateData.coupon=t.data.coupon,e.$forceUpdate()):e.$util.showToast({title:t.message})}})},create:function(){var t=this;this.verify()&&!this.isRepeat&&(this.isRepeat=!0,e.showLoading({title:""}),this.$api.sendRequest({url:this.api.create,data:this.handleCreateData(),success:function(o){e.hideLoading(),0==o.code?(t.outTradeNo=o.data,e.removeStorageSync("deliveryTime"),e.removeStorageSync("goodFormData"),e.setStorageSync("paySource",""),0==t.calculateData.pay_money?((t.paymentData.is_virtual||"store"==t.orderCreateData.delivery.delivery_type)&&t.$util.subscribeMessage("ORDER_VERIFY_OUT_TIME,VERIFY_CODE_EXPIRE,VERIFY"),t.$util.redirectTo("/pages_tool/pay/result",{code:o.data},"redirectTo")):t.openChoosePayment(),t.$store.dispatch("getCartNumber")):(t.$util.showToast({title:o.message}),t.isRepeat=!1)}}))},handleCreateData:function(){var e=this,t=this.$util.deepClone(this.orderCreateData);return this.$refs.form&&(t.form_data={form_id:this.paymentData.system_form.id,form_data:this.$util.deepClone(this.$refs.form.formData)}),this.$refs.goodsForm&&(t.form_data||(t.form_data={}),t.form_data.goods_form={},this.$refs.goodsForm.forEach((function(o){t.form_data.goods_form[o._props.customAttr.sku_id]={form_id:o._props.customAttr.form_id,form_data:e.$util.deepClone(o.formData)}}))),Object.keys(t).forEach((function(e){var o=t[e];"object"==(0,a.default)(o)&&(t[e]=JSON.stringify(o))})),this.paymentData&&0==this.orderCreateData.is_virtual&&t.member_address&&this.orderCreateData.delivery&&"store"!=this.orderCreateData.delivery.delivery_type&&delete t.member_address,t},openChoosePayment:function(){if(this.paymentData.is_virtual)this.$util.subscribeMessage("ORDER_URGE_PAYMENT,ORDER_PAY");else switch(this.orderCreateData.delivery.delivery_type){case"express":this.$util.subscribeMessage("ORDER_URGE_PAYMENT,ORDER_PAY,ORDER_DELIVERY");break;case"store":this.$util.subscribeMessage("ORDER_URGE_PAYMENT,ORDER_PAY");break;case"local":this.$util.subscribeMessage("ORDER_URGE_PAYMENT,ORDER_PAY,ORDER_DELIVERY");break}this.$refs.choosePaymentPopup.getPayInfo(this.outTradeNo)},verify:function(){if(1==this.paymentData.is_virtual){if(!this.orderCreateData.member_address.mobile)return this.$util.showToast({title:"请输入预留手机"}),!1;if(!this.$util.verifyMobile(this.orderCreateData.member_address.mobile))return this.$util.showToast({title:"请输入正确的手机号"}),!1}else{if(!this.orderCreateData.delivery||!this.orderCreateData.delivery.delivery_type)return this.$util.showToast({title:"商家未设置配送方式"}),!1;if("express"==this.orderCreateData.delivery.delivery_type&&!this.memberAddress||"local"==this.orderCreateData.delivery.delivery_type&&!this.localMemberAddress)return this.$util.showToast({title:"请先选择您的收货地址"}),!1;if("store"==this.orderCreateData.delivery.delivery_type){if(!this.orderCreateData.delivery.store_id)return this.$util.showToast({title:"没有可提货的门店,请选择其他配送方式"}),!1;if(!this.orderCreateData.member_address.mobile)return this.$util.showToast({title:"请输入预留手机"}),!1;if(!this.$util.verifyMobile(this.orderCreateData.member_address.mobile))return this.$util.showToast({title:"请输入正确的手机号"}),!1;if(!this.deliveryTime)return this.$util.showToast({title:"请选择提货时间"}),!1}if("local"==this.orderCreateData.delivery.delivery_type){if(!this.orderCreateData.delivery.store_id)return this.$util.showToast({title:"没有可配送的门店,请选择其他配送方式"}),!1;if(this.calculateGoodsData.config.local.is_use&&1==this.calculateGoodsData.delivery.local.info.time_is_open&&!this.deliveryTime)return this.$util.showToast({title:"请选择送达时间"}),!1}}if(this.$refs.goodsForm){for(var e=!0,t=0;t1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.orderCreateData.delivery||this.orderCreateData.delivery.delivery_type!=t.name){this.orderCreateData.delivery.buyer_ask_delivery_time={start_date:"",end_date:""},this.deliveryTime="";var n={delivery_type:t.name,delivery_type_name:t.title};"store"!=t.name&&"local"!=t.name||(t.store_list[0]&&(n.store_id=t.store_list[0].store_id),this.storeId=n.store_id?n.store_id:0,this.orderCreateData.member_address||(this.paymentData?this.orderCreateData.member_address={name:this.paymentData.member_account.nickname,mobile:this.paymentData.member_account.mobile}:i&&(this.orderCreateData.member_address={name:i.nickname,mobile:i.mobile}))),this.$set(this.orderCreateData,"delivery",n),e.setStorageSync("delivery",n),"express"==this.orderCreateData.delivery.delivery_type||this.location||this.$util.getLocation(),o&&this.payment(),"store"==t.name&&this.storetime("no"),"local"==t.name&&this.localtime("no")}},imageError:function(e){this.paymentData.goods_list[e].sku_image=this.$util.getDefaultImage().goods,this.calculateData.goods_list[e].sku_image=this.$util.getDefaultImage().goods,this.$forceUpdate()},selectPickupPoint:function(t){if(t.store_id!=this.storeId){this.storeId=t.store_id,this.orderCreateData.delivery.store_id=t.store_id,this.payment(),this.resetDeliveryTime();var o=e.getStorageSync("delivery");o.store_id=t.store_id,e.setStorageSync("delivery",o)}this.$refs.deliveryPopup.close()},resetDeliveryTime:function(){this.orderCreateData.delivery.buyer_ask_delivery_time={start_date:"",end_date:""},this.deliveryTime="",e.removeStorageSync("deliveryTime")},storetime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.storeInfo){var t=this.$util.deepClone(this.storeInfo);t.delivery_time="string"==typeof t.delivery_time&&t.delivery_time?JSON.parse(t.delivery_time):t.delivery_time,t.delivery_time&&(void 0!=t.delivery_time.length||t.delivery_time.length)||(t.delivery_time=[{start_time:t.start_time,end_time:t.end_time}]);var o={delivery:this.orderCreateData.delivery,dataTime:t};this.$refs.timePopup.open(o,e),this.$forceUpdate()}},selectPickupTime:function(t){this.deliveryTime=t.data.month+"("+t.data.time+")",this.orderCreateData.delivery.buyer_ask_delivery_time={start_date:t.data.start_date,end_date:t.data.end_date},e.setStorageSync("deliveryTime",{deliveryTime:this.deliveryTime,buyer_ask_delivery_time:this.orderCreateData.delivery.buyer_ask_delivery_time,delivery_type:this.orderCreateData.delivery.delivery_type})},storeImgError:function(){this.storeInfo.store_image=this.$util.getDefaultImage().store},openPopup:function(e){"deliveryPopup"==e&&(!this.storeList||Object.keys(this.storeList).length<=1)||(this.tempData=this.$util.deepClone(this.orderCreateData),this.$refs[e].open())},closePopup:function(e){this.orderCreateData=this.$util.deepClone(this.tempData),this.$refs[e].close(),this.tempData=null},openSiteCoupon:function(e){this.tempData=this.$util.deepClone(this.orderCreateData),this.merchCoupon.merch_id=e,this.selectCouponId=this.orderCreateData.coupon[e].coupon_id,this.merchCoupon.data=this.coupon_list[e],this.$refs.couponPopup.open(),this.$forceUpdate()},selectCoupon:function(e,t){this.selectCouponId!=e.coupon_id?this.selectCouponId=e.coupon_id:this.selectCouponId=0,this.$forceUpdate(),console.log(this.selectCouponId)},useCpopon:function(){console.log(this.merchCoupon.merch_id),this.orderCreateData.coupon[this.merchCoupon.merch_id].coupon_id=this.selectCouponId,console.log(this.orderCreateData.coupon),this.$refs.couponPopup.close(),this.calculate()},changeIsInvoice:function(){0==this.orderCreateData.is_invoice?(this.orderCreateData.is_invoice=1,this.orderCreateData.invoice_type||(this.orderCreateData.invoice_type=this.goodsData.invoice.invoice_type.split(",")[0])):this.orderCreateData.is_invoice=0},changeInvoiceType:function(e){this.orderCreateData.invoice_type=e},changeInvoiceTitleType:function(e){this.orderCreateData.invoice_title_type=e},changeIsTaxInvoice:function(){0==this.orderCreateData.is_tax_invoice?this.orderCreateData.is_tax_invoice=1:this.orderCreateData.is_tax_invoice=0,this.$forceUpdate()},changeInvoiceContent:function(e){this.orderCreateData.invoice_content=e,this.$forceUpdate()},invoiceVerify:function(){if(!this.orderCreateData.invoice_title)return this.$util.showToast({title:"请填写发票抬头"}),!1;if(!this.orderCreateData.taxpayer_number&&2==this.orderCreateData.invoice_title_type)return this.$util.showToast({title:"请填写纳税人识别号"}),!1;if(1==this.orderCreateData.invoice_type&&!this.orderCreateData.invoice_full_address&&1==this.paymentData.is_virtual)return this.$util.showToast({title:"请填写发票邮寄地址"}),!1;if(2==this.orderCreateData.invoice_type&&!this.orderCreateData.invoice_email)return this.$util.showToast({title:"请填写邮箱"}),!1;if(2==this.orderCreateData.invoice_type){if(!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.orderCreateData.invoice_email))return this.$util.showToast({title:"请填写正确的邮箱"}),!1}return!!this.orderCreateData.invoice_content||(this.$util.showToast({title:"请选择发票内容"}),!1)},saveInvoice:function(){(1!=this.orderCreateData.is_invoice||this.invoiceVerify())&&(this.calculate(),this.$refs.invoicePopup.close())},saveBuyerMessage:function(){this.$refs.buyerMessagePopup.close()},selectMemberCard:function(){this.orderCreateData.is_open_card=this.orderCreateData.is_open_card?0:1,this.orderCreateData.member_card_unit||(this.orderCreateData.member_card_unit=this.cardChargeType[0].key),this.payment()},selectMembercardUnit:function(e){this.orderCreateData.member_card_unit=e,this.calculate()},usePoint:function(){this.orderCreateData.is_point=this.orderCreateData.is_point?0:1,this.calculate()},payClose:function(){this.$store.dispatch("getCartNumber"),this.$util.redirectTo("/pages/order/detail",{order_id:this.$refs.choosePaymentPopup.payInfo.order_id},"redirectTo")},localtime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.calculateGoodsData&&this.calculateGoodsData.config.local){var t=this.$util.deepClone(this.calculateGoodsData.delivery.local.info);if(Object.keys(t).length){t.delivery_time&&(t.end_time=t.delivery_time[t.delivery_time.length-1].end_time);var o={delivery:this.orderCreateData.delivery,dataTime:t};this.$refs.timePopup.open(o,e)}}},surplusStartMoney:function(){var e=0;if(this.calculateData&&this.calculateData.delivery&&"local"==this.calculateData.delivery.delivery_type){var t,o=null!==(t=this.calculateGoodsData.delivery.start_money)&&void 0!==t?t:0;e=parseFloat(o)-parseFloat(this.calculateData.goods_money),e=e<0?0:e}return e},getTransactionAgreement:function(){var e=this;this.$api.sendRequest({url:"/api/order/transactionagreement",success:function(t){t.data&&(e.transactionAgreement=t.data,e.transactionAgreement.content&&(e.transactionAgreement.content=(0,s.default)(e.transactionAgreement.content)))}})},editForm:function(e){this.tempFormData={index:e,json_data:this.$util.deepClone(this.goodsData.goods_list[e].goods_form.json_data)},this.$refs.editFormPopup.open()},saveForm:function(){this.$refs.tempForm.verify()&&(this.$set(this.paymentData.goods_list[this.tempFormData.index].goods_form,"json_data",this.$refs.tempForm.formData),this.$refs.editFormPopup.close())},selectMemberGoodsCard:function(e){var t=this,o=this.goodsData.goods_list[e].sku_id;this.selectGoodsCard={skuId:o,itemId:this.orderCreateData.member_goods_card[o]?this.orderCreateData.member_goods_card[o]:0,cardList:this.$util.deepClone(this.calculateGoodsData.goods_list[e].member_card_list),click:function(e){t.selectGoodsCard.itemId=t.selectGoodsCard.itemId==e?0:e}},this.$refs.memberGoodsCardPopup.open()},saveMemberGoodsCard:function(){this.orderCreateData.member_goods_card[this.selectGoodsCard.skuId]=this.selectGoodsCard.itemId||0,this.$refs.memberGoodsCardPopup.close(),this.payment()},back:function(){e.navigateBack({delta:1})},getStoreList:function(){var e=null;return this.orderCreateData.delivery&&("local"==this.orderCreateData.delivery.delivery_type&&this.localConfig&&(e=this.localConfig.store_list,e=e.reduce((function(e,t){return l(l({},e),{},(0,r.default)({},t.store_id,t))}),{})),"store"==this.orderCreateData.delivery.delivery_type&&this.storeConfig&&(e=this.storeConfig.store_list,e=e.reduce((function(e,t){return l(l({},e),{},(0,r.default)({},t.store_id,t))}),{}))),e},getStore:function(e){var t,o,i=this;this.$api.sendRequest({url:"/api/store/getStorePage",data:{page_size:e.size,page:e.num,latitude:null!==(t=this.latitude)&&void 0!==t?t:"",longitude:null!==(o=this.longitude)&&void 0!==o?o:"",type:this.orderCreateData.delivery.delivery_type},success:function(t){var o=[];t.message;0==t.code&&t.data&&(o=t.data.list),e.endSuccess(o.length),1==e.num&&(i.storeData=[]),i.storeData=i.storeData.concat(o)},fail:function(t){e.endErr()}})}},filters:{moneyFormat:function(e){return parseFloat(e).toFixed(2)}}};t.default=u}).call(this,o("df3c")["default"],o("3223")["default"])},"300f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"申请退款"}},"30c6":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"直播"}},"31c1":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"帮助中心",emptyText:"当前暂无帮助信息"}},3223:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],n=["lanDebug","router","worklet"],r="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=r[a],c=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function l(e){return(!c||1154!==c.scene||!n.includes(e))&&(i.indexOf(e)>-1||"function"===typeof s[e])}r[a]=function(){var e={};for(var t in s)l(t)&&(e[t]=s[t]);return e}();var u=r[a];t.default=u},3240:function(e,t,o){"use strict";o.r(t),function(e){ /*! * Vue.js v2.6.11 * (c) 2014-2024 Evan You