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 2b0b10e..2f36545 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 @@ -1,3 +1,3 @@ 宜家自购商城
\ No newline at end of file + })
\ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.34f63b93.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.34f63b93.js deleted file mode 100644 index 980be10..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.34f63b93.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:5e3});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];console.log(1111111111,e),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()},e467:function(e,n,o){"use strict";var a=o("c006"),t=o.n(a);t.a},e490:function(e,n,o){"use strict";o.r(n);var a=o("86f1"),t=o("b7c6");for(var r in t)"default"!==r&&function(e){o.d(n,e,(function(){return t[e]}))}(r);o("e467");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},fac5:function(e,n,o){var a=o("24fb");n=a(!1),n.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* project id 1729059 */@font-face{font-family:unishop;font-weight:400;font-style:normal;src:url(https://at.alicdn.com/t/font_1729059_llr8d2acjac.ttf) format("truetype")}.yticon{font-family:unishop!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-shouhuodizhi:before{content:"\\e6b5"}.icon-xuanzhong:before{content:"\\e64c"}.icon-fenlei:before{content:"\\e71b"}.icon-bianji:before{content:"\\e77d"}.icon-jiahao:before{content:"\\e616"}.icon-jianhao:before{content:"\\e617"}.icon-wxpay:before{content:"\\e607"}.icon-pay:before{content:"\\e624"}.icon-alipay:before{content:"\\e60b"}.icon-you:before{content:"\\e65f"}.icon-huoche:before{content:"\\e6f0"}.icon-shoucang:before{content:"\\e60a"}.icon-gouwuche:before{content:"\\e60e"}.icon-fangzi:before{content:"\\e657"}.icon-daifukuan:before{content:"\\e601"}.icon-daifahuo:before{content:"\\e704"}.icon-daishouhuo:before{content:"\\e62f"}.icon-pingjia:before{content:"\\e61d"}.icon-shouhou:before{content:"\\e610"}.icon-shoucang-setting:before{content:"\\e612"}.icon-setting:before{content:"\\e62b"}.icon-dizhi:before{content:"\\e67c"}.icon-lajitong:before{content:"\\e615"}uni-view,\nuni-scroll-view,\nuni-swiper,\nuni-swiper-item,\nuni-cover-view,\nuni-cover-image,\nuni-icon,\nuni-text,\nuni-rich-text,\nuni-progress,\nuni-button,\nuni-checkbox,\nuni-form,\nuni-input,\nuni-label,\nuni-radio,\nuni-slider,\nuni-switch,\nuni-textarea,\nuni-navigator,\nuni-audio,\nuni-camera,\nuni-image,\nuni-video{box-sizing:border-box}\n/* 骨架屏替代方案 */.Skeleton{background:#f3f3f3;padding:%?20?% 0;border-radius:%?8?%}\n/* 图片载入替代方案 */.image-wrapper{font-size:0;background:#f3f3f3;border-radius:4px}.image-wrapper uni-image{width:100%;height:100%;-webkit-transition:.6s;transition:.6s;opacity:0}.image-wrapper uni-image.loaded{opacity:1}.clamp{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.common-hover{background:#f5f5f5}\n/*边框*/.b-b:after,\n.b-t:after{position:absolute;z-index:3;left:0;right:0;height:0;content:"";-webkit-transform:scaleY(.5);transform:scaleY(.5);border-bottom:1px solid #e4e7ed}.b-b:after{bottom:0}.b-t:after{top:0}\n/* button样式改写 */uni-button,\nuni-button{height:%?80?%;line-height:%?80?%;font-size:%?34?%;font-weight:400}uni-button.no-border:before, uni-button.no-border:after, uni-button.no-border:before, uni-button.no-border:after{border:0}uni-button[type=default],\nuni-button[type=default]{color:#303133}\n/* input 样式 */.input-placeholder{color:#999}.placeholder{color:#999}',""]),e.exports=n}}); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.d85fe231.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.d85fe231.js new file mode 100644 index 0000000..ebdec83 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.d85fe231.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,r,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]:{},r=!(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:5e3});case 8:return u=e.sent,c=(0,t.default)(u,2),d=c[0],p=c[1],"/pay/submit"==n&&console.log(p),e.abrupt("return",new Promise((function(e){if(d&&(r&&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?r&&g(p.data.msg):uni.hideToast(),e(p.data.data)):(p.data.hasOwnProperty("msg")?r&&g(p.data.msg):r&&g("返回参数错误"),e(!1))):(r&&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];console.log(1111111111,e),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,r.default)({},c.default));m.$mount()},e467:function(e,n,o){"use strict";var a=o("c006"),r=o.n(a);r.a},e490:function(e,n,o){"use strict";o.r(n);var a=o("86f1"),r=o("b7c6");for(var t in r)"default"!==t&&function(e){o.d(n,e,(function(){return r[e]}))}(t);o("e467");var i,s=o("f0c5"),u=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);n["default"]=u.exports},fac5:function(e,n,o){var a=o("24fb");n=a(!1),n.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* project id 1729059 */@font-face{font-family:unishop;font-weight:400;font-style:normal;src:url(https://at.alicdn.com/t/font_1729059_llr8d2acjac.ttf) format("truetype")}.yticon{font-family:unishop!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-shouhuodizhi:before{content:"\\e6b5"}.icon-xuanzhong:before{content:"\\e64c"}.icon-fenlei:before{content:"\\e71b"}.icon-bianji:before{content:"\\e77d"}.icon-jiahao:before{content:"\\e616"}.icon-jianhao:before{content:"\\e617"}.icon-wxpay:before{content:"\\e607"}.icon-pay:before{content:"\\e624"}.icon-alipay:before{content:"\\e60b"}.icon-you:before{content:"\\e65f"}.icon-huoche:before{content:"\\e6f0"}.icon-shoucang:before{content:"\\e60a"}.icon-gouwuche:before{content:"\\e60e"}.icon-fangzi:before{content:"\\e657"}.icon-daifukuan:before{content:"\\e601"}.icon-daifahuo:before{content:"\\e704"}.icon-daishouhuo:before{content:"\\e62f"}.icon-pingjia:before{content:"\\e61d"}.icon-shouhou:before{content:"\\e610"}.icon-shoucang-setting:before{content:"\\e612"}.icon-setting:before{content:"\\e62b"}.icon-dizhi:before{content:"\\e67c"}.icon-lajitong:before{content:"\\e615"}uni-view,\nuni-scroll-view,\nuni-swiper,\nuni-swiper-item,\nuni-cover-view,\nuni-cover-image,\nuni-icon,\nuni-text,\nuni-rich-text,\nuni-progress,\nuni-button,\nuni-checkbox,\nuni-form,\nuni-input,\nuni-label,\nuni-radio,\nuni-slider,\nuni-switch,\nuni-textarea,\nuni-navigator,\nuni-audio,\nuni-camera,\nuni-image,\nuni-video{box-sizing:border-box}\n/* 骨架屏替代方案 */.Skeleton{background:#f3f3f3;padding:%?20?% 0;border-radius:%?8?%}\n/* 图片载入替代方案 */.image-wrapper{font-size:0;background:#f3f3f3;border-radius:4px}.image-wrapper uni-image{width:100%;height:100%;-webkit-transition:.6s;transition:.6s;opacity:0}.image-wrapper uni-image.loaded{opacity:1}.clamp{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.common-hover{background:#f5f5f5}\n/*边框*/.b-b:after,\n.b-t:after{position:absolute;z-index:3;left:0;right:0;height:0;content:"";-webkit-transform:scaleY(.5);transform:scaleY(.5);border-bottom:1px solid #e4e7ed}.b-b:after{bottom:0}.b-t:after{top:0}\n/* button样式改写 */uni-button,\nuni-button{height:%?80?%;line-height:%?80?%;font-size:%?34?%;font-weight:400}uni-button.no-border:before, uni-button.no-border:after, uni-button.no-border:before, uni-button.no-border:after{border:0}uni-button[type=default],\nuni-button[type=default]{color:#303133}\n/* input 样式 */.input-placeholder{color:#999}.placeholder{color:#999}',""]),e.exports=n}}); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-cart-cart.80dc1e87.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-cart-cart.80dc1e87.js deleted file mode 100644 index 11a170d..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-cart-cart.80dc1e87.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-cart"],{"0125":function(t,e,i){var a=i("1c61");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("14721dc7",a,!0,{sourceMap:!1,shadowMode:!1})},"1c61":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".uni-numbox[data-v-39d3cd72]{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-39d3cd72],\n.uni-numbox-plus[data-v-39d3cd72]{margin:0;background-color:#f5f5f5;width:%?70?%;height:100%;line-height:%?70?%;text-align:center;position:relative}.uni-numbox-minus .yticon[data-v-39d3cd72],\n.uni-numbox-plus .yticon[data-v-39d3cd72]{font-size:%?36?%;color:#555}.uni-numbox-minus[data-v-39d3cd72]{border-right:none;border-top-left-radius:%?6?%;border-bottom-left-radius:%?6?%}.uni-numbox-plus[data-v-39d3cd72]{border-left:none;border-top-right-radius:%?6?%;border-bottom-right-radius:%?6?%}.uni-numbox-value[data-v-39d3cd72]{position:relative;background-color:#f5f5f5;width:%?90?%;height:%?50?%;text-align:center;padding:0;font-size:%?30?%}.uni-numbox-disabled.yticon[data-v-39d3cd72]{color:#d6d6d6}",""]),t.exports=e},2040:function(t,e,i){var a=i("b8db");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("7679532c",a,!0,{sourceMap:!1,shadowMode:!1})},"29b4":function(t,e,i){"use strict";i.r(e);var a=i("4a68"),n=i("98c3");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("692c");var r,c=i("f0c5"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"5a3d5d04",null,!1,a["a"],r);e["default"]=s.exports},"2e7d":function(t,e,i){"use strict";i.r(e);var a=i("60de"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"313e":function(t,e,i){"use strict";i.r(e);var a=i("ef9e"),n=i("2e7d");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("bacf");var r,c=i("f0c5"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"39d3cd72",null,!1,a["a"],r);e["default"]=s.exports},"4a68":function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[t.hasLogin&&!0!==t.empty||"load"==t.state?i("v-uni-view",[i("v-uni-view",{staticClass:"cart-list"},[t._l(t.cartList,(function(e,a){return[i("v-uni-view",{key:e.id+"_0",staticClass:"cart-item",class:{"b-b":a!==t.cartList.length-1},style:{background:e.isset?"":"#f5f5f5"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navTo("/pages/product/product?id="+e.product_id+"&flash=0")}}},[i("v-uni-view",{staticClass:"image-wrapper"},[i("v-uni-image",{staticClass:"loaded",attrs:{src:e.image,mode:"aspectFill"}}),1==e.isset?i("v-uni-view",{staticClass:"yticon icon-xuanzhong checkbox",class:{checked:e.choose},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.check("item",a)}}}):t._e()],1),i("v-uni-view",{staticClass:"item-right"},[i("v-uni-text",{staticClass:"clamp title"},[t._v(t._s(e.title))]),e.spec?i("v-uni-text",{staticClass:"attr"},[t._v(t._s(e.spec))]):t._e(),i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(e.nowPrice)),i("v-uni-text",{staticStyle:{color:"red"}},[t._v(t._s(t.cartPrice(e.oldPrice,e.nowPrice)))])],1),i("uni-number-box",{staticClass:"step",attrs:{min:1,max:e.stock,disabled:e.number>=e.stock,value:t.cartList[a].number,isMax:e.number>=e.stock,isMin:1===e.number,index:a},on:{eventChange:function(e){arguments[0]=e=t.$handleEvent(e),t.numberChange.apply(void 0,arguments)}}})],1),i("v-uni-text",{staticClass:"del-btn yticon icon-lajitong",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.deleteCartItem(a)}}}),0==e.isset?i("v-uni-text",{staticClass:"invalid"},[t._v("失效")]):t._e(),0==e.stock&&1==e.isset?i("v-uni-text",{staticClass:"invalid"},[t._v("库存不足")]):t._e()],1)]}))],2),"load"!=t.state?i("v-uni-view",{staticClass:"action-section"},[i("v-uni-view",{staticClass:"checkbox"},[i("v-uni-image",{attrs:{src:t.allChoose?"/static/selected.png":"/static/select.png",mode:"aspectFit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.check("all")}}}),i("v-uni-view",{staticClass:"clear-btn",class:{show:t.allChoose},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearCart.apply(void 0,arguments)}}},[t._v("清空")])],1),i("v-uni-view",{staticClass:"total-box"},[i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.total))])],1),i("v-uni-button",{staticClass:"no-border confirm-btn",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.createOrder.apply(void 0,arguments)}}},[t._v("去结算")])],1):t._e()],1):i("v-uni-view",{staticClass:"empty"},[i("v-uni-image",{attrs:{src:"/static/emptyCart.jpg",mode:"aspectFit"}}),t.hasLogin?i("v-uni-view",{staticClass:"empty-tips"},[t._v("空空如也"),t.hasLogin?i("v-uni-navigator",{staticClass:"navigator",attrs:{url:"../index/index","open-type":"switchTab"}},[t._v("随便逛逛>")]):t._e()],1):i("v-uni-view",{staticClass:"empty-tips"},[t._v("空空如也"),i("v-uni-view",{staticClass:"navigator",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navToLogin.apply(void 0,arguments)}}},[t._v("去登陆>")])],1)],1)],1)},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},"60de":function(t,e,i){"use strict";i("a9e3"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={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(t){this.inputValue=t},inputValue:function(t){var e={number:t,index:this.index};this.$emit("eventChange",e)}},methods:{nothing:function(){},_calcValue:function(t){var e=this._getDecimalScale(),i=this.inputValue*e,a=0,n=this.step*e;"subtract"===t?(a=i-n,a<=this.min&&(this.minDisabled=!0),a=this.max&&(this.maxDisabled=!0),a>this.max&&(a=this.max),a>this.min&&!0===this.minDisabled&&(this.minDisabled=!1)),a!==i&&(this.inputValue=a/e)},_getDecimalScale:function(){var t=1;return~~this.step!==this.step&&(t=Math.pow(10,(this.step+"").split(".")[1].length)),t},_onBlur:function(t){var e=t.detail.value;e?(e=+e,e>this.max?e=this.max:ee){var n=(t-e).toFixed(2);i=" ↓降价 "+n+"元"}return i},navToLogin:function(){uni.navigateTo({url:"/pages/public/login"})},check:function(t,e){var i=this;return(0,o.default)(regeneratorRuntime.mark((function a(){var n,o,r,c,s,d;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=[],o=[],r=[],c=i.cartList,c.forEach((function(t){t.choose&&r.push(t.cart_id)})),"item"===t?(i.cartList[e].choose=!i.cartList[e].choose,i.cartList[e].choose?n.push(i.cartList[e].cart_id):o.push(i.cartList[e].cart_id)):(s=!i.allChoose,c.forEach((function(t){t.choose=s,t.isset&&(s?n.push(t.cart_id):o.push(t.cart_id))})),i.allChoose=s),i.calcTotal(t),a.next=9,i.$api.request("/cart/choose_change","POST",{trueArr:n,falseArr:o});case 9:d=a.sent,d||(c.forEach((function(t){r.indexOf(t.cart_id)>=0?t.choose=1:t.choose=0})),i.calcTotal(t));case 11:case"end":return a.stop()}}),a)})))()},numberChange:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function i(){var a,n,o,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=e.cartList[t.index].number,n=t.number,e.cartList[t.index].number=n,e.calcTotal(),o=e.cartList[t.index].cart_id,i.next=7,e.$api.request("/cart/number_change?id="+o,"GET",{number:n},!1);case 7:r=i.sent,r||(e.cartList[t.index].number=a,e.calcTotal());case 9:case"end":return i.stop()}}),i)})))()},deleteCartItem:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function i(){var a,n,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=e.cartList,n=a[t],r=n.cart_id,uni.showModal({content:"确认删除 "+a[t].title+"?",success:function(){var i=(0,o.default)(regeneratorRuntime.mark((function i(a){var n;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!a.confirm){i.next=5;break}return i.next=3,e.$api.request("/cart/delete?","POST",{id:r});case 3:n=i.sent,n&&(e.cartList.splice(t,1),e.calcTotal());case 5:case"end":return i.stop()}}),i)})));function a(t){return i.apply(this,arguments)}return a}()});case 4:case"end":return i.stop()}}),i)})))()},clearCart:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var i,a,o,r,c,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,uni.showModal({title:"确认清空?"});case 2:i=e.sent,a=(0,n.default)(i,2),a[0],o=a[1],o.confirm&&(r=[],t.cartList.forEach((function(t){r.push(t.cart_id)})),c=t.$api.request("/cart/delete","POST",{id:r}),s=t,c&&setTimeout((function(){s.state="load",s.cartList=[],s.getCart()}),300));case 7:case"end":return e.stop()}}),e)})))()},calcTotal:function(){var t=this.cartList;if(0!==t.length){var e=0,i=!0;t.forEach((function(t){t.isset&&(1==t.choose?e+=t.nowPrice*t.number:!0===i&&(i=!1))})),this.allChoose=i,this.total=e.toFixed(2)}else this.empty=!0},createOrder:function(){var t=this.cartList,e=[];t.forEach((function(t){t.choose&&e.push(t.cart_id)})),0!=e.length?this.$api.navTo("/pages/order/createOrder?cart=".concat(e.join(","))):this.$api.msg("没有选中商品")},navTo:function(t){this.$api.navTo(t)}}};e.default=d},ef9e:function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-numbox",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.nothing.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"uni-numbox-minus",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._calcValue("subtract")}}},[i("v-uni-text",{staticClass:"yticon icon-jianhao",class:t.isMin?"uni-numbox-disabled":""})],1),i("v-uni-input",{staticClass:"uni-numbox-value",attrs:{type:"number",disabled:t.disabled,value:t.inputValue},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t._onBlur.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t._onBlur.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"uni-numbox-plus",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._calcValue("add")}}},[i("v-uni-text",{staticClass:"yticon icon-jiahao",class:t.isMax?"uni-numbox-disabled":""})],1)],1)},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-flash-list.3015b868.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-flash-list.3015b868.js deleted file mode 100644 index 2b359e3..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-flash-list.3015b868.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-flash-list"],{"0eaf":function(t,e,a){"use strict";a.r(e);var i=a("efa6"),n=a("2e87");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("f4d2");var r,d=a("f0c5"),l=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"6800573e",null,!1,i["a"],r);e["default"]=l.exports},"2e87":function(t,e,a){"use strict";a.r(e);var i=a("8c5c"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"7ad8":function(t,e,a){var i=a("fec5");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("855ec710",i,!0,{sourceMap:!1,shadowMode:!1})},"8c5c":function(t,e,a){"use strict";var i=a("ee27");a("99af"),a("4160"),a("e25e"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("c964")),o=i(a("8097")),r=i(a("ad6c")),d=i(a("a672")),l={components:{uniLoadMore:o.default,empty:r.default,ProgressBar:d.default},computed:{},data:function(){return{pageSize:15,tabCurrentIndex:0,navList:[],state:[{text:"未开始"},{text:"已开抢"},{text:"抢购进行中"}]}},onPullDownRefresh:function(){this.loadNavBar()},onLoad:function(t){this.loadNavBar()},methods:{loadNavBar:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.request("/flash/navbar","GET");case 2:a=e.sent,uni.stopPullDownRefresh(),a&&(t.navList=a,t.navList.forEach((function(e,a){e=Object.assign(e,{list:[],page:1,loadingType:"more"}),e.current&&(t.tabCurrentIndex=a)})),t.loadData("tabChange",t.navList[t.tabCurrentIndex].flash_id),t.setNavigationBarTitle(t.navList[t.tabCurrentIndex].title));case 5:case"end":return e.stop()}}),e)})))()},loadData:function(){var t=arguments,e=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var i,n,o,r,d;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],n=t.length>1&&void 0!==t[1]?t[1]:0,o=e.tabCurrentIndex,r=e.navList[o],"tabChange"!==i||!0!==r.loaded){a.next=6;break}return a.abrupt("return");case 6:if("loading"!==r.loadingType){a.next=8;break}return a.abrupt("return");case 8:if("noMore"!=r.loadingType){a.next=10;break}return a.abrupt("return");case 10:return r.loadingType="loading",a.next=13,e.$api.request("/flash/product","GET",{flash_id:n,page:r.page,pagesize:e.pageSize});case 13:d=a.sent,d&&(d.length>=e.pageSize?r.loadingType="more":r.loadingType="noMore",r.page++,d.forEach((function(t,e){r.list.push(t)})),e.$set(r,"loaded",!0));case 15:case"end":return a.stop()}}),a)})))()},tabClick:function(t){this.tabCurrentIndex=t},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange",this.navList[this.tabCurrentIndex].flash_id),this.setNavigationBarTitle(this.navList[this.tabCurrentIndex].title)},percentage:function(t,e){return 0==e?0:parseInt(e/t*100)},navToDetailPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;uni.navigateTo({url:"/pages/product/product?id=".concat(t,"&flash=").concat(e)})},setNavigationBarTitle:function(t){uni.setNavigationBarTitle({title:"限时秒杀|"+t})}}};e.default=l},efa6:function(t,e,a){"use strict";var i={uniLoadMore:a("8097").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"nav-item",class:{current:t.tabCurrentIndex===i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(i)}}},[a("v-uni-view",{staticClass:"hour"},[a("v-uni-view",[t._v(t._s(e.starttime_hour))]),a("v-uni-view",{staticClass:"text"},[t._v(t._s(t.state[e.state].text))])],1)],1)})),1),a("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,i){return a("v-uni-swiper-item",{key:i},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.list.length?a("empty"):t._e(),t._l(e.list,(function(i,n){return a("v-uni-view",{key:n,staticClass:"order-item"},[a("v-uni-view",{staticClass:"info",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.navToDetailPage(i.product.product_id,e.flash_id)}}},[a("v-uni-view",{staticClass:"image"},[a("v-uni-image",{attrs:{mode:"aspectFill",src:i.product.image}})],1),a("v-uni-view",{staticClass:"detail"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(i.product.title))]),a("v-uni-view",{staticClass:"introduction"},[t._v(t._s(i.introduction))]),a("v-uni-view",{staticClass:"price"},[a("v-uni-view",{staticClass:"sales"},[t._v("¥"+t._s(i.product.sales_price))]),a("v-uni-view",{staticClass:"market"},[t._v("¥"+t._s(i.product.market_price))])],1),a("ProgressBar",{staticClass:"ProgressBar",attrs:{Sold:i.sold,widthUpx:250,Width:t.percentage(i.number,i.sold),Type:"candy",Vice:!0}}),a("v-uni-view",{staticClass:"loot"},[t._v(t._s(e.state>0?"马上抢":"未开始"))])],1)],1)],1)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},o=[];a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}))},f4d2:function(t,e,a){"use strict";var i=a("7ad8"),n=a.n(i);n.a},fec5:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-6800573e],\n.content[data-v-6800573e]{background:#f5f5f5;height:100%}.swiper-box[data-v-6800573e]{height:calc(100% - 50px)}.list-scroll-content[data-v-6800573e]{height:100%}.navbar[data-v-6800573e]{display:-webkit-box;display:-webkit-flex;display:flex;height:50px;padding:0 5px;background:#000;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10;overflow:auto}.navbar .nav-item[data-v-6800573e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;font-size:15px;color:#fff;font-weight:900;position:relative;text-align:center;min-width:%?150?%}.navbar .nav-item .hour[data-v-6800573e]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;flex-flow:column;display:-webkit-box;display:-webkit-flex;display:flex}.navbar .nav-item .hour .text[data-v-6800573e]{font-size:10px;font-weight:400}.navbar .nav-item.current[data-v-6800573e]{background-color:#fa436a}.navbar .nav-item.current[data-v-6800573e]:after{content:"";position:absolute;bottom:%?-10?%;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:%?20?%;height:%?20?%;background-color:#fa436a}.order-item[data-v-6800573e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding-left:%?30?%;background:#fff;margin-top:%?16?%}.order-item .info[data-v-6800573e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.order-item .info .image uni-image[data-v-6800573e]{width:%?250?%;height:%?250?%;border-radius:%?10?%}.order-item .info .detail[data-v-6800573e]{width:%?440?%;height:%?250?%;padding-left:%?30?%;padding-top:%?6?%;position:relative}.order-item .info .detail .title[data-v-6800573e]{color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-item .info .detail .introduction[data-v-6800573e]{color:#999;font-size:%?26?%;-webkit-line-clamp:2;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.order-item .info .detail .price[data-v-6800573e]{position:absolute;bottom:%?56?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.order-item .info .detail .price .sales[data-v-6800573e]{font-size:%?40?%;color:#fa436a;font-weight:500}.order-item .info .detail .price .market[data-v-6800573e]{vertical-align:bottom;font-size:%?25?%;text-decoration:line-through}.order-item .info .detail .ProgressBar[data-v-6800573e]{position:absolute;bottom:0}.order-item .info .detail .loot[data-v-6800573e]{position:absolute;right:0;bottom:%?14?%;background:#fa436a;color:#fff;padding:%?4?% %?14?%;border-radius:%?4?%;box-shadow:%?2?% %?2?% %?8?% -2px #000;font-size:%?32?%}\n/* load-more */.uni-load-more[data-v-6800573e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.uni-load-more__text[data-v-6800573e]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-6800573e]{height:24px;width:24px;margin-right:10px}.uni-load-more__img > uni-view[data-v-6800573e]{position:absolute}.uni-load-more__img > uni-view uni-view[data-v-6800573e]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-6800573e 1.56s ease infinite;animation:load-data-v-6800573e 1.56s ease infinite}.uni-load-more__img > uni-view uni-view[data-v-6800573e]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-6800573e]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img > uni-view uni-view[data-v-6800573e]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-6800573e]:nth-child(4){top:11px;left:0}.load1[data-v-6800573e],\n.load2[data-v-6800573e],\n.load3[data-v-6800573e]{height:24px;width:24px}.load2[data-v-6800573e]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-6800573e]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-6800573e]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-6800573e]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-6800573e]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-6800573e]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-6800573e]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-6800573e]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-6800573e]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-6800573e]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-6800573e]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-6800573e]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-6800573e]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-6800573e]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-6800573e{0%{opacity:1}100%{opacity:.2}}body.?%PAGE?%[data-v-6800573e]{background:#f5f5f5}',""]),t.exports=e}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-flash-list.a4e9e138.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-flash-list.a4e9e138.js new file mode 100644 index 0000000..1b32178 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-flash-list.a4e9e138.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-flash-list"],{"0eaf":function(t,e,a){"use strict";a.r(e);var i=a("b2a3"),n=a("2e87");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("6eef");var r,d=a("f0c5"),l=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"590761f6",null,!1,i["a"],r);e["default"]=l.exports},"2e87":function(t,e,a){"use strict";a.r(e);var i=a("8c5c"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"6eef":function(t,e,a){"use strict";var i=a("97b5"),n=a.n(i);n.a},"8c5c":function(t,e,a){"use strict";var i=a("ee27");a("99af"),a("4160"),a("e25e"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("c964")),o=i(a("8097")),r=i(a("ad6c")),d=i(a("a672")),l={components:{uniLoadMore:o.default,empty:r.default,ProgressBar:d.default},computed:{},data:function(){return{pageSize:15,tabCurrentIndex:0,navList:[],state:[{text:"未开始"},{text:"已开抢"},{text:"抢购进行中"}]}},onPullDownRefresh:function(){this.loadNavBar()},onLoad:function(t){this.loadNavBar()},methods:{loadNavBar:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.request("/flash/navbar","GET");case 2:a=e.sent,uni.stopPullDownRefresh(),a&&(t.navList=a,t.navList.forEach((function(e,a){e=Object.assign(e,{list:[],page:1,loadingType:"more"}),e.current&&(t.tabCurrentIndex=a)})),t.loadData("tabChange",t.navList[t.tabCurrentIndex].flash_id),t.setNavigationBarTitle(t.navList[t.tabCurrentIndex].title));case 5:case"end":return e.stop()}}),e)})))()},loadData:function(){var t=arguments,e=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var i,n,o,r,d;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],n=t.length>1&&void 0!==t[1]?t[1]:0,o=e.tabCurrentIndex,r=e.navList[o],"tabChange"!==i||!0!==r.loaded){a.next=6;break}return a.abrupt("return");case 6:if("loading"!==r.loadingType){a.next=8;break}return a.abrupt("return");case 8:if("noMore"!=r.loadingType){a.next=10;break}return a.abrupt("return");case 10:return r.loadingType="loading",a.next=13,e.$api.request("/flash/product","GET",{flash_id:n,page:r.page,pagesize:e.pageSize});case 13:d=a.sent,d&&(d.length>=e.pageSize?r.loadingType="more":r.loadingType="noMore",r.page++,d.forEach((function(t,e){r.list.push(t)})),e.$set(r,"loaded",!0));case 15:case"end":return a.stop()}}),a)})))()},tabClick:function(t){this.tabCurrentIndex=t},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange",this.navList[this.tabCurrentIndex].flash_id),this.setNavigationBarTitle(this.navList[this.tabCurrentIndex].title)},percentage:function(t,e){return 0==e?0:parseInt(e/t*100)},navToDetailPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;uni.navigateTo({url:"/pages/product/product?id=".concat(t,"&flash=").concat(e)})},setNavigationBarTitle:function(t){uni.setNavigationBarTitle({title:"限时活动|"+t})}}};e.default=l},"97b5":function(t,e,a){var i=a("e0df");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("4f211990",i,!0,{sourceMap:!1,shadowMode:!1})},b2a3:function(t,e,a){"use strict";var i={uniLoadMore:a("8097").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"nav-item",class:{current:t.tabCurrentIndex===i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(i)}}},[a("v-uni-view",{staticClass:"hour"},[a("v-uni-view",[t._v(t._s(e.starttime_hour))]),a("v-uni-view",{staticClass:"text"},[t._v(t._s(t.state[e.state].text))])],1)],1)})),1),a("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,i){return a("v-uni-swiper-item",{key:i},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.list.length?a("empty"):t._e(),t._l(e.list,(function(i,n){return a("v-uni-view",{key:n,staticClass:"order-item"},[a("v-uni-view",{staticClass:"info",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.navToDetailPage(i.product.product_id,e.flash_id)}}},[a("v-uni-view",{staticClass:"image"},[a("v-uni-image",{attrs:{mode:"aspectFill",src:i.product.image}})],1),a("v-uni-view",{staticClass:"detail"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(i.product.title))]),a("v-uni-view",{staticClass:"introduction"},[t._v(t._s(i.introduction))]),a("v-uni-view",{staticClass:"price"},[a("v-uni-view",{staticClass:"sales"},[t._v("¥"+t._s(i.product.sales_price))]),a("v-uni-view",{staticClass:"market"},[t._v("¥"+t._s(i.product.market_price))])],1),a("ProgressBar",{staticClass:"ProgressBar",attrs:{Sold:i.sold,widthUpx:250,Width:t.percentage(i.number,i.sold),Type:"candy",Vice:!0}}),a("v-uni-view",{staticClass:"loot"},[t._v(t._s(e.state>0?"马上抢":"未开始"))])],1)],1)],1)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},o=[];a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}))},e0df:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-590761f6],\n.content[data-v-590761f6]{background:#f5f5f5;height:100%}.swiper-box[data-v-590761f6]{height:calc(100% - 50px)}.list-scroll-content[data-v-590761f6]{height:100%}.navbar[data-v-590761f6]{display:-webkit-box;display:-webkit-flex;display:flex;height:50px;padding:0 5px;background:#000;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10;overflow:auto}.navbar .nav-item[data-v-590761f6]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;font-size:15px;color:#fff;font-weight:900;position:relative;text-align:center;min-width:%?150?%}.navbar .nav-item .hour[data-v-590761f6]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;flex-flow:column;display:-webkit-box;display:-webkit-flex;display:flex}.navbar .nav-item .hour .text[data-v-590761f6]{font-size:10px;font-weight:400}.navbar .nav-item.current[data-v-590761f6]{background-color:#fa436a}.navbar .nav-item.current[data-v-590761f6]:after{content:"";position:absolute;bottom:%?-10?%;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:%?20?%;height:%?20?%;background-color:#fa436a}.order-item[data-v-590761f6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding-left:%?30?%;background:#fff;margin-top:%?16?%}.order-item .info[data-v-590761f6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.order-item .info .image uni-image[data-v-590761f6]{width:%?250?%;height:%?250?%;border-radius:%?10?%}.order-item .info .detail[data-v-590761f6]{width:%?440?%;height:%?250?%;padding-left:%?30?%;padding-top:%?6?%;position:relative}.order-item .info .detail .title[data-v-590761f6]{color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-item .info .detail .introduction[data-v-590761f6]{color:#999;font-size:%?26?%;-webkit-line-clamp:2;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.order-item .info .detail .price[data-v-590761f6]{position:absolute;bottom:%?56?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.order-item .info .detail .price .sales[data-v-590761f6]{font-size:%?40?%;color:#fa436a;font-weight:500}.order-item .info .detail .price .market[data-v-590761f6]{vertical-align:bottom;font-size:%?25?%;text-decoration:line-through}.order-item .info .detail .ProgressBar[data-v-590761f6]{position:absolute;bottom:0}.order-item .info .detail .loot[data-v-590761f6]{position:absolute;right:0;bottom:%?14?%;background:#fa436a;color:#fff;padding:%?4?% %?14?%;border-radius:%?4?%;box-shadow:%?2?% %?2?% %?8?% -2px #000;font-size:%?32?%}\n/* load-more */.uni-load-more[data-v-590761f6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.uni-load-more__text[data-v-590761f6]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-590761f6]{height:24px;width:24px;margin-right:10px}.uni-load-more__img > uni-view[data-v-590761f6]{position:absolute}.uni-load-more__img > uni-view uni-view[data-v-590761f6]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-590761f6 1.56s ease infinite;animation:load-data-v-590761f6 1.56s ease infinite}.uni-load-more__img > uni-view uni-view[data-v-590761f6]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-590761f6]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img > uni-view uni-view[data-v-590761f6]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-590761f6]:nth-child(4){top:11px;left:0}.load1[data-v-590761f6],\n.load2[data-v-590761f6],\n.load3[data-v-590761f6]{height:24px;width:24px}.load2[data-v-590761f6]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-590761f6]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-590761f6]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-590761f6]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-590761f6]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-590761f6]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-590761f6]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-590761f6]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-590761f6]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-590761f6]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-590761f6]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-590761f6]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-590761f6]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-590761f6]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-590761f6{0%{opacity:1}100%{opacity:.2}}body.?%PAGE?%[data-v-590761f6]{background:#f5f5f5}',""]),t.exports=e}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.b464a66b.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.b464a66b.js deleted file mode 100644 index 87cd8e3..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.b464a66b.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"28a4":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.uni-countdown[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:%?2?% 0}.uni-countdown__splitor[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;line-height:%?48?%;padding:%?5?%;font-size:%?24?%}.uni-countdown__number[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?52?%;height:%?48?%;line-height:%?48?%;margin:%?5?%;text-align:center;font-size:%?24?%}',""]),t.exports=e},"34b9":function(t,e,i){"use strict";var a=i("eef9"),n=i.n(a);n.a},"37ea":function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-countdown"},[t.showDay?i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.d))]):t._e(),t.showDay?i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("天")]):t._e(),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.h))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"时"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.i))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"分"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.s))]),t.showColon?t._e():i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("秒")])],1)},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},"4b80":function(t,e,i){"use strict";i.r(e);var a=i("37ea"),n=i("5357");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("34b9");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"6b4ac154",null,!1,a["a"],s);e["default"]=c.exports},5357:function(t,e,i){"use strict";i.r(e);var a=i("5608"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},5608:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniCountdown",props:{showDay:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#000000"},color:{type:String,default:"#000000"},splitorColor:{type:String,default:"#000000"},day:{type:Number,default:0},hour:{type:Number,default:0},minute:{type:Number,default:0},second:{type:Number,default:0},borderWidth:{type:String,default:"52rpx"}},data:function(){return{timer:null,syncFlag:!1,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}},watch:{day:function(t){this.changeFlag()},hour:function(t){this.changeFlag()},minute:function(t){this.changeFlag()},second:function(t){this.changeFlag()}},created:function(t){this.startData()},beforeDestroy:function(){clearInterval(this.timer)},methods:{toSeconds:function(t,e,i,a){return 60*t*60*24+60*e*60+60*i+a},timeUp:function(){clearInterval(this.timer),this.timer=0,this.$emit("timeup",this)},countDown:function(){var t=this.seconds,e=0,i=0,a=0,n=0;t>0?(e=Math.floor(t/86400),i=Math.floor(t/3600)-24*e,a=Math.floor(t/60)-24*e*60-60*i,n=Math.floor(t)-24*e*60*60-60*i*60-60*a):this.timeUp(),e<10&&(e="0"+e),i<10&&(i="0"+i),a<10&&(a="0"+a),n<10&&(n="0"+n),this.d=e,this.h=i,this.i=a,this.s=n},startData:function(){var t=this;this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.seconds<=0?this.timeUp():this.timer>0||(this.countDown(),this.timer=setInterval((function(){t.seconds--,t.seconds<0?t.timeUp():t.countDown()}),1e3))},changeFlag:function(){this.syncFlag||(this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.startData(),this.syncFlag=!0)}}};e.default=a},"5ec4":function(t,e,i){"use strict";var a=i("ee27");i("99af"),i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("c964")),o=a(i("4b80")),s={components:{uniCountdown:o.default},data:function(){return{titleNViewBackground:"",swiperCurrent:0,swiperLength:0,carouselList:[],goodsList:[],menu:[],flashSale:"",page:1,pageSize:16,day:0,hour:0,minute:0,second:0}},computed:{},onLoad:function(){this.loadData()},onReachBottom:function(){this.getProduct()},onPullDownRefresh:function(){this.$refs&&this.$refs.countd&&(this.$refs.countd.syncFlag=!1),this.goodsList=[],this.page=1,this.loadData()},onShareAppMessage:function(t){},methods:{loadData:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t,e.next=3,t.$api.checkLogin();case 3:a=e.sent,a&&(uni.request({url:i.$unishow+"/ads/index",success:function(t){var e=t.data.data;i.titleNViewBackground=e[0].background,i.swiperLength=e.length,i.carouselList=e}}),uni.request({url:i.$unishow+"/category/menu",success:function(t){i.menu=t.data.data}}),uni.stopPullDownRefresh(),t.getFlash(),t.getProduct());case 5:case"end":return e.stop()}}),e)})))()},getProduct:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.checkLogin();case 2:if(i=e.sent,!i){e.next=8;break}return e.next=6,t.$api.request("/product/lists","GET",{page:t.page,pagesize:t.pageSize});case 6:a=e.sent,a&&(a.length>0?(a.forEach((function(e){t.goodsList.push(e)})),t.page++):t.$api.msg("没有更多数据"));case 8:case"end":return e.stop()}}),e)})))()},getFlash:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.request("/flash/index");case 2:i=e.sent,i&&(t.flashSale=i,t.day=i.countdown.day,t.hour=i.countdown.hour,t.minute=i.countdown.minute,t.second=i.countdown.second);case 4:case"end":return e.stop()}}),e)})))()},swiperChange:function(t){var e=t.detail.current;this.swiperCurrent=e,this.titleNViewBackground=this.carouselList[e].background},navToDetailPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.product_id;uni.navigateTo({url:"/pages/product/product?id=".concat(i,"&flash=").concat(e)})},timeup:function(){this.getFlash()},navTo:function(t){uni.navigateTo({url:t})},navToList:function(t){uni.navigateTo({url:"/pages/product/list?fid=".concat(t,"&sid=0")})}},onNavigationBarSearchInputClicked:function(){var t=(0,n.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$api.msg("点击了搜索框");case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onNavigationBarButtonTap:function(t){var e=t.index;0===e?this.$api.msg("点击了扫描"):1===e&&uni.navigateTo({url:"/pages/notice/notice"})}};e.default=s},"8c56":function(t,e,i){"use strict";var a={uniCountdown:i("4b80").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"carousel-section"},[i("v-uni-view",{staticClass:"titleNview-placing"}),i("v-uni-view",{staticClass:"titleNview-background",style:{backgroundColor:t.titleNViewBackground}}),i("v-uni-swiper",{staticClass:"carousel",attrs:{circular:!0},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.swiperChange.apply(void 0,arguments)}}},t._l(t.carouselList,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"carousel-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToDetailPage({product_id:e.product_id})}}},[i("v-uni-image",{attrs:{mode:"aspectFill",src:e.image}})],1)})),1),i("v-uni-view",{staticClass:"swiper-dots"},[i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.swiperCurrent+1))]),i("v-uni-text",{staticClass:"sign"},[t._v("/")]),i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.swiperLength))])],1)],1),i("v-uni-view",{staticClass:"cate-section"},t._l(t.menu,(function(e,a){return i("v-uni-view",{key:a,staticClass:"cate-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToList(e.id)}}},[i("v-uni-image",{attrs:{src:e.image}}),i("v-uni-text",[t._v(t._s(e.name))])],1)})),1),t.flashSale&&t.flashSale.product.length>0?i("v-uni-view",{staticClass:"seckill-section m-t"},[i("v-uni-view",{staticClass:"s-header",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTo("/pages/flash/list")}}},[i("v-uni-image",{staticClass:"s-img",attrs:{src:"/static/temp/secskill-img.jpg",mode:"widthFix"}}),t.flashSale.countdown?i("v-uni-text",{staticClass:"tip"},[t._v("下一场倒计时")]):i("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.flashSale.title))]),t.flashSale.countdown?i("uni-countdown",{ref:"countd",attrs:{"show-day":!!t.flashSale.countdown.day,day:t.day,hour:t.hour,minute:t.minute,second:t.second,color:"#FFFFFF","background-color":"#00B26A","border-color":"#00B26A"},on:{timeup:function(e){arguments[0]=e=t.$handleEvent(e),t.timeup.apply(void 0,arguments)}}}):t._e(),i("v-uni-text",{staticClass:"yticon icon-you"})],1),i("v-uni-scroll-view",{staticClass:"floor-list",attrs:{"scroll-x":!0}},[i("v-uni-view",{staticClass:"scoll-wrapper"},t._l(t.flashSale.product,(function(e,a){return i("v-uni-view",{key:a,staticClass:"floor-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToDetailPage({product_id:e.flash_product_id},t.flashSale.flash_id)}}},[i("v-uni-image",{attrs:{src:e.image,mode:"aspectFill"}}),i("v-uni-text",{staticClass:"title clamp"},[t._v(t._s(e.title))]),i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(e.sales_price))])],1)})),1)],1)],1):t._e(),i("v-uni-view",{staticClass:"f-header m-t"},[i("v-uni-image",{attrs:{src:"/static/temp/h1.png"}}),i("v-uni-view",{staticClass:"tit-box"},[i("v-uni-text",{staticClass:"tit"},[t._v("猜你喜欢")]),i("v-uni-text",{staticClass:"tit2"},[t._v("Guess You Like It")])],1),i("v-uni-text",{staticClass:"yticon icon-you"})],1),i("v-uni-view",{staticClass:"guess-section"},t._l(t.goodsList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"guess-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToDetailPage(e)}}},[i("v-uni-view",{staticClass:"image-wrapper"},[i("v-uni-image",{attrs:{src:e.image,mode:"aspectFill"}})],1),i("v-uni-text",{staticClass:"title clamp"},[t._v(t._s(e.title))]),i("v-uni-text",{staticClass:"price"},[i("v-uni-text",{staticClass:"symbol"},[t._v("¥")]),t._v(t._s(e.sales_price)),i("v-uni-text",{staticClass:"sales"},[t._v(t._s(" "+e.sales)+"人付款")])],1)],1)})),1)],1)},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},"8d2d":function(t,e,i){"use strict";i.r(e);var a=i("8c56"),n=i("fab1");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("fc14");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"19a5c6e0",null,!1,a["a"],s);e["default"]=c.exports},"9ce8":function(t,e,i){var a=i("e1e4");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("c366e2fc",a,!0,{sourceMap:!1,shadowMode:!1})},e1e4:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body .cate-section[data-v-19a5c6e0]{position:relative;z-index:5;border-radius:%?16?% %?16?% 0 0;margin-top:%?-20?%}uni-page-body .carousel-section[data-v-19a5c6e0]{padding:0}uni-page-body .carousel-section .titleNview-placing[data-v-19a5c6e0]{padding-top:0;height:0}uni-page-body .carousel-section .carousel .carousel-item[data-v-19a5c6e0]{padding:0}uni-page-body .carousel-section .swiper-dots[data-v-19a5c6e0]{left:%?45?%;bottom:%?40?%}uni-page-body[data-v-19a5c6e0]{background:#f5f5f5}.m-t[data-v-19a5c6e0]{margin-top:%?16?%}\n/* 头部 轮播图 */.carousel-section[data-v-19a5c6e0]{position:relative;padding-top:10px}.carousel-section .titleNview-placing[data-v-19a5c6e0]{height:0;padding-top:44px;box-sizing:initial}.carousel-section .titleNview-background[data-v-19a5c6e0]{position:absolute;top:0;left:0;width:100%;height:%?426?%;-webkit-transition:.4s;transition:.4s}.carousel[data-v-19a5c6e0]{width:100%;height:%?350?%}.carousel .carousel-item[data-v-19a5c6e0]{width:100%;height:100%;padding:0 %?28?%;overflow:hidden}.carousel uni-image[data-v-19a5c6e0]{width:100%;height:100%;border-radius:%?10?%;padding:%?20?%}.swiper-dots[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;left:%?60?%;bottom:%?15?%;width:%?72?%;height:%?36?%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTk4MzlBNjE0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTk4MzlBNjA0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0E3RUNERkE0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0E3RUNERkI0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);background-size:100% 100%}.swiper-dots .num[data-v-19a5c6e0]{width:%?36?%;height:%?36?%;border-radius:50px;font-size:%?24?%;color:#fff;text-align:center;line-height:%?36?%}.swiper-dots .sign[data-v-19a5c6e0]{position:absolute;top:0;left:50%;line-height:%?36?%;font-size:%?12?%;color:#fff;-webkit-transform:translateX(-50%);transform:translateX(-50%)}\n/* 分类 */.cate-section[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;padding:%?30?% %?22?%;background:#fff\n /* 原图标颜色太深,不想改图了,所以加了透明度 */}.cate-section .cate-item[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?26?%;color:#303133}.cate-section uni-image[data-v-19a5c6e0]{width:%?88?%;height:%?88?%;margin-bottom:%?14?%;border-radius:50%;opacity:.7;box-shadow:%?4?% %?4?% %?20?% rgba(250,67,106,.3)}.ad-1[data-v-19a5c6e0]{width:100%;height:%?210?%;padding:%?10?% 0;background:#fff}.ad-1 uni-image[data-v-19a5c6e0]{width:100%;height:100%}\n/* 秒杀专区 */.seckill-section[data-v-19a5c6e0]{padding:%?4?% %?30?% %?24?%;background:#fff}.seckill-section .s-header[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?92?%;line-height:1}.seckill-section .s-header .s-img[data-v-19a5c6e0]{width:%?140?%;height:%?30?%}.seckill-section .s-header .tip[data-v-19a5c6e0]{font-size:%?28?%;color:#909399;margin:0 %?20?% 0 %?40?%}.seckill-section .s-header .timer[data-v-19a5c6e0]{display:inline-block;width:%?40?%;height:%?36?%;text-align:center;line-height:%?36?%;margin-right:%?14?%;font-size:%?26?%;color:#fff;border-radius:2px;background:rgba(0,0,0,.8)}.seckill-section .s-header .icon-you[data-v-19a5c6e0]{font-size:%?32?%;color:#909399;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right}.seckill-section .floor-list[data-v-19a5c6e0]{white-space:nowrap}.seckill-section .scoll-wrapper[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.seckill-section .floor-item[data-v-19a5c6e0]{width:%?150?%;margin-right:%?20?%;font-size:%?26?%;color:#303133;line-height:1.8}.seckill-section .floor-item uni-image[data-v-19a5c6e0]{width:%?150?%;height:%?150?%;border-radius:%?6?%}.seckill-section .floor-item .price[data-v-19a5c6e0]{color:#fa436a}.f-header[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?140?%;padding:%?6?% %?30?% %?8?%;background:#fff}.f-header uni-image[data-v-19a5c6e0]{-webkit-flex-shrink:0;flex-shrink:0;width:%?80?%;height:%?80?%;margin-right:%?20?%}.f-header .tit-box[data-v-19a5c6e0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.f-header .tit[data-v-19a5c6e0]{font-size:%?34?%;color:#font-color-dark;line-height:1.3}.f-header .tit2[data-v-19a5c6e0]{font-size:%?24?%;color:#909399}.f-header .icon-you[data-v-19a5c6e0]{font-size:%?34?%;color:#909399}\n/* 团购楼层 */.group-section[data-v-19a5c6e0]{background:#fff}.group-section .g-swiper[data-v-19a5c6e0]{height:%?650?%;padding-bottom:%?30?%}.group-section .g-swiper-item[data-v-19a5c6e0]{width:100%;padding:0 %?30?%;display:-webkit-box;display:-webkit-flex;display:flex}.group-section uni-image[data-v-19a5c6e0]{width:100%;height:%?460?%;border-radius:4px}.group-section .g-item[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;overflow:hidden}.group-section .left[data-v-19a5c6e0]{-webkit-box-flex:1.2;-webkit-flex:1.2;flex:1.2;margin-right:%?24?%}.group-section .left .t-box[data-v-19a5c6e0]{padding-top:%?20?%}.group-section .right[data-v-19a5c6e0]{-webkit-box-flex:0.8;-webkit-flex:0.8;flex:0.8;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse}.group-section .right .t-box[data-v-19a5c6e0]{padding-bottom:%?20?%}.group-section .t-box[data-v-19a5c6e0]{height:%?160?%;font-size:%?30?%;color:#303133;line-height:1.6}.group-section .price[data-v-19a5c6e0]{color:#fa436a}.group-section .m-price[data-v-19a5c6e0]{font-size:%?26?%;text-decoration:line-through;color:#909399;margin-left:%?8?%}.group-section .pro-box[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-top:%?10?%;font-size:%?24?%;color:%?28?%;padding-right:%?10?%}.group-section .progress-box[data-v-19a5c6e0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;border-radius:10px;overflow:hidden;margin-right:%?8?%}\n/* 分类推荐楼层 */.hot-floor[data-v-19a5c6e0]{width:100%;overflow:hidden;margin-bottom:%?20?%}.hot-floor .floor-img-box[data-v-19a5c6e0]{width:100%;height:%?320?%;position:relative}.hot-floor .floor-img-box[data-v-19a5c6e0]:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;background:-webkit-linear-gradient(hsla(0,0%,100%,.06) 30%,#f8f8f8);background:linear-gradient(hsla(0,0%,100%,.06) 30%,#f8f8f8)}.hot-floor .floor-img[data-v-19a5c6e0]{width:100%;height:100%}.hot-floor .floor-list[data-v-19a5c6e0]{white-space:nowrap;padding:%?20?%;padding-right:%?50?%;border-radius:%?6?%;margin-top:%?-140?%;margin-left:%?30?%;background:#fff;box-shadow:1px 1px 5px rgba(0,0,0,.2);position:relative;z-index:1}.hot-floor .scoll-wrapper[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.hot-floor .floor-item[data-v-19a5c6e0]{width:%?180?%;margin-right:%?20?%;font-size:%?26?%;color:#303133;line-height:1.8}.hot-floor .floor-item uni-image[data-v-19a5c6e0]{width:%?180?%;height:%?180?%;border-radius:%?6?%}.hot-floor .floor-item .price[data-v-19a5c6e0]{color:#fa436a}.hot-floor .more[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-flex-shrink:0;flex-shrink:0;width:%?180?%;height:%?180?%;border-radius:%?6?%;background:#f3f3f3;font-size:%?28?%;color:#909399}.hot-floor .more uni-text[data-v-19a5c6e0]:first-child{margin-bottom:%?4?%}\n/* 猜你喜欢 */.guess-section[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;padding:0 %?30?%;background:#fff}.guess-section .guess-item[data-v-19a5c6e0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;width:48%;padding-bottom:%?40?%}.guess-section .guess-item[data-v-19a5c6e0]:nth-child(2n + 1){margin-right:4%}.guess-section .image-wrapper[data-v-19a5c6e0]{width:100%;height:%?330?%;border-radius:3px;overflow:hidden}.guess-section .image-wrapper uni-image[data-v-19a5c6e0]{width:100%;height:100%;opacity:1}.guess-section .title[data-v-19a5c6e0]{font-size:%?32?%;color:#303133;line-height:%?80?%}.guess-section .price[data-v-19a5c6e0]{font-size:%?32?%;color:#fa436a;line-height:1}.guess-section .price .sales[data-v-19a5c6e0]{color:#999;font-size:%?24?%}.guess-section .price .symbol[data-v-19a5c6e0]{font-size:%?24?%}body.?%PAGE?%[data-v-19a5c6e0]{background:#f5f5f5}',""]),t.exports=e},eef9:function(t,e,i){var a=i("28a4");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("eef38dfc",a,!0,{sourceMap:!1,shadowMode:!1})},fab1:function(t,e,i){"use strict";i.r(e);var a=i("5ec4"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},fc14:function(t,e,i){"use strict";var a=i("9ce8"),n=i.n(a);n.a}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.b9968746.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.b9968746.js new file mode 100644 index 0000000..bc18052 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.b9968746.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"28a4":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.uni-countdown[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:%?2?% 0}.uni-countdown__splitor[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;line-height:%?48?%;padding:%?5?%;font-size:%?24?%}.uni-countdown__number[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?52?%;height:%?48?%;line-height:%?48?%;margin:%?5?%;text-align:center;font-size:%?24?%}',""]),t.exports=e},"34b9":function(t,e,i){"use strict";var a=i("eef9"),o=i.n(a);o.a},"37ea":function(t,e,i){"use strict";var a,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-countdown"},[t.showDay?i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.d))]):t._e(),t.showDay?i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("天")]):t._e(),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.h))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"时"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.i))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"分"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.s))]),t.showColon?t._e():i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("秒")])],1)},n=[];i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}))},"4b80":function(t,e,i){"use strict";i.r(e);var a=i("37ea"),o=i("5357");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("34b9");var r,s=i("f0c5"),l=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"6b4ac154",null,!1,a["a"],r);e["default"]=l.exports},"4ecf":function(t,e,i){"use strict";var a={uniCountdown:i("4b80").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"carousel-section"},[i("v-uni-view",{staticClass:"titleNview-placing"}),i("v-uni-view",{staticClass:"titleNview-background",style:{backgroundColor:t.titleNViewBackground}}),i("v-uni-swiper",{staticClass:"carousel",attrs:{circular:!0},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.swiperChange.apply(void 0,arguments)}}},t._l(t.carouselList,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"carousel-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToDetailPage({product_id:e.product_id})}}},[i("v-uni-image",{attrs:{mode:"aspectFill",src:e.image}})],1)})),1),i("v-uni-view",{staticClass:"swiper-dots"},[i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.swiperCurrent+1))]),i("v-uni-text",{staticClass:"sign"},[t._v("/")]),i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.swiperLength))])],1)],1),i("v-uni-view",{staticClass:"cate-section"},t._l(t.menu,(function(e,a){return i("v-uni-view",{key:a,staticClass:"cate-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToList(e.id)}}},[i("v-uni-image",{attrs:{src:e.image}}),i("v-uni-text",[t._v(t._s(e.name))])],1)})),1),t.flashSale&&t.flashSale.product.length>0?i("v-uni-view",{staticClass:"seckill-section m-t"},[i("v-uni-view",{staticClass:"s-header",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTo("/pages/flash/list")}}},[i("v-uni-text",{staticClass:"miaosha"},[t._v("限时活动")]),t.flashSale.countdown?i("v-uni-text",{staticClass:"tip"},[t._v("下一场倒计时")]):i("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.flashSale.title))]),t.flashSale.countdown?i("uni-countdown",{ref:"countd",attrs:{"show-day":!!t.flashSale.countdown.day,day:t.day,hour:t.hour,minute:t.minute,second:t.second,color:"#FFFFFF","background-color":"#00B26A","border-color":"#00B26A"},on:{timeup:function(e){arguments[0]=e=t.$handleEvent(e),t.timeup.apply(void 0,arguments)}}}):t._e(),i("v-uni-text",{staticClass:"yticon icon-you"})],1),i("v-uni-scroll-view",{staticClass:"floor-list",attrs:{"scroll-x":!0}},[i("v-uni-view",{staticClass:"scoll-wrapper"},t._l(t.flashSale.product,(function(e,a){return i("v-uni-view",{key:a,staticClass:"floor-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToDetailPage({product_id:e.flash_product_id},t.flashSale.flash_id)}}},[i("v-uni-image",{attrs:{src:e.image,mode:"aspectFill"}}),i("v-uni-text",{staticClass:"title clamp"},[t._v(t._s(e.title))]),i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(e.sales_price))])],1)})),1)],1)],1):t._e()],1)},n=[];i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}))},5357:function(t,e,i){"use strict";i.r(e);var a=i("5608"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},5608:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniCountdown",props:{showDay:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#000000"},color:{type:String,default:"#000000"},splitorColor:{type:String,default:"#000000"},day:{type:Number,default:0},hour:{type:Number,default:0},minute:{type:Number,default:0},second:{type:Number,default:0},borderWidth:{type:String,default:"52rpx"}},data:function(){return{timer:null,syncFlag:!1,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}},watch:{day:function(t){this.changeFlag()},hour:function(t){this.changeFlag()},minute:function(t){this.changeFlag()},second:function(t){this.changeFlag()}},created:function(t){this.startData()},beforeDestroy:function(){clearInterval(this.timer)},methods:{toSeconds:function(t,e,i,a){return 60*t*60*24+60*e*60+60*i+a},timeUp:function(){clearInterval(this.timer),this.timer=0,this.$emit("timeup",this)},countDown:function(){var t=this.seconds,e=0,i=0,a=0,o=0;t>0?(e=Math.floor(t/86400),i=Math.floor(t/3600)-24*e,a=Math.floor(t/60)-24*e*60-60*i,o=Math.floor(t)-24*e*60*60-60*i*60-60*a):this.timeUp(),e<10&&(e="0"+e),i<10&&(i="0"+i),a<10&&(a="0"+a),o<10&&(o="0"+o),this.d=e,this.h=i,this.i=a,this.s=o},startData:function(){var t=this;this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.seconds<=0?this.timeUp():this.timer>0||(this.countDown(),this.timer=setInterval((function(){t.seconds--,t.seconds<0?t.timeUp():t.countDown()}),1e3))},changeFlag:function(){this.syncFlag||(this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.startData(),this.syncFlag=!0)}}};e.default=a},5816:function(t,e,i){var a=i("fc0e");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("475b8259",a,!0,{sourceMap:!1,shadowMode:!1})},"5ec4":function(t,e,i){"use strict";var a=i("ee27");i("99af"),i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var o=a(i("c964")),n=a(i("4b80")),r={components:{uniCountdown:n.default},data:function(){return{titleNViewBackground:"",swiperCurrent:0,swiperLength:0,carouselList:[],goodsList:[],menu:[],flashSale:"",page:1,pageSize:16,day:0,hour:0,minute:0,second:0}},computed:{},onLoad:function(){},onShow:function(){this.loadData()},onReachBottom:function(){this.getProduct()},onPullDownRefresh:function(){this.$refs&&this.$refs.countd&&(this.$refs.countd.syncFlag=!1),this.goodsList=[],this.page=1,this.loadData()},onShareAppMessage:function(t){},methods:{loadData:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t,e.next=3,t.$api.checkLogin();case 3:a=e.sent,a&&(uni.request({url:i.$unishow+"/ads/index",success:function(t){var e=t.data.data;i.titleNViewBackground=e[0].background,i.swiperLength=e.length,i.carouselList=e}}),uni.request({url:i.$unishow+"/category/menu",success:function(t){i.menu=t.data.data}}),uni.stopPullDownRefresh(),t.getFlash(),t.getProduct());case 5:case"end":return e.stop()}}),e)})))()},getProduct:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.checkLogin();case 2:if(i=e.sent,!i){e.next=8;break}return e.next=6,t.$api.request("/product/lists","GET",{page:t.page,pagesize:t.pageSize});case 6:a=e.sent,a&&(a.length>0?(a.forEach((function(e){t.goodsList.push(e)})),t.page++):t.$api.msg("没有更多数据"));case 8:case"end":return e.stop()}}),e)})))()},getFlash:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.request("/flash/index");case 2:i=e.sent,i&&(t.flashSale=i,t.day=i.countdown.day,t.hour=i.countdown.hour,t.minute=i.countdown.minute,t.second=i.countdown.second);case 4:case"end":return e.stop()}}),e)})))()},swiperChange:function(t){var e=t.detail.current;this.swiperCurrent=e,this.titleNViewBackground=this.carouselList[e].background},navToDetailPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.product_id;uni.navigateTo({url:"/pages/product/product?id=".concat(i,"&flash=").concat(e)})},timeup:function(){this.getFlash()},navTo:function(t){uni.navigateTo({url:t})},navToList:function(t){uni.navigateTo({url:"/pages/product/list?fid=".concat(t,"&sid=0")})}},onNavigationBarSearchInputClicked:function(){var t=(0,o.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$api.msg("点击了搜索框");case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onNavigationBarButtonTap:function(t){var e=t.index;0===e?this.$api.msg("点击了扫描"):1===e&&uni.navigateTo({url:"/pages/notice/notice"})}};e.default=r},"8d2d":function(t,e,i){"use strict";i.r(e);var a=i("4ecf"),o=i("fab1");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("8dd4");var r,s=i("f0c5"),l=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"0abb93a9",null,!1,a["a"],r);e["default"]=l.exports},"8dd4":function(t,e,i){"use strict";var a=i("5816"),o=i.n(a);o.a},eef9:function(t,e,i){var a=i("28a4");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("eef38dfc",a,!0,{sourceMap:!1,shadowMode:!1})},fab1:function(t,e,i){"use strict";i.r(e);var a=i("5ec4"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},fc0e:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body .cate-section[data-v-0abb93a9]{position:relative;z-index:5;border-radius:%?16?% %?16?% 0 0;margin-top:%?-20?%}uni-page-body .carousel-section[data-v-0abb93a9]{padding:0}uni-page-body .carousel-section .titleNview-placing[data-v-0abb93a9]{padding-top:0;height:0}uni-page-body .carousel-section .carousel .carousel-item[data-v-0abb93a9]{padding:0}uni-page-body .carousel-section .swiper-dots[data-v-0abb93a9]{left:%?45?%;bottom:%?40?%}uni-page-body[data-v-0abb93a9]{background:#f5f5f5}.m-t[data-v-0abb93a9]{margin-top:%?16?%}\n/* 头部 轮播图 */.carousel-section[data-v-0abb93a9]{position:relative;padding-top:10px}.carousel-section .titleNview-placing[data-v-0abb93a9]{height:0;padding-top:44px;box-sizing:initial}.carousel-section .titleNview-background[data-v-0abb93a9]{position:absolute;top:0;left:0;width:100%;height:%?426?%;-webkit-transition:.4s;transition:.4s}.carousel[data-v-0abb93a9]{width:100%;height:%?350?%}.carousel .carousel-item[data-v-0abb93a9]{width:100%;height:100%;padding:0 %?28?%;overflow:hidden}.carousel uni-image[data-v-0abb93a9]{width:100%;height:100%;border-radius:%?10?%;padding:%?20?%}.swiper-dots[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;left:%?60?%;bottom:%?15?%;width:%?72?%;height:%?36?%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTk4MzlBNjE0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTk4MzlBNjA0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0E3RUNERkE0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0E3RUNERkI0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);background-size:100% 100%}.swiper-dots .num[data-v-0abb93a9]{width:%?36?%;height:%?36?%;border-radius:50px;font-size:%?24?%;color:#fff;text-align:center;line-height:%?36?%}.swiper-dots .sign[data-v-0abb93a9]{position:absolute;top:0;left:50%;line-height:%?36?%;font-size:%?12?%;color:#fff;-webkit-transform:translateX(-50%);transform:translateX(-50%)}\n/* 分类 */.cate-section[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;padding:%?30?% %?22?%;background:#fff\n /* 原图标颜色太深,不想改图了,所以加了透明度 */}.cate-section .cate-item[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?26?%;color:#303133}.cate-section uni-image[data-v-0abb93a9]{width:%?88?%;height:%?88?%;margin-bottom:%?14?%;border-radius:50%;opacity:.7;box-shadow:%?4?% %?4?% %?20?% rgba(250,67,106,.3)}.ad-1[data-v-0abb93a9]{width:100%;height:%?210?%;padding:%?10?% 0;background:#fff}.ad-1 uni-image[data-v-0abb93a9]{width:100%;height:100%}\n/* 秒杀专区 */.seckill-section[data-v-0abb93a9]{padding:%?4?% %?30?% %?24?%;background:#fff}.seckill-section .miaosha[data-v-0abb93a9]{font-size:%?35?%;font-weight:1000;color:#fa436a}.seckill-section .s-header[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?92?%;line-height:1}.seckill-section .s-header .s-img[data-v-0abb93a9]{width:%?140?%;height:%?30?%}.seckill-section .s-header .tip[data-v-0abb93a9]{font-size:%?28?%;color:#909399;margin:0 %?20?% 0 %?40?%}.seckill-section .s-header .timer[data-v-0abb93a9]{display:inline-block;width:%?40?%;height:%?36?%;text-align:center;line-height:%?36?%;margin-right:%?14?%;font-size:%?26?%;color:#fff;border-radius:2px;background:rgba(0,0,0,.8)}.seckill-section .s-header .icon-you[data-v-0abb93a9]{font-size:%?32?%;color:#909399;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right}.seckill-section .floor-list[data-v-0abb93a9]{white-space:nowrap}.seckill-section .scoll-wrapper[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.seckill-section .floor-item[data-v-0abb93a9]{width:%?150?%;margin-right:%?20?%;font-size:%?26?%;color:#303133;line-height:1.8}.seckill-section .floor-item uni-image[data-v-0abb93a9]{width:%?150?%;height:%?150?%;border-radius:%?6?%}.seckill-section .floor-item .price[data-v-0abb93a9]{color:#fa436a}.f-header[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?140?%;padding:%?6?% %?30?% %?8?%;background:#fff}.f-header uni-image[data-v-0abb93a9]{-webkit-flex-shrink:0;flex-shrink:0;width:%?80?%;height:%?80?%;margin-right:%?20?%}.f-header .tit-box[data-v-0abb93a9]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.f-header .tit[data-v-0abb93a9]{font-size:%?34?%;color:#font-color-dark;line-height:1.3}.f-header .tit2[data-v-0abb93a9]{font-size:%?24?%;color:#909399}.f-header .icon-you[data-v-0abb93a9]{font-size:%?34?%;color:#909399}\n/* 团购楼层 */.group-section[data-v-0abb93a9]{background:#fff}.group-section .g-swiper[data-v-0abb93a9]{height:%?650?%;padding-bottom:%?30?%}.group-section .g-swiper-item[data-v-0abb93a9]{width:100%;padding:0 %?30?%;display:-webkit-box;display:-webkit-flex;display:flex}.group-section uni-image[data-v-0abb93a9]{width:100%;height:%?460?%;border-radius:4px}.group-section .g-item[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;overflow:hidden}.group-section .left[data-v-0abb93a9]{-webkit-box-flex:1.2;-webkit-flex:1.2;flex:1.2;margin-right:%?24?%}.group-section .left .t-box[data-v-0abb93a9]{padding-top:%?20?%}.group-section .right[data-v-0abb93a9]{-webkit-box-flex:0.8;-webkit-flex:0.8;flex:0.8;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse}.group-section .right .t-box[data-v-0abb93a9]{padding-bottom:%?20?%}.group-section .t-box[data-v-0abb93a9]{height:%?160?%;font-size:%?30?%;color:#303133;line-height:1.6}.group-section .price[data-v-0abb93a9]{color:#fa436a}.group-section .m-price[data-v-0abb93a9]{font-size:%?26?%;text-decoration:line-through;color:#909399;margin-left:%?8?%}.group-section .pro-box[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-top:%?10?%;font-size:%?24?%;color:%?28?%;padding-right:%?10?%}.group-section .progress-box[data-v-0abb93a9]{-webkit-box-flex:1;-webkit-flex:1;flex:1;border-radius:10px;overflow:hidden;margin-right:%?8?%}\n/* 分类推荐楼层 */.hot-floor[data-v-0abb93a9]{width:100%;overflow:hidden;margin-bottom:%?20?%}.hot-floor .floor-img-box[data-v-0abb93a9]{width:100%;height:%?320?%;position:relative}.hot-floor .floor-img-box[data-v-0abb93a9]:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;background:-webkit-linear-gradient(hsla(0,0%,100%,.06) 30%,#f8f8f8);background:linear-gradient(hsla(0,0%,100%,.06) 30%,#f8f8f8)}.hot-floor .floor-img[data-v-0abb93a9]{width:100%;height:100%}.hot-floor .floor-list[data-v-0abb93a9]{white-space:nowrap;padding:%?20?%;padding-right:%?50?%;border-radius:%?6?%;margin-top:%?-140?%;margin-left:%?30?%;background:#fff;box-shadow:1px 1px 5px rgba(0,0,0,.2);position:relative;z-index:1}.hot-floor .scoll-wrapper[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.hot-floor .floor-item[data-v-0abb93a9]{width:%?180?%;margin-right:%?20?%;font-size:%?26?%;color:#303133;line-height:1.8}.hot-floor .floor-item uni-image[data-v-0abb93a9]{width:%?180?%;height:%?180?%;border-radius:%?6?%}.hot-floor .floor-item .price[data-v-0abb93a9]{color:#fa436a}.hot-floor .more[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-flex-shrink:0;flex-shrink:0;width:%?180?%;height:%?180?%;border-radius:%?6?%;background:#f3f3f3;font-size:%?28?%;color:#909399}.hot-floor .more uni-text[data-v-0abb93a9]:first-child{margin-bottom:%?4?%}\n/* 猜你喜欢 */.guess-section[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;padding:0 %?30?%;background:#fff}.guess-section .guess-item[data-v-0abb93a9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;width:48%;padding-bottom:%?40?%}.guess-section .guess-item[data-v-0abb93a9]:nth-child(2n + 1){margin-right:4%}.guess-section .image-wrapper[data-v-0abb93a9]{width:100%;height:%?330?%;border-radius:3px;overflow:hidden}.guess-section .image-wrapper uni-image[data-v-0abb93a9]{width:100%;height:100%;opacity:1}.guess-section .title[data-v-0abb93a9]{font-size:%?32?%;color:#303133;line-height:%?80?%}.guess-section .price[data-v-0abb93a9]{font-size:%?32?%;color:#fa436a;line-height:1}.guess-section .price .sales[data-v-0abb93a9]{color:#999;font-size:%?24?%}.guess-section .price .symbol[data-v-0abb93a9]{font-size:%?24?%}body.?%PAGE?%[data-v-0abb93a9]{background:#f5f5f5}',""]),t.exports=e}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-money-pay.3e1483db.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-money-pay.3e1483db.js new file mode 100644 index 0000000..30be251 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-money-pay.3e1483db.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-pay"],{"186a":function(e,n,t){"use strict";var i,a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",{staticClass:"app"},[t("v-uni-view",{staticClass:"price-box"},[t("v-uni-text",[e._v("支付金额")]),t("v-uni-text",{staticClass:"price"},[e._v(e._s(e.total))])],1),t("v-uni-view",{staticClass:"pay-type-list"},[e.payTypeList.wxpay&&e.total>0?t("v-uni-view",{staticClass:"type-item b-b",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.changePayType(1)}}},[t("v-uni-text",{staticClass:"icon yticon icon-wxpay"}),t("v-uni-view",{staticClass:"con"},[t("v-uni-text",{staticClass:"tit"},[e._v("微信支付")])],1),t("v-uni-label",{staticClass:"radio"},[t("v-uni-radio",{attrs:{value:"",color:"#fa436a",checked:1==e.payType}})],1)],1):e._e(),e.payTypeList.alipay&&e.total>0?t("v-uni-view",{staticClass:"type-item b-b",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.changePayType(2)}}},[t("v-uni-text",{staticClass:"icon yticon icon-alipay"}),t("v-uni-view",{staticClass:"con"},[t("v-uni-text",{staticClass:"tit"},[e._v("支付宝支付")])],1),t("v-uni-label",{staticClass:"radio"},[t("v-uni-radio",{attrs:{value:"",color:"#fa436a",checked:2==e.payType}})],1)],1):e._e()],1),t("v-uni-text",{staticClass:"mix-btn",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.confirm.apply(void 0,arguments)}}},[e._v("确认支付")])],1)},r=[];t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return i}))},5757:function(e,n){function t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}e.exports=t},"75fe":function(e,n,t){"use strict";t.r(n);var i=t("186a"),a=t("84cc");for(var r in a)"default"!==r&&function(e){t.d(n,e,(function(){return a[e]}))}(r);t("e377");var o,c=t("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"5054ab64",null,!1,i["a"],o);n["default"]=s.exports},"82df":function(e,n,t){var i=t("be01");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=t("4f06").default;a("d05c4ec6",i,!0,{sourceMap:!1,shadowMode:!1})},"84cc":function(e,n,t){"use strict";t.r(n);var i=t("8e1a"),a=t.n(i);for(var r in i)"default"!==r&&function(e){t.d(n,e,(function(){return i[e]}))}(r);n["default"]=a.a},"8e1a":function(e,n,t){"use strict";var i=t("ee27");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("96cf");var a=i(t("c964")),r=t("a3c4"),o={data:function(){return{payType:1,orderInfo:{},orderId:"",out_trade_no:"",payTypeList:{wxpay:!1,alipay:!1},total:0}},onLoad:function(e){this.total=e.total,this.orderId=e.order_id,this.out_trade_no=e.out_trade_no,this.getPayType()},methods:{getPayType:function(){var e=this;return(0,a.default)(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.request("/pay/getPayType");case 2:t=n.sent,t&&(e.payTypeList=t);case 4:case"end":return n.stop()}}),n)})))()},changePayType:function(e){switch(this.payType=e,e){case 1:break;case 2:break}},confirm:function(){var e=this;return(0,a.default)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:1==e.payType?e.weixinPay():2==e.payType&&e.alipay();case 1:case"end":return n.stop()}}),n)})))()},alipay:function(){var e=this;return(0,a.default)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:window.open(e.$unishow+"/pay/alipay?order_id="+e.orderId),setTimeout((function(){uni.showModal({title:"提示",content:"是否已支付?",cancelText:"否",confirmText:"是",success:function(e){e.confirm?uni.redirectTo({url:"/pages/order/order?state=0"}):e.cancel},fail:function(e){}})}),3e3);case 2:case"end":return n.stop()}}),n)})))()},weixinPay:function(){var e=this;return(0,a.default)(regeneratorRuntime.mark((function n(){var t,i,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.request("/pay/unify","GET",{order_id:e.orderId});case 2:if(t=n.sent,i=e,!t){n.next=14;break}if("MWEB"!=t.trade_type){n.next=9;break}location.href=t.mweb_url,n.next=14;break;case 9:if("JSAPI"!=t.trade_type){n.next=14;break}return n.next=12,e.$api.request("/pay/jssdkBuildConfig");case 12:a=n.sent,a?(r.config(a),r.ready((function(){r.chooseWXPay({timestamp:t.timeStamp,nonceStr:t.nonce_str,package:"prepay_id="+t.prepay_id,signType:"MD5",paySign:t.paySign,success:function(e){uni.redirectTo({url:"/pages/money/paySuccess"})},fail:function(e){i.$api.msg("支付失败")}})})),r.error((function(e){i.$api.msg("支付失败")}))):i.$api.msg("支付失败");case 14:case"end":return n.stop()}}),n)})))()},offlinePay:function(){var e=this;return(0,a.default)(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.request("/pay/offline","GET",{order_id:e.orderId});case 2:t=n.sent,t&&uni.redirectTo({url:"/pages/money/paySuccess"});case 4:case"end":return n.stop()}}),n)})))()}}};n.default=o},a3c4:function(e,n,t){var i;t("c975"),t("ac1f"),t("466d"),t("5319"),t("1276");var a=t("5757");!function(a,r){i=function(){return r(a)}.call(n,t,n,e),void 0===i||(e.exports=i)}(window,(function(e,n){if(!e.jWeixin){var t,i,r={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},o=function(){var e={};for(var n in r)e[r[n]]=n;return e}(),c=e.document,s=c.title,d=navigator.userAgent.toLowerCase(),u=navigator.platform.toLowerCase(),l=!(!u.match("mac")&&!u.match("win")),p=-1!=d.indexOf("wxdebugger"),f=-1!=d.indexOf("micromessenger"),g=-1!=d.indexOf("android"),m=-1!=d.indexOf("iphone")||-1!=d.indexOf("ipad"),y=(i=d.match(/micromessenger\/(\d+\.\d+\.\d+)/)||d.match(/micromessenger\/(\d+\.\d+)/))?i[1]:"",v={initStartTime:E(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},h={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:m?1:g?2:-1,clientVersion:y,url:encodeURIComponent(location.href)},w={},b={_completes:[]},k={state:0,data:{}};O((function(){v.initEndTime=E()}));var x=!1,_=[],S=(t={config:function(n){B("config",w=n);var t=!1!==w.check;O((function(){if(t)M(r.config,{verifyJsApiList:L(w.jsApiList),verifyOpenTagList:L(w.openTagList)},function(){b._complete=function(e){v.preVerifyEndTime=E(),k.state=1,k.data=e},b.success=function(e){h.isPreVerifyOk=0},b.fail=function(e){b._fail?b._fail(e):k.state=-1};var e=b._completes;return e.push((function(){!function(){if(!(l||p||w.debug||y<"6.0.2"||h.systemType<0)){var e=new Image;h.appId=w.appId,h.initTime=v.initEndTime-v.initStartTime,h.preVerifyTime=v.preVerifyEndTime-v.preVerifyStartTime,S.getNetworkType({isInnerInvoke:!0,success:function(n){h.networkType=n.networkType;var t="https://open.weixin.qq.com/sdk/report?v="+h.version+"&o="+h.isPreVerifyOk+"&s="+h.systemType+"&c="+h.clientVersion+"&a="+h.appId+"&n="+h.networkType+"&i="+h.initTime+"&p="+h.preVerifyTime+"&u="+h.url;e.src=t}})}}()})),b.complete=function(n){for(var t=0,i=e.length;t0?n("v-uni-view",{staticClass:"type-item b-b",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changePayType(1)}}},[n("v-uni-text",{staticClass:"icon yticon icon-wxpay"}),n("v-uni-view",{staticClass:"con"},[n("v-uni-text",{staticClass:"tit"},[e._v("微信支付")])],1),n("v-uni-label",{staticClass:"radio"},[n("v-uni-radio",{attrs:{value:"",color:"#fa436a",checked:1==e.payType}})],1)],1):e._e(),e.payTypeList.alipay&&e.total>0?n("v-uni-view",{staticClass:"type-item b-b",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changePayType(2)}}},[n("v-uni-text",{staticClass:"icon yticon icon-alipay"}),n("v-uni-view",{staticClass:"con"},[n("v-uni-text",{staticClass:"tit"},[e._v("支付宝支付")])],1),n("v-uni-label",{staticClass:"radio"},[n("v-uni-radio",{attrs:{value:"",color:"#fa436a",checked:2==e.payType}})],1)],1):e._e(),e.payTypeList.offline?n("v-uni-view",{staticClass:"type-item b-b",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changePayType(3)}}},[n("v-uni-text",{staticClass:"icon yticon icon-pay"}),n("v-uni-view",{staticClass:"con"},[n("v-uni-text",{staticClass:"tit"},[e._v("货到付款")])],1),n("v-uni-label",{staticClass:"radio"},[n("v-uni-radio",{attrs:{value:"",color:"#fa436a",checked:3==e.payType}})],1)],1):e._e()],1),n("v-uni-text",{staticClass:"mix-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[e._v("确认支付")])],1)},o=[];n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}))},a3c4:function(e,t,n){var i;n("c975"),n("ac1f"),n("466d"),n("5319"),n("1276");var a=n("5757");!function(a,o){i=function(){return o(a)}.call(t,n,t,e),void 0===i||(e.exports=i)}(window,(function(e,t){if(!e.jWeixin){var n,i,o={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},r=function(){var e={};for(var t in o)e[o[t]]=t;return e}(),c=e.document,s=c.title,u=navigator.userAgent.toLowerCase(),d=navigator.platform.toLowerCase(),l=!(!d.match("mac")&&!d.match("win")),p=-1!=u.indexOf("wxdebugger"),f=-1!=u.indexOf("micromessenger"),g=-1!=u.indexOf("android"),m=-1!=u.indexOf("iphone")||-1!=u.indexOf("ipad"),y=(i=u.match(/micromessenger\/(\d+\.\d+\.\d+)/)||u.match(/micromessenger\/(\d+\.\d+)/))?i[1]:"",v={initStartTime:E(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},h={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:m?1:g?2:-1,clientVersion:y,url:encodeURIComponent(location.href)},w={},k={_completes:[]},x={state:0,data:{}};O((function(){v.initEndTime=E()}));var b=!1,_=[],T=(n={config:function(t){B("config",w=t);var n=!1!==w.check;O((function(){if(n)P(o.config,{verifyJsApiList:L(w.jsApiList),verifyOpenTagList:L(w.openTagList)},function(){k._complete=function(e){v.preVerifyEndTime=E(),x.state=1,x.data=e},k.success=function(e){h.isPreVerifyOk=0},k.fail=function(e){k._fail?k._fail(e):x.state=-1};var e=k._completes;return e.push((function(){!function(){if(!(l||p||w.debug||y<"6.0.2"||h.systemType<0)){var e=new Image;h.appId=w.appId,h.initTime=v.initEndTime-v.initStartTime,h.preVerifyTime=v.preVerifyEndTime-v.preVerifyStartTime,T.getNetworkType({isInnerInvoke:!0,success:function(t){h.networkType=t.networkType;var n="https://open.weixin.qq.com/sdk/report?v="+h.version+"&o="+h.isPreVerifyOk+"&s="+h.systemType+"&c="+h.clientVersion+"&a="+h.appId+"&n="+h.networkType+"&i="+h.initTime+"&p="+h.preVerifyTime+"&u="+h.url;e.src=n}})}}()})),k.complete=function(t){for(var n=0,i=e.length;n=t.pageSize?n.loadingType="more":n.loadingType="noMore",n.page++,o.forEach((function(e){e=Object.assign(e,t.orderStateExp(e.state)),n.orderList.push(e)})),t.$set(n,"loaded",!0)):n.loadingType="more";case 15:case"end":return a.stop()}}),a)})))()},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.loadData("tabChange")},tabClick:function(e){this.tabCurrentIndex=e},deleteOrder:function(e){var t=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i,r,o,d,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,uni.showModal({title:"确认删除订单"});case 2:if(i=a.sent,r=(0,n.default)(i,2),r[0],o=r[1],!o.confirm){a.next=12;break}return d=t.navList[t.tabCurrentIndex].orderList[e].order_id,a.next=10,t.$api.request("/order/delete?order_id="+d);case 10:s=a.sent,s&&t.navList[t.tabCurrentIndex].orderList.splice(e,1);case 12:case"end":return a.stop()}}),a)})))()},cancelOrder:function(e){var t=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i,r,o,d,s,l,c,u,b,p,f;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t,a.next=3,uni.showModal({title:"确认取消订单",content:"取消之后不可恢复"});case 3:if(r=a.sent,o=(0,n.default)(r,2),o[0],d=o[1],!d.confirm){a.next=13;break}return a.next=10,i.$api.request("/order/cancel?order_id="+e.order_id);case 10:return s=a.sent,s&&(l=i.orderStateExp(9),c=l.stateTip,u=l.stateTipColor,e=Object.assign(e,{state:9,stateTip:c,stateTipColor:u}),b=i.navList[0].orderList.findIndex((function(t){return t.order_id===e.order_id})),-1!==b&&(i.navList[0].orderList[b]=e),p=i.navList[1].orderList,f=p.findIndex((function(t){return t.order_id===e.order_id})),-1!==f&&p.splice(f,1)),a.abrupt("return",!0);case 13:return a.abrupt("return",!1);case 14:case"end":return a.stop()}}),a)})))()},refunded:function(e){var t=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i,r,o,d,s,l,c,u,b,p,f;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t,a.next=3,uni.showModal({title:"确认退款",content:"退款之后不可恢复"});case 3:if(r=a.sent,o=(0,n.default)(r,2),o[0],d=o[1],!d.confirm){a.next=14;break}return a.next=10,i.$api.request("/order/doRefund","POST",{order_id:e.order_id});case 10:return s=a.sent,console.log(s),s&&(l=i.orderStateExp(9),c=l.stateTip,u=l.stateTipColor,e=Object.assign(e,{state:9,stateTip:c,stateTipColor:u}),b=i.navList[0].orderList.findIndex((function(t){return t.order_id===e.order_id})),-1!==b&&(i.navList[0].orderList[b]=e),p=i.navList[2].orderList,f=p.findIndex((function(t){return t.order_id===e.order_id})),-1!==f&&p.splice(f,1)),a.abrupt("return",!0);case 14:return a.abrupt("return",!1);case 15:case"end":return a.stop()}}),a)})))()},receivedOrder:function(e){var t=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i,r,o,d,s,l,c,u,b,p,f,v;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t,a.next=3,uni.showModal({title:"确认收货"});case 3:if(r=a.sent,o=(0,n.default)(r,2),o[0],d=o[1],1!=d.confirm){a.next=13;break}return a.next=10,i.$api.request("/order/received","GET",{order_id:e.order_id});case 10:return s=a.sent,s&&(l=i.orderStateExp(4),c=l.stateTip,u=l.stateTipColor,b=i.navList[0].orderList.findIndex((function(t){return t.order_id===e.order_id})),-1!==b&&(p=i.navList[0].orderList[b],console.log(p),i.navList[0].orderList[b]=Object.assign(p,{state:4,stateTip:c,stateTipColor:u,have_received:1})),f=i.navList[3].orderList,v=f.findIndex((function(t){return t.order_id===e.order_id})),-1!==v&&f.splice(v,1)),a.abrupt("return",!0);case 13:return t.$api.msg("收货失败"),a.abrupt("return",!1);case 15:case"end":return a.stop()}}),a)})))()},orderStateExp:function(e){var t="",a="#fa436a";switch(+e){case 0:t="交易成功";break;case 1:t="待付款";break;case 2:t="待发货";break;case 3:t="待收货";break;case 4:t="已完成";break;case 5:t="已取消";break;case 6:t="拒绝退款";break;case 9:t="订单已关闭",a="#909399";break}return{stateTip:t,stateTipColor:a}},quantity:function(e){var t=0;for(var a in e)t+=parseInt(e[a].number);return t},navTo:function(e){this.$api.navTo(e)},button:function(e,t){switch(e){case"cancel":this.cancelOrder(t);break;case"pay":this.navTo("/pages/money/pay?order_id="+t.order_id+"&total="+t.total_price);break;case"delivery":this.navTo("/pages/public/webview?type=kd&number="+t.extend.express_number);break;case"recerved":this.receivedOrder(t);break;case"evaluate":this.$api.navTo("/pages/order/evaluate?product_id="+t.id+"&order_id="+t.order_id+"&image="+t.image+"&title="+t.title+"&spec="+t.spec);break;case"refund":this.$api.navTo("/pages/order/refund?order_id="+t.order_id);break;case"refunded":this.refunded(t);break}},pullDownRefresh:function(){this.navList=[],this.navList=[{state:0,text:"全部",loadingType:"more",orderList:[],page:1},{state:1,text:"待付款",loadingType:"more",orderList:[],page:1},{state:2,text:"待发货",loadingType:"more",orderList:[],page:1},{state:3,text:"待收货",loadingType:"more",orderList:[],page:1},{state:4,text:"已完成",loadingType:"more",orderList:[],page:1},{state:5,text:"已取消",loadingType:"more",orderList:[],page:1}],this.loadData()}}};t.default=s},"5b89":function(e,t,a){"use strict";var i=a("658e"),n=a.n(i);n.a},"658e":function(e,t,a){var i=a("82da");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("3e980878",i,!0,{sourceMap:!1,shadowMode:!1})},"82da":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-b1459aaa],\n.content[data-v-b1459aaa]{background:#f8f8f8;height:100%}.swiper-box[data-v-b1459aaa]{height:calc(100% - 40px)}.list-scroll-content[data-v-b1459aaa]{height:100%}.navbar[data-v-b1459aaa]{display:-webkit-box;display:-webkit-flex;display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-b1459aaa]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-b1459aaa]{color:#fa436a}.navbar .nav-item.current[data-v-b1459aaa]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #fa436a}.uni-swiper-item[data-v-b1459aaa]{height:auto}.order-item[data-v-b1459aaa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding-left:%?30?%;background:#fff;margin-top:%?16?%\n /* 多条商品 */\n /* 单条商品 */}.order-item .i-top[data-v-b1459aaa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;padding-right:%?30?%;font-size:%?28?%;color:#303133;position:relative}.order-item .i-top .time[data-v-b1459aaa]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.order-item .i-top .state[data-v-b1459aaa]{color:#fa436a}.order-item .i-top .del-btn[data-v-b1459aaa]{padding:%?10?% 0 %?10?% %?36?%;font-size:%?32?%;color:#909399;position:relative}.order-item .i-top .del-btn[data-v-b1459aaa]:after{content:"";width:0;height:%?30?%;border-left:1px solid #dcdfe6;position:absolute;left:%?20?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.order-item .goods-box[data-v-b1459aaa]{height:%?160?%;padding:%?20?% 0;white-space:nowrap}.order-item .goods-box .goods-item[data-v-b1459aaa]{width:%?120?%;height:%?120?%;display:inline-block;margin-right:%?24?%}.order-item .goods-box .goods-img[data-v-b1459aaa]{display:block;width:100%;height:100%}.order-item .goods-box-single[data-v-b1459aaa]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0}.order-item .goods-box-single .goods-img[data-v-b1459aaa]{display:block;width:%?120?%;height:%?120?%}.order-item .goods-box-single .right[data-v-b1459aaa]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:0 %?30?% 0 %?24?%;overflow:hidden;position:relative}.order-item .goods-box-single .right .title[data-v-b1459aaa]{font-size:%?30?%;color:#303133;line-height:1}.order-item .goods-box-single .right .attr-box[data-v-b1459aaa]{font-size:%?26?%;color:#909399;padding:%?10?% %?12?%}.order-item .goods-box-single .right .price[data-v-b1459aaa]{font-size:%?30?%;color:#303133}.order-item .goods-box-single .right .price[data-v-b1459aaa]:before{content:"¥";font-size:%?24?%;margin:0 %?2?% 0 %?8?%}.order-item .goods-box-single .right .action-btn[data-v-b1459aaa]{width:%?160?%;height:%?60?%;padding:0;text-align:center;line-height:%?60?%;font-size:%?26?%;color:#303133;background:#fff;border-radius:100px;float:right;position:absolute;right:%?30?%;bottom:0}.order-item .goods-box-single .right .refund[data-v-b1459aaa]{position:absolute;right:%?30?%;font-size:%?28?%;color:#fa436a;top:%?35?%}.order-item .price-box[data-v-b1459aaa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;padding:%?20?% %?30?%;font-size:%?26?%;color:#909399}.order-item .price-box .num[data-v-b1459aaa]{margin:0 %?8?%;color:#303133}.order-item .price-box .price[data-v-b1459aaa]{font-size:%?32?%;color:#303133}.order-item .price-box .price[data-v-b1459aaa]:before{content:"¥";font-size:%?24?%;margin:0 %?2?% 0 %?8?%}.order-item .action-box[data-v-b1459aaa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?100?%;position:relative;padding-right:%?30?%}.order-item .action-btn[data-v-b1459aaa]{width:%?160?%;height:%?60?%;margin:0;margin-left:%?24?%;padding:0;text-align:center;line-height:%?60?%;font-size:%?26?%;color:#303133;background:#fff;border-radius:100px}.order-item .action-btn[data-v-b1459aaa]:after{border-radius:100px}.order-item .action-btn.recom[data-v-b1459aaa]{background:#fff9f9;color:#fa436a}.order-item .action-btn.recom[data-v-b1459aaa]:after{border-color:#f7bcc8}\n/* load-more */.uni-load-more[data-v-b1459aaa]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.uni-load-more__text[data-v-b1459aaa]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-b1459aaa]{height:24px;width:24px;margin-right:10px}.uni-load-more__img > uni-view[data-v-b1459aaa]{position:absolute}.uni-load-more__img > uni-view uni-view[data-v-b1459aaa]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-b1459aaa 1.56s ease infinite;animation:load-data-v-b1459aaa 1.56s ease infinite}.uni-load-more__img > uni-view uni-view[data-v-b1459aaa]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-b1459aaa]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img > uni-view uni-view[data-v-b1459aaa]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-b1459aaa]:nth-child(4){top:11px;left:0}.load1[data-v-b1459aaa],\n.load2[data-v-b1459aaa],\n.load3[data-v-b1459aaa]{height:24px;width:24px}.load2[data-v-b1459aaa]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-b1459aaa]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-b1459aaa]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-b1459aaa]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-b1459aaa]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-b1459aaa]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-b1459aaa]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-b1459aaa]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-b1459aaa]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-b1459aaa]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-b1459aaa]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-b1459aaa]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-b1459aaa]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-b1459aaa]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-b1459aaa{0%{opacity:1}100%{opacity:.2}}body.?%PAGE?%[data-v-b1459aaa]{background:#f8f8f8}',""]),e.exports=t},bbf1:function(e,t,a){"use strict";a.r(t);var i=a("3139"),n=a.n(i);for(var r in i)"default"!==r&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},d5f0:function(e,t,a){"use strict";var i={uniLoadMore:a("8097").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"navbar"},e._l(e.navList,(function(t,i){return a("v-uni-view",{key:i,staticClass:"nav-item",class:{current:e.tabCurrentIndex===i},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.tabClick(i)}}},[e._v(e._s(t.text))])})),1),a("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:e.tabCurrentIndex,duration:"300"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTab.apply(void 0,arguments)}}},e._l(e.navList,(function(t,i){return a("v-uni-swiper-item",{key:i,staticClass:"tab-content"},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(t){arguments[0]=t=e.$handleEvent(t),e.loadData.apply(void 0,arguments)}}},[!0===t.loaded&&0===t.orderList.length?a("empty"):e._e(),e._l(t.orderList,(function(t,i){return a("v-uni-view",{key:i,staticClass:"order-item",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.navTo("/pages/order/orderDetail?order_id="+t.order_id)}}},[a("v-uni-view",{staticClass:"i-top b-b"},[a("v-uni-text",{staticClass:"time"},[e._v(e._s(t.createtime))]),a("v-uni-text",{staticClass:"state",style:{color:t.stateTipColor}},[e._v(e._s(t.stateTip+(t.refund_status_text?":"+t.refund_status_text:"")))]),9===t.state?a("v-uni-text",{staticClass:"del-btn yticon icon-lajitong",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.deleteOrder(i)}}}):e._e()],1),e._l(t.products,(function(t,i){return a("v-uni-view",{key:i,staticClass:"goods-box-single"},[a("v-uni-image",{staticClass:"goods-img",attrs:{src:t.image,mode:"aspectFill"}}),a("v-uni-view",{staticClass:"right"},[t.refund?a("v-uni-text",{staticClass:"refund"},[e._v("退款成功")]):e._e(),a("v-uni-text",{staticClass:"title clamp"},[e._v(e._s(t.title))]),a("v-uni-text",{staticClass:"attr-box"},[e._v(e._s(t.spec)+" x "+e._s(t.number))]),a("v-uni-text",{staticClass:"price"},[e._v(e._s(t.price))])],1)],1)})),a("v-uni-view",{staticClass:"price-box"},[e._v("共"),a("v-uni-text",{staticClass:"num"},[e._v(e._s(e.quantity(t.products)))]),e._v("件商品 合计"),a("v-uni-text",{staticClass:"price"},[e._v(e._s(t.total_price))]),t.discount_price>0?a("v-uni-text",[e._v("(已优惠¥"+e._s(t.discount_price)+")")]):e._e()],1),9!=t.state?a("v-uni-view",{staticClass:"action-box b-t"},[1==t.state?a("v-uni-button",{staticClass:"action-btn",on:{click:function(a){a.stopPropagation(),arguments[0]=a=e.$handleEvent(a),e.button("cancel",t)}}},[e._v("取消订单")]):e._e(),0==t.have_paid?a("v-uni-button",{staticClass:"action-btn recom",on:{click:function(a){a.stopPropagation(),arguments[0]=a=e.$handleEvent(a),e.button("pay",t)}}},[e._v("立即支付")]):e._e(),2==t.state?a("v-uni-button",{staticClass:"action-btn recom",on:{click:function(a){a.stopPropagation(),arguments[0]=a=e.$handleEvent(a),e.button("refunded",t)}}},[e._v("退款")]):e._e()],1):e._e()],2)})),a("uni-load-more",{attrs:{status:t.loadingType}})],2)],1)})),1)],1)},r=[];a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}))},dcd5:function(e,t,a){"use strict";a.r(t);var i=a("d5f0"),n=a("bbf1");for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("5b89");var o,d=a("f0c5"),s=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"b1459aaa",null,!1,i["a"],o);t["default"]=s.exports}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-order.e633a993.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-order.e633a993.js deleted file mode 100644 index 1dc3e43..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-order.e633a993.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-order"],{3139:function(t,e,a){"use strict";var i=a("ee27");a("c740"),a("4160"),a("a434"),a("e25e"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("d0af"));a("96cf");var r=i(a("c964")),o=i(a("8097")),d=i(a("ad6c")),s={components:{uniLoadMore:o.default,empty:d.default},data:function(){return{tabCurrentIndex:0,navList:[{state:0,text:"全部",loadingType:"more",orderList:[],page:1},{state:1,text:"待付款",loadingType:"more",orderList:[],page:1},{state:2,text:"待发货",loadingType:"more",orderList:[],page:1},{state:3,text:"待收货",loadingType:"more",orderList:[],page:1},{state:4,text:"评价",loadingType:"more",orderList:[],page:1},{state:5,text:"售后",loadingType:"more",orderList:[],page:1}],pageSize:10}},onLoad:function(t){this.tabCurrentIndex=+t.state,this.loadData()},onPullDownRefresh:function(){this.pullDownRefresh()},methods:{loadData:function(t){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i,n,r,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=e.tabCurrentIndex,n=e.navList[i],r=n.state,"tabChange"!==t||!0!==n.loaded){a.next=5;break}return a.abrupt("return");case 5:if("loading"!==n.loadingType){a.next=7;break}return a.abrupt("return");case 7:if("noMore"!=n.loadingType){a.next=9;break}return a.abrupt("return");case 9:return n.loadingType="loading",a.next=12,e.$api.request("/order/getOrders","GET",{type:r,page:n.page,pagesize:e.pageSize});case 12:o=a.sent,uni.stopPullDownRefresh(),o?(o.length>=e.pageSize?n.loadingType="more":n.loadingType="noMore",n.page++,o.forEach((function(t){t=Object.assign(t,e.orderStateExp(t.state)),n.orderList.push(t)})),e.$set(n,"loaded",!0)):n.loadingType="more";case 15:case"end":return a.stop()}}),a)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t},deleteOrder:function(t){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i,r,o,d,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,uni.showModal({title:"确认删除订单"});case 2:if(i=a.sent,r=(0,n.default)(i,2),r[0],o=r[1],!o.confirm){a.next=12;break}return d=e.navList[e.tabCurrentIndex].orderList[t].order_id,a.next=10,e.$api.request("/order/delete?order_id="+d);case 10:s=a.sent,s&&e.navList[e.tabCurrentIndex].orderList.splice(t,1);case 12:case"end":return a.stop()}}),a)})))()},cancelOrder:function(t){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i,r,o,d,s,c,l,u,p,b,v;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=e,a.next=3,uni.showModal({title:"确认取消订单",content:"取消之后不可恢复"});case 3:if(r=a.sent,o=(0,n.default)(r,2),o[0],d=o[1],!d.confirm){a.next=13;break}return a.next=10,i.$api.request("/order/cancel?order_id="+t.order_id);case 10:return s=a.sent,s&&(c=i.orderStateExp(9),l=c.stateTip,u=c.stateTipColor,t=Object.assign(t,{state:9,stateTip:l,stateTipColor:u}),p=i.navList[0].orderList.findIndex((function(e){return e.order_id===t.order_id})),-1!==p&&(i.navList[0].orderList[p]=t),b=i.navList[1].orderList,v=b.findIndex((function(e){return e.order_id===t.order_id})),-1!==v&&b.splice(v,1)),a.abrupt("return",!0);case 13:return a.abrupt("return",!1);case 14:case"end":return a.stop()}}),a)})))()},receivedOrder:function(t){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i,r,o,d,s,c,l,u,p,b,v,f;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=e,a.next=3,uni.showModal({title:"确认收货"});case 3:if(r=a.sent,o=(0,n.default)(r,2),o[0],d=o[1],1!=d.confirm){a.next=13;break}return a.next=10,i.$api.request("/order/received","GET",{order_id:t.order_id});case 10:return s=a.sent,s&&(c=i.orderStateExp(4),l=c.stateTip,u=c.stateTipColor,p=i.navList[0].orderList.findIndex((function(e){return e.order_id===t.order_id})),-1!==p&&(b=i.navList[0].orderList[p],console.log(b),i.navList[0].orderList[p]=Object.assign(b,{state:4,stateTip:l,stateTipColor:u,have_received:1})),v=i.navList[3].orderList,f=v.findIndex((function(e){return e.order_id===t.order_id})),-1!==f&&v.splice(f,1)),a.abrupt("return",!0);case 13:return e.$api.msg("收货失败"),a.abrupt("return",!1);case 15:case"end":return a.stop()}}),a)})))()},orderStateExp:function(t){var e="",a="#fa436a";switch(+t){case 0:e="交易成功";break;case 1:e="待付款";break;case 2:e="待发货";break;case 3:e="待收货";break;case 4:e="待评价";break;case 5:e="售后";break;case 6:e="拒绝退款";break;case 9:e="订单已关闭",a="#909399";break}return{stateTip:e,stateTipColor:a}},quantity:function(t){var e=0;for(var a in t)e+=parseInt(t[a].number);return e},navTo:function(t){this.$api.navTo(t)},button:function(t,e){switch(t){case"cancel":this.cancelOrder(e);break;case"pay":this.navTo("/pages/money/pay?order_id="+e.order_id+"&total="+e.total_price);break;case"delivery":this.navTo("/pages/public/webview?type=kd&number="+e.extend.express_number);break;case"recerved":this.receivedOrder(e);break;case"evaluate":this.$api.navTo("/pages/order/evaluate?product_id="+e.id+"&order_id="+e.order_id+"&image="+e.image+"&title="+e.title+"&spec="+e.spec);break;case"refund":this.$api.navTo("/pages/order/refund?order_id="+e.order_id);break}},pullDownRefresh:function(){this.navList=[],this.navList=[{state:0,text:"全部",loadingType:"more",orderList:[],page:1},{state:1,text:"待付款",loadingType:"more",orderList:[],page:1},{state:2,text:"待发货",loadingType:"more",orderList:[],page:1},{state:3,text:"待收货",loadingType:"more",orderList:[],page:1},{state:4,text:"评价",loadingType:"more",orderList:[],page:1},{state:5,text:"售后",loadingType:"more",orderList:[],page:1}],this.loadData()}}};e.default=s},5689:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-0c0a91a7],\n.content[data-v-0c0a91a7]{background:#f8f8f8;height:100%}.swiper-box[data-v-0c0a91a7]{height:calc(100% - 40px)}.list-scroll-content[data-v-0c0a91a7]{height:100%}.navbar[data-v-0c0a91a7]{display:-webkit-box;display:-webkit-flex;display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-0c0a91a7]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-0c0a91a7]{color:#fa436a}.navbar .nav-item.current[data-v-0c0a91a7]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #fa436a}.uni-swiper-item[data-v-0c0a91a7]{height:auto}.order-item[data-v-0c0a91a7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding-left:%?30?%;background:#fff;margin-top:%?16?%\n /* 多条商品 */\n /* 单条商品 */}.order-item .i-top[data-v-0c0a91a7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;padding-right:%?30?%;font-size:%?28?%;color:#303133;position:relative}.order-item .i-top .time[data-v-0c0a91a7]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.order-item .i-top .state[data-v-0c0a91a7]{color:#fa436a}.order-item .i-top .del-btn[data-v-0c0a91a7]{padding:%?10?% 0 %?10?% %?36?%;font-size:%?32?%;color:#909399;position:relative}.order-item .i-top .del-btn[data-v-0c0a91a7]:after{content:"";width:0;height:%?30?%;border-left:1px solid #dcdfe6;position:absolute;left:%?20?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.order-item .goods-box[data-v-0c0a91a7]{height:%?160?%;padding:%?20?% 0;white-space:nowrap}.order-item .goods-box .goods-item[data-v-0c0a91a7]{width:%?120?%;height:%?120?%;display:inline-block;margin-right:%?24?%}.order-item .goods-box .goods-img[data-v-0c0a91a7]{display:block;width:100%;height:100%}.order-item .goods-box-single[data-v-0c0a91a7]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0}.order-item .goods-box-single .goods-img[data-v-0c0a91a7]{display:block;width:%?120?%;height:%?120?%}.order-item .goods-box-single .right[data-v-0c0a91a7]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:0 %?30?% 0 %?24?%;overflow:hidden;position:relative}.order-item .goods-box-single .right .title[data-v-0c0a91a7]{font-size:%?30?%;color:#303133;line-height:1}.order-item .goods-box-single .right .attr-box[data-v-0c0a91a7]{font-size:%?26?%;color:#909399;padding:%?10?% %?12?%}.order-item .goods-box-single .right .price[data-v-0c0a91a7]{font-size:%?30?%;color:#303133}.order-item .goods-box-single .right .price[data-v-0c0a91a7]:before{content:"¥";font-size:%?24?%;margin:0 %?2?% 0 %?8?%}.order-item .goods-box-single .right .action-btn[data-v-0c0a91a7]{width:%?160?%;height:%?60?%;padding:0;text-align:center;line-height:%?60?%;font-size:%?26?%;color:#303133;background:#fff;border-radius:100px;float:right;position:absolute;right:%?30?%;bottom:0}.order-item .goods-box-single .right .refund[data-v-0c0a91a7]{position:absolute;right:%?30?%;font-size:%?28?%;color:#fa436a;top:%?35?%}.order-item .price-box[data-v-0c0a91a7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;padding:%?20?% %?30?%;font-size:%?26?%;color:#909399}.order-item .price-box .num[data-v-0c0a91a7]{margin:0 %?8?%;color:#303133}.order-item .price-box .price[data-v-0c0a91a7]{font-size:%?32?%;color:#303133}.order-item .price-box .price[data-v-0c0a91a7]:before{content:"¥";font-size:%?24?%;margin:0 %?2?% 0 %?8?%}.order-item .action-box[data-v-0c0a91a7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?100?%;position:relative;padding-right:%?30?%}.order-item .action-btn[data-v-0c0a91a7]{width:%?160?%;height:%?60?%;margin:0;margin-left:%?24?%;padding:0;text-align:center;line-height:%?60?%;font-size:%?26?%;color:#303133;background:#fff;border-radius:100px}.order-item .action-btn[data-v-0c0a91a7]:after{border-radius:100px}.order-item .action-btn.recom[data-v-0c0a91a7]{background:#fff9f9;color:#fa436a}.order-item .action-btn.recom[data-v-0c0a91a7]:after{border-color:#f7bcc8}\n/* load-more */.uni-load-more[data-v-0c0a91a7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.uni-load-more__text[data-v-0c0a91a7]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-0c0a91a7]{height:24px;width:24px;margin-right:10px}.uni-load-more__img > uni-view[data-v-0c0a91a7]{position:absolute}.uni-load-more__img > uni-view uni-view[data-v-0c0a91a7]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-0c0a91a7 1.56s ease infinite;animation:load-data-v-0c0a91a7 1.56s ease infinite}.uni-load-more__img > uni-view uni-view[data-v-0c0a91a7]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-0c0a91a7]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img > uni-view uni-view[data-v-0c0a91a7]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img > uni-view uni-view[data-v-0c0a91a7]:nth-child(4){top:11px;left:0}.load1[data-v-0c0a91a7],\n.load2[data-v-0c0a91a7],\n.load3[data-v-0c0a91a7]{height:24px;width:24px}.load2[data-v-0c0a91a7]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-0c0a91a7]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-0c0a91a7]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-0c0a91a7]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-0c0a91a7]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-0c0a91a7]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-0c0a91a7]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-0c0a91a7]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-0c0a91a7]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-0c0a91a7]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-0c0a91a7]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-0c0a91a7]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-0c0a91a7]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-0c0a91a7]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-0c0a91a7{0%{opacity:1}100%{opacity:.2}}body.?%PAGE?%[data-v-0c0a91a7]{background:#f8f8f8}',""]),t.exports=e},"841b":function(t,e,a){"use strict";var i=a("e065"),n=a.n(i);n.a},bbf1:function(t,e,a){"use strict";a.r(e);var i=a("3139"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},cb74:function(t,e,a){"use strict";var i={uniLoadMore:a("8097").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"nav-item",class:{current:t.tabCurrentIndex===i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(i)}}},[t._v(t._s(e.text))])})),1),a("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,i){return a("v-uni-swiper-item",{key:i,staticClass:"tab-content"},[a("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.orderList.length?a("empty"):t._e(),t._l(e.orderList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"order-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.navTo("/pages/order/orderDetail?order_id="+e.order_id)}}},[a("v-uni-view",{staticClass:"i-top b-b"},[a("v-uni-text",{staticClass:"time"},[t._v(t._s(e.createtime))]),a("v-uni-text",{staticClass:"state",style:{color:e.stateTipColor}},[t._v(t._s(e.stateTip+(e.refund_status_text?":"+e.refund_status_text:"")))]),9===e.state?a("v-uni-text",{staticClass:"del-btn yticon icon-lajitong",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.deleteOrder(i)}}}):t._e()],1),t._l(e.products,(function(i,n){return a("v-uni-view",{key:n,staticClass:"goods-box-single"},[a("v-uni-image",{staticClass:"goods-img",attrs:{src:i.image,mode:"aspectFill"}}),a("v-uni-view",{staticClass:"right"},[i.refund?a("v-uni-text",{staticClass:"refund"},[t._v("退款成功")]):t._e(),a("v-uni-text",{staticClass:"title clamp"},[t._v(t._s(i.title))]),a("v-uni-text",{staticClass:"attr-box"},[t._v(t._s(i.spec)+" x "+t._s(i.number))]),a("v-uni-text",{staticClass:"price"},[t._v(t._s(i.price))]),0!=e.have_received&&0==i.evaluate&&0==i.refund?a("v-uni-button",{staticClass:"action-btn",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.button("evaluate",{order_id:e.order_id,id:i.id,image:i.image,title:i.title,spec:i.spec})}}},[t._v("评价")]):t._e()],1)],1)})),a("v-uni-view",{staticClass:"price-box"},[t._v("共"),a("v-uni-text",{staticClass:"num"},[t._v(t._s(t.quantity(e.products)))]),t._v("件商品 合计"),a("v-uni-text",{staticClass:"price"},[t._v(t._s(e.total_price))]),e.discount_price>0?a("v-uni-text",[t._v("(已优惠¥"+t._s(e.discount_price)+")")]):t._e(),e.delivery_price>0?a("v-uni-text",[t._v("(含运费¥"+t._s(e.delivery_price)+")")]):t._e()],1),9!=e.state?a("v-uni-view",{staticClass:"action-box b-t"},[1==e.state?a("v-uni-button",{staticClass:"action-btn",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.button("cancel",e)}}},[t._v("取消订单")]):t._e(),0==e.have_paid?a("v-uni-button",{staticClass:"action-btn recom",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.button("pay",e)}}},[t._v("立即支付")]):t._e(),0!=e.have_paid?a("v-uni-button",{staticClass:"action-btn",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.button("delivery",e)}}},[t._v("查看物流")]):t._e(),0!=e.have_paid&&0==e.have_received?a("v-uni-button",{staticClass:"action-btn",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.button("recerved",e)}}},[t._v("确认收货")]):t._e(),0!=e.have_paid?a("v-uni-button",{staticClass:"action-btn",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.button("refund",e)}}},[t._v("申请售后")]):t._e()],1):t._e(),9==e.state&&-1==e.status?a("v-uni-view",{staticClass:"action-box b-t"},[0!=e.have_paid?a("v-uni-button",{staticClass:"action-btn",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.button("refund",e)}}},[t._v("查看售后")]):t._e()],1):t._e()],2)})),a("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},r=[];a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}))},dcd5:function(t,e,a){"use strict";a.r(e);var i=a("cb74"),n=a("bbf1");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("841b");var o,d=a("f0c5"),s=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"0c0a91a7",null,!1,i["a"],o);e["default"]=s.exports},e065:function(t,e,a){var i=a("5689");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("180d5b3e",i,!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-orderDetail.8a407448.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-orderDetail.8a407448.js new file mode 100644 index 0000000..bda6be4 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-orderDetail.8a407448.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-orderDetail"],{"005d":function(e,t,i){"use strict";i.r(t);var r=i("5836"),a=i("fc7a");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("ed37");var n,d=i("f0c5"),s=Object(d["a"])(a["default"],r["b"],r["c"],!1,null,"2b473db1",null,!1,r["a"],n);t["default"]=s.exports},"3a2c":function(e,t,i){"use strict";var r=i("ee27");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var a=r(i("c964")),o={data:function(){return{order_id:0,status:"订单状态",order:{}}},onLoad:function(e){this.order_id=e.order_id,this.detail(e.order_id)},methods:{detail:function(e){var t=this;return(0,a.default)(regeneratorRuntime.mark((function i(){var r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,t.$api.request("/order/detail?order_id="+e);case 2:r=i.sent,uni.stopPullDownRefresh(),r&&(t.status=t.orderStateExp(r.state),t.order=r);case 5:case"end":return i.stop()}}),i)})))()},orderStateExp:function(e){var t="";switch(+e){case 0:t="交易成功";break;case 1:t="待付款";break;case 2:t="待发货";break;case 3:t="待收货";break;case 5:t="售后";break;case 6:t="拒绝退款";break;case 9:t="订单已关闭";break}return t},navTo:function(e){this.$api.navTo(e)},button:function(e){var t=arguments,i=this;return(0,a.default)(regeneratorRuntime.mark((function r(){var a,o;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:a=t.length>1&&void 0!==t[1]?t[1]:{},o=!1,r.t0=e,r.next="cancel"===r.t0?5:"pay"===r.t0?9:"delivery"===r.t0?11:"recerved"===r.t0?13:"evaluate"===r.t0?17:"refund"===r.t0?19:"refunded"===r.t0?21:25;break;case 5:return r.next=7,i.$api.prePage().cancelOrder({order_id:i.order_id});case 7:return o=r.sent,r.abrupt("break",25);case 9:return i.navTo("/pages/money/pay?order_id="+i.order_id+"&total="+i.order.total_price),r.abrupt("break",25);case 11:return i.navTo("/pages/public/webview?type=kd&number="+i.order.express_number),r.abrupt("break",25);case 13:return r.next=15,i.$api.prePage().receivedOrder({order_id:i.order_id});case 15:return o=r.sent,r.abrupt("break",25);case 17:return i.$api.navTo("/pages/order/evaluate?product_id="+a.id+"&order_id="+i.order_id+"&image="+a.image+"&title="+a.title+"&spec="+a.spec),r.abrupt("break",25);case 19:return i.$api.navTo("/pages/order/refund?order_id="+i.order_id),r.abrupt("break",25);case 21:return r.next=23,i.$api.prePage().refunded({order_id:i.order_id});case 23:return o=r.sent,r.abrupt("break",25);case 25:o&&i.detail(i.order_id);case 26:case"end":return r.stop()}}),r)})))()},pullDownRefresh:function(){this.detail(this.order_id)}},onPullDownRefresh:function(){this.pullDownRefresh()}};t.default=o},"3af5":function(e,t,i){var r=i("c735");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("4f06").default;a("42c2299f",r,!0,{sourceMap:!1,shadowMode:!1})},5836:function(e,t,i){"use strict";var r,a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"left"},[e._v(e._s(e.status+(e.order.refund_status_text?":"+e.order.refund_status_text:"")))])],1),e.order.have_delivered?i("v-uni-view",{staticClass:"delivery"},[i("v-uni-view",{staticClass:"icon"},[i("v-uni-text",{staticClass:"cell-icon yticon icon-huoche",staticStyle:{color:"#ffffff"}})],1),i("v-uni-view",{staticClass:"info"},[e.order.express_number?i("v-uni-view",[e._v("快递编号:"+e._s(e.order.express_number))]):e._e(),i("v-uni-view",[e._v("发货时候:"+e._s(e.order.deliveredtime))])],1)],1):e._e(),e.order.delivery?i("v-uni-view",{staticClass:"address"},[i("v-uni-view",{staticClass:"icon"},[i("v-uni-text",{staticClass:"cell-icon yticon icon-dizhi",staticStyle:{color:"#ffffff"}})],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[e._v(e._s(e.order.delivery.username)),i("v-uni-text",{staticClass:"mobile"},[e._v(e._s(e.order.delivery.mobile))])],1),i("v-uni-view",{staticClass:"address"},[e._v(e._s(e.order.delivery.address))])],1)],1):e._e(),e.order.products?i("v-uni-view",{staticClass:"product"},[e._l(e.order.products,(function(t,r){return i("v-uni-view",{key:r,staticClass:"goods-box-single",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.navTo("/pages/product/product?id="+t.id+"&flash=0")}}},[i("v-uni-image",{staticClass:"goods-img",attrs:{src:t.image,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"title clamp"},[e._v(e._s(t.title))]),i("v-uni-text",{staticClass:"attr-box"},[e._v(e._s(t.spec)+" x "+e._s(t.number))]),i("v-uni-text",{staticClass:"price"},[e._v(e._s(t.price))])],1)],1)})),i("v-uni-view",{staticClass:"price"},[i("v-uni-view",[e._v("商品总价"),i("v-uni-text",[e._v("¥ "+e._s(e.order.order_price))])],1),i("v-uni-view",[e._v("优惠"),i("v-uni-text",[e._v("¥ "+e._s(e.order.discount_price))])],1),i("v-uni-view",{staticClass:"total"},[e._v("实付款"),i("v-uni-text",[e._v("¥ "+e._s(e.order.total_price))])],1)],1)],2):e._e(),e.order.createtime?i("v-uni-view",{staticClass:"order"},[i("v-uni-view",{staticClass:"title"},[e._v("订单信息")]),i("v-uni-view",[e._v("订单编号:"+e._s(e.order.out_trade_no))]),i("v-uni-view",[e._v("创建时间:"+e._s(e.order.createtime))]),i("v-uni-view",[e._v("付款时间:"+e._s(e.order.have_paid?e.order.paidtime:"未付款"))]),i("v-uni-view",[e._v("发货时间:"+e._s(e.order.have_delivered?e.order.deliveredtime:"未发货"))]),e.order.have_received?i("v-uni-view",[e._v("成交时间:"+e._s(e.order.receivedtime))]):e._e(),e.order.have_refunded?i("v-uni-view",[e._v("退货时间:"+e._s(e.order.refundedtime))]):e._e()],1):e._e(),i("v-uni-view",{staticStyle:{height:"10rpx"}}),9!=e.order.state?i("v-uni-view",{staticClass:"bottom"},[1==e.order.state?i("v-uni-button",{staticClass:"action-btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("cancel")}}},[e._v("取消订单")]):e._e(),0==e.order.have_paid?i("v-uni-button",{staticClass:"action-btn recom",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("pay")}}},[e._v("立即支付")]):e._e(),2==e.order.state?i("v-uni-button",{staticClass:"action-btn recom",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("refunded",e.item)}}},[e._v("退款")]):e._e()],1):e._e()],1)},o=[];i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return r}))},c735:function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-2b473db1]{background:#f5f5f5}.header[data-v-2b473db1]{height:%?200?%;background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c)}.header .left[data-v-2b473db1]{color:#fff;line-height:%?200?%;padding-left:%?100?%}.delivery[data-v-2b473db1]{color:#545454;background:#fff;border-bottom:1px solid #e9e9e9}.delivery .icon[data-v-2b473db1]{background:#00a7c8;height:%?60?%;width:%?60?%;display:inline-block;border-radius:%?100?%;margin:%?50?% %?30?%;text-align:center;line-height:%?60?%}.delivery .info[data-v-2b473db1]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?600?%;vertical-align:middle;margin:%?30?% 0;position:relative}.delivery .info .right[data-v-2b473db1]{position:absolute;right:0}.address[data-v-2b473db1]{color:#545454;background:#fff}.address .icon[data-v-2b473db1]{background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);height:%?60?%;width:%?60?%;display:inline-block;border-radius:%?100?%;margin:%?50?% %?30?%;text-align:center;line-height:%?60?%}.address .info[data-v-2b473db1]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?600?%;vertical-align:middle;margin:%?30?% 0}.address .info .mobile[data-v-2b473db1]{color:#9b9b9b;margin-left:%?30?%}.product[data-v-2b473db1]{background:#fff;margin-top:%?20?%;padding:%?30?%\n /* 单条商品 */}.product .goods-box-single[data-v-2b473db1]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0;border-bottom:%?1?% solid #eaeaea}.product .goods-box-single .goods-img[data-v-2b473db1]{display:block;width:%?120?%;height:%?120?%}.product .goods-box-single .right[data-v-2b473db1]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:0 %?30?% 0 %?24?%;overflow:hidden;position:relative}.product .goods-box-single .right .title[data-v-2b473db1]{font-size:%?30?%;color:#303133;line-height:1}.product .goods-box-single .right .attr-box[data-v-2b473db1]{font-size:%?26?%;color:#909399;padding:%?10?% %?12?%}.product .goods-box-single .right .price[data-v-2b473db1]{font-size:%?30?%;color:#303133;margin-top:0}.product .goods-box-single .right .price[data-v-2b473db1]:before{content:"¥";font-size:%?24?%;margin:0 %?2?% 0 %?8?%}.product .goods-box-single .right .action-btn[data-v-2b473db1]{width:%?160?%;height:%?60?%;padding:0;text-align:center;line-height:%?60?%;font-size:%?26?%;color:#303133;background:#fff;border-radius:100px;float:right;position:absolute;right:0;bottom:0}.product .price[data-v-2b473db1]{color:#9b9b9b;font-size:%?26?%;margin-top:%?30?%}.product .price uni-text[data-v-2b473db1]{float:right}.product .price .total[data-v-2b473db1]{font-size:%?35?%}.product .price .total uni-text[data-v-2b473db1]{color:#f56c6c}.order[data-v-2b473db1]{background:#fff;margin-top:%?20?%;padding:%?30?%;font-size:%?26?%;color:#9b9b9b;line-height:%?45?%;margin-bottom:%?120?%}.order .title[data-v-2b473db1]{border-left:%?4?% solid #f56c6c;padding-left:%?17?%;color:#898989;font-size:%?35?%;margin-bottom:%?20?%}.bottom[data-v-2b473db1]{position:fixed;width:100%;height:%?100?%;background:#fff;bottom:0;border-top:1px solid #e9e9e9}.bottom .action-btn[data-v-2b473db1]{width:%?160?%;height:%?60?%;margin:%?20?%;padding:0;text-align:center;line-height:%?60?%;font-size:%?26?%;color:#303133;background:#fff;border-radius:100px;float:right}.bottom .action-btn[data-v-2b473db1]:after{border-radius:100px}.bottom .action-btn.recom[data-v-2b473db1]{background:#fff9f9;color:#fa436a}.bottom .action-btn.recom[data-v-2b473db1]:after{border-color:#f7bcc8}body.?%PAGE?%[data-v-2b473db1]{background:#f5f5f5}',""]),e.exports=t},ed37:function(e,t,i){"use strict";var r=i("3af5"),a=i.n(r);a.a},fc7a:function(e,t,i){"use strict";i.r(t);var r=i("3a2c"),a=i.n(r);for(var o in r)"default"!==o&&function(e){i.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-orderDetail.c2cc4d80.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-orderDetail.c2cc4d80.js deleted file mode 100644 index f751641..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-order-orderDetail.c2cc4d80.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-orderDetail"],{"005d":function(e,t,i){"use strict";i.r(t);var r=i("9142"),a=i("fc7a");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("9588");var n,d=i("f0c5"),c=Object(d["a"])(a["default"],r["b"],r["c"],!1,null,"2429d5fc",null,!1,r["a"],n);t["default"]=c.exports},"34ee":function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-2429d5fc]{background:#f5f5f5}.header[data-v-2429d5fc]{height:%?200?%;background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c)}.header .left[data-v-2429d5fc]{color:#fff;line-height:%?200?%;padding-left:%?100?%}.delivery[data-v-2429d5fc]{color:#545454;background:#fff;border-bottom:1px solid #e9e9e9}.delivery .icon[data-v-2429d5fc]{background:#00a7c8;height:%?60?%;width:%?60?%;display:inline-block;border-radius:%?100?%;margin:%?50?% %?30?%;text-align:center;line-height:%?60?%}.delivery .info[data-v-2429d5fc]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?600?%;vertical-align:middle;margin:%?30?% 0;position:relative}.delivery .info .right[data-v-2429d5fc]{position:absolute;right:0}.address[data-v-2429d5fc]{color:#545454;background:#fff}.address .icon[data-v-2429d5fc]{background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);height:%?60?%;width:%?60?%;display:inline-block;border-radius:%?100?%;margin:%?50?% %?30?%;text-align:center;line-height:%?60?%}.address .info[data-v-2429d5fc]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?600?%;vertical-align:middle;margin:%?30?% 0}.address .info .mobile[data-v-2429d5fc]{color:#9b9b9b;margin-left:%?30?%}.product[data-v-2429d5fc]{background:#fff;margin-top:%?20?%;padding:%?30?%\n /* 单条商品 */}.product .goods-box-single[data-v-2429d5fc]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0;border-bottom:%?1?% solid #eaeaea}.product .goods-box-single .goods-img[data-v-2429d5fc]{display:block;width:%?120?%;height:%?120?%}.product .goods-box-single .right[data-v-2429d5fc]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:0 %?30?% 0 %?24?%;overflow:hidden;position:relative}.product .goods-box-single .right .title[data-v-2429d5fc]{font-size:%?30?%;color:#303133;line-height:1}.product .goods-box-single .right .attr-box[data-v-2429d5fc]{font-size:%?26?%;color:#909399;padding:%?10?% %?12?%}.product .goods-box-single .right .price[data-v-2429d5fc]{font-size:%?30?%;color:#303133;margin-top:0}.product .goods-box-single .right .price[data-v-2429d5fc]:before{content:"¥";font-size:%?24?%;margin:0 %?2?% 0 %?8?%}.product .goods-box-single .right .action-btn[data-v-2429d5fc]{width:%?160?%;height:%?60?%;padding:0;text-align:center;line-height:%?60?%;font-size:%?26?%;color:#303133;background:#fff;border-radius:100px;float:right;position:absolute;right:0;bottom:0}.product .price[data-v-2429d5fc]{color:#9b9b9b;font-size:%?26?%;margin-top:%?30?%}.product .price uni-text[data-v-2429d5fc]{float:right}.product .price .total[data-v-2429d5fc]{font-size:%?35?%}.product .price .total uni-text[data-v-2429d5fc]{color:#f56c6c}.order[data-v-2429d5fc]{background:#fff;margin-top:%?20?%;padding:%?30?%;font-size:%?26?%;color:#9b9b9b;line-height:%?45?%;margin-bottom:%?120?%}.order .title[data-v-2429d5fc]{border-left:%?4?% solid #f56c6c;padding-left:%?17?%;color:#898989;font-size:%?35?%;margin-bottom:%?20?%}.bottom[data-v-2429d5fc]{position:fixed;width:100%;height:%?100?%;background:#fff;bottom:0;border-top:1px solid #e9e9e9}.bottom .action-btn[data-v-2429d5fc]{width:%?160?%;height:%?60?%;margin:%?20?%;padding:0;text-align:center;line-height:%?60?%;font-size:%?26?%;color:#303133;background:#fff;border-radius:100px;float:right}.bottom .action-btn[data-v-2429d5fc]:after{border-radius:100px}.bottom .action-btn.recom[data-v-2429d5fc]{background:#fff9f9;color:#fa436a}.bottom .action-btn.recom[data-v-2429d5fc]:after{border-color:#f7bcc8}body.?%PAGE?%[data-v-2429d5fc]{background:#f5f5f5}',""]),e.exports=t},"3a2c":function(e,t,i){"use strict";var r=i("ee27");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var a=r(i("c964")),o={data:function(){return{order_id:0,status:"订单状态",order:{}}},onLoad:function(e){this.order_id=e.order_id,this.detail(e.order_id)},methods:{detail:function(e){var t=this;return(0,a.default)(regeneratorRuntime.mark((function i(){var r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,t.$api.request("/order/detail?order_id="+e);case 2:r=i.sent,uni.stopPullDownRefresh(),r&&(t.status=t.orderStateExp(r.state),t.order=r);case 5:case"end":return i.stop()}}),i)})))()},orderStateExp:function(e){var t="";switch(+e){case 0:t="交易成功";break;case 1:t="待付款";break;case 2:t="待发货";break;case 3:t="待收货";break;case 4:t="待评价";break;case 5:t="售后";break;case 6:t="拒绝退款";break;case 9:t="订单已关闭";break}return t},navTo:function(e){this.$api.navTo(e)},button:function(e){var t=arguments,i=this;return(0,a.default)(regeneratorRuntime.mark((function r(){var a,o;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:a=t.length>1&&void 0!==t[1]?t[1]:{},o=!1,r.t0=e,r.next="cancel"===r.t0?5:"pay"===r.t0?9:"delivery"===r.t0?11:"recerved"===r.t0?13:"evaluate"===r.t0?17:"refund"===r.t0?19:21;break;case 5:return r.next=7,i.$api.prePage().cancelOrder({order_id:i.order_id});case 7:return o=r.sent,r.abrupt("break",21);case 9:return i.navTo("/pages/money/pay?order_id="+i.order_id+"&total="+i.order.total_price),r.abrupt("break",21);case 11:return i.navTo("/pages/public/webview?type=kd&number="+i.order.express_number),r.abrupt("break",21);case 13:return r.next=15,i.$api.prePage().receivedOrder({order_id:i.order_id});case 15:return o=r.sent,r.abrupt("break",21);case 17:return i.$api.navTo("/pages/order/evaluate?product_id="+a.id+"&order_id="+i.order_id+"&image="+a.image+"&title="+a.title+"&spec="+a.spec),r.abrupt("break",21);case 19:return i.$api.navTo("/pages/order/refund?order_id="+i.order_id),r.abrupt("break",21);case 21:o&&i.detail(i.order_id);case 22:case"end":return r.stop()}}),r)})))()},pullDownRefresh:function(){this.detail(this.order_id)}},onPullDownRefresh:function(){this.pullDownRefresh()}};t.default=o},"5e79":function(e,t,i){var r=i("34ee");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("4f06").default;a("7c39caca",r,!0,{sourceMap:!1,shadowMode:!1})},9142:function(e,t,i){"use strict";var r,a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"left"},[e._v(e._s(e.status+(e.order.refund_status_text?":"+e.order.refund_status_text:"")))])],1),e.order.have_delivered?i("v-uni-view",{staticClass:"delivery"},[i("v-uni-view",{staticClass:"icon"},[i("v-uni-text",{staticClass:"cell-icon yticon icon-huoche",staticStyle:{color:"#ffffff"}})],1),i("v-uni-view",{staticClass:"info"},[e.order.express_number?i("v-uni-view",[e._v("快递编号:"+e._s(e.order.express_number))]):e._e(),i("v-uni-view",[e._v("发货时候:"+e._s(e.order.deliveredtime))])],1)],1):e._e(),e.order.delivery?i("v-uni-view",{staticClass:"address"},[i("v-uni-view",{staticClass:"icon"},[i("v-uni-text",{staticClass:"cell-icon yticon icon-dizhi",staticStyle:{color:"#ffffff"}})],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[e._v(e._s(e.order.delivery.username)),i("v-uni-text",{staticClass:"mobile"},[e._v(e._s(e.order.delivery.mobile))])],1),i("v-uni-view",{staticClass:"address"},[e._v(e._s(e.order.delivery.address))])],1)],1):e._e(),e.order.products?i("v-uni-view",{staticClass:"product"},[e._l(e.order.products,(function(t,r){return i("v-uni-view",{key:r,staticClass:"goods-box-single",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.navTo("/pages/product/product?id="+t.id+"&flash=0")}}},[i("v-uni-image",{staticClass:"goods-img",attrs:{src:t.image,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"title clamp"},[e._v(e._s(t.title))]),i("v-uni-text",{staticClass:"attr-box"},[e._v(e._s(t.spec)+" x "+e._s(t.number))]),i("v-uni-text",{staticClass:"price"},[e._v(e._s(t.price))]),0!=e.order.have_received&&0==t.evaluate?i("v-uni-button",{staticClass:"action-btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.button("evaluate",t)}}},[e._v("评价")]):e._e()],1)],1)})),i("v-uni-view",{staticClass:"price"},[i("v-uni-view",[e._v("商品总价"),i("v-uni-text",[e._v("¥ "+e._s(e.order.order_price))])],1),i("v-uni-view",[e._v("运费"),i("v-uni-text",[e._v("¥ "+e._s(e.order.delivery_price))])],1),i("v-uni-view",[e._v("优惠"),i("v-uni-text",[e._v("¥ "+e._s(e.order.discount_price))])],1),i("v-uni-view",{staticClass:"total"},[e._v("实付款(含运费)"),i("v-uni-text",[e._v("¥ "+e._s(e.order.total_price))])],1)],1)],2):e._e(),e.order.createtime?i("v-uni-view",{staticClass:"order"},[i("v-uni-view",{staticClass:"title"},[e._v("订单信息")]),i("v-uni-view",[e._v("订单编号:"+e._s(e.order.out_trade_no))]),i("v-uni-view",[e._v("创建时间:"+e._s(e.order.createtime))]),i("v-uni-view",[e._v("付款时间:"+e._s(e.order.have_paid?e.order.paidtime:"未付款"))]),i("v-uni-view",[e._v("发货时间:"+e._s(e.order.have_delivered?e.order.deliveredtime:"未发货"))]),e.order.have_received?i("v-uni-view",[e._v("成交时间:"+e._s(e.order.receivedtime))]):e._e(),e.order.have_refunded?i("v-uni-view",[e._v("退货时间:"+e._s(e.order.refundedtime))]):e._e()],1):e._e(),i("v-uni-view",{staticStyle:{height:"10rpx"}}),9!=e.order.state?i("v-uni-view",{staticClass:"bottom"},[1==e.order.state?i("v-uni-button",{staticClass:"action-btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("cancel")}}},[e._v("取消订单")]):e._e(),0==e.order.have_paid?i("v-uni-button",{staticClass:"action-btn recom",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("pay")}}},[e._v("立即支付")]):e._e(),0!=e.order.have_paid?i("v-uni-button",{staticClass:"action-btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("delivery")}}},[e._v("查看物流")]):e._e(),0!=e.order.have_paid&&0==e.order.have_received?i("v-uni-button",{staticClass:"action-btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("recerved")}}},[e._v("确认收货")]):e._e(),0!=e.order.have_paid?i("v-uni-button",{staticClass:"action-btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("refund")}}},[e._v("申请售后")]):e._e()],1):e._e(),9==e.order.state&&-1==e.order.status?i("v-uni-view",{staticClass:"bottom"},[0!=e.order.have_paid?i("v-uni-button",{staticClass:"action-btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.button("refund")}}},[e._v("查看售后")]):e._e()],1):e._e()],1)},o=[];i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return r}))},9588:function(e,t,i){"use strict";var r=i("5e79"),a=i.n(r);a.a},fc7a:function(e,t,i){"use strict";i.r(t);var r=i("3a2c"),a=i.n(r);for(var o in r)"default"!==o&&function(e){i.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-evaluate.771a1fa3.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-evaluate.771a1fa3.js deleted file mode 100644 index ecedbb8..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-evaluate.771a1fa3.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-evaluate"],{"04d1":function(t,e,a){var i=a("2624");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("1d3ccc40",i,!0,{sourceMap:!1,shadowMode:!1})},2624:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* 评价 */.eva-section[data-v-12d77aba]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:%?20?% %?30?%;background:#fff;margin-top:%?16?%}.eva-box[data-v-12d77aba]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0}.eva-box .portrait[data-v-12d77aba]{-webkit-flex-shrink:0;flex-shrink:0;width:%?80?%;height:%?80?%;border-radius:100px}.eva-box .right[data-v-12d77aba]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?28?%;color:#606266;padding-left:%?26?%}.eva-box .right .con[data-v-12d77aba]{font-size:%?28?%;color:#303133;padding:%?20?% 0}.eva-box .right .bot[data-v-12d77aba]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;font-size:%?24?%;color:#909399}',""]),t.exports=e},6133:function(t,e,a){"use strict";a.r(e);var i=a("d0a0"),n=a("cd01");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("8a36");var s,r=a("f0c5"),c=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"12d77aba",null,!1,i["a"],s);e["default"]=c.exports},"8a36":function(t,e,a){"use strict";var i=a("04d1"),n=a.n(i);n.a},cd01:function(t,e,a){"use strict";a.r(e);var i=a("f583"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},d0a0:function(t,e,a){"use strict";var i,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"eva-section"},t._l(t.list,(function(e,i){return a("v-uni-view",{key:i,staticClass:"eva-box"},[a("v-uni-image",{staticClass:"portrait",attrs:{src:e.avatar,mode:"aspectFill"}}),a("v-uni-view",{staticClass:"right"},[a("v-uni-text",{staticClass:"name"},[t._v(t._s(e.username||"游客"))]),a("v-uni-text",{staticClass:"con"},[t._v(t._s(e.comment))]),a("v-uni-view",{staticClass:"bot"},[""!=e.spec?a("v-uni-text",{staticClass:"attr"},[t._v("购买类型:"+t._s(e.spec))]):a("v-uni-text",{staticClass:"attr"}),a("v-uni-text",{staticClass:"time"},[t._v(t._s(e.createtime_text))])],1)],1)],1)})),1)],1)},o=[];a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}))},f583:function(t,e,a){"use strict";var i=a("ee27");a("4160"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("c964")),o={data:function(){return{product_id:0,page:1,pageSize:20,list:[]}},onLoad:function(t){this.product_id=t.product_id,this.getEvaluete()},onPullDownRefresh:function(){this.page=1,this.list=[],this.getEvaluete()},onReachBottom:function(){this.getEvaluete()},methods:{getEvaluete:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.request("/product/evaluate","GET",{product_id:t.product_id,page:t.page,pagesize:t.pageSize});case 2:a=e.sent,uni.stopPullDownRefresh(),a&&(t.page++,a.forEach((function(e){t.list.push(e)})));case 5:case"end":return e.stop()}}),e)})))()}}};e.default=o}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.96cd70dc.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.96cd70dc.js deleted file mode 100644 index 22f57bc..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.96cd70dc.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-product"],{"0456":function(t,e,i){var a=i("deea");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("0e0628ba",a,!0,{sourceMap:!1,shadowMode:!1})},"16ca":function(t,e,i){"use strict";i.r(e);var a=i("b2bb"),n=i("f540");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("5e3e");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"0bf59f9e",null,!1,a["a"],s);e["default"]=c.exports},"28a4":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.uni-countdown[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:%?2?% 0}.uni-countdown__splitor[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;line-height:%?48?%;padding:%?5?%;font-size:%?24?%}.uni-countdown__number[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?52?%;height:%?48?%;line-height:%?48?%;margin:%?5?%;text-align:center;font-size:%?24?%}',""]),t.exports=e},3408:function(t,e,i){"use strict";var a=i("0456"),n=i.n(a);n.a},"34b9":function(t,e,i){"use strict";var a=i("eef9"),n=i.n(a);n.a},"37ea":function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-countdown"},[t.showDay?i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.d))]):t._e(),t.showDay?i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("天")]):t._e(),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.h))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"时"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.i))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"分"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.s))]),t.showColon?t._e():i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("秒")])],1)},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},"4b80":function(t,e,i){"use strict";i.r(e);var a=i("37ea"),n=i("5357");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("34b9");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"6b4ac154",null,!1,a["a"],s);e["default"]=c.exports},5357:function(t,e,i){"use strict";i.r(e);var a=i("5608"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"54f8":function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));i("a4d3"),i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");var a=i("dde1");function n(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=Object(a["a"])(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}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 n,o,s=!0,r=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){r=!0,o=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(r)throw o}}}}},5608:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniCountdown",props:{showDay:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#000000"},color:{type:String,default:"#000000"},splitorColor:{type:String,default:"#000000"},day:{type:Number,default:0},hour:{type:Number,default:0},minute:{type:Number,default:0},second:{type:Number,default:0},borderWidth:{type:String,default:"52rpx"}},data:function(){return{timer:null,syncFlag:!1,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}},watch:{day:function(t){this.changeFlag()},hour:function(t){this.changeFlag()},minute:function(t){this.changeFlag()},second:function(t){this.changeFlag()}},created:function(t){this.startData()},beforeDestroy:function(){clearInterval(this.timer)},methods:{toSeconds:function(t,e,i,a){return 60*t*60*24+60*e*60+60*i+a},timeUp:function(){clearInterval(this.timer),this.timer=0,this.$emit("timeup",this)},countDown:function(){var t=this.seconds,e=0,i=0,a=0,n=0;t>0?(e=Math.floor(t/86400),i=Math.floor(t/3600)-24*e,a=Math.floor(t/60)-24*e*60-60*i,n=Math.floor(t)-24*e*60*60-60*i*60-60*a):this.timeUp(),e<10&&(e="0"+e),i<10&&(i="0"+i),a<10&&(a="0"+a),n<10&&(n="0"+n),this.d=e,this.h=i,this.i=a,this.s=n},startData:function(){var t=this;this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.seconds<=0?this.timeUp():this.timer>0||(this.countDown(),this.timer=setInterval((function(){t.seconds--,t.seconds<0?t.timeUp():t.countDown()}),1e3))},changeFlag:function(){this.syncFlag||(this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.startData(),this.syncFlag=!0)}}};e.default=a},"5e3e":function(t,e,i){"use strict";var a=i("a2de"),n=i.n(a);n.a},"6dd9":function(t,e,i){"use strict";var a=i("ee27");i("99af"),i("4160"),i("a15b"),i("e25e"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("c964")),o=a(i("54f8")),s=a(i("f3f3")),r=i("2f62"),c=a(i("16ca")),l=a(i("a672")),d=a(i("4b80")),u={components:{share:c.default,ProgressBar:l.default,uniCountdown:d.default},computed:(0,s.default)({},(0,r.mapGetters)(["userInfo","hasLogin"]),{specSelectedName:function(){return this.specSelected.join(" ")},specProduct:function(){if(1==this.product.use_spec){var t,e=this.product.market_price,i=this.product.sales_price,a=this.product.stock,n=this.product.image,s=this.specSelected.join(" "),r=(this.specTableList,(0,o.default)(this.specTableList));try{for(r.s();!(t=r.n()).done;){var c=t.value;c.value.join(" ")==s&&(e=c.market_price,i=c.sales_price,a=c.stock,n=c.image)}}catch(l){r.e(l)}finally{r.f()}return{market_price:e,sales_price:i,stock:a,image:n}}return this.product}}),data:function(){return{couponClass:"none",specClass:"none",specSelected:[],favorite:!1,shareList:[],specList:[],specChildList:[],specTableList:[],product:{},flash:!1,id:!1,countdown:{},progress:{sold:1,number:1}}},onPullDownRefresh:function(){this.$refs&&this.$refs.countd&&(this.$refs.countd.syncFlag=!1),this.getDetail(this.id,this.flash?this.flash:0)},onShareAppMessage:function(t){return{title:this.product.title}},onLoad:function(t){this.id=t.id;var e=t.flash?t.flash:0;0!=e&&(this.flash=e),this.getDetail(this.id,e)},methods:{timeup:function(){this.getDetail(this.id,this.flash?this.flash:0)},getDetail:function(t,e){var i=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var n,s,r,c,l,d,u,f,p;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=0==e?"/product/detail":"/flash/productDetail",a.next=3,i.$api.request(n+"?id=".concat(t,"&flash_id=").concat(e),"GET");case 3:if(s=a.sent,uni.stopPullDownRefresh(),s){a.next=8;break}return setTimeout((function(){uni.navigateBack()}),3e3),a.abrupt("return");case 8:if(i.product=s,s.flash&&(i.countdown=s.flash.countdown,i.progress=s.flash),i.favorite=i.product.favorite,i.product.use_spec){for(f in r=i.product.spec_list,c=i.product.spec_table_list,l=1,d=1,u=[],r)for(p in r[f].id=l++,r[f].child)u.push({id:d++,pid:r[f].id,name:r[f].child[p]});i.specList=r,i.specChildList=u,i.specTableList=c,i.specSelected=[],i.specList.forEach((function(t){var e,a=(0,o.default)(i.specChildList);try{for(a.s();!(e=a.n()).done;){var n=e.value;if(n.pid===t.id){i.$set(n,"selected",!0),i.specSelected.push(n.name);break}}}catch(s){a.e(s)}finally{a.f()}}))}case 12:case"end":return a.stop()}}),a)})))()},toggleCoupon:function(){var t=this;"show"===this.couponClass?(this.couponClass="hide",setTimeout((function(){t.couponClass="none"}),250)):"none"===this.couponClass&&(this.couponClass="show")},toggleSpec:function(){var t=this;"show"===this.specClass?(this.specClass="hide",setTimeout((function(){t.specClass="none"}),250)):"none"===this.specClass&&(this.specClass="show")},selectSpec:function(t,e){var i=this,a=this.specChildList;a.forEach((function(t){t.pid===e&&i.$set(t,"selected",!1)})),this.$set(a[t],"selected",!0),this.specSelected=[],a.forEach((function(t){!0===t.selected&&i.specSelected.push(t.name)}))},share:function(){this.$refs.share.toggleMask()},toFavorite:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.flash){e.next=3;break}return t.$api.msg("秒杀商品不能收藏"),e.abrupt("return");case 3:return e.next=5,t.$api.checkLogin();case 5:if(i=e.sent,!i){e.next=12;break}return t.favorite=!t.favorite,e.next=10,t.$api.request("/product/favorite?id="+t.product.product_id);case 10:a=e.sent,a||(t.favorite=!t.favorite);case 12:case"end":return e.stop()}}),e)})))()},buy:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.checkLogin();case 2:i=e.sent,i&&(a="",1==t.product.use_spec&&(a=t.specSelected.join(",")),n="/pages/order/createOrder?id=".concat(t.product.product_id,"&spec=").concat(a),t.flash&&(n+="&flash_id=".concat(t.flash)),uni.navigateTo({url:n}));case 4:case"end":return e.stop()}}),e)})))()},addCart:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.flash){e.next=3;break}return t.$api.msg("秒杀商品不能加入购物车"),e.abrupt("return");case 3:return e.next=5,t.$api.checkLogin();case 5:if(i=e.sent,!i){e.next=13;break}return a="",1==t.product.use_spec&&(a=t.specSelected.join(",")),e.next=11,t.$api.request("/cart/add?id="+t.product.product_id+"&spec="+a);case 11:n=e.sent,n&&t.product.cart_num++;case 13:case"end":return e.stop()}}),e)})))()},stopPrevent:function(){},percentage:function(t,e){return e?parseInt(e/t*100):0},previewImage:function(t){uni.previewImage({current:this.product.images_text[t],urls:this.product.images_text,indicator:"number",loop:!0})}}};e.default=u},"6fde":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{transform:"translateY(50vh)",timer:0,backgroundColor:"rgba(0,0,0,0)",show:!1,config:{}}},props:{contentHeight:{type:Number,default:0},hasTabbar:{type:Boolean,default:!1},shareList:{type:Array,default:function(){return[]}}},created:function(){var t=uni.upx2px(this.contentHeight)+"px";this.config={height:t,transform:"translateY(".concat(t,")"),backgroundColor:"rgba(0,0,0,.4)"},this.transform=this.config.transform},methods:{toggleMask:function(){var t=this;if(1!=this.timer){if(this.timer=1,setTimeout((function(){t.timer=0}),500),this.show)return this.transform=this.config.transform,this.backgroundColor="rgba(0,0,0,0)",void setTimeout((function(){t.show=!1,t.hasTabbar&&uni.showTabBar()}),200);this.show=!0,this.hasTabbar?uni.hideTabBar({success:function(){setTimeout((function(){t.backgroundColor=t.config.backgroundColor,t.transform="translateY(0px)"}),10)}}):setTimeout((function(){t.backgroundColor=t.config.backgroundColor,t.transform="translateY(0px)"}),10)}},stopPrevent:function(){},shareToFriend:function(t){this.$api.msg("分享给".concat(t)),this.toggleMask()}}};e.default=a},"8b96":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.mask[data-v-0bf59f9e]{position:fixed;left:0;top:0;right:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;z-index:998;-webkit-transition:.3s;transition:.3s}.mask .bottom[data-v-0bf59f9e]{position:absolute;left:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;height:%?90?%;background:#fff;z-index:9;font-size:%?30?%;color:#303133}.mask-content[data-v-0bf59f9e]{width:100%;height:%?580?%;-webkit-transition:.3s;transition:.3s;background:#fff}.mask-content.has-bottom[data-v-0bf59f9e]{padding-bottom:%?90?%}.mask-content .view-content[data-v-0bf59f9e]{height:100%}.share-header[data-v-0bf59f9e]{height:%?110?%;font-size:%?30?%;color:font-color-dark;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding-top:%?10?%}.share-header[data-v-0bf59f9e]:before, .share-header[data-v-0bf59f9e]:after{content:"";width:%?240?%;heighg:0;border-top:1px solid #e4e7ed;-webkit-transform:scaleY(.5);transform:scaleY(.5);margin-right:%?30?%}.share-header[data-v-0bf59f9e]:after{margin-left:%?30?%;margin-right:0}.share-list[data-v-0bf59f9e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.share-item[data-v-0bf59f9e]{min-width:33.33%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?180?%}.share-item uni-image[data-v-0bf59f9e]{width:%?80?%;height:%?80?%;margin-bottom:%?16?%}.share-item uni-text[data-v-0bf59f9e]{font-size:%?28?%;color:#606266}',""]),t.exports=e},a2de:function(t,e,i){var a=i("8b96");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("31f97218",a,!0,{sourceMap:!1,shadowMode:!1})},b2bb:function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("v-uni-view",{staticClass:"mask",style:{backgroundColor:t.backgroundColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMask.apply(void 0,arguments)},touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask-content",style:[{height:t.config.height,transform:t.transform}],on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-scroll-view",{staticClass:"view-content",attrs:{"scroll-y":!0}},[i("v-uni-view",{staticClass:"share-header"},[t._v("分享到")]),i("v-uni-view",{staticClass:"share-list"},t._l(t.shareList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"share-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.shareToFriend(e.text)}}},[i("v-uni-image",{attrs:{src:e.icon,mode:""}}),i("v-uni-text",[t._v(t._s(e.text))])],1)})),1)],1),i("v-uni-view",{staticClass:"bottom b-t",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMask.apply(void 0,arguments)}}},[t._v("取消")])],1)],1):t._e()},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},b87d:function(t,e,i){"use strict";i.r(e);var a=i("c87c"),n=i("f091");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("3408");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"5e6c2a26",null,!1,a["a"],s);e["default"]=c.exports},c87c:function(t,e,i){"use strict";var a={uniCountdown:i("4b80").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"carousel"},[i("v-uni-swiper",{attrs:{"indicator-dots":!0,circular:"true",duration:"400"}},t._l(t.product.images_text,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"swiper-item"},[i("v-uni-view",{staticClass:"image-wrapper"},[i("v-uni-image",{staticClass:"loaded",attrs:{src:e,mode:"aspectFill"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage(a)}}})],1)],1)})),1)],1),t.flash?i("v-uni-view",{staticClass:"flash"},[t.product.market_price?i("v-uni-view",{staticClass:"sales_price"},[i("v-uni-view",{staticClass:"symbol"},[t._v("¥")]),t._v(t._s(t.specProduct.sales_price))],1):t._e(),t.product.market_price?i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{staticClass:"market_price"},[t._v("¥"+t._s(t.specProduct.market_price))]),t.progress.number?i("v-uni-view",{staticClass:"sold"},[t._v("秒"+t._s(t.progress.number)+"件")]):t._e()],1):t._e(),i("v-uni-view",{staticClass:"right"},[t.countdown&&t.progress.number!=t.progress.sold?i("v-uni-view",{staticClass:"time"},[t._v(t._s(t.product.flash.text)),i("uni-countdown",{ref:"countd",attrs:{showDay:t.countdown.day>0,day:t.countdown.day,hour:t.countdown.hour,minute:t.countdown.minute,second:t.countdown.second,color:"#fffa30",borderWidth:"22rpx",splitorColor:"#fffa30","background-color":"#282f2c00","border-color":"#00B26A"},on:{timeup:function(e){arguments[0]=e=t.$handleEvent(e),t.timeup.apply(void 0,arguments)}}})],1):i("v-uni-view",{staticClass:"time",class:{flashDone:0==t.progress.number}},[t._v("抢购已结束")]),t.progress.number?i("v-uni-view",{staticClass:"progress"},[i("ProgressBar",{staticClass:"ProgressBar",attrs:{Sold:t.progress.sold,widthUpx:250,Width:t.percentage(t.progress.number,t.progress.sold),Type:"candy",Vice:!0}})],1):t._e()],1)],1):t._e(),t.product.product_id?i("v-uni-view",{staticClass:"introduce-section"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.product.title))]),0==t.flash?i("v-uni-view",{staticClass:"price-box"},[i("v-uni-text",{staticClass:"price-tip"},[t._v("¥")]),i("v-uni-text",{staticClass:"price"},[t._v(t._s(t.specProduct.sales_price))]),t.specProduct.market_price?i("v-uni-text",{staticClass:"m-price"},[t._v("¥"+t._s(t.specProduct.market_price))]):t._e(),t.specProduct.market_price>0&&t.specProduct.market_price>t.specProduct.sales_price?i("v-uni-text",{staticClass:"coupon-tip"},[t._v(t._s((t.specProduct.sales_price/t.specProduct.market_price*10).toFixed(1))+"折")]):t._e()],1):t._e(),i("v-uni-view",{staticClass:"bot-row"},[i("v-uni-text",[t._v("销量: "+t._s(t.product.sales))]),i("v-uni-text",[t._v("总库存: "+t._s(t.product.stock))]),i("v-uni-text",[t._v("浏览量: "+t._s(t.product.look))])],1)],1):t._e(),i("v-uni-view",{staticClass:"c-list"},[t.product.use_spec?i("v-uni-view",{staticClass:"c-row b-b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("购买类型")]),i("v-uni-view",{staticClass:"con"},[i("v-uni-text",{staticClass:"selected-text"},[t._v(t._s(t.specSelectedName))]),i("v-uni-text",{staticStyle:{"margin-left":"50rpx"}},[t._v("库存:"+t._s(t.specProduct.stock))])],1),i("v-uni-text",{staticClass:"yticon icon-you"})],1):t._e(),t.product.coupon.length?i("v-uni-view",{staticClass:"c-row b-b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("优惠券")]),i("v-uni-text",{staticClass:"con t-r red"},[t._v("查看可用优惠券")]),i("v-uni-text",{staticClass:"yticon icon-you"})],1):t._e(),t.product.server?i("v-uni-view",{staticClass:"c-row b-b"},[i("v-uni-text",{staticClass:"tit"},[t._v("服务")]),i("v-uni-view",{staticClass:"bz-list con"},[t._v(t._s(t.product.server))])],1):t._e()],1),t.product.evaluate_data&&t.product.evaluate_data.count>0?i("v-uni-view",{staticClass:"eva-section"},[i("v-uni-view",{staticClass:"e-header",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/product/evaluate?product_id="+t.product.product_id)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("评价")]),i("v-uni-text",[t._v("("+t._s(t.product.evaluate_data.count)+")")]),i("v-uni-text",{staticClass:"tip"},[t._v("好评率 "+t._s(t.product.evaluate_data.avg)+"%")]),i("v-uni-text",{staticClass:"yticon icon-you"})],1),t._l(t.product.evaluate_list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"eva-box"},[i("v-uni-image",{staticClass:"portrait",attrs:{src:e.avatar,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"name"},[t._v(t._s(e.username))]),i("v-uni-text",{staticClass:"con"},[t._v(t._s(e.comment))]),i("v-uni-view",{staticClass:"bot"},[e.spec?i("v-uni-text",{staticClass:"attr"},[t._v("购买类型:"+t._s(e.spec))]):i("v-uni-text",{staticClass:"attr"}),i("v-uni-text",{staticClass:"time"},[t._v(t._s(e.createtime_text))])],1)],1)],1)}))],2):t._e(),t.product.desc?i("v-uni-view",{staticClass:"detail-desc"},[i("v-uni-view",{staticClass:"d-header"},[i("v-uni-text",[t._v("图文详情")])],1),i("v-uni-rich-text",{attrs:{nodes:t.product.desc}})],1):t._e(),i("v-uni-view",{staticClass:"page-bottom"},[i("v-uni-navigator",{staticClass:"p-b-btn",attrs:{url:"/pages/index/index","open-type":"switchTab"}},[i("v-uni-text",{staticClass:"yticon icon-fangzi"}),i("v-uni-text",[t._v("首页")])],1),i("v-uni-navigator",{staticClass:"p-b-btn",attrs:{url:"/pages/cart/cart","open-type":"switchTab"}},[i("v-uni-text",{staticClass:"yticon icon-gouwuche"}),i("v-uni-text",[t._v("购物车")]),t.product.cart_num?i("v-uni-text",{staticClass:"cart-count"},[t._v(t._s(t.product.cart_num))]):t._e()],1),t.flash?i("v-uni-view",{staticClass:"p-b-btn"},[i("v-uni-text")],1):i("v-uni-view",{staticClass:"p-b-btn",class:{active:t.favorite},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toFavorite.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"yticon icon-shoucang"}),i("v-uni-text",[t._v("收藏")])],1),i("v-uni-view",{staticClass:"action-btn-group"},[i("v-uni-button",{staticClass:" action-btn no-border buy-now-btn",class:{only:t.flash},attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buy.apply(void 0,arguments)}}},[t._v("立即购买")]),t.flash?t._e():i("v-uni-button",{staticClass:" action-btn no-border add-cart-btn",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addCart.apply(void 0,arguments)}}},[t._v("加入购物车")])],1)],1),i("v-uni-view",{staticClass:"popup spec",class:t.couponClass,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask"}),i("v-uni-view",{staticClass:"layer attr-content content-coupon",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},t._l(t.product.coupon,(function(e,a){return i("v-uni-view",{key:a,staticClass:"coupon-item"},[i("v-uni-view",{staticClass:"con"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(e.title))]),i("v-uni-text",{staticClass:"time"},[t._v("有效期至"+t._s(e.endtime_text))])],1),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"price"},[t._v(t._s(e.value))]),i("v-uni-text",[t._v("满"+t._s(e.least)+"可用")])],1),i("v-uni-view",{staticClass:"circle l"}),i("v-uni-view",{staticClass:"circle r"})],1),i("v-uni-text",{staticClass:"tips"},[t._v("限一张使用")])],1)})),1),i("v-uni-button",{staticClass:"btn retract",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[t._v("收起")])],1),i("v-uni-view",{staticClass:"popup spec",class:t.specClass,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask"}),i("v-uni-view",{staticClass:"layer attr-content",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"a-t"},[t.specProduct.image?i("v-uni-image",{attrs:{mode:"aspectFill",src:t.specProduct.image}}):t._e(),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.specProduct.sales_price))]),i("v-uni-text",{staticClass:"stock"},[t._v("库存:"+t._s(t.specProduct.stock)+"件")]),i("v-uni-view",{staticClass:"selected"},[t._v("已选:"),i("v-uni-text",{staticClass:"selected-text"},[t._v(t._s(t.specSelectedName))])],1)],1)],1),t._l(t.specList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"attr-list"},[i("v-uni-text",[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"item-list"},t._l(t.specChildList,(function(a,n){return a.pid===e.id?i("v-uni-text",{key:n,staticClass:"tit",class:{selected:a.selected},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectSpec(n,a.pid)}}},[t._v(t._s(a.name))]):t._e()})),1)],1)})),i("v-uni-button",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[t._v("完成")])],2)],1)],1)},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},deea:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-5e6c2a26]{background:#f8f8f8;padding-bottom:%?160?%}.icon-you[data-v-5e6c2a26]{font-size:%?30?%;color:#888}.carousel[data-v-5e6c2a26]{height:%?722?%;position:relative}.carousel uni-swiper[data-v-5e6c2a26]{height:100%}.carousel .image-wrapper[data-v-5e6c2a26]{width:100%;height:100%}.carousel .swiper-item[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-align-content:center;align-content:center;height:%?750?%;overflow:hidden}.carousel .swiper-item uni-image[data-v-5e6c2a26]{width:100%;height:100%}\n/* 标题简介 */.introduce-section[data-v-5e6c2a26]{background:#fff;padding:%?20?% %?30?%}.introduce-section .title[data-v-5e6c2a26]{font-size:%?32?%;color:#303133;height:%?50?%;line-height:%?50?%}.introduce-section .price-box[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;height:%?64?%;padding:%?10?% 0;font-size:%?26?%;color:#fa436a}.introduce-section .price[data-v-5e6c2a26]{font-size:%?34?%}.introduce-section .m-price[data-v-5e6c2a26]{margin:0 %?12?%;color:#909399;text-decoration:line-through}.introduce-section .coupon-tip[data-v-5e6c2a26]{-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?4?% %?10?%;background:#fa436a;font-size:%?24?%;color:#fff;border-radius:%?6?%;line-height:1;-webkit-transform:translateY(%?-4?%);transform:translateY(%?-4?%)}.introduce-section .bot-row[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?50?%;font-size:%?24?%;color:#909399}.introduce-section .bot-row uni-text[data-v-5e6c2a26]{-webkit-box-flex:1;-webkit-flex:1;flex:1}\n/* 分享 */.share-section[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#606266;background:-webkit-linear-gradient(left,#fdf5f6,#fbebf6);background:linear-gradient(left,#fdf5f6,#fbebf6);padding:%?12?% %?30?%}.share-section .share-icon[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?70?%;height:%?30?%;line-height:1;border:1px solid #fa436a;border-radius:%?4?%;position:relative;overflow:hidden;font-size:%?22?%;color:#fa436a}.share-section .share-icon[data-v-5e6c2a26]:after{content:"";width:%?50?%;height:%?50?%;border-radius:50%;left:%?-20?%;top:%?-12?%;position:absolute;background:#fa436a}.share-section .icon-xingxing[data-v-5e6c2a26]{position:relative;z-index:1;font-size:%?24?%;margin-left:%?2?%;margin-right:%?10?%;color:#fff;line-height:1}.share-section .tit[data-v-5e6c2a26]{font-size:%?28?%;margin-left:%?10?%}.share-section .icon-bangzhu1[data-v-5e6c2a26]{padding:%?10?%;font-size:%?30?%;line-height:1}.share-section .share-btn[data-v-5e6c2a26]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right;font-size:%?24?%;color:#fa436a}.share-section .icon-you[data-v-5e6c2a26]{font-size:%?24?%;margin-left:%?4?%;color:#fa436a}.c-list[data-v-5e6c2a26]{font-size:%?26?%;color:#606266;background:#fff}.c-list .c-row[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?20?% %?30?%;position:relative}.c-list .tit[data-v-5e6c2a26]{width:%?140?%}.c-list .con[data-v-5e6c2a26]{-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#303133}.c-list .con .selected-text[data-v-5e6c2a26]{margin-right:%?10?%}.c-list .bz-list[data-v-5e6c2a26]{height:%?40?%;font-size:%?26?%;color:#303133}.c-list .bz-list uni-text[data-v-5e6c2a26]{display:inline-block;margin-right:%?30?%}.c-list .con-list[data-v-5e6c2a26]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#303133;line-height:%?40?%}.c-list .red[data-v-5e6c2a26]{color:#fa436a}\n/* 评价 */.eva-section[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:%?20?% %?30?%;background:#fff;margin-top:%?16?%}.eva-section .e-header[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?70?%;font-size:%?26?%;color:#909399}.eva-section .e-header .tit[data-v-5e6c2a26]{font-size:%?30?%;color:#303133;margin-right:%?4?%}.eva-section .e-header .tip[data-v-5e6c2a26]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right}.eva-section .e-header .icon-you[data-v-5e6c2a26]{margin-left:%?10?%}.eva-box[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0}.eva-box .portrait[data-v-5e6c2a26]{-webkit-flex-shrink:0;flex-shrink:0;width:%?80?%;height:%?80?%;border-radius:100px}.eva-box .right[data-v-5e6c2a26]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?28?%;color:#606266;padding-left:%?26?%}.eva-box .right .con[data-v-5e6c2a26]{font-size:%?28?%;color:#303133;padding:%?20?% 0}.eva-box .right .bot[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;font-size:%?24?%;color:#909399}\n/* 详情 */.detail-desc[data-v-5e6c2a26]{background:#fff;margin-top:%?16?%}.detail-desc .d-header[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;font-size:%?30?%;color:#303133;position:relative}.detail-desc .d-header uni-text[data-v-5e6c2a26]{padding:0 %?20?%;background:#fff;position:relative;z-index:1}.detail-desc .d-header[data-v-5e6c2a26]:after{position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:%?300?%;height:0;content:"";border-bottom:1px solid #ccc}\n/* 规格选择弹窗 */.attr-content[data-v-5e6c2a26]{padding:%?10?% %?30?%}.attr-content .a-t[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex}.attr-content .a-t uni-image[data-v-5e6c2a26]{width:%?170?%;height:%?170?%;-webkit-flex-shrink:0;flex-shrink:0;margin-top:%?-40?%;border-radius:%?8?%}.attr-content .a-t .right[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding-left:%?24?%;font-size:%?26?%;color:#606266;line-height:%?42?%}.attr-content .a-t .right .price[data-v-5e6c2a26]{font-size:%?32?%;color:#fa436a;margin-bottom:%?10?%}.attr-content .a-t .right .selected-text[data-v-5e6c2a26]{margin-right:%?10?%}.attr-content .attr-list[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?30?%;color:#606266;padding-top:%?30?%;padding-left:%?10?%}.attr-content .item-list[data-v-5e6c2a26]{padding:%?20?% 0 0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.attr-content .item-list uni-text[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;background:#eee;margin-right:%?20?%;margin-bottom:%?20?%;border-radius:%?100?%;min-width:%?60?%;height:%?60?%;padding:0 %?20?%;font-size:%?28?%;color:#303133}.attr-content .item-list .selected[data-v-5e6c2a26]{background:#fbebee;color:#fa436a}\n/* 弹出层 */.popup[data-v-5e6c2a26]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99}.popup.show[data-v-5e6c2a26]{display:block}.popup.show .mask[data-v-5e6c2a26]{-webkit-animation:showPopup-data-v-5e6c2a26 .2s linear both;animation:showPopup-data-v-5e6c2a26 .2s linear both}.popup.show .layer[data-v-5e6c2a26]{-webkit-animation:showLayer-data-v-5e6c2a26 .2s linear both;animation:showLayer-data-v-5e6c2a26 .2s linear both}.popup.hide .mask[data-v-5e6c2a26]{-webkit-animation:hidePopup-data-v-5e6c2a26 .2s linear both;animation:hidePopup-data-v-5e6c2a26 .2s linear both}.popup.hide .layer[data-v-5e6c2a26]{-webkit-animation:hideLayer-data-v-5e6c2a26 .2s linear both;animation:hideLayer-data-v-5e6c2a26 .2s linear both}.popup.none[data-v-5e6c2a26]{display:none}.popup .mask[data-v-5e6c2a26]{position:fixed;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,.4)}.popup .layer[data-v-5e6c2a26]{position:fixed;z-index:99;bottom:0;width:100%;min-height:40vh;border-radius:%?10?% %?10?% 0 0;background-color:#fff}.popup .layer .btn[data-v-5e6c2a26]{height:%?66?%;line-height:%?66?%;border-radius:%?100?%;background:#fa436a;font-size:%?30?%;color:#fff;margin:%?30?% auto %?20?%}@-webkit-keyframes showPopup-data-v-5e6c2a26{0%{opacity:0}100%{opacity:1}}@keyframes showPopup-data-v-5e6c2a26{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes hidePopup-data-v-5e6c2a26{0%{opacity:1}100%{opacity:0}}@keyframes hidePopup-data-v-5e6c2a26{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes showLayer-data-v-5e6c2a26{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes showLayer-data-v-5e6c2a26{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes hideLayer-data-v-5e6c2a26{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}@keyframes hideLayer-data-v-5e6c2a26{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}\n/* 底部操作菜单 */.page-bottom[data-v-5e6c2a26]{position:fixed;left:%?30?%;bottom:%?30?%;z-index:95;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?690?%;height:%?100?%;background:hsla(0,0%,100%,.9);box-shadow:0 0 %?20?% 0 rgba(0,0,0,.5);border-radius:%?16?%}.page-bottom .p-b-btn[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?24?%;color:#606266;width:%?96?%;height:%?80?%;position:relative\n /* 购物车数量 */}.page-bottom .p-b-btn .cart-count[data-v-5e6c2a26]{border:%?4?% solid #fa436a;width:%?40?%;height:%?40?%;color:#fa436a;text-align:center;border-radius:%?40?%;position:absolute;background:#fff;top:%?-10?%;right:0}.page-bottom .p-b-btn .yticon[data-v-5e6c2a26]{font-size:%?46?%;line-height:%?48?%;color:#909399}.page-bottom .p-b-btn.active[data-v-5e6c2a26],\n.page-bottom .p-b-btn.active .yticon[data-v-5e6c2a26]{color:#fa436a}.page-bottom .action-btn-group[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;height:%?76?%;border-radius:100px;overflow:hidden;box-shadow:0 %?20?% %?40?% %?-16?% #fa436a;box-shadow:1px 2px 5px rgba(219,63,96,.4);background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);margin-left:%?20?%;position:relative}.page-bottom .action-btn-group .only[data-v-5e6c2a26]{width:%?360?%!important}.page-bottom .action-btn-group[data-v-5e6c2a26]:after{content:"";position:absolute;top:50%;right:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:%?28?%;width:0;border-right:1px solid hsla(0,0%,100%,.5)}.page-bottom .action-btn-group .action-btn[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?180?%;height:100%;font-size:%?28?%;padding:0;border-radius:0;background:transparent}.flash[data-v-5e6c2a26]{height:%?100?%;background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;position:relative}.flash .sales_price[data-v-5e6c2a26]{color:#fff;font-size:%?50?%}.flash .sales_price .symbol[data-v-5e6c2a26]{font-size:%?30?%;display:inline}.flash .left[data-v-5e6c2a26]{font-size:%?28?%;padding:%?10?%}.flash .left .market_price[data-v-5e6c2a26]{color:#dcdfe6;text-decoration:line-through}.flash .left .sold[data-v-5e6c2a26]{color:#e4e7ed}.flash .right[data-v-5e6c2a26]{height:100%;width:%?300?%;position:absolute;right:0;padding:%?4?%;margin-right:%?20?%}.flash .right .time[data-v-5e6c2a26]{font-size:%?30?%;color:#fffa30;text-align:center}.flash .right .time .uni-countdown[data-v-5e6c2a26]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex}.flash .right .progress[data-v-5e6c2a26]{position:absolute;bottom:%?7?%;right:%?10?%}.flash .right .flashDone[data-v-5e6c2a26]{font-size:%?40?%;height:%?90?%;line-height:%?90?%}\n/* 优惠券列表 */.content-coupon[data-v-5e6c2a26]{padding-bottom:%?100?%;max-height:%?800?%;overflow:auto}.retract[data-v-5e6c2a26]{position:fixed;bottom:0;width:%?700?%;z-index:100;margin:%?20?% %?25?%;color:#fff;background:#fa436a}.coupon-item[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#fff}.coupon-item .con[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;height:%?120?%;padding:0 %?30?%}.coupon-item .con[data-v-5e6c2a26]:after{position:absolute;left:0;bottom:0;content:"";width:100%;height:0;border-bottom:1px dashed #f3f3f3;-webkit-transform:scaleY(50%);transform:scaleY(50%)}.coupon-item .left[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;height:%?100?%}.coupon-item .title[data-v-5e6c2a26]{font-size:%?32?%;color:#303133;margin-bottom:%?10?%}.coupon-item .time[data-v-5e6c2a26]{font-size:%?24?%;color:#909399}.coupon-item .right[data-v-5e6c2a26]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?26?%;color:#606266;height:%?100?%}.coupon-item .price[data-v-5e6c2a26]{font-size:%?44?%;color:#fa436a}.coupon-item .price[data-v-5e6c2a26]:before{content:"¥";font-size:%?34?%}.coupon-item .tips[data-v-5e6c2a26]{font-size:%?24?%;color:#909399;line-height:%?60?%;padding-left:%?30?%}.coupon-item .circle[data-v-5e6c2a26]{position:absolute;left:%?-6?%;bottom:%?-10?%;z-index:10;width:%?20?%;height:%?20?%;background:#f3f3f3;border-radius:100px}.coupon-item .circle.r[data-v-5e6c2a26]{left:auto;right:%?-6?%}body.?%PAGE?%[data-v-5e6c2a26]{background:#f8f8f8}',""]),t.exports=e},eef9:function(t,e,i){var a=i("28a4");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("eef38dfc",a,!0,{sourceMap:!1,shadowMode:!1})},f091:function(t,e,i){"use strict";i.r(e);var a=i("6dd9"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},f540:function(t,e,i){"use strict";i.r(e);var a=i("6fde"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.a1d624fc.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.a1d624fc.js new file mode 100644 index 0000000..259cedb --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-product-product.a1d624fc.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-product"],{"16ca":function(t,e,i){"use strict";i.r(e);var a=i("b2bb"),n=i("f540");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("5e3e");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"0bf59f9e",null,!1,a["a"],s);e["default"]=c.exports},"28a4":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.uni-countdown[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:%?2?% 0}.uni-countdown__splitor[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;line-height:%?48?%;padding:%?5?%;font-size:%?24?%}.uni-countdown__number[data-v-6b4ac154]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?52?%;height:%?48?%;line-height:%?48?%;margin:%?5?%;text-align:center;font-size:%?24?%}',""]),t.exports=e},"34b9":function(t,e,i){"use strict";var a=i("eef9"),n=i.n(a);n.a},"37ea":function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-countdown"},[t.showDay?i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.d))]):t._e(),t.showDay?i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("天")]):t._e(),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.h))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"时"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.i))]),i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v(t._s(t.showColon?":":"分"))]),i("v-uni-text",{staticClass:"uni-countdown__number",style:{borderColor:t.borderColor,color:t.color,backgroundColor:t.backgroundColor,width:t.borderWidth}},[t._v(t._s(t.s))]),t.showColon?t._e():i("v-uni-text",{staticClass:"uni-countdown__splitor",style:{color:t.splitorColor}},[t._v("秒")])],1)},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},"4b80":function(t,e,i){"use strict";i.r(e);var a=i("37ea"),n=i("5357");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("34b9");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"6b4ac154",null,!1,a["a"],s);e["default"]=c.exports},5357:function(t,e,i){"use strict";i.r(e);var a=i("5608"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"54f8":function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));i("a4d3"),i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");var a=i("dde1");function n(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=Object(a["a"])(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}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 n,o,s=!0,r=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){r=!0,o=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(r)throw o}}}}},5608:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniCountdown",props:{showDay:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#000000"},color:{type:String,default:"#000000"},splitorColor:{type:String,default:"#000000"},day:{type:Number,default:0},hour:{type:Number,default:0},minute:{type:Number,default:0},second:{type:Number,default:0},borderWidth:{type:String,default:"52rpx"}},data:function(){return{timer:null,syncFlag:!1,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}},watch:{day:function(t){this.changeFlag()},hour:function(t){this.changeFlag()},minute:function(t){this.changeFlag()},second:function(t){this.changeFlag()}},created:function(t){this.startData()},beforeDestroy:function(){clearInterval(this.timer)},methods:{toSeconds:function(t,e,i,a){return 60*t*60*24+60*e*60+60*i+a},timeUp:function(){clearInterval(this.timer),this.timer=0,this.$emit("timeup",this)},countDown:function(){var t=this.seconds,e=0,i=0,a=0,n=0;t>0?(e=Math.floor(t/86400),i=Math.floor(t/3600)-24*e,a=Math.floor(t/60)-24*e*60-60*i,n=Math.floor(t)-24*e*60*60-60*i*60-60*a):this.timeUp(),e<10&&(e="0"+e),i<10&&(i="0"+i),a<10&&(a="0"+a),n<10&&(n="0"+n),this.d=e,this.h=i,this.i=a,this.s=n},startData:function(){var t=this;this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.seconds<=0?this.timeUp():this.timer>0||(this.countDown(),this.timer=setInterval((function(){t.seconds--,t.seconds<0?t.timeUp():t.countDown()}),1e3))},changeFlag:function(){this.syncFlag||(this.seconds=this.toSeconds(this.day,this.hour,this.minute,this.second),this.startData(),this.syncFlag=!0)}}};e.default=a},"5e3e":function(t,e,i){"use strict";var a=i("a2de"),n=i.n(a);n.a},"6dd9":function(t,e,i){"use strict";var a=i("ee27");i("99af"),i("4160"),i("a15b"),i("e25e"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("c964")),o=a(i("54f8")),s=a(i("f3f3")),r=i("2f62"),c=a(i("16ca")),l=a(i("a672")),d=a(i("4b80")),f={components:{share:c.default,ProgressBar:l.default,uniCountdown:d.default},computed:(0,s.default)({},(0,r.mapGetters)(["userInfo","hasLogin"]),{specSelectedName:function(){return this.specSelected.join(" ")},specProduct:function(){if(1==this.product.use_spec){var t,e=this.product.market_price,i=this.product.sales_price,a=this.product.stock,n=this.product.image,s=this.specSelected.join(" "),r=(this.specTableList,(0,o.default)(this.specTableList));try{for(r.s();!(t=r.n()).done;){var c=t.value;c.value.join(" ")==s&&(e=c.market_price,i=c.sales_price,a=c.stock,n=c.image)}}catch(l){r.e(l)}finally{r.f()}return{market_price:e,sales_price:i,stock:a,image:n}}return this.product}}),data:function(){return{couponClass:"none",specClass:"none",specSelected:[],favorite:!1,shareList:[],specList:[],specChildList:[],specTableList:[],product:{},flash:!1,id:!1,countdown:{},progress:{sold:1,number:1}}},onPullDownRefresh:function(){this.$refs&&this.$refs.countd&&(this.$refs.countd.syncFlag=!1),this.getDetail(this.id,this.flash?this.flash:0)},onShareAppMessage:function(t){return{title:this.product.title}},onLoad:function(t){this.id=t.id;var e=t.flash?t.flash:0;0!=e&&(this.flash=e),this.getDetail(this.id,e)},methods:{timeup:function(){this.getDetail(this.id,this.flash?this.flash:0)},getDetail:function(t,e){var i=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var n,s,r,c,l,d,f,u,p;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=0==e?"/product/detail":"/flash/productDetail",a.next=3,i.$api.request(n+"?id=".concat(t,"&flash_id=").concat(e),"GET");case 3:if(s=a.sent,uni.stopPullDownRefresh(),s){a.next=8;break}return setTimeout((function(){uni.navigateBack()}),3e3),a.abrupt("return");case 8:if(i.product=s,s.flash&&(i.countdown=s.flash.countdown,i.progress=s.flash),i.favorite=i.product.favorite,i.product.use_spec){for(u in r=i.product.spec_list,c=i.product.spec_table_list,l=1,d=1,f=[],r)for(p in r[u].id=l++,r[u].child)f.push({id:d++,pid:r[u].id,name:r[u].child[p]});i.specList=r,i.specChildList=f,i.specTableList=c,i.specSelected=[],i.specList.forEach((function(t){var e,a=(0,o.default)(i.specChildList);try{for(a.s();!(e=a.n()).done;){var n=e.value;if(n.pid===t.id){i.$set(n,"selected",!0),i.specSelected.push(n.name);break}}}catch(s){a.e(s)}finally{a.f()}}))}case 12:case"end":return a.stop()}}),a)})))()},toggleCoupon:function(){var t=this;"show"===this.couponClass?(this.couponClass="hide",setTimeout((function(){t.couponClass="none"}),250)):"none"===this.couponClass&&(this.couponClass="show")},toggleSpec:function(){var t=this;"show"===this.specClass?(this.specClass="hide",setTimeout((function(){t.specClass="none"}),250)):"none"===this.specClass&&(this.specClass="show")},selectSpec:function(t,e){var i=this,a=this.specChildList;a.forEach((function(t){t.pid===e&&i.$set(t,"selected",!1)})),this.$set(a[t],"selected",!0),this.specSelected=[],a.forEach((function(t){!0===t.selected&&i.specSelected.push(t.name)}))},share:function(){this.$refs.share.toggleMask()},toFavorite:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.flash){e.next=3;break}return t.$api.msg("秒杀商品不能收藏"),e.abrupt("return");case 3:return e.next=5,t.$api.checkLogin();case 5:if(i=e.sent,!i){e.next=12;break}return t.favorite=!t.favorite,e.next=10,t.$api.request("/product/favorite?id="+t.product.product_id);case 10:a=e.sent,a||(t.favorite=!t.favorite);case 12:case"end":return e.stop()}}),e)})))()},buy:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.checkLogin();case 2:i=e.sent,i&&(a="",1==t.product.use_spec&&(a=t.specSelected.join(",")),n="/pages/order/createOrder?id=".concat(t.product.product_id,"&spec=").concat(a),t.flash&&(n+="&flash_id=".concat(t.flash)),uni.navigateTo({url:n}));case 4:case"end":return e.stop()}}),e)})))()},addCart:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.flash){e.next=3;break}return t.$api.msg("秒杀商品不能加入购物车"),e.abrupt("return");case 3:return e.next=5,t.$api.checkLogin();case 5:if(i=e.sent,!i){e.next=13;break}return a="",1==t.product.use_spec&&(a=t.specSelected.join(",")),e.next=11,t.$api.request("/cart/add?id="+t.product.product_id+"&spec="+a);case 11:n=e.sent,n&&t.product.cart_num++;case 13:case"end":return e.stop()}}),e)})))()},stopPrevent:function(){},percentage:function(t,e){return e?parseInt(e/t*100):0},previewImage:function(t){uni.previewImage({current:this.product.images_text[t],urls:this.product.images_text,indicator:"number",loop:!0})}}};e.default=f},"6fde":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{transform:"translateY(50vh)",timer:0,backgroundColor:"rgba(0,0,0,0)",show:!1,config:{}}},props:{contentHeight:{type:Number,default:0},hasTabbar:{type:Boolean,default:!1},shareList:{type:Array,default:function(){return[]}}},created:function(){var t=uni.upx2px(this.contentHeight)+"px";this.config={height:t,transform:"translateY(".concat(t,")"),backgroundColor:"rgba(0,0,0,.4)"},this.transform=this.config.transform},methods:{toggleMask:function(){var t=this;if(1!=this.timer){if(this.timer=1,setTimeout((function(){t.timer=0}),500),this.show)return this.transform=this.config.transform,this.backgroundColor="rgba(0,0,0,0)",void setTimeout((function(){t.show=!1,t.hasTabbar&&uni.showTabBar()}),200);this.show=!0,this.hasTabbar?uni.hideTabBar({success:function(){setTimeout((function(){t.backgroundColor=t.config.backgroundColor,t.transform="translateY(0px)"}),10)}}):setTimeout((function(){t.backgroundColor=t.config.backgroundColor,t.transform="translateY(0px)"}),10)}},stopPrevent:function(){},shareToFriend:function(t){this.$api.msg("分享给".concat(t)),this.toggleMask()}}};e.default=a},"756e":function(t,e,i){"use strict";var a={uniCountdown:i("4b80").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"carousel"},[i("v-uni-swiper",{attrs:{"indicator-dots":!0,circular:"true",duration:"400"}},t._l(t.product.images_text,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"swiper-item"},[i("v-uni-view",{staticClass:"image-wrapper"},[i("v-uni-image",{staticClass:"loaded",attrs:{src:e,mode:"aspectFill"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage(a)}}})],1)],1)})),1)],1),t.flash?i("v-uni-view",{staticClass:"flash"},[t.product.market_price?i("v-uni-view",{staticClass:"sales_price"},[i("v-uni-view",{staticClass:"symbol"},[t._v("¥")]),t._v(t._s(t.specProduct.sales_price))],1):t._e(),t.product.market_price?i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{staticClass:"market_price"},[t._v("¥"+t._s(t.specProduct.market_price))]),t.progress.number?i("v-uni-view",{staticClass:"sold"},[t._v("秒"+t._s(t.progress.number)+"件")]):t._e()],1):t._e(),i("v-uni-view",{staticClass:"right"},[t.countdown&&t.progress.number!=t.progress.sold?i("v-uni-view",{staticClass:"time"},[t._v(t._s(t.product.flash.text)),i("uni-countdown",{ref:"countd",attrs:{showDay:t.countdown.day>0,day:t.countdown.day,hour:t.countdown.hour,minute:t.countdown.minute,second:t.countdown.second,color:"#fffa30",borderWidth:"22rpx",splitorColor:"#fffa30","background-color":"#282f2c00","border-color":"#00B26A"},on:{timeup:function(e){arguments[0]=e=t.$handleEvent(e),t.timeup.apply(void 0,arguments)}}})],1):i("v-uni-view",{staticClass:"time",class:{flashDone:0==t.progress.number}},[t._v("抢购已结束")]),t.progress.number?i("v-uni-view",{staticClass:"progress"},[i("ProgressBar",{staticClass:"ProgressBar",attrs:{Sold:t.progress.sold,widthUpx:250,Width:t.percentage(t.progress.number,t.progress.sold),Type:"candy",Vice:!0}})],1):t._e()],1)],1):t._e(),t.product.product_id?i("v-uni-view",{staticClass:"introduce-section"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.product.title))]),0==t.flash?i("v-uni-view",{staticClass:"price-box"},[i("v-uni-text",{staticClass:"price-tip"},[t._v("¥")]),i("v-uni-text",{staticClass:"price"},[t._v(t._s(t.specProduct.sales_price))]),t.specProduct.market_price?i("v-uni-text",{staticClass:"m-price"},[t._v("¥"+t._s(t.specProduct.market_price))]):t._e(),t.specProduct.market_price>0&&t.specProduct.market_price>t.specProduct.sales_price?i("v-uni-text",{staticClass:"coupon-tip"},[t._v(t._s((t.specProduct.sales_price/t.specProduct.market_price*10).toFixed(1))+"折")]):t._e()],1):t._e(),i("v-uni-view",{staticClass:"bot-row"},[i("v-uni-text",[t._v("销量: "+t._s(t.product.sales))]),i("v-uni-text",[t._v("总库存: "+t._s(t.product.stock))]),i("v-uni-text",[t._v("浏览量: "+t._s(t.product.look))])],1)],1):t._e(),i("v-uni-view",{staticClass:"c-list"},[t.product.use_spec?i("v-uni-view",{staticClass:"c-row b-b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("购买类型")]),i("v-uni-view",{staticClass:"con"},[i("v-uni-text",{staticClass:"selected-text"},[t._v(t._s(t.specSelectedName))]),i("v-uni-text",{staticStyle:{"margin-left":"50rpx"}},[t._v("库存:"+t._s(t.specProduct.stock))])],1),i("v-uni-text",{staticClass:"yticon icon-you"})],1):t._e(),t.product.coupon.length?i("v-uni-view",{staticClass:"c-row b-b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("优惠券")]),i("v-uni-text",{staticClass:"con t-r red"},[t._v("查看可用优惠券")]),i("v-uni-text",{staticClass:"yticon icon-you"})],1):t._e(),t.product.server?i("v-uni-view",{staticClass:"c-row b-b"},[i("v-uni-text",{staticClass:"tit"},[t._v("服务")]),i("v-uni-view",{staticClass:"bz-list con"},[t._v(t._s(t.product.server))])],1):t._e()],1),t.product.evaluate_data&&t.product.evaluate_data.count>0?i("v-uni-view",{staticClass:"eva-section"},[i("v-uni-view",{staticClass:"e-header",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/product/evaluate?product_id="+t.product.product_id)}}},[i("v-uni-text",{staticClass:"tit"},[t._v("评价")]),i("v-uni-text",[t._v("("+t._s(t.product.evaluate_data.count)+")")]),i("v-uni-text",{staticClass:"tip"},[t._v("好评率 "+t._s(t.product.evaluate_data.avg)+"%")]),i("v-uni-text",{staticClass:"yticon icon-you"})],1),t._l(t.product.evaluate_list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"eva-box"},[i("v-uni-image",{staticClass:"portrait",attrs:{src:e.avatar,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"name"},[t._v(t._s(e.username))]),i("v-uni-text",{staticClass:"con"},[t._v(t._s(e.comment))]),i("v-uni-view",{staticClass:"bot"},[e.spec?i("v-uni-text",{staticClass:"attr"},[t._v("购买类型:"+t._s(e.spec))]):i("v-uni-text",{staticClass:"attr"}),i("v-uni-text",{staticClass:"time"},[t._v(t._s(e.createtime_text))])],1)],1)],1)}))],2):t._e(),t.product.desc?i("v-uni-view",{staticClass:"detail-desc"},[i("v-uni-view",{staticClass:"d-header"},[i("v-uni-text",[t._v("图文详情")])],1),i("v-uni-rich-text",{attrs:{nodes:t.product.desc}})],1):t._e(),i("v-uni-view",{staticClass:"page-bottom"},[i("v-uni-navigator",{staticClass:"p-b-btn",attrs:{url:"/pages/index/index","open-type":"switchTab"}},[i("v-uni-text",{staticClass:"yticon icon-fangzi"}),i("v-uni-text",[t._v("首页")])],1),t.flash?i("v-uni-view",{staticClass:"p-b-btn"},[i("v-uni-text")],1):i("v-uni-view",{staticClass:"p-b-btn",class:{active:t.favorite},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toFavorite.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"yticon icon-shoucang"}),i("v-uni-text",[t._v("收藏")])],1),i("v-uni-view",{staticClass:"action-btn-group"},[i("v-uni-button",{staticClass:" action-btn no-border buy-now-btn",class:{only:t.flash},attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buy.apply(void 0,arguments)}}},[t._v("立即购买")])],1)],1),i("v-uni-view",{staticClass:"popup spec",class:t.couponClass,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask"}),i("v-uni-view",{staticClass:"layer attr-content content-coupon",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},t._l(t.product.coupon,(function(e,a){return i("v-uni-view",{key:a,staticClass:"coupon-item"},[i("v-uni-view",{staticClass:"con"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(e.title))]),i("v-uni-text",{staticClass:"time"},[t._v("有效期至"+t._s(e.endtime_text))])],1),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"price"},[t._v(t._s(e.value))]),i("v-uni-text",[t._v("满"+t._s(e.least)+"可用")])],1),i("v-uni-view",{staticClass:"circle l"}),i("v-uni-view",{staticClass:"circle r"})],1),i("v-uni-text",{staticClass:"tips"},[t._v("限一张使用")])],1)})),1),i("v-uni-button",{staticClass:"btn retract",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCoupon.apply(void 0,arguments)}}},[t._v("收起")])],1),i("v-uni-view",{staticClass:"popup spec",class:t.specClass,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask"}),i("v-uni-view",{staticClass:"layer attr-content",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"a-t"},[t.specProduct.image?i("v-uni-image",{attrs:{mode:"aspectFill",src:t.specProduct.image}}):t._e(),i("v-uni-view",{staticClass:"right"},[i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.specProduct.sales_price))]),i("v-uni-text",{staticClass:"stock"},[t._v("库存:"+t._s(t.specProduct.stock)+"件")]),i("v-uni-view",{staticClass:"selected"},[t._v("已选:"),i("v-uni-text",{staticClass:"selected-text"},[t._v(t._s(t.specSelectedName))])],1)],1)],1),t._l(t.specList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"attr-list"},[i("v-uni-text",[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"item-list"},t._l(t.specChildList,(function(a,n){return a.pid===e.id?i("v-uni-text",{key:n,staticClass:"tit",class:{selected:a.selected},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectSpec(n,a.pid)}}},[t._v(t._s(a.name))]):t._e()})),1)],1)})),i("v-uni-button",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleSpec.apply(void 0,arguments)}}},[t._v("完成")])],2)],1)],1)},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},8391:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-691f8125]{background:#f8f8f8;padding-bottom:%?160?%}.icon-you[data-v-691f8125]{font-size:%?30?%;color:#888}.carousel[data-v-691f8125]{height:%?722?%;position:relative}.carousel uni-swiper[data-v-691f8125]{height:100%}.carousel .image-wrapper[data-v-691f8125]{width:100%;height:100%}.carousel .swiper-item[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-align-content:center;align-content:center;height:%?750?%;overflow:hidden}.carousel .swiper-item uni-image[data-v-691f8125]{width:100%;height:100%}\n/* 标题简介 */.introduce-section[data-v-691f8125]{background:#fff;padding:%?20?% %?30?%}.introduce-section .title[data-v-691f8125]{font-size:%?32?%;color:#303133;height:%?50?%;line-height:%?50?%}.introduce-section .price-box[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;height:%?64?%;padding:%?10?% 0;font-size:%?26?%;color:#fa436a}.introduce-section .price[data-v-691f8125]{font-size:%?34?%}.introduce-section .m-price[data-v-691f8125]{margin:0 %?12?%;color:#909399;text-decoration:line-through}.introduce-section .coupon-tip[data-v-691f8125]{-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?4?% %?10?%;background:#fa436a;font-size:%?24?%;color:#fff;border-radius:%?6?%;line-height:1;-webkit-transform:translateY(%?-4?%);transform:translateY(%?-4?%)}.introduce-section .bot-row[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?50?%;font-size:%?24?%;color:#909399}.introduce-section .bot-row uni-text[data-v-691f8125]{-webkit-box-flex:1;-webkit-flex:1;flex:1}\n/* 分享 */.share-section[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#606266;background:-webkit-linear-gradient(left,#fdf5f6,#fbebf6);background:linear-gradient(left,#fdf5f6,#fbebf6);padding:%?12?% %?30?%}.share-section .share-icon[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?70?%;height:%?30?%;line-height:1;border:1px solid #fa436a;border-radius:%?4?%;position:relative;overflow:hidden;font-size:%?22?%;color:#fa436a}.share-section .share-icon[data-v-691f8125]:after{content:"";width:%?50?%;height:%?50?%;border-radius:50%;left:%?-20?%;top:%?-12?%;position:absolute;background:#fa436a}.share-section .icon-xingxing[data-v-691f8125]{position:relative;z-index:1;font-size:%?24?%;margin-left:%?2?%;margin-right:%?10?%;color:#fff;line-height:1}.share-section .tit[data-v-691f8125]{font-size:%?28?%;margin-left:%?10?%}.share-section .icon-bangzhu1[data-v-691f8125]{padding:%?10?%;font-size:%?30?%;line-height:1}.share-section .share-btn[data-v-691f8125]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right;font-size:%?24?%;color:#fa436a}.share-section .icon-you[data-v-691f8125]{font-size:%?24?%;margin-left:%?4?%;color:#fa436a}.c-list[data-v-691f8125]{font-size:%?26?%;color:#606266;background:#fff}.c-list .c-row[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?20?% %?30?%;position:relative}.c-list .tit[data-v-691f8125]{width:%?140?%}.c-list .con[data-v-691f8125]{-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#303133}.c-list .con .selected-text[data-v-691f8125]{margin-right:%?10?%}.c-list .bz-list[data-v-691f8125]{height:%?40?%;font-size:%?26?%;color:#303133}.c-list .bz-list uni-text[data-v-691f8125]{display:inline-block;margin-right:%?30?%}.c-list .con-list[data-v-691f8125]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#303133;line-height:%?40?%}.c-list .red[data-v-691f8125]{color:#fa436a}\n/* 评价 */.eva-section[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:%?20?% %?30?%;background:#fff;margin-top:%?16?%}.eva-section .e-header[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?70?%;font-size:%?26?%;color:#909399}.eva-section .e-header .tit[data-v-691f8125]{font-size:%?30?%;color:#303133;margin-right:%?4?%}.eva-section .e-header .tip[data-v-691f8125]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:right}.eva-section .e-header .icon-you[data-v-691f8125]{margin-left:%?10?%}.eva-box[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0}.eva-box .portrait[data-v-691f8125]{-webkit-flex-shrink:0;flex-shrink:0;width:%?80?%;height:%?80?%;border-radius:100px}.eva-box .right[data-v-691f8125]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?28?%;color:#606266;padding-left:%?26?%}.eva-box .right .con[data-v-691f8125]{font-size:%?28?%;color:#303133;padding:%?20?% 0}.eva-box .right .bot[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;font-size:%?24?%;color:#909399}\n/* 详情 */.detail-desc[data-v-691f8125]{background:#fff;margin-top:%?16?%}.detail-desc .d-header[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;font-size:%?30?%;color:#303133;position:relative}.detail-desc .d-header uni-text[data-v-691f8125]{padding:0 %?20?%;background:#fff;position:relative;z-index:1}.detail-desc .d-header[data-v-691f8125]:after{position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:%?300?%;height:0;content:"";border-bottom:1px solid #ccc}\n/* 规格选择弹窗 */.attr-content[data-v-691f8125]{padding:%?10?% %?30?%}.attr-content .a-t[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex}.attr-content .a-t uni-image[data-v-691f8125]{width:%?170?%;height:%?170?%;-webkit-flex-shrink:0;flex-shrink:0;margin-top:%?-40?%;border-radius:%?8?%}.attr-content .a-t .right[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding-left:%?24?%;font-size:%?26?%;color:#606266;line-height:%?42?%}.attr-content .a-t .right .price[data-v-691f8125]{font-size:%?32?%;color:#fa436a;margin-bottom:%?10?%}.attr-content .a-t .right .selected-text[data-v-691f8125]{margin-right:%?10?%}.attr-content .attr-list[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;font-size:%?30?%;color:#606266;padding-top:%?30?%;padding-left:%?10?%}.attr-content .item-list[data-v-691f8125]{padding:%?20?% 0 0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.attr-content .item-list uni-text[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;background:#eee;margin-right:%?20?%;margin-bottom:%?20?%;border-radius:%?100?%;min-width:%?60?%;height:%?60?%;padding:0 %?20?%;font-size:%?28?%;color:#303133}.attr-content .item-list .selected[data-v-691f8125]{background:#fbebee;color:#fa436a}\n/* 弹出层 */.popup[data-v-691f8125]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99}.popup.show[data-v-691f8125]{display:block}.popup.show .mask[data-v-691f8125]{-webkit-animation:showPopup-data-v-691f8125 .2s linear both;animation:showPopup-data-v-691f8125 .2s linear both}.popup.show .layer[data-v-691f8125]{-webkit-animation:showLayer-data-v-691f8125 .2s linear both;animation:showLayer-data-v-691f8125 .2s linear both}.popup.hide .mask[data-v-691f8125]{-webkit-animation:hidePopup-data-v-691f8125 .2s linear both;animation:hidePopup-data-v-691f8125 .2s linear both}.popup.hide .layer[data-v-691f8125]{-webkit-animation:hideLayer-data-v-691f8125 .2s linear both;animation:hideLayer-data-v-691f8125 .2s linear both}.popup.none[data-v-691f8125]{display:none}.popup .mask[data-v-691f8125]{position:fixed;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,.4)}.popup .layer[data-v-691f8125]{position:fixed;z-index:99;bottom:0;width:100%;min-height:40vh;border-radius:%?10?% %?10?% 0 0;background-color:#fff}.popup .layer .btn[data-v-691f8125]{height:%?66?%;line-height:%?66?%;border-radius:%?100?%;background:#fa436a;font-size:%?30?%;color:#fff;margin:%?30?% auto %?20?%}@-webkit-keyframes showPopup-data-v-691f8125{0%{opacity:0}100%{opacity:1}}@keyframes showPopup-data-v-691f8125{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes hidePopup-data-v-691f8125{0%{opacity:1}100%{opacity:0}}@keyframes hidePopup-data-v-691f8125{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes showLayer-data-v-691f8125{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes showLayer-data-v-691f8125{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes hideLayer-data-v-691f8125{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}@keyframes hideLayer-data-v-691f8125{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}\n/* 底部操作菜单 */.page-bottom[data-v-691f8125]{position:fixed;left:%?30?%;bottom:%?30?%;z-index:95;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?690?%;height:%?100?%;background:hsla(0,0%,100%,.9);box-shadow:0 0 %?20?% 0 rgba(0,0,0,.5);border-radius:%?16?%}.page-bottom .p-b-btn[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?24?%;color:#606266;width:%?96?%;height:%?80?%;position:relative\n /* 购物车数量 */}.page-bottom .p-b-btn .cart-count[data-v-691f8125]{border:%?4?% solid #fa436a;width:%?40?%;height:%?40?%;color:#fa436a;text-align:center;border-radius:%?40?%;position:absolute;background:#fff;top:%?-10?%;right:0}.page-bottom .p-b-btn .yticon[data-v-691f8125]{font-size:%?46?%;line-height:%?48?%;color:#909399}.page-bottom .p-b-btn.active[data-v-691f8125],\n.page-bottom .p-b-btn.active .yticon[data-v-691f8125]{color:#fa436a}.page-bottom .action-btn-group[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;height:%?76?%;border-radius:100px;overflow:hidden;box-shadow:0 %?20?% %?40?% %?-16?% #fa436a;box-shadow:1px 2px 5px rgba(219,63,96,.4);background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);margin-left:%?20?%;position:relative}.page-bottom .action-btn-group .only[data-v-691f8125]{width:%?360?%!important}.page-bottom .action-btn-group[data-v-691f8125]:after{content:"";position:absolute;top:50%;right:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:%?28?%;width:0;border-right:1px solid hsla(0,0%,100%,.5)}.page-bottom .action-btn-group .action-btn[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?180?%;height:100%;font-size:%?28?%;padding:0;border-radius:0;background:transparent}.flash[data-v-691f8125]{height:%?100?%;background:-webkit-linear-gradient(left,#ffac30,#fa436a,#f56c6c);background:linear-gradient(90deg,#ffac30,#fa436a,#f56c6c);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;position:relative}.flash .sales_price[data-v-691f8125]{color:#fff;font-size:%?50?%}.flash .sales_price .symbol[data-v-691f8125]{font-size:%?30?%;display:inline}.flash .left[data-v-691f8125]{font-size:%?28?%;padding:%?10?%}.flash .left .market_price[data-v-691f8125]{color:#dcdfe6;text-decoration:line-through}.flash .left .sold[data-v-691f8125]{color:#e4e7ed}.flash .right[data-v-691f8125]{height:100%;width:%?300?%;position:absolute;right:0;padding:%?4?%;margin-right:%?20?%}.flash .right .time[data-v-691f8125]{font-size:%?30?%;color:#fffa30;text-align:center}.flash .right .time .uni-countdown[data-v-691f8125]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex}.flash .right .progress[data-v-691f8125]{position:absolute;bottom:%?7?%;right:%?10?%}.flash .right .flashDone[data-v-691f8125]{font-size:%?40?%;height:%?90?%;line-height:%?90?%}\n/* 优惠券列表 */.content-coupon[data-v-691f8125]{padding-bottom:%?100?%;max-height:%?800?%;overflow:auto}.retract[data-v-691f8125]{position:fixed;bottom:0;width:%?700?%;z-index:100;margin:%?20?% %?25?%;color:#fff;background:#fa436a}.coupon-item[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#fff}.coupon-item .con[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;height:%?120?%;padding:0 %?30?%}.coupon-item .con[data-v-691f8125]:after{position:absolute;left:0;bottom:0;content:"";width:100%;height:0;border-bottom:1px dashed #f3f3f3;-webkit-transform:scaleY(50%);transform:scaleY(50%)}.coupon-item .left[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;height:%?100?%}.coupon-item .title[data-v-691f8125]{font-size:%?32?%;color:#303133;margin-bottom:%?10?%}.coupon-item .time[data-v-691f8125]{font-size:%?24?%;color:#909399}.coupon-item .right[data-v-691f8125]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?26?%;color:#606266;height:%?100?%}.coupon-item .price[data-v-691f8125]{font-size:%?44?%;color:#fa436a}.coupon-item .price[data-v-691f8125]:before{content:"¥";font-size:%?34?%}.coupon-item .tips[data-v-691f8125]{font-size:%?24?%;color:#909399;line-height:%?60?%;padding-left:%?30?%}.coupon-item .circle[data-v-691f8125]{position:absolute;left:%?-6?%;bottom:%?-10?%;z-index:10;width:%?20?%;height:%?20?%;background:#f3f3f3;border-radius:100px}.coupon-item .circle.r[data-v-691f8125]{left:auto;right:%?-6?%}body.?%PAGE?%[data-v-691f8125]{background:#f8f8f8}',""]),t.exports=e},"8b96":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.mask[data-v-0bf59f9e]{position:fixed;left:0;top:0;right:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;z-index:998;-webkit-transition:.3s;transition:.3s}.mask .bottom[data-v-0bf59f9e]{position:absolute;left:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;height:%?90?%;background:#fff;z-index:9;font-size:%?30?%;color:#303133}.mask-content[data-v-0bf59f9e]{width:100%;height:%?580?%;-webkit-transition:.3s;transition:.3s;background:#fff}.mask-content.has-bottom[data-v-0bf59f9e]{padding-bottom:%?90?%}.mask-content .view-content[data-v-0bf59f9e]{height:100%}.share-header[data-v-0bf59f9e]{height:%?110?%;font-size:%?30?%;color:font-color-dark;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding-top:%?10?%}.share-header[data-v-0bf59f9e]:before, .share-header[data-v-0bf59f9e]:after{content:"";width:%?240?%;heighg:0;border-top:1px solid #e4e7ed;-webkit-transform:scaleY(.5);transform:scaleY(.5);margin-right:%?30?%}.share-header[data-v-0bf59f9e]:after{margin-left:%?30?%;margin-right:0}.share-list[data-v-0bf59f9e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.share-item[data-v-0bf59f9e]{min-width:33.33%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?180?%}.share-item uni-image[data-v-0bf59f9e]{width:%?80?%;height:%?80?%;margin-bottom:%?16?%}.share-item uni-text[data-v-0bf59f9e]{font-size:%?28?%;color:#606266}',""]),t.exports=e},"9a82":function(t,e,i){"use strict";var a=i("c325"),n=i.n(a);n.a},a2de:function(t,e,i){var a=i("8b96");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("31f97218",a,!0,{sourceMap:!1,shadowMode:!1})},b2bb:function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("v-uni-view",{staticClass:"mask",style:{backgroundColor:t.backgroundColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMask.apply(void 0,arguments)},touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask-content",style:[{height:t.config.height,transform:t.transform}],on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.stopPrevent.apply(void 0,arguments)}}},[i("v-uni-scroll-view",{staticClass:"view-content",attrs:{"scroll-y":!0}},[i("v-uni-view",{staticClass:"share-header"},[t._v("分享到")]),i("v-uni-view",{staticClass:"share-list"},t._l(t.shareList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"share-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.shareToFriend(e.text)}}},[i("v-uni-image",{attrs:{src:e.icon,mode:""}}),i("v-uni-text",[t._v(t._s(e.text))])],1)})),1)],1),i("v-uni-view",{staticClass:"bottom b-t",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMask.apply(void 0,arguments)}}},[t._v("取消")])],1)],1):t._e()},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},b87d:function(t,e,i){"use strict";i.r(e);var a=i("756e"),n=i("f091");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("9a82");var s,r=i("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"691f8125",null,!1,a["a"],s);e["default"]=c.exports},c325:function(t,e,i){var a=i("8391");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("3e730eff",a,!0,{sourceMap:!1,shadowMode:!1})},eef9:function(t,e,i){var a=i("28a4");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("eef38dfc",a,!0,{sourceMap:!1,shadowMode:!1})},f091:function(t,e,i){"use strict";i.r(e);var a=i("6dd9"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},f540:function(t,e,i){"use strict";i.r(e);var a=i("6fde"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.0c7763a4.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.0c7763a4.js deleted file mode 100644 index c5a9978..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.0c7763a4.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-login"],{"0224":function(t,n,i){var e=i("24fb");n=e(!1),n.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-3c3c7284]{background:#fff}.container[data-v-3c3c7284]{padding-top:%?160?%;position:relative;width:100vw;height:100vh;overflow:hidden;background:#fff}.wrapper[data-v-3c3c7284]{position:relative;z-index:90;background:#fff;padding-bottom:%?40?%}.back-btn[data-v-3c3c7284]{position:absolute;left:%?40?%;z-index:9999;padding-top:0;top:%?40?%;font-size:%?40?%;color:#303133}.left-top-sign[data-v-3c3c7284]{font-size:%?120?%;color:#f8f8f8;position:relative;left:%?-16?%}.welcome[data-v-3c3c7284]{position:relative;left:%?50?%;top:%?-90?%;font-size:%?46?%;color:#555;text-shadow:1px 0 1px rgba(0,0,0,.3)}.input-content[data-v-3c3c7284]{padding:0 %?60?%}.input-item[data-v-3c3c7284]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding:0 %?30?%;background:#f8f6fc;height:%?120?%;border-radius:4px;margin-bottom:%?50?%}.input-item[data-v-3c3c7284]:last-child{margin-bottom:0}.input-item .tit[data-v-3c3c7284]{height:%?50?%;line-height:%?56?%;font-size:%?26?%;color:#606266}.input-item uni-input[data-v-3c3c7284]{height:%?60?%;font-size:%?30?%;color:#303133;width:100%}.confirm-btn[data-v-3c3c7284]{width:%?630?%;height:%?76?%;line-height:%?76?%;border-radius:50px;margin-top:%?70?%;background:#fa436a;color:#fff;font-size:%?32?%}.confirm-btn[data-v-3c3c7284]:after{border-radius:100px}.forget-section[data-v-3c3c7284]{font-size:%?34?%;color:#4399fc;text-align:center;margin-top:%?100?%}.forget-section uni-label[data-v-3c3c7284]{margin:%?10?% %?60?%}.register-section[data-v-3c3c7284]{position:absolute;left:0;bottom:%?50?%;width:100%;font-size:%?26?%;color:#606266;text-align:center}.register-section uni-text[data-v-3c3c7284]{color:#4399fc;margin-left:%?10?%}body.?%PAGE?%[data-v-3c3c7284]{background:#fff}',""]),t.exports=n},"056e":function(t,n,i){"use strict";var e=i("b018"),a=i.n(e);a.a},"26f6":function(t,n,i){"use strict";i.r(n);var e=i("d4e7"),a=i("8b13");for(var o in a)"default"!==o&&function(t){i.d(n,t,(function(){return a[t]}))}(o);i("056e");var c,r=i("f0c5"),s=Object(r["a"])(a["default"],e["b"],e["c"],!1,null,"3c3c7284",null,!1,e["a"],c);n["default"]=s.exports},"8b13":function(t,n,i){"use strict";i.r(n);var e=i("b3f1"),a=i.n(e);for(var o in e)"default"!==o&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=a.a},b018:function(t,n,i){var e=i("0224");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=i("4f06").default;a("4ed3d1a8",e,!0,{sourceMap:!1,shadowMode:!1})},b3f1:function(t,n,i){"use strict";var e=i("ee27");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,i("96cf");var a=e(i("c964")),o=e(i("f3f3")),c=i("2f62"),r={data:function(){return{mobile:"",password:"",logining:!1}},onLoad:function(){},methods:(0,o.default)({},(0,c.mapMutations)(["login"]),{inputChange:function(t){var n=t.currentTarget.dataset.key;this[n]=t.detail.value},navBack:function(){uni.navigateBack()},toLogin:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.logining=!0,n.next=3,t.$api.request("/user/login","POST",{mobile:t.mobile,password:t.password});case 3:i=n.sent,i?(t.$store.commit("login",i),t.logining=!0,setTimeout((function(){uni.navigateBack()}),2e3)):t.logining=!1;case 5:case"end":return n.stop()}}),n)})))()},register:function(t){uni.navigateTo({url:"./register?event="+t})}})};n.default=r},d4e7:function(t,n,i){"use strict";var e,a=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"back-btn yticon icon-zuojiantou-up",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.navBack.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"left-top-sign"},[t._v("LOGIN")]),i("v-uni-view",{staticClass:"welcome"},[t._v("欢迎回来!")]),i("v-uni-view",{staticClass:"input-content"},[i("v-uni-view",{staticClass:"input-item"},[i("v-uni-text",{staticClass:"tit"},[t._v("手机号码")]),i("v-uni-input",{attrs:{type:"text",value:t.mobile,placeholder:"请输入手机号码","data-key":"mobile"},on:{input:function(n){arguments[0]=n=t.$handleEvent(n),t.inputChange.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"input-item"},[i("v-uni-text",{staticClass:"tit"},[t._v("密码")]),i("v-uni-input",{attrs:{type:"mobile",value:"",placeholder:"6-18位不含特殊字符的数字、字母组合","placeholder-class":"input-empty",maxlength:"20",password:!0,"data-key":"password"},on:{input:function(n){arguments[0]=n=t.$handleEvent(n),t.inputChange.apply(void 0,arguments)},confirm:function(n){arguments[0]=n=t.$handleEvent(n),t.toLogin.apply(void 0,arguments)}}})],1)],1),i("v-uni-button",{staticClass:"confirm-btn",attrs:{disabled:t.logining},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toLogin.apply(void 0,arguments)}}},[t._v("登录")]),i("v-uni-view",{staticClass:"forget-section"},[i("v-uni-view",[i("v-uni-label",{on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.register("resetpwd")}}},[t._v("忘记密码")])],1)],1)],1)],1)},o=[];i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){return e}))}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.15460be0.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.15460be0.js new file mode 100644 index 0000000..ff7a8ab --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.15460be0.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-login"],{"26f6":function(t,n,i){"use strict";i.r(n);var e=i("b978"),a=i("8b13");for(var o in a)"default"!==o&&function(t){i.d(n,t,(function(){return a[t]}))}(o);i("b47f");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],e["b"],e["c"],!1,null,"56db1086",null,!1,e["a"],r);n["default"]=c.exports},"3d2c":function(t,n,i){var e=i("24fb");n=e(!1),n.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-56db1086]{background:#fff}.container[data-v-56db1086]{padding-top:%?160?%;position:relative;width:100vw;height:100vh;overflow:hidden;background:#fff}.wrapper[data-v-56db1086]{position:relative;z-index:90;background:#fff;padding-bottom:%?40?%}.back-btn[data-v-56db1086]{position:absolute;left:%?40?%;z-index:9999;padding-top:0;top:%?40?%;font-size:%?40?%;color:#303133}.left-top-sign[data-v-56db1086]{font-size:%?120?%;color:#f8f8f8;position:relative;left:%?-16?%}.welcome[data-v-56db1086]{position:relative;left:%?50?%;top:%?-90?%;font-size:%?46?%;color:#555;text-shadow:1px 0 1px rgba(0,0,0,.3)}.input-content[data-v-56db1086]{padding:0 %?60?%}.input-item[data-v-56db1086]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding:0 %?30?%;background:#f8f6fc;height:%?120?%;border-radius:4px;margin-bottom:%?50?%}.input-item[data-v-56db1086]:last-child{margin-bottom:0}.input-item .tit[data-v-56db1086]{height:%?50?%;line-height:%?56?%;font-size:%?26?%;color:#606266}.input-item uni-input[data-v-56db1086]{height:%?60?%;font-size:%?30?%;color:#303133;width:100%}.confirm-btn[data-v-56db1086]{width:%?630?%;height:%?76?%;line-height:%?76?%;border-radius:50px;margin-top:%?70?%;background:#fa436a;color:#fff;font-size:%?32?%}.confirm-btn[data-v-56db1086]:after{border-radius:100px}.forget-section[data-v-56db1086]{font-size:%?34?%;color:#4399fc;text-align:center;margin-top:%?100?%}.forget-section uni-label[data-v-56db1086]{margin:%?10?% %?60?%}.register-section[data-v-56db1086]{position:absolute;left:0;bottom:%?50?%;width:100%;font-size:%?26?%;color:#606266;text-align:center}.register-section uni-text[data-v-56db1086]{color:#4399fc;margin-left:%?10?%}body.?%PAGE?%[data-v-56db1086]{background:#fff}',""]),t.exports=n},"5b74":function(t,n,i){var e=i("3d2c");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=i("4f06").default;a("4cd7491e",e,!0,{sourceMap:!1,shadowMode:!1})},"8b13":function(t,n,i){"use strict";i.r(n);var e=i("b3f1"),a=i.n(e);for(var o in e)"default"!==o&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=a.a},b3f1:function(t,n,i){"use strict";var e=i("ee27");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,i("96cf");var a=e(i("c964")),o=e(i("f3f3")),r=i("2f62"),s={data:function(){return{mobile:"",password:"",logining:!1}},onLoad:function(){},methods:(0,o.default)({},(0,r.mapMutations)(["login"]),{inputChange:function(t){var n=t.currentTarget.dataset.key;this[n]=t.detail.value},navBack:function(){uni.navigateBack()},toLogin:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.logining=!0,n.next=3,t.$api.request("/user/login","POST",{mobile:t.mobile,password:t.password});case 3:i=n.sent,i?(t.$store.commit("login",i),t.logining=!0,setTimeout((function(){var t=getCurrentPages();1==t.length&&"pages/public/login"==t[0].route?uni.switchTab({url:"/pages/index/index"}):uni.navigateBack()}),2e3)):t.logining=!1;case 5:case"end":return n.stop()}}),n)})))()},register:function(t){uni.navigateTo({url:"./register?event="+t})}})};n.default=s},b47f:function(t,n,i){"use strict";var e=i("5b74"),a=i.n(e);a.a},b978:function(t,n,i){"use strict";var e,a=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"back-btn yticon icon-zuojiantou-up",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.navBack.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"left-top-sign"},[t._v("LOGIN")]),i("v-uni-view",{staticClass:"welcome"},[t._v("欢迎回来!")]),i("v-uni-view",{staticClass:"input-content"},[i("v-uni-view",{staticClass:"input-item"},[i("v-uni-text",{staticClass:"tit"},[t._v("工号")]),i("v-uni-input",{attrs:{type:"text",value:t.mobile,placeholder:"请输入工号","data-key":"mobile"},on:{input:function(n){arguments[0]=n=t.$handleEvent(n),t.inputChange.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"input-item"},[i("v-uni-text",{staticClass:"tit"},[t._v("密码")]),i("v-uni-input",{attrs:{type:"mobile",value:"",placeholder:"6-18位不含特殊字符的数字、字母组合","placeholder-class":"input-empty",maxlength:"20",password:!0,"data-key":"password"},on:{input:function(n){arguments[0]=n=t.$handleEvent(n),t.inputChange.apply(void 0,arguments)},confirm:function(n){arguments[0]=n=t.$handleEvent(n),t.toLogin.apply(void 0,arguments)}}})],1)],1),i("v-uni-button",{staticClass:"confirm-btn",attrs:{disabled:t.logining},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toLogin.apply(void 0,arguments)}}},[t._v("登录")])],1)],1)},o=[];i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){return e}))}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-set-set.22be763a.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-set-set.22be763a.js deleted file mode 100644 index ab56852..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-set-set.22be763a.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-set"],{"12bc":function(t,e,n){"use strict";n.r(e);var a=n("4790"),i=n("c824");for(var l in i)"default"!==l&&function(t){n.d(e,t,(function(){return i[t]}))}(l);n("a6b9");var o,c=n("f0c5"),s=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"b16b1416",null,!1,a["a"],o);e["default"]=s.exports},"35ab":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-b16b1416]{background:#f8f8f8}.list-cell[data-v-b16b1416]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;padding:%?20?% %?30?%;line-height:%?60?%;position:relative;background:#fff;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.list-cell.log-out-btn[data-v-b16b1416]{margin-top:%?40?%}.list-cell.log-out-btn .cell-tit[data-v-b16b1416]{color:#fa436a;text-align:center;margin-right:0}.list-cell.cell-hover[data-v-b16b1416]{background:#fafafa}.list-cell.b-b[data-v-b16b1416]:after{left:%?30?%}.list-cell.m-t[data-v-b16b1416]{margin-top:%?16?%}.list-cell .cell-more[data-v-b16b1416]{-webkit-align-self:baseline;align-self:baseline;font-size:%?32?%;color:#909399;margin-left:%?10?%}.list-cell .cell-tit[data-v-b16b1416]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133;margin-right:%?10?%}.list-cell .cell-tip[data-v-b16b1416]{font-size:%?28?%;color:#909399}.list-cell uni-switch[data-v-b16b1416]{-webkit-transform:translateX(%?16?%) scale(.84);transform:translateX(%?16?%) scale(.84)}body.?%PAGE?%[data-v-b16b1416]{background:#f8f8f8}',""]),t.exports=e},4790:function(t,e,n){"use strict";var a,i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"list-cell b-b m-t",attrs:{"hover-class":"cell-hover","hover-stay-time":50},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTo("/pages/userinfo/userinfo")}}},[n("v-uni-text",{staticClass:"cell-tit"},[t._v("个人资料")]),n("v-uni-text",{staticClass:"cell-more yticon icon-you"})],1),n("v-uni-view",{staticClass:"list-cell log-out-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toLogout.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"cell-tit"},[t._v("退出登录")])],1)],1)},l=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return a}))},"4d8f":function(t,e,n){"use strict";var a=n("ee27");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("f3f3")),l=n("2f62"),o={data:function(){return{}},methods:(0,i.default)({},(0,l.mapMutations)(["logout"]),{navTo:function(t){uni.navigateTo({url:t})},toLogout:function(){var t=this;uni.showModal({content:"确定要退出登录么",success:function(e){e.confirm&&(t.logout(),setTimeout((function(){uni.navigateBack()}),200))}})},switchChange:function(t){var e=t.detail.value?"打开":"关闭";this.$api.msg("".concat(e,"消息推送"))}})};e.default=o},a6b9:function(t,e,n){"use strict";var a=n("fe8e"),i=n.n(a);i.a},c824:function(t,e,n){"use strict";n.r(e);var a=n("4d8f"),i=n.n(a);for(var l in a)"default"!==l&&function(t){n.d(e,t,(function(){return a[t]}))}(l);e["default"]=i.a},fe8e:function(t,e,n){var a=n("35ab");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("125341c9",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-set-set.bba6e200.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-set-set.bba6e200.js new file mode 100644 index 0000000..080dfae --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-set-set.bba6e200.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-set"],{"06ac":function(t,e,n){"use strict";var a=n("dd3e"),i=n.n(a);i.a},"12bc":function(t,e,n){"use strict";n.r(e);var a=n("9890"),i=n("c824");for(var l in i)"default"!==l&&function(t){n.d(e,t,(function(){return i[t]}))}(l);n("06ac");var o,c=n("f0c5"),s=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"4f90d960",null,!1,a["a"],o);e["default"]=s.exports},4197:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-4f90d960]{background:#f8f8f8}.list-cell[data-v-4f90d960]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;padding:%?20?% %?30?%;line-height:%?60?%;position:relative;background:#fff;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.list-cell.log-out-btn[data-v-4f90d960]{margin-top:%?40?%}.list-cell.log-out-btn .cell-tit[data-v-4f90d960]{color:#fa436a;text-align:center;margin-right:0}.list-cell.cell-hover[data-v-4f90d960]{background:#fafafa}.list-cell.b-b[data-v-4f90d960]:after{left:%?30?%}.list-cell.m-t[data-v-4f90d960]{margin-top:%?16?%}.list-cell .cell-more[data-v-4f90d960]{-webkit-align-self:baseline;align-self:baseline;font-size:%?32?%;color:#909399;margin-left:%?10?%}.list-cell .cell-tit[data-v-4f90d960]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133;margin-right:%?10?%}.list-cell .cell-tip[data-v-4f90d960]{font-size:%?28?%;color:#909399}.list-cell uni-switch[data-v-4f90d960]{-webkit-transform:translateX(%?16?%) scale(.84);transform:translateX(%?16?%) scale(.84)}body.?%PAGE?%[data-v-4f90d960]{background:#f8f8f8}',""]),t.exports=e},"4d8f":function(t,e,n){"use strict";var a=n("ee27");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("f3f3")),l=n("2f62"),o={data:function(){return{}},methods:(0,i.default)({},(0,l.mapMutations)(["logout"]),{navTo:function(t){uni.navigateTo({url:t})},toLogout:function(){var t=this;uni.showModal({content:"确定要退出登录么",success:function(e){e.confirm&&(t.logout(),setTimeout((function(){uni.navigateBack()}),200))}})},switchChange:function(t){var e=t.detail.value?"打开":"关闭";this.$api.msg("".concat(e,"消息推送"))}})};e.default=o},9890:function(t,e,n){"use strict";var a,i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"list-cell b-b m-t",attrs:{"hover-class":"cell-hover","hover-stay-time":50},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTo("/pages/userinfo/userinfo")}}},[n("v-uni-text",{staticClass:"cell-tit"},[t._v("修改密码")]),n("v-uni-text",{staticClass:"cell-more yticon icon-you"})],1),n("v-uni-view",{staticClass:"list-cell log-out-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toLogout.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"cell-tit"},[t._v("退出登录")])],1)],1)},l=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return a}))},c824:function(t,e,n){"use strict";n.r(e);var a=n("4d8f"),i=n.n(a);for(var l in a)"default"!==l&&function(t){n.d(e,t,(function(){return a[t]}))}(l);e["default"]=i.a},dd3e:function(t,e,n){var a=n("4197");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("86b2a8d8",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-user-user.2a416bd1.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-user-user.2a416bd1.js deleted file mode 100644 index 36e1f00..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-user-user.2a416bd1.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-user"],{"15f7":function(e,t,i){"use strict";i.r(t);var n=i("9697"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"1b0d":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.icon .mix-list-cell.b-b[data-v-373050c2]:after{left:%?90?%}.mix-list-cell[data-v-373050c2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;padding:%?20?% %?30?%;line-height:%?60?%;position:relative}.mix-list-cell.cell-hover[data-v-373050c2]{background:#fafafa}.mix-list-cell.b-b[data-v-373050c2]:after{left:%?30?%}.mix-list-cell .cell-icon[data-v-373050c2]{-webkit-align-self:center;align-self:center;width:%?56?%;max-height:%?60?%;font-size:%?38?%}.mix-list-cell .cell-more[data-v-373050c2]{-webkit-align-self:center;align-self:center;font-size:%?30?%;color:#606266;margin-left:10px}.mix-list-cell .cell-tit[data-v-373050c2]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?28?%;color:#303133;margin-right:%?10?%}.mix-list-cell .cell-tip[data-v-373050c2]{font-size:%?26?%;color:#909399}',""]),e.exports=t},"1ee8":function(e,t,i){var n=i("1b0d");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("268c3d85",n,!0,{sourceMap:!1,shadowMode:!1})},"4a7a":function(e,t,i){"use strict";i.r(t);var n=i("5759"),a=i("d883");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("8519");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"373050c2",null,!1,n["a"],r);t["default"]=c.exports},"4eb1":function(e,t,i){"use strict";var n=i("724a"),a=i.n(n);a.a},5759:function(e,t,i){"use strict";var n,a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"mix-list-cell",class:e.border,attrs:{"hover-class":"cell-hover","hover-stay-time":50},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.eventClick.apply(void 0,arguments)}}},[e.icon?i("v-uni-text",{staticClass:"cell-icon yticon",class:e.icon,style:[{color:e.iconColor}]}):e._e(),i("v-uni-text",{staticClass:"cell-tit clamp"},[e._v(e._s(e.title))]),e.tips?i("v-uni-text",{staticClass:"cell-tip"},[e._v(e._s(e.tips))]):e._e(),i("v-uni-text",{staticClass:"cell-more yticon",class:e.typeList[e.navigateType]})],1)],1)},o=[];i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}))},"724a":function(e,t,i){var n=i("e8a8");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("177b1266",n,!0,{sourceMap:!1,shadowMode:!1})},8519:function(e,t,i){"use strict";var n=i("1ee8"),a=i.n(n);a.a},9697:function(e,t,i){"use strict";var n=i("ee27");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var a=n(i("c964")),o=n(i("f3f3")),r=n(i("4a7a")),s=i("2f62"),c=0,l=0,d=!0,u={components:{listCell:r.default},data:function(){return{coverTransform:"translateY(0px)",coverTransition:"0s",moving:!1,orderNum:{unpaid:0,undelivered:0,unreceived:0,uncomment:0,refund:0}}},onLoad:function(){},onShow:function(){this.$api.checkLogin(),this.hasLogin&&this.getOrderNum()},onNavigationBarButtonTap:function(e){var t=e.index;0===t?this.navTo("/pages/set/set"):1===t&&uni.navigateTo({url:"/pages/notice/notice"})},computed:(0,o.default)({},(0,s.mapState)(["hasLogin","userInfo"])),methods:{coverTouchstart:function(e){!1!==d&&(this.coverTransition="transform .1s linear",c=e.touches[0].clientY)},coverTouchmove:function(e){l=e.touches[0].clientY;var t=l-c;t<0?this.moving=!1:(this.moving=!0,t>=80&&t<100&&(t=80),t>0&&t<=80&&(this.coverTransform="translateY(".concat(t,"px)")))},coverTouchend:function(){!1!==this.moving&&(this.moving=!1,this.coverTransition="transform 0.3s cubic-bezier(.21,1.93,.53,.64)",this.coverTransform="translateY(0px)")},getOrderNum:function(){var e=this;return(0,a.default)(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.request("/order/count");case 2:i=t.sent,i&&(e.orderNum={unpaid:i.unpaid?i.unpaid:0,undelivered:i.undelivered?i.undelivered:0,unreceived:i.unreceived?i.unreceived:0,uncomment:i.uncomment?i.uncomment:0,refund:i.refund?i.refund:0});case 4:case"end":return t.stop()}}),t)})))()}}};t.default=u},a179:function(e,t,i){"use strict";var n,a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"user-section"},[i("v-uni-image",{staticClass:"bg",attrs:{src:"/static/user-bg.jpg"}}),i("v-uni-view",{staticClass:"user-info-box"},[i("v-uni-view",{staticClass:"portrait-box"},[i("v-uni-image",{staticClass:"portrait",attrs:{src:e.userInfo.avatar?e.userInfo.avatar:"/static/missing-face.png"}})],1),i("v-uni-view",{staticClass:"info-box"},[i("v-uni-text",{staticClass:"username"},[e._v(e._s(e.userInfo.username||"游客"))])],1)],1),i("v-uni-view",{staticClass:"vip-card-box"},[i("v-uni-image",{staticClass:"card-bg",attrs:{src:"/static/vip-card-bg.png",mode:""}}),i("v-uni-view",{staticClass:"tit"},[i("v-uni-text",{staticClass:"yticon icon-iLinkapp-"}),e._v("会员")],1),i("v-uni-text",{staticClass:"e-m"},[e._v("uniShop")])],1)],1),i("v-uni-view",{staticClass:"cover-container",style:[{transform:e.coverTransform,transition:e.coverTransition}],on:{touchstart:function(t){arguments[0]=t=e.$handleEvent(t),e.coverTouchstart.apply(void 0,arguments)},touchmove:function(t){arguments[0]=t=e.$handleEvent(t),e.coverTouchmove.apply(void 0,arguments)},touchend:function(t){arguments[0]=t=e.$handleEvent(t),e.coverTouchend.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"arc",attrs:{src:"/static/arc.png"}}),i("v-uni-view",{staticClass:"order-header"},[i("v-uni-view",{staticClass:"title"},[e._v("我的订单")]),i("v-uni-view",{staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/order/order?state=0")}}},[e._v("查看全部订单"),i("v-uni-text",{staticClass:"yticon right icon-you"})],1)],1),i("v-uni-view",{staticClass:"order-section"},[i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/order/order?state=1")}}},[i("v-uni-text",{staticClass:"yticon icon-daifukuan"}),e.orderNum.unpaid>0?i("v-uni-text",{staticClass:"num"},[e._v(e._s(e.orderNum.unpaid))]):e._e(),i("v-uni-text",[e._v("待付款")])],1),i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/order/order?state=2")}}},[i("v-uni-text",{staticClass:"yticon icon-daifahuo"}),e.orderNum.undelivered>0?i("v-uni-text",{staticClass:"num"},[e._v(e._s(e.orderNum.undelivered))]):e._e(),i("v-uni-text",[e._v("待发货")])],1),i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/order/order?state=3")}}},[i("v-uni-text",{staticClass:"yticon icon-daishouhuo"}),e.orderNum.unreceived>0?i("v-uni-text",{staticClass:"num"},[e._v(e._s(e.orderNum.unreceived))]):e._e(),i("v-uni-text",[e._v("待收货")])],1),i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/order/order?state=4")}}},[i("v-uni-text",{staticClass:"yticon icon-pingjia"}),e.orderNum.uncomment>0?i("v-uni-text",{staticClass:"num"},[e._v(e._s(e.orderNum.uncomment))]):e._e(),i("v-uni-text",[e._v("评价")])],1),i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/order/order?state=5")}}},[i("v-uni-text",{staticClass:"yticon icon-shouhou"}),e.orderNum.refund>0?i("v-uni-text",{staticClass:"num"},[e._v(e._s(e.orderNum.refund))]):e._e(),i("v-uni-text",[e._v("退款/售后")])],1)],1),i("v-uni-view",{staticClass:"history-section icon"},[i("list-cell",{attrs:{icon:"icon-dizhi",iconColor:"#5fcda2",title:"地址管理"},on:{eventClick:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/address/address")}}}),i("list-cell",{attrs:{icon:"icon-shoucang-setting",iconColor:"#54b4ef",title:"我的收藏"},on:{eventClick:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/favorite/favorite")}}}),i("list-cell",{attrs:{icon:"icon-setting",iconColor:"#e07472",title:"设置",border:""},on:{eventClick:function(t){arguments[0]=t=e.$handleEvent(t),e.$api.navTo("/pages/set/set")}}})],1)],1)],1)},o=[];i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}))},a998:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{typeList:{left:"icon-zuo",right:"icon-you",up:"icon-shang",down:"icon-xia"}}},props:{icon:{type:String,default:""},title:{type:String,default:"标题"},tips:{type:String,default:""},navigateType:{type:String,default:"right"},border:{type:String,default:"b-b"},hoverClass:{type:String,default:"cell-hover"},iconColor:{type:String,default:"#333"}},methods:{eventClick:function(){this.$emit("eventClick")}}};t.default=n},bbad:function(e,t,i){"use strict";i.r(t);var n=i("a179"),a=i("15f7");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("4eb1");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"f7b34e7e",null,!1,n["a"],r);t["default"]=c.exports},d883:function(e,t,i){"use strict";i.r(t);var n=i("a998"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},e8a8:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-f7b34e7e]{background:#f5f5f5}.tj-sction .tj-item[data-v-f7b34e7e], .order-section .order-item[data-v-f7b34e7e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.tj-sction[data-v-f7b34e7e], .order-header[data-v-f7b34e7e], .order-section[data-v-f7b34e7e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;-webkit-align-content:center;align-content:center;background:#fff;border-radius:%?10?%}.user-section[data-v-f7b34e7e]{height:%?520?%;padding:%?100?% %?30?% 0;position:relative}.user-section .bg[data-v-f7b34e7e]{position:absolute;left:0;top:0;width:100%;height:100%;-webkit-filter:blur(1px);filter:blur(1px);opacity:.7}.user-info-box[data-v-f7b34e7e]{height:%?180?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;z-index:1}.user-info-box .portrait[data-v-f7b34e7e]{width:%?130?%;height:%?130?%;border-radius:50%}.user-info-box .username[data-v-f7b34e7e]{font-size:%?38?%;color:#303133;margin-left:%?20?%}.vip-card-box[data-v-f7b34e7e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#f7d680;height:%?240?%;background:-webkit-linear-gradient(left,rgba(0,0,0,.7),rgba(0,0,0,.8));background:linear-gradient(left,rgba(0,0,0,.7),rgba(0,0,0,.8));border-radius:%?16?% %?16?% 0 0;overflow:hidden;position:relative;padding:%?20?% %?24?%}.vip-card-box .card-bg[data-v-f7b34e7e]{position:absolute;top:%?20?%;right:0;width:%?380?%;height:%?260?%}.vip-card-box .b-btn[data-v-f7b34e7e]{position:absolute;right:%?20?%;top:%?16?%;width:%?132?%;height:%?40?%;text-align:center;line-height:%?40?%;font-size:%?22?%;color:#36343c;border-radius:20px;background:-webkit-linear-gradient(left,#f9e6af,#ffd465);background:linear-gradient(left,#f9e6af,#ffd465);z-index:1}.vip-card-box .tit[data-v-f7b34e7e]{font-size:%?30?%;color:#f7d680;margin-bottom:%?28?%}.vip-card-box .tit .yticon[data-v-f7b34e7e]{color:#f6e5a3;margin-right:%?16?%}.vip-card-box .e-b[data-v-f7b34e7e]{font-size:%?24?%;color:#d8cba9;margin-top:%?10?%}.cover-container[data-v-f7b34e7e]{margin-top:%?-150?%;padding:0 %?30?%;position:relative;background:#f5f5f5;padding-bottom:%?20?%}.cover-container .arc[data-v-f7b34e7e]{position:absolute;left:0;top:%?-34?%;width:100%;height:%?36?%}.tj-sction .tj-item[data-v-f7b34e7e]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:%?140?%;font-size:%?24?%;color:#75787d}.tj-sction .num[data-v-f7b34e7e]{font-size:%?32?%;color:#303133;margin-bottom:%?8?%}.order-header[data-v-f7b34e7e]{padding:%?28?% 0 0;border-radius:%?10?% %?10?% 0 0;margin-top:%?20?%;font-size:%?28?%}.order-header .title[data-v-f7b34e7e]{width:50%;color:#303133;margin-left:%?30?%}.order-header .item[data-v-f7b34e7e]{width:50%;color:#606266;text-align:right;margin-right:%?8?%}.order-section[data-v-f7b34e7e]{border-radius:0 0 %?10?% %?10?%;padding:%?28?% 0}.order-section .order-item[data-v-f7b34e7e]{width:%?120?%;height:%?120?%;border-radius:%?10?%;font-size:%?24?%;color:#303133;position:relative}.order-section .order-item .num[data-v-f7b34e7e]{border:%?4?% solid #fa436a;width:%?40?%;height:%?40?%;color:#fa436a;text-align:center;border-radius:%?40?%;position:absolute;background:#fff;top:0;right:%?18?%}.order-section .yticon[data-v-f7b34e7e]{font-size:%?48?%;margin-bottom:%?18?%;color:#fa436a}.order-section .icon-shouhoutuikuan[data-v-f7b34e7e]{font-size:%?44?%}.history-section[data-v-f7b34e7e]{padding:0;margin-top:%?20?%;background:#fff;border-radius:%?10?%}.history-section .sec-header[data-v-f7b34e7e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?28?%;color:#303133;line-height:%?40?%;margin-left:%?30?%}.history-section .sec-header .yticon[data-v-f7b34e7e]{font-size:%?44?%;color:#5eba8f;margin-right:%?16?%;line-height:%?40?%}.history-section .h-list[data-v-f7b34e7e]{white-space:nowrap;padding:%?30?% %?30?% 0}.history-section .h-list uni-image[data-v-f7b34e7e]{display:inline-block;width:%?160?%;height:%?160?%;margin-right:%?20?%;border-radius:%?10?%}body.?%PAGE?%[data-v-f7b34e7e]{background:#f5f5f5}',""]),e.exports=t}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-user-user.31e41caf.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-user-user.31e41caf.js new file mode 100644 index 0000000..67a0310 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-user-user.31e41caf.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-user"],{"15f7":function(t,e,i){"use strict";i.r(e);var n=i("9697"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"1b0d":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/.icon .mix-list-cell.b-b[data-v-373050c2]:after{left:%?90?%}.mix-list-cell[data-v-373050c2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;padding:%?20?% %?30?%;line-height:%?60?%;position:relative}.mix-list-cell.cell-hover[data-v-373050c2]{background:#fafafa}.mix-list-cell.b-b[data-v-373050c2]:after{left:%?30?%}.mix-list-cell .cell-icon[data-v-373050c2]{-webkit-align-self:center;align-self:center;width:%?56?%;max-height:%?60?%;font-size:%?38?%}.mix-list-cell .cell-more[data-v-373050c2]{-webkit-align-self:center;align-self:center;font-size:%?30?%;color:#606266;margin-left:10px}.mix-list-cell .cell-tit[data-v-373050c2]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?28?%;color:#303133;margin-right:%?10?%}.mix-list-cell .cell-tip[data-v-373050c2]{font-size:%?26?%;color:#909399}',""]),t.exports=e},"1ee8":function(t,e,i){var n=i("1b0d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("268c3d85",n,!0,{sourceMap:!1,shadowMode:!1})},"322d":function(t,e,i){var n=i("4c48");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("dcae9cb0",n,!0,{sourceMap:!1,shadowMode:!1})},"3e4d":function(t,e,i){"use strict";var n=i("322d"),a=i.n(n);a.a},"4a7a":function(t,e,i){"use strict";i.r(e);var n=i("5759"),a=i("d883");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("8519");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"373050c2",null,!1,n["a"],r);e["default"]=c.exports},"4c48":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-177f9f52]{background:#f5f5f5}.tj-sction .tj-item[data-v-177f9f52], .order-section .order-item[data-v-177f9f52]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.tj-sction[data-v-177f9f52], .order-header[data-v-177f9f52], .order-section[data-v-177f9f52]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;-webkit-align-content:center;align-content:center;background:#fff;border-radius:%?10?%}.user-section[data-v-177f9f52]{height:%?520?%;padding:%?100?% %?30?% 0;position:relative}.user-section .bg[data-v-177f9f52]{position:absolute;left:0;top:0;width:100%;height:100%;-webkit-filter:blur(1px);filter:blur(1px);opacity:.7}.user-info-box[data-v-177f9f52]{height:%?180?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;z-index:1}.user-info-box .portrait[data-v-177f9f52]{width:%?130?%;height:%?130?%;border-radius:50%}.user-info-box .username[data-v-177f9f52]{font-size:%?38?%;color:#303133;margin-left:%?20?%}.vip-card-box[data-v-177f9f52]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;color:#f7d680;height:%?240?%;background:-webkit-linear-gradient(left,rgba(0,0,0,.7),rgba(0,0,0,.8));background:linear-gradient(left,rgba(0,0,0,.7),rgba(0,0,0,.8));border-radius:%?16?% %?16?% 0 0;overflow:hidden;position:relative;padding:%?20?% %?24?%}.vip-card-box .card-bg[data-v-177f9f52]{position:absolute;top:%?20?%;right:0;width:%?380?%;height:%?260?%}.vip-card-box .b-btn[data-v-177f9f52]{position:absolute;right:%?20?%;top:%?16?%;width:%?132?%;height:%?40?%;text-align:center;line-height:%?40?%;font-size:%?22?%;color:#36343c;border-radius:20px;background:-webkit-linear-gradient(left,#f9e6af,#ffd465);background:linear-gradient(left,#f9e6af,#ffd465);z-index:1}.vip-card-box .tit[data-v-177f9f52]{font-size:%?30?%;color:#f7d680;margin-bottom:%?28?%}.vip-card-box .tit .yticon[data-v-177f9f52]{color:#f6e5a3;margin-right:%?16?%}.vip-card-box .e-b[data-v-177f9f52]{font-size:%?24?%;color:#d8cba9;margin-top:%?10?%}.cover-container[data-v-177f9f52]{margin-top:%?-150?%;padding:0 %?30?%;position:relative;background:#f5f5f5;padding-bottom:%?20?%}.cover-container .arc[data-v-177f9f52]{position:absolute;left:0;top:%?-34?%;width:100%;height:%?36?%}.tj-sction .tj-item[data-v-177f9f52]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:%?140?%;font-size:%?24?%;color:#75787d}.tj-sction .num[data-v-177f9f52]{font-size:%?32?%;color:#303133;margin-bottom:%?8?%}.order-header[data-v-177f9f52]{padding:%?28?% 0 0;border-radius:%?10?% %?10?% 0 0;margin-top:%?20?%;font-size:%?28?%}.order-header .title[data-v-177f9f52]{width:50%;color:#303133;margin-left:%?30?%}.order-header .item[data-v-177f9f52]{width:50%;color:#606266;text-align:right;margin-right:%?8?%}.order-section[data-v-177f9f52]{border-radius:0 0 %?10?% %?10?%;padding:%?28?% 0}.order-section .order-item[data-v-177f9f52]{width:%?120?%;height:%?120?%;border-radius:%?10?%;font-size:%?24?%;color:#303133;position:relative}.order-section .order-item .num[data-v-177f9f52]{border:%?4?% solid #fa436a;width:%?40?%;height:%?40?%;color:#fa436a;text-align:center;border-radius:%?40?%;position:absolute;background:#fff;top:0;right:%?18?%}.order-section .yticon[data-v-177f9f52]{font-size:%?48?%;margin-bottom:%?18?%;color:#fa436a}.order-section .icon-shouhoutuikuan[data-v-177f9f52]{font-size:%?44?%}.history-section[data-v-177f9f52]{padding:0;margin-top:%?20?%;background:#fff;border-radius:%?10?%}.history-section .sec-header[data-v-177f9f52]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?28?%;color:#303133;line-height:%?40?%;margin-left:%?30?%}.history-section .sec-header .yticon[data-v-177f9f52]{font-size:%?44?%;color:#5eba8f;margin-right:%?16?%;line-height:%?40?%}.history-section .h-list[data-v-177f9f52]{white-space:nowrap;padding:%?30?% %?30?% 0}.history-section .h-list uni-image[data-v-177f9f52]{display:inline-block;width:%?160?%;height:%?160?%;margin-right:%?20?%;border-radius:%?10?%}body.?%PAGE?%[data-v-177f9f52]{background:#f5f5f5}',""]),t.exports=e},5759:function(t,e,i){"use strict";var n,a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"mix-list-cell",class:t.border,attrs:{"hover-class":"cell-hover","hover-stay-time":50},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.eventClick.apply(void 0,arguments)}}},[t.icon?i("v-uni-text",{staticClass:"cell-icon yticon",class:t.icon,style:[{color:t.iconColor}]}):t._e(),i("v-uni-text",{staticClass:"cell-tit clamp"},[t._v(t._s(t.title))]),t.tips?i("v-uni-text",{staticClass:"cell-tip"},[t._v(t._s(t.tips))]):t._e(),i("v-uni-text",{staticClass:"cell-more yticon",class:t.typeList[t.navigateType]})],1)],1)},o=[];i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}))},"7f41":function(t,e,i){"use strict";var n,a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"user-section"},[i("v-uni-image",{staticClass:"bg",attrs:{src:"/static/user-bg.jpg"}}),i("v-uni-view",{staticClass:"user-info-box"},[i("v-uni-view",{staticClass:"portrait-box"},[i("v-uni-image",{staticClass:"portrait",attrs:{src:t.userInfo.avatar?t.userInfo.avatar:"/static/missing-face.png"}})],1),i("v-uni-view",{staticClass:"info-box"},[i("v-uni-text",{staticClass:"username"},[t._v(t._s(t.userInfo.username||"游客"))])],1)],1),i("v-uni-view",{staticClass:"vip-card-box"},[i("v-uni-image",{staticClass:"card-bg",attrs:{src:"/static/vip-card-bg.png",mode:""}}),i("v-uni-view",{staticClass:"tit"},[i("v-uni-text",{staticClass:"yticon icon-iLinkapp-"}),t._v("会员")],1),i("v-uni-text",{staticClass:"e-m"},[t._v("uniShop")])],1)],1),i("v-uni-view",{staticClass:"cover-container",style:[{transform:t.coverTransform,transition:t.coverTransition}],on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.coverTouchstart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.coverTouchmove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.coverTouchend.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"arc",attrs:{src:"/static/arc.png"}}),i("v-uni-view",{staticClass:"order-header"},[i("v-uni-view",{staticClass:"title"},[t._v("我的订单")]),i("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/order/order?state=0")}}},[t._v("查看全部订单"),i("v-uni-text",{staticClass:"yticon right icon-you"})],1)],1),i("v-uni-view",{staticClass:"order-section"},[i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/order/order?state=1")}}},[i("v-uni-text",{staticClass:"yticon icon-daifukuan"}),t.orderNum.unpaid>0?i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.orderNum.unpaid))]):t._e(),i("v-uni-text",[t._v("待付款")])],1),i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/order/order?state=2")}}},[i("v-uni-text",{staticClass:"yticon icon-daifahuo"}),t.orderNum.undelivered>0?i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.orderNum.undelivered))]):t._e(),i("v-uni-text",[t._v("待发货")])],1),i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/order/order?state=3")}}},[i("v-uni-text",{staticClass:"yticon icon-daishouhuo"}),t.orderNum.unreceived>0?i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.orderNum.unreceived))]):t._e(),i("v-uni-text",[t._v("待收货")])],1),i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/order/order?state=4")}}},[i("v-uni-text",{staticClass:"yticon icon-pingjia"}),t.orderNum.uncomment>0?i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.orderNum.uncomment))]):t._e(),i("v-uni-text",[t._v("已完成")])],1),i("v-uni-view",{staticClass:"order-item",attrs:{"hover-class":"common-hover","hover-stay-time":50},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/order/order?state=5")}}},[i("v-uni-text",{staticClass:"yticon icon-shouhou"}),t.orderNum.refund>0?i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.orderNum.refund))]):t._e(),i("v-uni-text",[t._v("已取消")])],1)],1),i("v-uni-view",{staticClass:"history-section icon"},[i("list-cell",{attrs:{icon:"icon-shoucang-setting",iconColor:"#54b4ef",title:"我的收藏"},on:{eventClick:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/favorite/favorite")}}}),i("list-cell",{attrs:{icon:"icon-setting",iconColor:"#e07472",title:"设置",border:""},on:{eventClick:function(e){arguments[0]=e=t.$handleEvent(e),t.$api.navTo("/pages/set/set")}}})],1)],1)],1)},o=[];i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}))},8519:function(t,e,i){"use strict";var n=i("1ee8"),a=i.n(n);a.a},9697:function(t,e,i){"use strict";var n=i("ee27");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var a=n(i("c964")),o=n(i("f3f3")),r=n(i("4a7a")),s=i("2f62"),c=0,l=0,d=!0,u={components:{listCell:r.default},data:function(){return{coverTransform:"translateY(0px)",coverTransition:"0s",moving:!1,orderNum:{unpaid:0,undelivered:0,unreceived:0,uncomment:0,refund:0}}},onLoad:function(){},onShow:function(){this.$api.checkLogin(),this.hasLogin&&this.getOrderNum()},onNavigationBarButtonTap:function(t){var e=t.index;0===e?this.navTo("/pages/set/set"):1===e&&uni.navigateTo({url:"/pages/notice/notice"})},computed:(0,o.default)({},(0,s.mapState)(["hasLogin","userInfo"])),methods:{coverTouchstart:function(t){!1!==d&&(this.coverTransition="transform .1s linear",c=t.touches[0].clientY)},coverTouchmove:function(t){l=t.touches[0].clientY;var e=l-c;e<0?this.moving=!1:(this.moving=!0,e>=80&&e<100&&(e=80),e>0&&e<=80&&(this.coverTransform="translateY(".concat(e,"px)")))},coverTouchend:function(){!1!==this.moving&&(this.moving=!1,this.coverTransition="transform 0.3s cubic-bezier(.21,1.93,.53,.64)",this.coverTransform="translateY(0px)")},getOrderNum:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.request("/order/count");case 2:i=e.sent,i&&(t.orderNum={unpaid:i.unpaid?i.unpaid:0,undelivered:i.undelivered?i.undelivered:0,unreceived:i.unreceived?i.unreceived:0,uncomment:i.uncomment?i.uncomment:0,refund:i.refund?i.refund:0});case 4:case"end":return e.stop()}}),e)})))()}}};e.default=u},a998:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{typeList:{left:"icon-zuo",right:"icon-you",up:"icon-shang",down:"icon-xia"}}},props:{icon:{type:String,default:""},title:{type:String,default:"标题"},tips:{type:String,default:""},navigateType:{type:String,default:"right"},border:{type:String,default:"b-b"},hoverClass:{type:String,default:"cell-hover"},iconColor:{type:String,default:"#333"}},methods:{eventClick:function(){this.$emit("eventClick")}}};e.default=n},bbad:function(t,e,i){"use strict";i.r(e);var n=i("7f41"),a=i("15f7");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("3e4d");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"177f9f52",null,!1,n["a"],r);e["default"]=c.exports},d883:function(t,e,i){"use strict";i.r(e);var n=i("a998"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-userinfo-userinfo.36d9aa03.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-userinfo-userinfo.36d9aa03.js deleted file mode 100644 index 4783dfb..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-userinfo-userinfo.36d9aa03.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-userinfo-userinfo"],{"2c8c":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-25eca823]{background:#f8f8f8}.user-section[data-v-25eca823]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:%?460?%;padding:%?40?% %?30?% 0;position:relative}.user-section .bg[data-v-25eca823]{position:absolute;left:0;top:0;width:100%;height:100%;-webkit-filter:blur(1px);filter:blur(1px);opacity:.7}.user-section .portrait-box[data-v-25eca823]{width:%?200?%;height:%?200?%;border:%?6?% solid #fff;border-radius:50%;position:relative;z-index:2}.user-section .portrait-box .button[data-v-25eca823]{position:absolute;width:100%;height:100%;top:0;opacity:0}.user-section .portrait[data-v-25eca823]{position:relative;width:100%;height:100%;border-radius:50%}.user-section .yticon[data-v-25eca823]{position:absolute;line-height:1;z-index:5;font-size:%?48?%;color:#fff;padding:%?4?% %?6?%;border-radius:%?6?%;background:rgba(0,0,0,.4)}.user-section .pt-upload-btn[data-v-25eca823]{right:0;bottom:%?10?%}.user-section .bg-upload-btn[data-v-25eca823]{right:%?20?%;bottom:%?16?%}.yt-list-cell[data-v-25eca823]{margin-top:%?16?%;background:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?10?% %?30?%;line-height:%?70?%;position:relative}.yt-list-cell .cell-tit[data-v-25eca823]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?26?%;color:#000;margin-right:%?10?%}.yt-list-cell .cell-tit .input[data-v-25eca823]{display:inline-block;vertical-align:middle;margin-left:%?20?%;width:%?550?%;float:right;line-height:%?70?%!important;height:%?70?%!important}.yt-list-cell .cell-tit .username[data-v-25eca823]{width:%?300?%;position:absolute;right:%?30?%;z-index:100}body.?%PAGE?%[data-v-25eca823]{background:#f8f8f8}',""]),t.exports=e},"7f3c":function(t,e,a){"use strict";var i=a("ee27");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("c964")),r=i(a("f3f3")),s=a("2f62"),o={data:function(){return{username:"",mobile:"",avatar:""}},computed:(0,r.default)({},(0,s.mapState)(["userInfo"])),onLoad:function(){this.username=this.userInfo.username,this.mobile=this.userInfo.mobile,this.avatar=this.userInfo.avatar?this.userInfo.avatar:""},methods:(0,r.default)({},(0,s.mapMutations)(["setUserInfo"]),{getAvatar:function(t){this.avatar=t.detail.userInfo.avatarUrl},getUserInfo:function(t){this.username=t.detail.userInfo.nickName},getPhoneNumber:function(t){var e=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,e.$api.request("/user/decryptData","POST",{encryptedData:t.detail.encryptedData,iv:t.detail.iv});case 2:i=a.sent,i&&(e.mobile=i.phoneNumber);case 4:case"end":return a.stop()}}),a)})))()},submit:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=t.username){e.next=3;break}return t.$api.msg("用户名称不能为空"),e.abrupt("return");case 3:if(t.username!=t.userInfo.username||t.mobile!=t.userInfo.mobile||t.avatar!=t.userInfo.avatar){e.next=6;break}return t.$api.msg("已修改"),e.abrupt("return");case 6:return e.next=8,t.$api.request("/user/edit","POST",{username:t.username,mobile:t.mobile,avatar:t.avatar});case 8:a=e.sent,a&&(i=t.userInfo,i.username=t.username,i.mobile=t.mobile,i.avatar=t.avatar,t.setUserInfo(i));case 10:case"end":return e.stop()}}),e)})))()}})};e.default=o},"80cf":function(t,e,a){"use strict";var i,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"user-section"},[a("v-uni-image",{staticClass:"bg",attrs:{src:"/static/user-bg.jpg"}}),a("v-uni-text",{staticClass:"bg-upload-btn yticon icon-paizhao"}),a("v-uni-view",{staticClass:"portrait-box"},[a("v-uni-image",{staticClass:"portrait",attrs:{src:t.avatar?t.avatar:"/static/missing-face.png"}}),a("v-uni-text",{staticClass:"pt-upload-btn yticon icon-paizhao"}),a("v-uni-button",{staticClass:"button",attrs:{"open-type":"getUserInfo"},on:{getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.getAvatar.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"yt-list-cell"},[a("v-uni-view",{staticClass:"cell-tit clamp"},[t._v("用户名"),a("v-uni-input",{staticClass:"input",attrs:{type:"text"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1)],1),a("v-uni-view",{staticClass:"yt-list-cell"},[a("v-uni-view",{staticClass:"cell-tit clamp"},[t._v("手机号码"),t.mobile?a("v-uni-input",{staticClass:"input",attrs:{disabled:"true",type:"text"},model:{value:t.mobile,callback:function(e){t.mobile=e},expression:"mobile"}}):t._e()],1)],1),a("v-uni-view",{staticClass:"yt-list-cell"},[a("v-uni-button",{attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("提交保存")])],1)],1)},r=[];a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}))},9197:function(t,e,a){"use strict";a.r(e);var i=a("80cf"),n=a("bb72");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("c88f");var s,o=a("f0c5"),u=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"25eca823",null,!1,i["a"],s);e["default"]=u.exports},bab5:function(t,e,a){var i=a("2c8c");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("13a4db9c",i,!0,{sourceMap:!1,shadowMode:!1})},bb72:function(t,e,a){"use strict";a.r(e);var i=a("7f3c"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},c88f:function(t,e,a){"use strict";var i=a("bab5"),n=a.n(i);n.a}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-userinfo-userinfo.4e5b7c2d.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-userinfo-userinfo.4e5b7c2d.js new file mode 100644 index 0000000..4221fa6 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-userinfo-userinfo.4e5b7c2d.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-userinfo-userinfo"],{"710b":function(t,e,i){"use strict";var a=i("c383"),n=i.n(a);n.a},"7f3c":function(t,e,i){"use strict";var a=i("ee27");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("c964")),r=a(i("f3f3")),s=i("2f62"),o={data:function(){return{username:"",mobile:"",avatar:""}},computed:(0,r.default)({},(0,s.mapState)(["userInfo"])),onLoad:function(){this.username=this.userInfo.username,this.mobile=this.userInfo.mobile,this.avatar=this.userInfo.avatar?this.userInfo.avatar:""},methods:(0,r.default)({},(0,s.mapMutations)(["setUserInfo"]),{getAvatar:function(t){this.avatar=t.detail.userInfo.avatarUrl},getUserInfo:function(t){this.username=t.detail.userInfo.nickName},getPhoneNumber:function(t){var e=this;return(0,n.default)(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.request("/user/decryptData","POST",{encryptedData:t.detail.encryptedData,iv:t.detail.iv});case 2:a=i.sent,a&&(e.mobile=a.phoneNumber);case 4:case"end":return i.stop()}}),i)})))()},submit:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=t.username){e.next=3;break}return t.$api.msg("用户名称不能为空"),e.abrupt("return");case 3:if(t.username!=t.userInfo.username||t.mobile!=t.userInfo.mobile||t.avatar!=t.userInfo.avatar){e.next=6;break}return t.$api.msg("已修改"),e.abrupt("return");case 6:return e.next=8,t.$api.request("/user/edit","POST",{username:t.username,mobile:t.mobile,avatar:t.avatar});case 8:i=e.sent,i&&(a=t.userInfo,a.username=t.username,a.mobile=t.mobile,a.avatar=t.avatar,t.setUserInfo(a));case 10:case"end":return e.stop()}}),e)})))()}})};e.default=o},9197:function(t,e,i){"use strict";i.r(e);var a=i("c536"),n=i("bb72");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("710b");var s,o=i("f0c5"),u=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"4741fc88",null,!1,a["a"],s);e["default"]=u.exports},bb72:function(t,e,i){"use strict";i.r(e);var a=i("7f3c"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},c383:function(t,e,i){var a=i("ed5e");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("5654e710",a,!0,{sourceMap:!1,shadowMode:!1})},c536:function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"user-section"},[i("v-uni-image",{staticClass:"bg",attrs:{src:"/static/user-bg.jpg"}}),i("v-uni-text",{staticClass:"bg-upload-btn yticon icon-paizhao"}),i("v-uni-view",{staticClass:"portrait-box"},[i("v-uni-image",{staticClass:"portrait",attrs:{src:t.avatar?t.avatar:"/static/missing-face.png"}}),i("v-uni-text",{staticClass:"pt-upload-btn yticon icon-paizhao"}),i("v-uni-button",{staticClass:"button",attrs:{"open-type":"getUserInfo"},on:{getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.getAvatar.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"yt-list-cell"},[i("v-uni-view",{staticClass:"cell-tit clamp"},[t._v("用户名"),i("v-uni-input",{staticClass:"input",attrs:{type:"text"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1)],1),i("v-uni-view",{staticClass:"yt-list-cell"},[i("v-uni-view",{staticClass:"cell-tit clamp"},[t._v("手机号码"),t.mobile?i("v-uni-input",{staticClass:"input",attrs:{disabled:"true",type:"text"},model:{value:t.mobile,callback:function(e){t.mobile=e},expression:"mobile"}}):t._e()],1)],1),i("v-uni-view",{staticClass:"yt-list-cell"},[i("v-uni-button",{attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("提交保存")])],1)],1)},r=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}))},ed5e:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-4741fc88]{background:#f8f8f8}.user-section[data-v-4741fc88]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:%?460?%;padding:%?40?% %?30?% 0;position:relative}.user-section .bg[data-v-4741fc88]{position:absolute;left:0;top:0;width:100%;height:100%;-webkit-filter:blur(1px);filter:blur(1px);opacity:.7}.user-section .portrait-box[data-v-4741fc88]{width:%?200?%;height:%?200?%;border:%?6?% solid #fff;border-radius:50%;position:relative;z-index:2}.user-section .portrait-box .button[data-v-4741fc88]{position:absolute;width:100%;height:100%;top:0;opacity:0}.user-section .portrait[data-v-4741fc88]{position:relative;width:100%;height:100%;border-radius:50%}.user-section .yticon[data-v-4741fc88]{position:absolute;line-height:1;z-index:5;font-size:%?48?%;color:#fff;padding:%?4?% %?6?%;border-radius:%?6?%;background:rgba(0,0,0,.4)}.user-section .pt-upload-btn[data-v-4741fc88]{right:0;bottom:%?10?%}.user-section .bg-upload-btn[data-v-4741fc88]{right:%?20?%;bottom:%?16?%}.yt-list-cell[data-v-4741fc88]{margin-top:%?16?%;background:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?10?% %?30?%;line-height:%?70?%;position:relative}.yt-list-cell .cell-tit[data-v-4741fc88]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?26?%;color:#000;margin-right:%?10?%}.yt-list-cell .cell-tit .input[data-v-4741fc88]{display:inline-block;vertical-align:middle;margin-left:%?20?%;width:%?550?%;float:right;line-height:%?70?%!important;height:%?70?%!important}.yt-list-cell .cell-tit .username[data-v-4741fc88]{width:%?300?%;position:absolute;right:%?30?%;z-index:100}body.?%PAGE?%[data-v-4741fc88]{background:#f8f8f8}',""]),t.exports=e}}]); \ No newline at end of file