From d6f1b8e6a271e958beb12adaf6b0ccad9cf24c99 Mon Sep 17 00:00:00 2001 From: xubinxcode Date: Thu, 27 May 2021 19:23:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=8A=E5=8D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue | 2 +- addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html | 2 +- .../uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.370a61aa.js | 1 + .../uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.958d4b5d.js | 1 - .../dist/build/h5/static/js/pages-order-createOrder.13981727.js | 1 + .../dist/build/h5/static/js/pages-order-createOrder.fbc2f3a0.js | 1 - 6 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.370a61aa.js delete mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.958d4b5d.js create mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.13981727.js delete mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.fbc2f3a0.js diff --git a/addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue b/addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue index 2aa6b7f..3236577 100755 --- a/addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue +++ b/addons/unishop/uniapp/uni-shop/pages/order/createOrder.vue @@ -481,7 +481,7 @@ this.$api.msg('Tên người nhận'); return; } - if (!/(^0[0-9]{9}$)/.test(adres.mobile) || ["00","01","02","03"].includes(adres.mobile.slice(0,2))) { + if (!/(^0[0-9]{9}$)/.test(adres.mobile) || ["00","01","02","04"].includes(adres.mobile.slice(0,2))) { this.$api.msg('Số điện thoại chưa đúng'); return; } diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html index e1bf87c..dbd5f39 100644 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html @@ -6,4 +6,4 @@ ttq.load('C2EIC3IQV140ORDINJS0'); ttq.page(); - }(window, document, 'ttq');
\ No newline at end of file + }(window, document, 'ttq');
\ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.370a61aa.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.370a61aa.js new file mode 100644 index 0000000..87a79c4 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.370a61aa.js @@ -0,0 +1 @@ +(function(e){function n(n){for(var a,i,s=n[0],u=n[1],c=n[2],g=0,p=[];g1&&void 0!==arguments[1]?arguments[1]:3e3,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";!1!==Boolean(e)&&(uni.showToast({title:e,duration:n,mask:o,icon:a}),setTimeout((function(){uni.hideToast()}),n))},d=function(){var e=getCurrentPages(),n=e[e.length-2];return n},p=function(){return new Promise((function(e){0==s.default.prototype.$store.state.hasLogin?uni.showModal({title:"温馨提示",content:"你还没,请先登录",success:function(n){if(n.confirm){var o="/pages/public/login";uni.navigateTo({url:o})}e(!1)}}):e(!0)}))},l=function e(n,o){o=o||{};for(var a in n)"object"===typeof n[a]?(o[a]=n[a].constructor===Array?[]:{},e(n[a],o[a])):o[a]=n[a];return o},f=function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(n){var o,a,t,i,u,c,d,p,l=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=l.length>1&&void 0!==l[1]?l[1]:"GET",a=l.length>2&&void 0!==l[2]?l[2]:{},t=!(l.length>3&&void 0!==l[3])||l[3],i={"content-type":"application/x-www-form-urlencoded",lang:s.default.prototype.$store.state.lang,platform:s.default.prototype.$platform},s.default.prototype.$store.state.userInfo.token&&(i.token=s.default.prototype.$store.state.userInfo.token),s.default.prototype.$store.state.cookie&&(i.cookie=s.default.prototype.$store.state.cookie),e.next=8,uni.request({url:s.default.prototype.$unishow+n,method:o,header:i,data:a,timeout:5e4});case 8:return u=e.sent,c=(0,r.default)(u,2),d=c[0],p=c[1],"/pay/submit"==n&&console.log(p),e.abrupt("return",new Promise((function(e){if(d&&(t&&g(JSON.stringify(p)),e(!1)),p){if(p.header.hasOwnProperty("Set-Cookie")){var n=p.header["Set-Cookie"].replace("; path=/","");s.default.prototype.$store.commit("setCookie",n)}p.hasOwnProperty("data")?(p.data.hasOwnProperty("code")&&401==p.data.code&&s.default.prototype.$store.commit("logout"),p.data.hasOwnProperty("code")&&1==p.data.code?(p.data.msg?t&&g(p.data.msg):uni.hideToast(),e(p.data.data)):(p.data.hasOwnProperty("msg")?t&&g(p.data.msg):t&&g("返回参数错误"),e(!1))):(t&&g("不能识别数据"),e(!1))}})));case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),y=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n&&!s.default.prototype.$store.state.hasLogin&&(e="/pages/public/login"),uni.navigateTo({url:e})};s.default.config.productionTip=!1,s.default.prototype.$fire=new s.default,s.default.prototype.$store=u.default,s.default.prototype.$api={msg:g,prePage:d,checkLogin:p,request:f,deepCopy:l,navTo:y},c.default.mpType="app";var m=new s.default((0,t.default)({},c.default));m.$mount()},"743d":function(e,n,o){"use strict";o.r(n);var a=o("1ba8"),t=o("0d01");for(var r in t)"default"!==r&&function(e){o.d(n,e,(function(){return t[e]}))}(r);o("032c");var i,s=o("f0c5"),u=Object(s["a"])(t["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);n["default"]=u.exports},a792:function(e,n,o){"use strict";var a=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=a(o("e143")),r=a(o("2f62"));t.default.use(r.default);var i=new r.default.Store({state:{hasLogin:!1,userInfo:{token:""},lang:"zh-cn",cookie:""},mutations:{login:function(e,n){e.hasLogin=!0,e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorage({key:"userInfo"})},setUserInfo:function(e,n){e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},setCookie:function(e,n){e.cookie=n,uni.setStorage({key:"cookieKey",data:n})}},actions:{}}),s=i;n.default=s},ee81:function(e,n,o){var a=o("3375");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var t=o("4f06").default;t("2c69b8aa",a,!0,{sourceMap:!1,shadowMode:!1})}}); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.958d4b5d.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.958d4b5d.js deleted file mode 100644 index e08e24b..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.958d4b5d.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function n(n){for(var a,i,s=n[0],u=n[1],c=n[2],g=0,p=[];g1&&void 0!==arguments[1]?arguments[1]:3e3,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";!1!==Boolean(e)&&(uni.showToast({title:e,duration:n,mask:o,icon:a}),setTimeout((function(){uni.hideToast()}),n))},d=function(){var e=getCurrentPages(),n=e[e.length-2];return n},p=function(){return new Promise((function(e){0==s.default.prototype.$store.state.hasLogin?uni.showModal({title:"温馨提示",content:"你还没,请先登录",success:function(n){if(n.confirm){var o="/pages/public/login";uni.navigateTo({url:o})}e(!1)}}):e(!0)}))},l=function e(n,o){o=o||{};for(var a in n)"object"===typeof n[a]?(o[a]=n[a].constructor===Array?[]:{},e(n[a],o[a])):o[a]=n[a];return o},f=function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(n){var o,a,t,i,u,c,d,p,l=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=l.length>1&&void 0!==l[1]?l[1]:"GET",a=l.length>2&&void 0!==l[2]?l[2]:{},t=!(l.length>3&&void 0!==l[3])||l[3],i={"content-type":"application/x-www-form-urlencoded",lang:s.default.prototype.$store.state.lang,platform:s.default.prototype.$platform},s.default.prototype.$store.state.userInfo.token&&(i.token=s.default.prototype.$store.state.userInfo.token),s.default.prototype.$store.state.cookie&&(i.cookie=s.default.prototype.$store.state.cookie),e.next=8,uni.request({url:s.default.prototype.$unishow+n,method:o,header:i,data:a,timeout:5e4});case 8:return u=e.sent,c=(0,r.default)(u,2),d=c[0],p=c[1],"/pay/submit"==n&&console.log(p),e.abrupt("return",new Promise((function(e){if(d&&(t&&g(JSON.stringify(p)),e(!1)),p){if(p.header.hasOwnProperty("Set-Cookie")){var n=p.header["Set-Cookie"].replace("; path=/","");s.default.prototype.$store.commit("setCookie",n)}p.hasOwnProperty("data")?(p.data.hasOwnProperty("code")&&401==p.data.code&&s.default.prototype.$store.commit("logout"),p.data.hasOwnProperty("code")&&1==p.data.code?(p.data.msg?t&&g(p.data.msg):uni.hideToast(),e(p.data.data)):(p.data.hasOwnProperty("msg")?t&&g(p.data.msg):t&&g("返回参数错误"),e(!1))):(t&&g("不能识别数据"),e(!1))}})));case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),y=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n&&!s.default.prototype.$store.state.hasLogin&&(e="/pages/public/login"),uni.navigateTo({url:e})};s.default.config.productionTip=!1,s.default.prototype.$fire=new s.default,s.default.prototype.$store=u.default,s.default.prototype.$api={msg:g,prePage:d,checkLogin:p,request:f,deepCopy:l,navTo:y},c.default.mpType="app";var m=new s.default((0,t.default)({},c.default));m.$mount()},"743d":function(e,n,o){"use strict";o.r(n);var a=o("1ba8"),t=o("0d01");for(var r in t)"default"!==r&&function(e){o.d(n,e,(function(){return t[e]}))}(r);o("032c");var i,s=o("f0c5"),u=Object(s["a"])(t["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);n["default"]=u.exports},a792:function(e,n,o){"use strict";var a=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=a(o("e143")),r=a(o("2f62"));t.default.use(r.default);var i=new r.default.Store({state:{hasLogin:!1,userInfo:{token:""},lang:"zh-cn",cookie:""},mutations:{login:function(e,n){e.hasLogin=!0,e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorage({key:"userInfo"})},setUserInfo:function(e,n){e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},setCookie:function(e,n){e.cookie=n,uni.setStorage({key:"cookieKey",data:n})}},actions:{}}),s=i;n.default=s},ee81:function(e,n,o){var a=o("3375");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var t=o("4f06").default;t("2c69b8aa",a,!0,{sourceMap:!1,shadowMode:!1})}}); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.13981727.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.13981727.js new file mode 100644 index 0000000..e714c68 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.13981727.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-createOrder"],{"0435":function(l,a,e){"use strict";var n;e.d(a,"b",(function(){return u})),e.d(a,"c",(function(){return h})),e.d(a,"a",(function(){return n}));var u=function(){var l=this,a=l.$createElement,e=l._self._c||a;return e("v-uni-view",{staticClass:"mpvue-picker"},[e("v-uni-view",{class:{pickerMask:l.showPicker},attrs:{catchtouchmove:"true"},on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.maskClick.apply(void 0,arguments)}}}),e("v-uni-view",{staticClass:"mpvue-picker-content ",class:{"mpvue-picker-view-show":l.showPicker}},[e("v-uni-view",{staticClass:"mpvue-picker__hd",attrs:{catchtouchmove:"true"}},[e("v-uni-view",{staticClass:"mpvue-picker__action",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerCancel.apply(void 0,arguments)}}},[l._v("Huỷ")]),e("v-uni-view",{staticClass:"mpvue-picker__action",style:{color:l.themeColor},on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerConfirm.apply(void 0,arguments)}}},[l._v("Xác nhận")])],1),"selector"===l.mode&&l.pickerValueSingleArray.length>0?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChange.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",l._l(l.pickerValueSingleArray,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]],2):l._e(),"timeSelector"===l.mode?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChange.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",l._l(l.pickerValueHour,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1),e("v-uni-picker-view-column",l._l(l.pickerValueMinute,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]],2):l._e(),"multiSelector"===l.mode?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChange.apply(void 0,arguments)}}},[l._l(l.pickerValueMulArray.length,(function(a,n){return[e("v-uni-picker-view-column",l._l(l.pickerValueMulArray[a],(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]}))],2):l._e(),"multiLinkageSelector"===l.mode&&2===l.deepLength?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChangeMul.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",l._l(l.pickerValueMulTwoOne,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1),e("v-uni-picker-view-column",l._l(l.pickerValueMulTwoTwo,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]],2):l._e(),"multiLinkageSelector"===l.mode&&3===l.deepLength?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChangeMul.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",l._l(l.pickerValueMulThreeOne,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1),e("v-uni-picker-view-column",l._l(l.pickerValueMulThreeTwo,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1),e("v-uni-picker-view-column",l._l(l.pickerValueMulThreeThree,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]],2):l._e()],1)],1)},h=[]},"0654":function(l,a,e){"use strict";e("a9e3"),e("ac1f"),e("1276"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={name:"uni-number-box",props:{isMax:{type:Boolean,default:!1},isMin:{type:Boolean,default:!1},index:{type:Number,default:0},value:{type:Number,default:0},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:Number,default:1},disabled:{type:Boolean,default:!1}},data:function(){return{inputValue:this.value,minDisabled:!1,maxDisabled:!1}},created:function(){this.maxDisabled=this.isMax,this.minDisabled=this.isMin},computed:{},watch:{value:function(l){this.inputValue=l},inputValue:function(l){var a={number:l,index:this.index};this.$emit("eventChange",a)}},methods:{nothing:function(){},_calcValue:function(l){var a=this._getDecimalScale(),e=this.inputValue*a,n=0,u=this.step*a;"subtract"===l?(n=e-u,n<=this.min&&(this.minDisabled=!0),n=this.max&&(this.maxDisabled=!0),n>this.max&&(n=this.max),n>this.min&&!0===this.minDisabled&&(this.minDisabled=!1)),n!==e&&(this.inputValue=n/a)},_getDecimalScale:function(){var l=1;return~~this.step!==this.step&&(l=Math.pow(10,(this.step+"").split(".")[1].length)),l},_onBlur:function(l){var a=l.detail.value;a?(a=+a,a>this.max?a=this.max:a9?"".concat(u," 时"):"0".concat(u," 时")});for(var h=0;h<60;h++)n.push({value:h,label:h>9?"".concat(h," 分"):"0".concat(h," 分")});this.pickerValueHour=e,this.pickerValueMinute=n}else if("multiSelector"===this.mode)this.pickerValueMulArray=l;else if("multiLinkageSelector"===this.mode&&2===this.deepLength){for(var v=[],b=[],X=0,g=a.length;X0?e+=this.pickerValueMulArray[u][l[u]].label+(u===l.length-1?"":"-"):e=this.pickerValueMulArray[u][l[u]].label+"-",n.push(this.pickerValueMulArray[u][l[u]].value);else"multiLinkageSelector"===a&&(e=2===this.deepLength?"".concat(this.pickerValueMulTwoOne[l[0]].label,"-").concat(this.pickerValueMulTwoTwo[l[1]].label):"".concat(this.pickerValueMulThreeOne[l[0]].label,"-").concat(this.pickerValueMulThreeTwo[l[1]].label,"-").concat(this.pickerValueMulThreeThree[l[2]].label),2===this.deepLength?(n.push(this.pickerValueMulTwoOne[l[0]].value),n.push(this.pickerValueMulTwoTwo[l[1]].value)):(n.push(this.pickerValueMulThreeOne[l[0]].value),n.push(this.pickerValueMulThreeTwo[l[1]].value),n.push(this.pickerValueMulThreeThree[l[2]].value)));return{label:e,value:n}},_initPickerVale:function(){0===this.pickerValue.length&&("selector"===this.mode?this.pickerValue=[0]:"multiSelector"===this.mode?this.pickerValue=new Int8Array(this.pickerValueArray.length):"multiLinkageSelector"===this.mode&&2===this.deepLength?this.pickerValue=[0,0]:"multiLinkageSelector"===this.mode&&3===this.deepLength&&(this.pickerValue=[0,0,0]))}}};a.default=h},"796c":function(l,a,e){"use strict";e.r(a);var n=e("a165"),u=e("bdbc");for(var h in u)"default"!==h&&function(l){e.d(a,l,(function(){return u[l]}))}(h);e("1e05");var v,b=e("f0c5"),X=Object(b["a"])(u["default"],n["b"],n["c"],!1,null,"0012a89e",null,!1,n["a"],v);a["default"]=X.exports},"7d7f":function(l,a,e){"use strict";e.r(a);var n=e("9267"),u=e.n(n);for(var h in n)"default"!==h&&function(l){e.d(a,l,(function(){return n[l]}))}(h);a["default"]=u.a},"804f":function(l,a,e){"use strict";e.r(a);var n=e("75e0"),u=e.n(n);for(var h in n)"default"!==h&&function(l){e.d(a,l,(function(){return n[l]}))}(h);a["default"]=u.a},"8c00":function(l,a,e){var n=e("24fb");a=n(!1),a.push([l.i,".uni-numbox[data-v-0012a89e]{position:absolute;left:%?30?%;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?230?%;height:%?70?%;background:#f5f5f5}.uni-numbox-minus[data-v-0012a89e],\n.uni-numbox-plus[data-v-0012a89e]{margin:0;background-color:#f5f5f5;width:%?70?%;height:100%;line-height:%?70?%;text-align:center;position:relative}.uni-numbox-minus .yticon[data-v-0012a89e],\n.uni-numbox-plus .yticon[data-v-0012a89e]{font-size:%?36?%;color:#555}.uni-numbox-minus[data-v-0012a89e]{border-right:none;border-top-left-radius:%?6?%;border-bottom-left-radius:%?6?%}.uni-numbox-plus[data-v-0012a89e]{border-left:none;border-top-right-radius:%?6?%;border-bottom-right-radius:%?6?%}.uni-numbox-value[data-v-0012a89e]{position:relative;background-color:#f5f5f5;width:%?90?%;height:%?50?%;text-align:center;padding:0;font-size:%?30?%}.uni-numbox-disabled.yticon[data-v-0012a89e]{color:#d6d6d6}",""]),l.exports=a},9267:function(l,a,e){"use strict";var n=e("4ea4");e("4160"),e("caad"),e("a15b"),e("fb6a"),e("b680"),e("d3b7"),e("acd8"),e("e25e"),e("ac1f"),e("25f0"),e("5319"),e("1276"),e("159b"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("96cf");var u=n(e("1da1")),h=n(e("b85c")),v=n(e("376c")),b=n(e("796c")),X=n(e("a1be")),g={components:{uniNumberBox:b.default,mpvuePicker:v.default},computed:{specSelectedName:function(){return this.specSelected.join(" ")},specProduct:function(){if(1==this.products.use_spec){var l,a=this.products.market_price,e=this.products.sales_price,n=this.products.stock,u=this.products.image,v=this.specSelected.join(" "),b=(this.specTableList,(0,h.default)(this.specTableList));try{for(b.s();!(l=b.n()).done;){var X=l.value;X.value.join(" ")==v&&(a=X.market_price,e=X.sales_price,n=X.stock,u=X.image)}}catch(g){b.e(g)}finally{b.f()}return{market_price:a,sales_price:e,stock:n,image:u}}return this.products}},data:function(){return{specList:[],specClass:"none",specSelected:[],specChildList:[],addressData:{name:"",mobile:"",address:""},pickerValueArray:X.default,pickerValueDefault:[0,0,0],cityLebel:"Vui lòng chọn khu vực",id:"",maskState:0,remark:"",payType:1,couponList:[],useCouponIndex:-1,product:[],products:[],price:0,coupon_price:0,total:0,deliveryList:[],deliveryIndex:0,deliveryPrice:0,cart:[],flash_id:0,progress:{},submitLock:!1}},onLoad:function(l){this.products=JSON.parse(l.product),console.log(this.products);var a=this.products.spec_list,e=this.products.spec_table_list,n=1,u=1,h=[];for(var v in a)for(var b in a[v].id=n++,a[v].child)h.push({id:u++,pid:a[v].id,name:a[v].child[b]});this.specList=a,this.specChildList=h,this.specTableList=e,this.specSelected=l.spec.split(","),this.id=l.id,l.hasOwnProperty("flash_id")&&(this.flash_id=l.flash_id),l.hasOwnProperty("cart")?(this.cart=l.cart,this.getOrderCreate({cart:l.cart})):this.getOrderCreate({id:l.id,spec:l.spec,flash_id:null})},mounted:function(){},onShareAppMessage:function(l){return{title:"MSVENI SHOP"}},onShow:function(){},filters:{million:function(l){return l?parseInt(l.replace(/\,/g,"")).toFixed(0).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."):0}},methods:{toggleSpec:function(){var l=this;"show"===this.specClass?(uni.showLoading({title:"loading"}),this.getOrderCreate({id:this.id,spec:this.specSelected.join(","),flash_id:null}).then((function(){uni.hideLoading(),l.specClass="hide",setTimeout((function(){l.specClass="none"}),250)}))):"none"===this.specClass&&(this.specClass="show")},selectSpec:function(l,a){var e=this,n=this.specChildList;n.forEach((function(l){l.pid===a&&e.$set(l,"selected",!1)})),this.$set(n[l],"selected",!0),this.specSelected=[],n.forEach((function(l){!0===l.selected&&e.specSelected.push(l.name)}))},showCityPicker:function(){this.$refs.mpvueCityPicker.show()},onChange:function(l){},onCancel:function(l){},onConfirm:function(l){console.log(l),this.cityLebel=l.label,this.pickerValueDefault=l.value},percentage:function(l,a){return a?parseInt(a/l*100):0},useCoupon:function(l){this.useCouponIndex!==l?this.useCouponIndex=l:this.useCouponIndex=-1,this.calcTotal()},getOrderCreate:function(l){var a=this;return(0,u.default)(regeneratorRuntime.mark((function e(){var n,u,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a,u=l.flash_id&&0!=l.flash_id?"/flash/createOrder":"/order/create",e.next=4,a.$api.request(u,"POST",l);case 4:h=e.sent,h?(a.product=h.product,a.couponList=h.coupon,a.deliveryList=h.delivery,a.calcTotal(),h.flash&&(a.progress=h.flash)):setTimeout((function(){n.$api.prePage().getDetail(l.id,l.flash_id),uni.navigateBack()}),3e3);case 6:case"end":return e.stop()}}),e)})))()},toggleMask:function(l){var a=this,e="show"===l?10:300,n="show"===l?1:0;this.maskState=2,setTimeout((function(){a.maskState=n}),e)},changePayType:function(l){this.payType=l},submit:function(){var l=this;return(0,u.default)(regeneratorRuntime.mark((function a(){var e,n,u,h,v,b;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e=0,l.deliveryList&&l.deliveryList[l.deliveryIndex]&&l.deliveryList[l.deliveryIndex].id&&(e=l.deliveryList[l.deliveryIndex].id),n=0,l.couponList&&l.couponList[l.useCouponIndex]&&l.couponList[l.useCouponIndex].id&&(n=l.couponList[l.useCouponIndex].id),u={name:l.addressData.name,mobile:l.addressData.mobile,address:l.cityLebel+l.addressData.address,delivery_id:e,coupon_id:n,remark:l.remark,product_id:[],spec:[],number:[],cart:l.cart,flash_id:l.flash_id},l.product.forEach((function(l,a){u.product_id.push(l.id),u.spec.push(l.spec.replace(/,/g,"|")),u.number.push(l.number)})),l.$api.request("/order/submitbar","POST",u,!1),h=JSON.parse(JSON.stringify(l.addressData)),h.name){a.next=11;break}return l.$api.msg("Tên người nhận"),a.abrupt("return");case 11:if(/(^0[0-9]{9}$)/.test(h.mobile)&&!["00","01","02","04"].includes(h.mobile.slice(0,2))){a.next=14;break}return l.$api.msg("Số điện thoại chưa đúng"),a.abrupt("return");case 14:if(h.address&&l.cityLebel){a.next=17;break}return l.$api.msg("Địa chỉ cụ thể"),a.abrupt("return");case 17:if(l.addressData){a.next=20;break}return l.$api.msg("请选择收货地址"),a.abrupt("return");case 20:if(l.$api.msg("Đặt hàng...",2e4),!l.submitLock){a.next=23;break}return a.abrupt("return");case 23:return l.submitLock=!0,v=0==l.flash_id?"/order/submit":"/flash/submitOrder",a.next=27,l.$api.request(v,"POST",u);case 27:b=a.sent,b&&(l.submitLock=!1,uni.redirectTo({url:"/pages/order/result?id=".concat(l.id,"&flash=0")})),l.submitLock=!1;case 30:case"end":return a.stop()}}),a)})))()},stopPrevent:function(){},numberChange:function(l){var a=this;return(0,u.default)(regeneratorRuntime.mark((function e(){var n,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.product[l.index].number,n=l.number,a.product[l.index].number=n,a.calcTotal(),u=a.product[l.index].stock,n>a.product[l.index].stock&&(a.product[l.index].number=u);case 6:case"end":return e.stop()}}),e)})))()},calcTotal:function(){var l=0,a=0,e=this.product;console.log(this.product),e.forEach((function(e){l+=parseFloat(e.sales_price.replace(/,/g,""))*e.number,a+=e.number})),this.price=l.toFixed(2),console.log(this.price);var n=l;this.coupon_price=0,-1!=this.useCouponIndex&&this.couponList&&this.couponList[this.useCouponIndex]&&(this.coupon_price=this.couponList[this.useCouponIndex].value,this.price>=this.couponList[this.useCouponIndex].least||(this.$api.msg("选中的优惠券不满足使用条件",2e3),this.useCouponIndex=-1,this.coupon_price=0),n-=this.coupon_price);var u=this.deliveryList[this.deliveryIndex];if(u){var h=0;if(u.hasOwnProperty("id")){u.min>a&&this.$api.msg("必须至少购买"+u.min+"件商品才能使用此配送方式",6e3),u.first=0==u.first?1:u.first,u.additional=0==u.additional?1:u.additional;for(var v=0;v=l.progress.number-l.progress.sold,value:a.number,isMax:l.progress.number-l.progress.sold<=a.number,isMin:1===a.number,index:n},on:{eventChange:function(a){arguments[0]=a=l.$handleEvent(a),l.numberChange.apply(void 0,arguments)}}}):e("uni-number-box",{staticClass:"step",attrs:{min:1,max:Number(a.stock),disabled:a.number>=a.stock,value:a.number,isMax:a.stock<=a.number,isMin:1===a.number,index:n},on:{eventChange:function(a){arguments[0]=a=l.$handleEvent(a),l.numberChange.apply(void 0,arguments)}}})],1)],1)],1)})),e("v-uni-view",{staticClass:"c-list"},[l.products.use_spec?e("v-uni-view",{staticClass:"c-row b-b",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleSpec.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"tit"},[l._v("Kích thước")]),e("v-uni-view",{staticClass:"con"},[e("v-uni-text",{staticClass:"selected-text"},[l._v(l._s(l.specSelectedName))]),e("v-uni-text",{staticStyle:{"margin-left":"50rpx"}},[l._v("Tồn kho:"+l._s(l.specProduct.stock))])],1),e("v-uni-text",{staticClass:"yticon icon-you"})],1):l._e()],1)],2),l.couponList&&l.couponList.length?e("v-uni-view",{staticClass:"yt-list"},[e("v-uni-view",{staticClass:"yt-list-cell b-b",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleMask("show")}}},[e("v-uni-view",{staticClass:"cell-icon"},[l._v("券")]),e("v-uni-text",{staticClass:"cell-tit clamp"},[l._v("优惠券")]),e("v-uni-text",{staticClass:"cell-tip active"},[l._v(l._s(-1!==l.useCouponIndex?l.couponList[l.useCouponIndex].title:"选择优惠券"))]),e("v-uni-text",{staticClass:"cell-more wanjia wanjia-gengduo-d"})],1)],1):l._e(),e("v-uni-view",{staticClass:"yt-list"},[e("v-uni-view",{staticClass:"yt-list-cell b-b"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("Tổng")]),e("v-uni-view",{staticClass:"cell-tip"},[l._v(l._s(l._f("million")(l.price))+"₫")])],1),l.couponList&&l.couponList.length?e("v-uni-view",{staticClass:"yt-list-cell b-b"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("优惠金额")]),e("v-uni-view",{staticClass:"cell-tip red"},[l._v("-"+l._s(l._f("million")(l.coupon_price))+"₫")])],1):l._e(),e("v-uni-view",{staticClass:"yt-list-cell b-b"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("Phương thức thanh toán")]),e("v-uni-view",{staticClass:"cell-tip"},[l._v("Thanh toán khi nhận hàng")])],1),e("v-uni-view",{staticClass:"yt-list-cell b-b"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("Phí giao hàng")]),e("v-uni-view",{staticClass:"cell-tip"},[l._v(l._s(l._f("million")(l.deliveryPrice))+"₫")])],1),e("v-uni-view",{staticClass:"yt-list-cell desc-cell"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("Lưu ý")]),e("v-uni-input",{staticClass:"desc",attrs:{type:"text",placeholder:"Vui lòng để lại thông tin ghi chú nếu có","placeholder-class":"placeholder"},model:{value:l.remark,callback:function(a){l.remark=a},expression:"remark"}})],1)],1),e("v-uni-view",{staticClass:"footer"},[e("v-uni-view",{staticClass:"price-content"},[e("v-uni-text",[l._v("Số tiền cần thanh toán")]),e("v-uni-text",{staticClass:"price"},[l._v(l._s(l._f("million")(l.total))+"₫")])],1),e("v-uni-text",{staticClass:"submit",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.submit.apply(void 0,arguments)}}},[l._v("Đặt hàng")])],1),e("v-uni-view",{staticClass:"mask",class:0===l.maskState?"none":1===l.maskState?"show":"",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleMask.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"mask-content",on:{click:function(a){a.stopPropagation(),a.preventDefault(),arguments[0]=a=l.$handleEvent(a),l.stopPrevent.apply(void 0,arguments)}}},l._l(l.couponList,(function(a,n){return e("v-uni-view",{key:n,staticClass:"coupon-item",class:l.useCouponIndex===n?"selectCoupon":""},[e("v-uni-view",{staticClass:"con",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.useCoupon(n)}}},[e("v-uni-view",{staticClass:"left"},[e("v-uni-text",{staticClass:"title"},[l._v(l._s(a.title))]),e("v-uni-text",{staticClass:"time"},[l._v("有效期至"+l._s(a.endtime_text))])],1),e("v-uni-view",{staticClass:"right"},[e("v-uni-text",{staticClass:"price"},[l._v(l._s(a.value))]),e("v-uni-text",[l._v("满"+l._s(a.least)+"可用")])],1),e("v-uni-view",{staticClass:"circle l"}),e("v-uni-view",{staticClass:"circle r"})],1),e("v-uni-text",{staticClass:"tips"},[l._v("限一张使用")])],1)})),1),e("v-uni-button",{staticClass:"btn",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleMask.apply(void 0,arguments)}}},[l._v("收起")])],1),e("mpvuePicker",{ref:"mpvueCityPicker",attrs:{mode:"multiLinkageSelector",pickerValueDefault:l.pickerValueDefault,pickerValueArray:l.pickerValueArray,deepLength:3},on:{onChange:function(a){arguments[0]=a=l.$handleEvent(a),l.onChange.apply(void 0,arguments)},onConfirm:function(a){arguments[0]=a=l.$handleEvent(a),l.onConfirm.apply(void 0,arguments)},onCancel:function(a){arguments[0]=a=l.$handleEvent(a),l.onCancel.apply(void 0,arguments)}}}),e("v-uni-view",{staticClass:"popup spec",class:l.specClass,on:{touchmove:function(a){a.stopPropagation(),a.preventDefault(),arguments[0]=a=l.$handleEvent(a),l.stopPrevent.apply(void 0,arguments)},click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleSpec.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"mask"}),e("v-uni-view",{staticClass:"layer attr-content",on:{click:function(a){a.stopPropagation(),arguments[0]=a=l.$handleEvent(a),l.stopPrevent.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"a-t"},[l.specProduct.image?e("v-uni-image",{attrs:{mode:"aspectFill",src:l.specProduct.image}}):l._e(),e("v-uni-view",{staticClass:"right"},[e("v-uni-text",{staticClass:"price"},[l._v(l._s(l._f("million")(l.specProduct.sales_price))+"₫")]),e("v-uni-text",{staticClass:"stock"},[l._v("Tồn kho:"+l._s(l.specProduct.stock))]),e("v-uni-view",{staticClass:"selected"},[l._v("Kích thước:"),e("v-uni-text",{staticClass:"selected-text"},[l._v(l._s(l.specSelectedName))])],1)],1)],1),l._l(l.specList,(function(a,n){return e("v-uni-view",{key:n,staticClass:"attr-list"},[e("v-uni-text",[l._v(l._s(a.name))]),e("v-uni-view",{staticClass:"item-list"},l._l(l.specChildList,(function(n,u){return n.pid===a.id?e("v-uni-text",{key:u,staticClass:"tit",class:{selected:n.selected},on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.selectSpec(u,n.pid)}}},[l._v(l._s(n.name))]):l._e()})),1)],1)})),e("v-uni-button",{staticClass:"btn",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleSpec.apply(void 0,arguments)}}},[l._v("OK")])],2)],1)],1)},h=[]},b85c:function(l,a,e){"use strict";e("a4d3"),e("e01a"),e("d28b"),e("d3b7"),e("3ca3"),e("ddb0"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=h;var n=u(e("06c5"));function u(l){return l&&l.__esModule?l:{default:l}}function h(l,a){var e;if("undefined"===typeof Symbol||null==l[Symbol.iterator]){if(Array.isArray(l)||(e=(0,n.default)(l))||a&&l&&"number"===typeof l.length){e&&(l=e);var u=0,h=function(){};return{s:h,n:function(){return u>=l.length?{done:!0}:{done:!1,value:l[u++]}},e:function(l){throw l},f:h}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v,b=!0,X=!1;return{s:function(){e=l[Symbol.iterator]()},n:function(){var l=e.next();return b=l.done,l},e:function(l){X=!0,v=l},f:function(){try{b||null==e["return"]||e["return"]()}finally{if(X)throw v}}}}},bdbc:function(l,a,e){"use strict";e.r(a);var n=e("0654"),u=e.n(n);for(var h in n)"default"!==h&&function(l){e.d(a,l,(function(){return n[l]}))}(h);a["default"]=u.a},bfb1:function(l,a,e){"use strict";var n=e("e306"),u=e.n(n);u.a},c03b:function(l,a,e){var n=e("8c00");"string"===typeof n&&(n=[[l.i,n,""]]),n.locals&&(l.exports=n.locals);var u=e("4f06").default;u("ba2fe3ac",n,!0,{sourceMap:!1,shadowMode:!1})},e306:function(l,a,e){var n=e("0be3");"string"===typeof n&&(n=[[l.i,n,""]]),n.locals&&(l.exports=n.locals);var u=e("4f06").default;u("5f40a5c2",n,!0,{sourceMap:!1,shadowMode:!1})},e469:function(l,a,e){"use strict";var n=e("9b96"),u=e.n(n);u.a},fd87:function(l,a,e){var n=e("74e8");n("Int8",(function(l){return function(a,e,n){return l(this,a,e,n)}}))}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.fbc2f3a0.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.fbc2f3a0.js deleted file mode 100644 index 095b5c4..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-createOrder.fbc2f3a0.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-createOrder"],{"01d7":function(l,a,e){var n=e("1c95");"string"===typeof n&&(n=[[l.i,n,""]]),n.locals&&(l.exports=n.locals);var u=e("4f06").default;u("990eb7f2",n,!0,{sourceMap:!1,shadowMode:!1})},"0435":function(l,a,e){"use strict";var n;e.d(a,"b",(function(){return u})),e.d(a,"c",(function(){return h})),e.d(a,"a",(function(){return n}));var u=function(){var l=this,a=l.$createElement,e=l._self._c||a;return e("v-uni-view",{staticClass:"mpvue-picker"},[e("v-uni-view",{class:{pickerMask:l.showPicker},attrs:{catchtouchmove:"true"},on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.maskClick.apply(void 0,arguments)}}}),e("v-uni-view",{staticClass:"mpvue-picker-content ",class:{"mpvue-picker-view-show":l.showPicker}},[e("v-uni-view",{staticClass:"mpvue-picker__hd",attrs:{catchtouchmove:"true"}},[e("v-uni-view",{staticClass:"mpvue-picker__action",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerCancel.apply(void 0,arguments)}}},[l._v("Huỷ")]),e("v-uni-view",{staticClass:"mpvue-picker__action",style:{color:l.themeColor},on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerConfirm.apply(void 0,arguments)}}},[l._v("Xác nhận")])],1),"selector"===l.mode&&l.pickerValueSingleArray.length>0?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChange.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",l._l(l.pickerValueSingleArray,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]],2):l._e(),"timeSelector"===l.mode?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChange.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",l._l(l.pickerValueHour,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1),e("v-uni-picker-view-column",l._l(l.pickerValueMinute,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]],2):l._e(),"multiSelector"===l.mode?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChange.apply(void 0,arguments)}}},[l._l(l.pickerValueMulArray.length,(function(a,n){return[e("v-uni-picker-view-column",l._l(l.pickerValueMulArray[a],(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]}))],2):l._e(),"multiLinkageSelector"===l.mode&&2===l.deepLength?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChangeMul.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",l._l(l.pickerValueMulTwoOne,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1),e("v-uni-picker-view-column",l._l(l.pickerValueMulTwoTwo,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]],2):l._e(),"multiLinkageSelector"===l.mode&&3===l.deepLength?e("v-uni-picker-view",{staticClass:"mpvue-picker-view",attrs:{"indicator-style":"height: 40px;",value:l.pickerValue},on:{change:function(a){arguments[0]=a=l.$handleEvent(a),l.pickerChangeMul.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",l._l(l.pickerValueMulThreeOne,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1),e("v-uni-picker-view-column",l._l(l.pickerValueMulThreeTwo,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1),e("v-uni-picker-view-column",l._l(l.pickerValueMulThreeThree,(function(a,n){return e("v-uni-view",{key:n,staticClass:"picker-item"},[l._v(l._s(a.label))])})),1)]],2):l._e()],1)],1)},h=[]},"0654":function(l,a,e){"use strict";e("a9e3"),e("ac1f"),e("1276"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={name:"uni-number-box",props:{isMax:{type:Boolean,default:!1},isMin:{type:Boolean,default:!1},index:{type:Number,default:0},value:{type:Number,default:0},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:Number,default:1},disabled:{type:Boolean,default:!1}},data:function(){return{inputValue:this.value,minDisabled:!1,maxDisabled:!1}},created:function(){this.maxDisabled=this.isMax,this.minDisabled=this.isMin},computed:{},watch:{value:function(l){this.inputValue=l},inputValue:function(l){var a={number:l,index:this.index};this.$emit("eventChange",a)}},methods:{nothing:function(){},_calcValue:function(l){var a=this._getDecimalScale(),e=this.inputValue*a,n=0,u=this.step*a;"subtract"===l?(n=e-u,n<=this.min&&(this.minDisabled=!0),n=this.max&&(this.maxDisabled=!0),n>this.max&&(n=this.max),n>this.min&&!0===this.minDisabled&&(this.minDisabled=!1)),n!==e&&(this.inputValue=n/a)},_getDecimalScale:function(){var l=1;return~~this.step!==this.step&&(l=Math.pow(10,(this.step+"").split(".")[1].length)),l},_onBlur:function(l){var a=l.detail.value;a?(a=+a,a>this.max?a=this.max:a9?"".concat(u," 时"):"0".concat(u," 时")});for(var h=0;h<60;h++)n.push({value:h,label:h>9?"".concat(h," 分"):"0".concat(h," 分")});this.pickerValueHour=e,this.pickerValueMinute=n}else if("multiSelector"===this.mode)this.pickerValueMulArray=l;else if("multiLinkageSelector"===this.mode&&2===this.deepLength){for(var v=[],b=[],X=0,g=a.length;X0?e+=this.pickerValueMulArray[u][l[u]].label+(u===l.length-1?"":"-"):e=this.pickerValueMulArray[u][l[u]].label+"-",n.push(this.pickerValueMulArray[u][l[u]].value);else"multiLinkageSelector"===a&&(e=2===this.deepLength?"".concat(this.pickerValueMulTwoOne[l[0]].label,"-").concat(this.pickerValueMulTwoTwo[l[1]].label):"".concat(this.pickerValueMulThreeOne[l[0]].label,"-").concat(this.pickerValueMulThreeTwo[l[1]].label,"-").concat(this.pickerValueMulThreeThree[l[2]].label),2===this.deepLength?(n.push(this.pickerValueMulTwoOne[l[0]].value),n.push(this.pickerValueMulTwoTwo[l[1]].value)):(n.push(this.pickerValueMulThreeOne[l[0]].value),n.push(this.pickerValueMulThreeTwo[l[1]].value),n.push(this.pickerValueMulThreeThree[l[2]].value)));return{label:e,value:n}},_initPickerVale:function(){0===this.pickerValue.length&&("selector"===this.mode?this.pickerValue=[0]:"multiSelector"===this.mode?this.pickerValue=new Int8Array(this.pickerValueArray.length):"multiLinkageSelector"===this.mode&&2===this.deepLength?this.pickerValue=[0,0]:"multiLinkageSelector"===this.mode&&3===this.deepLength&&(this.pickerValue=[0,0,0]))}}};a.default=h},"796c":function(l,a,e){"use strict";e.r(a);var n=e("a165"),u=e("bdbc");for(var h in u)"default"!==h&&function(l){e.d(a,l,(function(){return u[l]}))}(h);e("1e05");var v,b=e("f0c5"),X=Object(b["a"])(u["default"],n["b"],n["c"],!1,null,"0012a89e",null,!1,n["a"],v);a["default"]=X.exports},"7d7f":function(l,a,e){"use strict";e.r(a);var n=e("9267"),u=e.n(n);for(var h in n)"default"!==h&&function(l){e.d(a,l,(function(){return n[l]}))}(h);a["default"]=u.a},"804f":function(l,a,e){"use strict";e.r(a);var n=e("75e0"),u=e.n(n);for(var h in n)"default"!==h&&function(l){e.d(a,l,(function(){return n[l]}))}(h);a["default"]=u.a},"8c00":function(l,a,e){var n=e("24fb");a=n(!1),a.push([l.i,".uni-numbox[data-v-0012a89e]{position:absolute;left:%?30?%;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?230?%;height:%?70?%;background:#f5f5f5}.uni-numbox-minus[data-v-0012a89e],\n.uni-numbox-plus[data-v-0012a89e]{margin:0;background-color:#f5f5f5;width:%?70?%;height:100%;line-height:%?70?%;text-align:center;position:relative}.uni-numbox-minus .yticon[data-v-0012a89e],\n.uni-numbox-plus .yticon[data-v-0012a89e]{font-size:%?36?%;color:#555}.uni-numbox-minus[data-v-0012a89e]{border-right:none;border-top-left-radius:%?6?%;border-bottom-left-radius:%?6?%}.uni-numbox-plus[data-v-0012a89e]{border-left:none;border-top-right-radius:%?6?%;border-bottom-right-radius:%?6?%}.uni-numbox-value[data-v-0012a89e]{position:relative;background-color:#f5f5f5;width:%?90?%;height:%?50?%;text-align:center;padding:0;font-size:%?30?%}.uni-numbox-disabled.yticon[data-v-0012a89e]{color:#d6d6d6}",""]),l.exports=a},9267:function(l,a,e){"use strict";var n=e("4ea4");e("4160"),e("caad"),e("a15b"),e("fb6a"),e("b680"),e("d3b7"),e("acd8"),e("e25e"),e("ac1f"),e("25f0"),e("5319"),e("1276"),e("159b"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("96cf");var u=n(e("1da1")),h=n(e("b85c")),v=n(e("376c")),b=n(e("796c")),X=n(e("a1be")),g={components:{uniNumberBox:b.default,mpvuePicker:v.default},computed:{specSelectedName:function(){return this.specSelected.join(" ")},specProduct:function(){if(1==this.products.use_spec){var l,a=this.products.market_price,e=this.products.sales_price,n=this.products.stock,u=this.products.image,v=this.specSelected.join(" "),b=(this.specTableList,(0,h.default)(this.specTableList));try{for(b.s();!(l=b.n()).done;){var X=l.value;X.value.join(" ")==v&&(a=X.market_price,e=X.sales_price,n=X.stock,u=X.image)}}catch(g){b.e(g)}finally{b.f()}return{market_price:a,sales_price:e,stock:n,image:u}}return this.products}},data:function(){return{specList:[],specClass:"none",specSelected:[],specChildList:[],addressData:{name:"",mobile:"",address:""},pickerValueArray:X.default,pickerValueDefault:[0,0,0],cityLebel:"Vui lòng chọn khu vực",id:"",maskState:0,remark:"",payType:1,couponList:[],useCouponIndex:-1,product:[],products:[],price:0,coupon_price:0,total:0,deliveryList:[],deliveryIndex:0,deliveryPrice:0,cart:[],flash_id:0,progress:{},submitLock:!1}},onLoad:function(l){this.products=JSON.parse(l.product),console.log(this.products);var a=this.products.spec_list,e=this.products.spec_table_list,n=1,u=1,h=[];for(var v in a)for(var b in a[v].id=n++,a[v].child)h.push({id:u++,pid:a[v].id,name:a[v].child[b]});this.specList=a,this.specChildList=h,this.specTableList=e,this.specSelected=l.spec.split(","),this.id=l.id,l.hasOwnProperty("flash_id")&&(this.flash_id=l.flash_id),l.hasOwnProperty("cart")?(this.cart=l.cart,this.getOrderCreate({cart:l.cart})):this.getOrderCreate({id:l.id,spec:l.spec,flash_id:null})},mounted:function(){},onShareAppMessage:function(l){return{title:"MSVENI SHOP"}},onShow:function(){},filters:{million:function(l){return l?parseInt(l.replace(/\,/g,"")).toFixed(0).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."):0}},methods:{toggleSpec:function(){var l=this;"show"===this.specClass?(uni.showLoading({title:"loading"}),this.getOrderCreate({id:this.id,spec:this.specSelected.join(","),flash_id:null}).then((function(){uni.hideLoading(),l.specClass="hide",setTimeout((function(){l.specClass="none"}),250)}))):"none"===this.specClass&&(this.specClass="show")},selectSpec:function(l,a){var e=this,n=this.specChildList;n.forEach((function(l){l.pid===a&&e.$set(l,"selected",!1)})),this.$set(n[l],"selected",!0),this.specSelected=[],n.forEach((function(l){!0===l.selected&&e.specSelected.push(l.name)}))},showCityPicker:function(){this.$refs.mpvueCityPicker.show()},onChange:function(l){},onCancel:function(l){},onConfirm:function(l){console.log(l),this.cityLebel=l.label,this.pickerValueDefault=l.value},percentage:function(l,a){return a?parseInt(a/l*100):0},useCoupon:function(l){this.useCouponIndex!==l?this.useCouponIndex=l:this.useCouponIndex=-1,this.calcTotal()},getOrderCreate:function(l){var a=this;return(0,u.default)(regeneratorRuntime.mark((function e(){var n,u,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a,u=l.flash_id&&0!=l.flash_id?"/flash/createOrder":"/order/create",e.next=4,a.$api.request(u,"POST",l);case 4:h=e.sent,h?(a.product=h.product,a.couponList=h.coupon,a.deliveryList=h.delivery,a.calcTotal(),h.flash&&(a.progress=h.flash)):setTimeout((function(){n.$api.prePage().getDetail(l.id,l.flash_id),uni.navigateBack()}),3e3);case 6:case"end":return e.stop()}}),e)})))()},toggleMask:function(l){var a=this,e="show"===l?10:300,n="show"===l?1:0;this.maskState=2,setTimeout((function(){a.maskState=n}),e)},changePayType:function(l){this.payType=l},submit:function(){var l=this;return(0,u.default)(regeneratorRuntime.mark((function a(){var e,n,u,h,v,b;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e=0,l.deliveryList&&l.deliveryList[l.deliveryIndex]&&l.deliveryList[l.deliveryIndex].id&&(e=l.deliveryList[l.deliveryIndex].id),n=0,l.couponList&&l.couponList[l.useCouponIndex]&&l.couponList[l.useCouponIndex].id&&(n=l.couponList[l.useCouponIndex].id),u={name:l.addressData.name,mobile:l.addressData.mobile,address:l.cityLebel+l.addressData.address,delivery_id:e,coupon_id:n,remark:l.remark,product_id:[],spec:[],number:[],cart:l.cart,flash_id:l.flash_id},l.product.forEach((function(l,a){u.product_id.push(l.id),u.spec.push(l.spec.replace(/,/g,"|")),u.number.push(l.number)})),l.$api.request("/order/submitbar","POST",u,!1),h=JSON.parse(JSON.stringify(l.addressData)),h.name){a.next=11;break}return l.$api.msg("Tên người nhận"),a.abrupt("return");case 11:if(/(^0[0-9]{9}$)/.test(h.mobile)&&!["00","01","02","03"].includes(h.mobile.slice(0,2))){a.next=14;break}return l.$api.msg("Số điện thoại chưa đúng"),a.abrupt("return");case 14:if(h.address&&l.cityLebel){a.next=17;break}return l.$api.msg("Địa chỉ cụ thể"),a.abrupt("return");case 17:if(l.addressData){a.next=20;break}return l.$api.msg("请选择收货地址"),a.abrupt("return");case 20:if(l.$api.msg("Đặt hàng...",2e4),!l.submitLock){a.next=23;break}return a.abrupt("return");case 23:return l.submitLock=!0,v=0==l.flash_id?"/order/submit":"/flash/submitOrder",a.next=27,l.$api.request(v,"POST",u);case 27:b=a.sent,b&&(l.submitLock=!1,uni.redirectTo({url:"/pages/order/result?id=".concat(l.id,"&flash=0")})),l.submitLock=!1;case 30:case"end":return a.stop()}}),a)})))()},stopPrevent:function(){},numberChange:function(l){var a=this;return(0,u.default)(regeneratorRuntime.mark((function e(){var n,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.product[l.index].number,n=l.number,a.product[l.index].number=n,a.calcTotal(),u=a.product[l.index].stock,n>a.product[l.index].stock&&(a.product[l.index].number=u);case 6:case"end":return e.stop()}}),e)})))()},calcTotal:function(){var l=0,a=0,e=this.product;console.log(this.product),e.forEach((function(e){l+=parseFloat(e.sales_price.replace(/,/g,""))*e.number,a+=e.number})),this.price=l.toFixed(2),console.log(this.price);var n=l;this.coupon_price=0,-1!=this.useCouponIndex&&this.couponList&&this.couponList[this.useCouponIndex]&&(this.coupon_price=this.couponList[this.useCouponIndex].value,this.price>=this.couponList[this.useCouponIndex].least||(this.$api.msg("选中的优惠券不满足使用条件",2e3),this.useCouponIndex=-1,this.coupon_price=0),n-=this.coupon_price);var u=this.deliveryList[this.deliveryIndex];if(u){var h=0;if(u.hasOwnProperty("id")){u.min>a&&this.$api.msg("必须至少购买"+u.min+"件商品才能使用此配送方式",6e3),u.first=0==u.first?1:u.first,u.additional=0==u.additional?1:u.additional;for(var v=0;v=l.length?{done:!0}:{done:!1,value:l[u++]}},e:function(l){throw l},f:h}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v,b=!0,X=!1;return{s:function(){e=l[Symbol.iterator]()},n:function(){var l=e.next();return b=l.done,l},e:function(l){X=!0,v=l},f:function(){try{b||null==e["return"]||e["return"]()}finally{if(X)throw v}}}}},bdbc:function(l,a,e){"use strict";e.r(a);var n=e("0654"),u=e.n(n);for(var h in n)"default"!==h&&function(l){e.d(a,l,(function(){return n[l]}))}(h);a["default"]=u.a},c03b:function(l,a,e){var n=e("8c00");"string"===typeof n&&(n=[[l.i,n,""]]),n.locals&&(l.exports=n.locals);var u=e("4f06").default;u("ba2fe3ac",n,!0,{sourceMap:!1,shadowMode:!1})},d4e0:function(l,a,e){"use strict";var n=e("01d7"),u=e.n(n);u.a},e469:function(l,a,e){"use strict";var n=e("9b96"),u=e.n(n);u.a},ef4c:function(l,a,e){"use strict";var n;e.d(a,"b",(function(){return u})),e.d(a,"c",(function(){return h})),e.d(a,"a",(function(){return n}));var u=function(){var l=this,a=l.$createElement,e=l._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[l._v("Thông tin liên hệ")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"Tên người nhận","placeholder-class":"placeholder"},model:{value:l.addressData.name,callback:function(a){l.$set(l.addressData,"name",a)},expression:"addressData.name"}})],1),e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[l._v("Số điện thoại")]),e("v-uni-input",{staticClass:"input",attrs:{type:"number",placeholder:"Số điện thoại người nhận",maxlength:"10","placeholder-class":"placeholder"},model:{value:l.addressData.mobile,callback:function(a){l.$set(l.addressData,"mobile",a)},expression:"addressData.mobile"}})],1),e("v-uni-view",{staticClass:"row b-b",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.showCityPicker()}}},[e("v-uni-text",{staticClass:"tit"},[l._v("Khu vực")]),e("v-uni-view",{staticClass:"input"},[l._v(l._s(l.cityLebel))])],1),e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit",staticStyle:{width:"140upx"}},[l._v("Địa chỉ")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"Vui lòng nhập cụ thể số nhà, tên đường","placeholder-class":"placeholder"},model:{value:l.addressData.address,callback:function(a){l.$set(l.addressData,"address",a)},expression:"addressData.address"}})],1),l.progress.number?e("v-uni-view",{staticClass:"progress"}):l._e(),e("v-uni-view",{staticClass:"goods-section"},[l._l(l.product,(function(a,n){return e("v-uni-view",{key:a.id,staticClass:"g-item"},[e("v-uni-image",{attrs:{src:a.image,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"right"},[e("v-uni-text",{staticClass:"title clamp",staticStyle:{"margin-bottom":"25px"}},[l._v(l._s(a.title))]),e("v-uni-view",{staticClass:"price-box"},[e("v-uni-view",{staticClass:"price"},[l._v(l._s(l._f("million")(a.sales_price))+"₫")]),l.progress.number?e("uni-number-box",{staticClass:"step",attrs:{min:1,max:l.progress.number-l.progress.sold,disabled:a.number>=l.progress.number-l.progress.sold,value:a.number,isMax:l.progress.number-l.progress.sold<=a.number,isMin:1===a.number,index:n},on:{eventChange:function(a){arguments[0]=a=l.$handleEvent(a),l.numberChange.apply(void 0,arguments)}}}):e("uni-number-box",{staticClass:"step",attrs:{min:1,max:Number(a.stock),disabled:a.number>=a.stock,value:a.number,isMax:a.stock<=a.number,isMin:1===a.number,index:n},on:{eventChange:function(a){arguments[0]=a=l.$handleEvent(a),l.numberChange.apply(void 0,arguments)}}})],1)],1)],1)})),e("v-uni-view",{staticClass:"c-list"},[l.products.use_spec?e("v-uni-view",{staticClass:"c-row b-b",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleSpec.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"tit"},[l._v("Kích thước")]),e("v-uni-view",{staticClass:"con"},[e("v-uni-text",{staticClass:"selected-text"},[l._v(l._s(l.specSelectedName))]),e("v-uni-text",{staticStyle:{"margin-left":"50rpx"}},[l._v("Tồn kho:"+l._s(l.specProduct.stock))])],1),e("v-uni-text",{staticClass:"yticon icon-you"})],1):l._e()],1)],2),l.couponList&&l.couponList.length?e("v-uni-view",{staticClass:"yt-list"},[e("v-uni-view",{staticClass:"yt-list-cell b-b",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleMask("show")}}},[e("v-uni-view",{staticClass:"cell-icon"},[l._v("券")]),e("v-uni-text",{staticClass:"cell-tit clamp"},[l._v("优惠券")]),e("v-uni-text",{staticClass:"cell-tip active"},[l._v(l._s(-1!==l.useCouponIndex?l.couponList[l.useCouponIndex].title:"选择优惠券"))]),e("v-uni-text",{staticClass:"cell-more wanjia wanjia-gengduo-d"})],1)],1):l._e(),e("v-uni-view",{staticClass:"yt-list"},[e("v-uni-view",{staticClass:"yt-list-cell b-b"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("Tổng")]),e("v-uni-view",{staticClass:"cell-tip"},[l._v(l._s(l._f("million")(l.price))+"₫")])],1),l.couponList&&l.couponList.length?e("v-uni-view",{staticClass:"yt-list-cell b-b"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("优惠金额")]),e("v-uni-view",{staticClass:"cell-tip red"},[l._v("-"+l._s(l._f("million")(l.coupon_price))+"₫")])],1):l._e(),e("v-uni-view",{staticClass:"yt-list-cell b-b"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("Phương thức thanh toán")]),e("v-uni-view",{staticClass:"cell-tip"},[l._v("Thanh toán khi nhận hàng")])],1),e("v-uni-view",{staticClass:"yt-list-cell b-b"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("Phí giao hàng")]),e("v-uni-view",{staticClass:"cell-tip"},[l._v(l._s(l._f("million")(l.deliveryPrice))+"₫")])],1),e("v-uni-view",{staticClass:"yt-list-cell desc-cell"},[e("v-uni-view",{staticClass:"cell-tit clamp"},[l._v("Lưu ý")]),e("v-uni-input",{staticClass:"desc",attrs:{type:"text",placeholder:"Vui lòng để lại thông tin ghi chú nếu có","placeholder-class":"placeholder"},model:{value:l.remark,callback:function(a){l.remark=a},expression:"remark"}})],1)],1),e("v-uni-view",{staticClass:"footer"},[e("v-uni-view",{staticClass:"price-content"},[e("v-uni-text",[l._v("Số tiền cần thanh toán")]),e("v-uni-text",{staticClass:"price"},[l._v(l._s(l._f("million")(l.total))+"₫")])],1),e("v-uni-text",{staticClass:"submit",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.submit.apply(void 0,arguments)}}},[l._v("Đặt hàng")])],1),e("v-uni-view",{staticClass:"mask",class:0===l.maskState?"none":1===l.maskState?"show":"",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleMask.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"mask-content",on:{click:function(a){a.stopPropagation(),a.preventDefault(),arguments[0]=a=l.$handleEvent(a),l.stopPrevent.apply(void 0,arguments)}}},l._l(l.couponList,(function(a,n){return e("v-uni-view",{key:n,staticClass:"coupon-item",class:l.useCouponIndex===n?"selectCoupon":""},[e("v-uni-view",{staticClass:"con",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.useCoupon(n)}}},[e("v-uni-view",{staticClass:"left"},[e("v-uni-text",{staticClass:"title"},[l._v(l._s(a.title))]),e("v-uni-text",{staticClass:"time"},[l._v("有效期至"+l._s(a.endtime_text))])],1),e("v-uni-view",{staticClass:"right"},[e("v-uni-text",{staticClass:"price"},[l._v(l._s(a.value))]),e("v-uni-text",[l._v("满"+l._s(a.least)+"可用")])],1),e("v-uni-view",{staticClass:"circle l"}),e("v-uni-view",{staticClass:"circle r"})],1),e("v-uni-text",{staticClass:"tips"},[l._v("限一张使用")])],1)})),1),e("v-uni-button",{staticClass:"btn",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleMask.apply(void 0,arguments)}}},[l._v("收起")])],1),e("mpvuePicker",{ref:"mpvueCityPicker",attrs:{mode:"multiLinkageSelector",pickerValueDefault:l.pickerValueDefault,pickerValueArray:l.pickerValueArray,deepLength:3},on:{onChange:function(a){arguments[0]=a=l.$handleEvent(a),l.onChange.apply(void 0,arguments)},onConfirm:function(a){arguments[0]=a=l.$handleEvent(a),l.onConfirm.apply(void 0,arguments)},onCancel:function(a){arguments[0]=a=l.$handleEvent(a),l.onCancel.apply(void 0,arguments)}}}),e("v-uni-view",{staticClass:"popup spec",class:l.specClass,on:{touchmove:function(a){a.stopPropagation(),a.preventDefault(),arguments[0]=a=l.$handleEvent(a),l.stopPrevent.apply(void 0,arguments)},click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleSpec.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"mask"}),e("v-uni-view",{staticClass:"layer attr-content",on:{click:function(a){a.stopPropagation(),arguments[0]=a=l.$handleEvent(a),l.stopPrevent.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"a-t"},[l.specProduct.image?e("v-uni-image",{attrs:{mode:"aspectFill",src:l.specProduct.image}}):l._e(),e("v-uni-view",{staticClass:"right"},[e("v-uni-text",{staticClass:"price"},[l._v(l._s(l._f("million")(l.specProduct.sales_price))+"₫")]),e("v-uni-text",{staticClass:"stock"},[l._v("Tồn kho:"+l._s(l.specProduct.stock))]),e("v-uni-view",{staticClass:"selected"},[l._v("Kích thước:"),e("v-uni-text",{staticClass:"selected-text"},[l._v(l._s(l.specSelectedName))])],1)],1)],1),l._l(l.specList,(function(a,n){return e("v-uni-view",{key:n,staticClass:"attr-list"},[e("v-uni-text",[l._v(l._s(a.name))]),e("v-uni-view",{staticClass:"item-list"},l._l(l.specChildList,(function(n,u){return n.pid===a.id?e("v-uni-text",{key:u,staticClass:"tit",class:{selected:n.selected},on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.selectSpec(u,n.pid)}}},[l._v(l._s(n.name))]):l._e()})),1)],1)})),e("v-uni-button",{staticClass:"btn",on:{click:function(a){arguments[0]=a=l.$handleEvent(a),l.toggleSpec.apply(void 0,arguments)}}},[l._v("OK")])],2)],1)],1)},h=[]},fd87:function(l,a,e){var n=e("74e8");n("Int8",(function(l){return function(a,e,n){return l(this,a,e,n)}}))}}]); \ No newline at end of file