From 6ec1fb7880b64bbb1a1e52402e9af640e5a2fceb Mon Sep 17 00:00:00 2001 From: xubinxcode Date: Mon, 20 Dec 2021 20:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=AE=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/unishop/uniapp/uni-shop/pages/index/index.vue | 10 +++++----- addons/unishop/uniapp/uni-shop/pages/public/login.vue | 3 +++ .../unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html | 2 +- .../unpackage/dist/build/h5/static/js/index.0842c0f2.js | 1 + .../unpackage/dist/build/h5/static/js/index.8189d248.js | 1 - .../dist/build/h5/static/js/pages-index-index.38a3a3c3.js | 1 - .../dist/build/h5/static/js/pages-index-index.e3941a91.js | 1 + .../dist/build/h5/static/js/pages-public-login.4b7c3d90.js | 1 + .../dist/build/h5/static/js/pages-public-login.c527eebd.js | 1 - 9 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.0842c0f2.js delete mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.8189d248.js delete mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.38a3a3c3.js create mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.e3941a91.js create mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.4b7c3d90.js delete mode 100644 addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.c527eebd.js diff --git a/addons/unishop/uniapp/uni-shop/pages/index/index.vue b/addons/unishop/uniapp/uni-shop/pages/index/index.vue index e458c41..01a24ab 100644 --- a/addons/unishop/uniapp/uni-shop/pages/index/index.vue +++ b/addons/unishop/uniapp/uni-shop/pages/index/index.vue @@ -260,9 +260,13 @@ // this.loadCateList(); // this.loadData(); }, - onShow() { + async onShow() { + let login = await this.$api.checkLogin(); + if (login) { this.loadCateList(); this.loadData(); + } + }, onReachBottom() { this.loadCateList(); @@ -287,8 +291,6 @@ */ async loadData() { let that = this; - let login = await this.$api.checkLogin(); - if (login) { //获取广告图 that.$api.request('/ads/index', 'GET').then((res) => { let carouselList = res; @@ -310,8 +312,6 @@ // this.getFlash(); // this.getProduct(); - } - }, // 获取产品列表 async getProduct() { diff --git a/addons/unishop/uniapp/uni-shop/pages/public/login.vue b/addons/unishop/uniapp/uni-shop/pages/public/login.vue index e344fa4..11d8b39 100644 --- a/addons/unishop/uniapp/uni-shop/pages/public/login.vue +++ b/addons/unishop/uniapp/uni-shop/pages/public/login.vue @@ -85,6 +85,9 @@ uni.switchTab({ url: '/pages/index/index' }) + setTimeout(()=>{ + location.reload() + }) }, 2000) } else { 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 94ff7d3..64d2130 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.0842c0f2.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.0842c0f2.js new file mode 100644 index 0000000..43f8c1e --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.0842c0f2.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))},g=function(){var e=getCurrentPages(),n=e[e.length-2];return n},d=function(){return new Promise((function(e){if(0==i.default.prototype.$store.state.hasLogin){var n="/pages/public/login";uni.navigateTo({url:n})}else e(!0)}))},p=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},l=function(){var n=(0,r.default)(regeneratorRuntime.mark((function n(o){var a,r,s,u,g,d,p,l,f=arguments;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=f.length>1&&void 0!==f[1]?f[1]:"GET",r=f.length>2&&void 0!==f[2]?f[2]:{},s=!(f.length>3&&void 0!==f[3])||f[3],u={"content-type":"application/x-www-form-urlencoded",lang:i.default.prototype.$store.state.lang,platform:i.default.prototype.$platform},i.default.prototype.$store.state.userInfo.token&&(u.token=i.default.prototype.$store.state.userInfo.token),i.default.prototype.$store.state.cookie&&(u.cookie=i.default.prototype.$store.state.cookie),n.next=8,uni.request({url:i.default.prototype.$unishow+o,method:a,header:u,data:r,timeout:5e3});case 8:return g=n.sent,d=(0,t.default)(g,2),p=d[0],l=d[1],"/pay/submit"==o&&e("log",l," at main.js:139"),n.abrupt("return",new Promise((function(e){if(p&&(s&&c(JSON.stringify(l)),e(!1)),l){if(l.header.hasOwnProperty("Set-Cookie")){var n=l.header["Set-Cookie"].replace("; path=/","");i.default.prototype.$store.commit("setCookie",n)}l.hasOwnProperty("data")?(l.data.hasOwnProperty("code")&&401==l.data.code&&i.default.prototype.$store.commit("logout"),l.data.hasOwnProperty("code")&&1==l.data.code?(l.data.msg?s&&c(l.data.msg):uni.hideToast(),e(l.data.data)):(l.data.hasOwnProperty("msg")?s&&c(l.data.msg):s&&c("返回参数错误"),e(!1))):(s&&c("不能识别数据"),e(!1))}})));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),f=function(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e("log",1111111111,n," at main.js:184"),o&&!i.default.prototype.$store.state.hasLogin&&(n="/pages/public/login"),uni.navigateTo({url:n})};i.default.config.productionTip=!1,i.default.prototype.$fire=new i.default,i.default.prototype.$store=s.default,i.default.prototype.$api={msg:c,prePage:g,checkLogin:d,request:l,deepCopy:p,navTo:f},u.default.mpType="app";var y=new i.default((0,a.default)({},u.default));y.$mount()}).call(this,o("0de9")["log"])},"743d":function(e,n,o){"use strict";o.r(n);var a=o("f720"),t=o("0d01");for(var r in t)"default"!==r&&function(e){o.d(n,e,(function(){return t[e]}))}(r);o("032c");var i,s=o("f0c5"),u=Object(s["a"])(t["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);n["default"]=u.exports},a792:function(e,n,o){"use strict";var a=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=a(o("e143")),r=a(o("2f62"));t.default.use(r.default);var i=new r.default.Store({state:{hasLogin:!1,userInfo:{token:""},lang:"zh-cn",cookie:""},mutations:{login:function(e,n){e.hasLogin=!0,e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorage({key:"userInfo"})},setUserInfo:function(e,n){e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},setCookie:function(e,n){e.cookie=n,uni.setStorage({key:"cookieKey",data:n})}},actions:{}}),s=i;n.default=s},ee81:function(e,n,o){var a=o("3375");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var t=o("4f06").default;t("2c69b8aa",a,!0,{sourceMap:!1,shadowMode:!1})},f720:function(e,n,o){"use strict";var a;o.d(n,"b",(function(){return t})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return a}));var t=function(){var e=this,n=e.$createElement,o=e._self._c||n;return o("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},r=[]}}); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.8189d248.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.8189d248.js deleted file mode 100644 index d19c93f..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.8189d248.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))},g=function(){var e=getCurrentPages(),n=e[e.length-2];return n},d=function(){return new Promise((function(e){if(0==i.default.prototype.$store.state.hasLogin){var n="/pages/public/login";uni.navigateTo({url:n})}else e(!0)}))},p=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},l=function(){var n=(0,r.default)(regeneratorRuntime.mark((function n(o){var a,r,s,u,g,d,p,l,f=arguments;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=f.length>1&&void 0!==f[1]?f[1]:"GET",r=f.length>2&&void 0!==f[2]?f[2]:{},s=!(f.length>3&&void 0!==f[3])||f[3],u={"content-type":"application/x-www-form-urlencoded",lang:i.default.prototype.$store.state.lang,platform:i.default.prototype.$platform},i.default.prototype.$store.state.userInfo.token&&(u.token=i.default.prototype.$store.state.userInfo.token),i.default.prototype.$store.state.cookie&&(u.cookie=i.default.prototype.$store.state.cookie),n.next=8,uni.request({url:i.default.prototype.$unishow+o,method:a,header:u,data:r,timeout:5e3});case 8:return g=n.sent,d=(0,t.default)(g,2),p=d[0],l=d[1],"/pay/submit"==o&&e("log",l," at main.js:139"),n.abrupt("return",new Promise((function(e){if(p&&(s&&c(JSON.stringify(l)),e(!1)),l){if(l.header.hasOwnProperty("Set-Cookie")){var n=l.header["Set-Cookie"].replace("; path=/","");i.default.prototype.$store.commit("setCookie",n)}l.hasOwnProperty("data")?(l.data.hasOwnProperty("code")&&401==l.data.code&&i.default.prototype.$store.commit("logout"),l.data.hasOwnProperty("code")&&1==l.data.code?(l.data.msg?s&&c(l.data.msg):uni.hideToast(),e(l.data.data)):(l.data.hasOwnProperty("msg")?s&&c(l.data.msg):s&&c("返回参数错误"),e(!1))):(s&&c("不能识别数据"),e(!1))}})));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),f=function(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e("log",1111111111,n," at main.js:184"),o&&!i.default.prototype.$store.state.hasLogin&&(n="/pages/public/login"),uni.navigateTo({url:n})};i.default.config.productionTip=!1,i.default.prototype.$fire=new i.default,i.default.prototype.$store=s.default,i.default.prototype.$api={msg:c,prePage:g,checkLogin:d,request:l,deepCopy:p,navTo:f},u.default.mpType="app";var y=new i.default((0,a.default)({},u.default));y.$mount()}).call(this,o("0de9")["log"])},"743d":function(e,n,o){"use strict";o.r(n);var a=o("f720"),t=o("0d01");for(var r in t)"default"!==r&&function(e){o.d(n,e,(function(){return t[e]}))}(r);o("032c");var i,s=o("f0c5"),u=Object(s["a"])(t["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);n["default"]=u.exports},a792:function(e,n,o){"use strict";var a=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=a(o("e143")),r=a(o("2f62"));t.default.use(r.default);var i=new r.default.Store({state:{hasLogin:!1,userInfo:{token:""},lang:"zh-cn",cookie:""},mutations:{login:function(e,n){e.hasLogin=!0,e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorage({key:"userInfo"})},setUserInfo:function(e,n){e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},setCookie:function(e,n){e.cookie=n,uni.setStorage({key:"cookieKey",data:n})}},actions:{}}),s=i;n.default=s},ee81:function(e,n,o){var a=o("3375");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var t=o("4f06").default;t("2c69b8aa",a,!0,{sourceMap:!1,shadowMode:!1})},f720:function(e,n,o){"use strict";var a;o.d(n,"b",(function(){return t})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return a}));var t=function(){var e=this,n=e.$createElement,o=e._self._c||n;return o("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},r=[]}}); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.38a3a3c3.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.38a3a3c3.js deleted file mode 100644 index 4ec44c3..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.38a3a3c3.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0dc6":function(t,e,i){var a=i("b3f9");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("2002502c",a,!0,{sourceMap:!1,shadowMode:!1})},"10b5":function(t,e,i){"use strict";i.r(e);var a=i("a6be"),n=i("7b68");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("4844");var r,s=i("f0c5"),d=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"e73e11fa",null,!1,a["a"],r);e["default"]=d.exports},"1ebc":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-load-more"},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[i("v-uni-view",{staticClass:"load1"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1),i("v-uni-view",{staticClass:"load2"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1),i("v-uni-view",{staticClass:"load3"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1)],1),i("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]},"2b91":function(t,e,i){var a=i("ab98");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("70f9679a",a,!0,{sourceMap:!1,shadowMode:!1})},"3ea1":function(t,e,i){"use strict";var a=i("8212"),n=i.n(a);n.a},4844:function(t,e,i){"use strict";var a=i("0dc6"),n=i.n(a);n.a},"546e":function(t,e,i){"use strict";i.r(e);var a=i("fe67"),n=i("6004");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("789d");var r,s=i("f0c5"),d=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"1be420a4",null,!1,a["a"],r);e["default"]=d.exports},6004:function(t,e,i){"use strict";i.r(e);var a=i("ac08"),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},"789d":function(t,e,i){"use strict";var a=i("2b91"),n=i.n(a);n.a},"7b68":function(t,e,i){"use strict";i.r(e);var a=i("d1ed"),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},8212:function(t,e,i){var a=i("9a69");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("4f120a3f",a,!0,{sourceMap:!1,shadowMode:!1})},"9a69":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".uni-load-more[data-v-788e84f3]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-788e84f3]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-788e84f3]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>uni-view[data-v-788e84f3]{position:absolute}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]{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-788e84f3 1.56s ease infinite;animation:load-data-v-788e84f3 1.56s ease infinite}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]:nth-child(4){top:11px;left:0}.load1[data-v-788e84f3],\n.load2[data-v-788e84f3],\n.load3[data-v-788e84f3]{height:24px;width:24px}.load2[data-v-788e84f3]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-788e84f3]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-788e84f3]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-788e84f3]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-788e84f3]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-788e84f3]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-788e84f3]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-788e84f3]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-788e84f3]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-788e84f3]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-788e84f3]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-788e84f3]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-788e84f3]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-788e84f3]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-788e84f3{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e},"9df0":function(t,e,i){"use strict";i.r(e);var a=i("1ebc"),n=i("d052");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("3ea1");var r,s=i("f0c5"),d=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"788e84f3",null,!1,a["a"],r);e["default"]=d.exports},a6be:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var 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=[]},ab98: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-1be420a4]{position:relative;z-index:5;border-radius:%?16?% %?16?% 0 0;margin-top:%?20?%}uni-page-body .carousel-section[data-v-1be420a4]{padding:0}uni-page-body .carousel-section .titleNview-placing[data-v-1be420a4]{padding-top:0;height:0}uni-page-body .carousel-section .carousel .carousel-item[data-v-1be420a4]{padding:0}uni-page-body .carousel-section .swiper-dots[data-v-1be420a4]{left:%?45?%;bottom:%?40?%}.confirm-btn[data-v-1be420a4]{padding:0 %?10?%;margin:0 2px;border-radius:10px;height:%?36?%;line-height:%?36?%;font-size:%?28?%;background:#fa436a;box-shadow:1px 2px 5px rgba(217,60,93,.72)}uni-page-body[data-v-1be420a4]{background:#f5f5f5}.m-t[data-v-1be420a4]{margin-top:%?16?%}\n/* 头部 轮播图 */.carousel-section[data-v-1be420a4]{position:relative;padding-top:10px}.carousel-section .titleNview-placing[data-v-1be420a4]{height:0;padding-top:44px;box-sizing:initial}.carousel-section .titleNview-background[data-v-1be420a4]{position:absolute;top:0;left:0;width:100%;height:50vw;max-height:400px;transition:.4s}.carousel[data-v-1be420a4]{width:100%;height:50vw;max-height:400px}.carousel .carousel-item[data-v-1be420a4]{width:100%;height:100%;padding:0 %?28?%;overflow:hidden}.carousel uni-image[data-v-1be420a4]{width:100%;height:100%;border-radius:%?10?%;padding:%?20?%}.swiper-dots[data-v-1be420a4]{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-1be420a4]{width:%?36?%;height:%?36?%;border-radius:50px;font-size:%?24?%;color:#fff;text-align:center;line-height:%?36?%}.swiper-dots .sign[data-v-1be420a4]{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-1be420a4]{display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap;padding:%?30?% %?22?%;background:#fff\n /* 原图标颜色太深,不想改图了,所以加了透明度 */}.cate-section .cate-item[data-v-1be420a4]{display:flex;flex-direction:column;align-items:center;font-size:%?26?%;color:#303133}.cate-section uni-image[data-v-1be420a4]{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-1be420a4]{width:100%;height:%?210?%;padding:%?10?% 0;background:#fff}.ad-1 uni-image[data-v-1be420a4]{width:100%;height:100%}\n/* 秒杀专区 */.seckill-section[data-v-1be420a4]{padding:%?4?% %?30?% %?24?%;background:#fff}.seckill-section .miaosha[data-v-1be420a4]{font-size:%?35?%;font-weight:1000;color:#fa436a}.seckill-section .s-header[data-v-1be420a4]{display:flex;align-items:center;height:%?92?%;line-height:1}.seckill-section .s-header .s-img[data-v-1be420a4]{width:%?140?%;height:%?30?%}.seckill-section .s-header .tip[data-v-1be420a4]{font-size:%?28?%;color:#909399;margin:0 %?20?% 0 %?40?%}.seckill-section .s-header .timer[data-v-1be420a4]{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-1be420a4]{font-size:%?32?%;color:#909399;flex:1;text-align:right}.seckill-section .floor-list-whitelist[data-v-1be420a4]{display:flex;flex-direction:row;flex-wrap:wrap}.seckill-section .floor-list[data-v-1be420a4]{white-space:nowrap}.seckill-section .scoll-wrapper[data-v-1be420a4]{display:flex;align-items:flex-start}.seckill-section .floor-item[data-v-1be420a4]{width:calc(100%/3);padding-right:%?20?%;margin-top:%?20?%;font-size:%?26?%;color:#303133;line-height:1.8}.seckill-section .floor-item uni-image[data-v-1be420a4]{max-height:%?600?%;width:100%;height:40vw;border-radius:%?6?%}.seckill-section .floor-item .price[data-v-1be420a4]{color:#fa436a}.f-header[data-v-1be420a4]{display:flex;align-items:center;height:%?140?%;padding:%?6?% %?30?% %?8?%;background:#fff}.f-header uni-image[data-v-1be420a4]{flex-shrink:0;width:%?80?%;height:%?80?%;margin-right:%?20?%}.f-header .tit-box[data-v-1be420a4]{flex:1;display:flex;flex-direction:column}.f-header .tit[data-v-1be420a4]{font-size:%?34?%;color:#font-color-dark;line-height:1.3}.f-header .tit2[data-v-1be420a4]{font-size:%?24?%;color:#909399}.f-header .icon-you[data-v-1be420a4]{font-size:%?34?%;color:#909399}\n/* 团购楼层 */.group-section[data-v-1be420a4]{background:#fff}.group-section .g-swiper[data-v-1be420a4]{height:%?650?%;padding-bottom:%?30?%}.group-section .g-swiper-item[data-v-1be420a4]{width:100%;padding:0 %?30?%;display:flex}.group-section uni-image[data-v-1be420a4]{width:100%;height:%?460?%;border-radius:4px}.group-section .g-item[data-v-1be420a4]{display:flex;flex-direction:column;overflow:hidden}.group-section .left[data-v-1be420a4]{flex:1.2;margin-right:%?24?%}.group-section .left .t-box[data-v-1be420a4]{padding-top:%?20?%}.group-section .right[data-v-1be420a4]{flex:0.8;flex-direction:column-reverse}.group-section .right .t-box[data-v-1be420a4]{padding-bottom:%?20?%}.group-section .t-box[data-v-1be420a4]{height:%?160?%;font-size:%?30?%;color:#303133;line-height:1.6}.group-section .price[data-v-1be420a4]{color:#fa436a}.group-section .m-price[data-v-1be420a4]{font-size:%?26?%;text-decoration:line-through;color:#909399;margin-left:%?8?%}.group-section .pro-box[data-v-1be420a4]{display:flex;align-items:center;margin-top:%?10?%;font-size:%?24?%;color:%?28?%;padding-right:%?10?%}.group-section .progress-box[data-v-1be420a4]{flex:1;border-radius:10px;overflow:hidden;margin-right:%?8?%}\n/* 分类推荐楼层 */.hot-floor[data-v-1be420a4]{width:100%;overflow:hidden;margin-bottom:%?20?%}.hot-floor .floor-img-box[data-v-1be420a4]{width:100%;height:%?320?%;position:relative}.hot-floor .floor-img-box[data-v-1be420a4]:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;background:linear-gradient(hsla(0,0%,100%,.06) 30%,#f8f8f8)}.hot-floor .floor-img[data-v-1be420a4]{width:100%;height:100%}.hot-floor .floor-list[data-v-1be420a4]{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-1be420a4]{display:flex;align-items:flex-start}.hot-floor .floor-item[data-v-1be420a4]{margin-right:%?20?%;font-size:%?26?%;color:#303133;line-height:1.8}.hot-floor .floor-item uni-image[data-v-1be420a4]{width:%?180?%;height:%?180?%;border-radius:%?6?%}.hot-floor .floor-item .price[data-v-1be420a4]{color:#fa436a}.hot-floor .more[data-v-1be420a4]{display:flex;align-items:center;justify-content:center;flex-direction:column;flex-shrink:0;width:%?180?%;height:%?180?%;border-radius:%?6?%;background:#f3f3f3;font-size:%?28?%;color:#909399}.hot-floor .more uni-text[data-v-1be420a4]:first-child{margin-bottom:%?4?%}\n/* 猜你喜欢 */.guess-section[data-v-1be420a4]{display:flex;flex-wrap:wrap;padding:0 %?30?%;background:#fff}.guess-section .guess-item[data-v-1be420a4]{display:flex;flex-direction:column;width:48%;padding-bottom:%?40?%}.guess-section .guess-item[data-v-1be420a4]:nth-child(2n + 1){margin-right:4%}.guess-section .image-wrapper[data-v-1be420a4]{width:100%;height:%?330?%;border-radius:3px;overflow:hidden}.guess-section .image-wrapper uni-image[data-v-1be420a4]{width:100%;height:100%;opacity:1}.guess-section .title[data-v-1be420a4]{font-size:12px;color:#303133;line-height:%?80?%}.guess-section .price[data-v-1be420a4]{font-size:%?32?%;color:#fa436a;line-height:1}.guess-section .price .sales[data-v-1be420a4]{color:#999;font-size:%?24?%}.guess-section .price .symbol[data-v-1be420a4]{font-size:%?24?%}body.?%PAGE?%[data-v-1be420a4]{background:#f5f5f5}',""]),t.exports=e},ac08:function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("1da1")),o=a(i("10b5")),r={components:{uniCountdown:o.default},data:function(){return{loadingType:"",titleNViewBackground:"",swiperCurrent:0,swiperLength:0,carouselList:[],goodsList:[],menu:[],flashSale:"",cateList:[],page:1,pageSize:16,day:0,hour:0,minute:0,second:0}},computed:{},onLoad:function(){},onShow:function(){this.loadCateList(),this.loadData()},onReachBottom:function(){this.loadCateList()},onPullDownRefresh:function(){this.$refs&&this.$refs.countd&&(this.$refs.countd.syncFlag=!1),this.loadCateList("refresh")},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&&i.$api.request("/ads/index","GET").then((function(t){var e=t;i.titleNViewBackground=e[0].background,i.swiperLength=e.length,i.carouselList=e}));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++);case 8:case"end":return e.stop()}}),e)})))()},loadCateList: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:if("nomore"!=e.loadingType){i.next=2;break}return i.abrupt("return");case 2:return"refresh"===t&&(e.cateList=[],e.page=1),e,i.next=6,e.$api.request("/product/lists","GET",{fid:"",sid:0,page:e.page,by:"weigh",desc:"desc"});case 6:if(a=i.sent,a){i.next=10;break}return e.loadingType="nomore",i.abrupt("return");case 10:e.cateList=e.cateList.concat(a),e.loadingType=a.length>20?"nomore":"more",a.length<20?e.loadingType="nomore":(e.loadingType="more",e.page++),"refresh"===t&&uni.stopPullDownRefresh();case 14:case"end":return i.stop()}}),i)})))()},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)})))()},addCart:function(t){var e=this;return(0,n.default)(regeneratorRuntime.mark((function i(){var a,n;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.checkLogin();case 2:if(a=i.sent,!a){i.next=8;break}return i.next=6,e.$api.request("/cart/add?id="+t.product_id);case 6:n=i.sent,n&&uni.navigateTo({url:"/pages/cart/cart"});case 8:case"end":return i.stop()}}),i)})))()},swiperChange:function(t){var e=t.detail.current;this.swiperCurrent=e,this.titleNViewBackground=this.carouselList[e].background},navToDetailPages:function(t){uni.navigateTo({url:"/pages/product/product?id=".concat(t.product_id)})},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=r},b3f9: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-e73e11fa]{display:flex;flex-direction:row;justify-content:flex-start;padding:%?2?% 0}.uni-countdown__splitor[data-v-e73e11fa]{display:flex;justify-content:center;line-height:%?48?%;padding:%?5?%;font-size:%?24?%}.uni-countdown__number[data-v-e73e11fa]{display:flex;justify-content:center;align-items:center;width:%?52?%;height:%?48?%;line-height:%?48?%;margin:%?5?%;text-align:center;font-size:%?24?%}',""]),t.exports=e},d052:function(t,e,i){"use strict";i.r(e);var a=i("eef1"),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},d1ed: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},eef1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=a},fe67:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniLoadMore:i("9df0").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:{autoplay:!0,interval:7e3,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)],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),i("v-uni-view",{staticClass:"seckill-section"},[i("v-uni-view",{staticClass:"floor-list-whitelist"},t._l(t.cateList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"floor-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToDetailPages(e)}}},[i("v-uni-view",{staticStyle:{width:"100%","text-align":"center"}},[i("v-uni-image",{attrs:{src:e.image,mode:"aspectFit"}})],1),i("v-uni-text",{staticClass:"title clamp"},[t._v(t._s(e.title))]),i("v-uni-view",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-evenly"}},[i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(e.sales_price))]),i("v-uni-button",{staticClass:"no-border confirm-btn",attrs:{type:"primary"},nativeOn:{click:function(i){return i.stopPropagation(),t.addCart(e)}}},[t._v("add cart")])],1)],1)})),1)],1),i("uni-load-more",{attrs:{status:t.loadingType}}),t.flashSale&&t.flashSale.product.length>0?i("v-uni-view",{staticClass:"seckill-section"},[i("v-uni-view",{staticClass:"floor-list-whitelist"},t._l(t.cateList,(function(e){return i("v-uni-view",{key:e.id},[i("v-uni-view",{staticClass:"cate-item b-b two",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeFirst(e.id)}}},[t._v(t._s(e.name))]),t._l(e.child,(function(e){return i("v-uni-view",{key:e.id,staticClass:"cate-item b-b",class:{active:e.id==t.sId},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeSecond(e)}}},[t._v(t._s(e.name))])}))],2)})),1)],1):t._e()],1)},o=[]}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.e3941a91.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.e3941a91.js new file mode 100644 index 0000000..e434bb6 --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.e3941a91.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0dc6":function(t,e,i){var a=i("b3f9");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("2002502c",a,!0,{sourceMap:!1,shadowMode:!1})},"0dde":function(t,e,i){"use strict";var a=i("81e8"),n=i.n(a);n.a},"10b5":function(t,e,i){"use strict";i.r(e);var a=i("a6be"),n=i("7b68");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("4844");var r,s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"e73e11fa",null,!1,a["a"],r);e["default"]=c.exports},"1ebc":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-load-more"},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[i("v-uni-view",{staticClass:"load1"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1),i("v-uni-view",{staticClass:"load2"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1),i("v-uni-view",{staticClass:"load3"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1)],1),i("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]},"31df":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-f1c3569e]{position:relative;z-index:5;border-radius:%?16?% %?16?% 0 0;margin-top:%?20?%}uni-page-body .carousel-section[data-v-f1c3569e]{padding:0}uni-page-body .carousel-section .titleNview-placing[data-v-f1c3569e]{padding-top:0;height:0}uni-page-body .carousel-section .carousel .carousel-item[data-v-f1c3569e]{padding:0}uni-page-body .carousel-section .swiper-dots[data-v-f1c3569e]{left:%?45?%;bottom:%?40?%}.confirm-btn[data-v-f1c3569e]{padding:0 %?10?%;margin:0 2px;border-radius:10px;height:%?36?%;line-height:%?36?%;font-size:%?28?%;background:#fa436a;box-shadow:1px 2px 5px rgba(217,60,93,.72)}uni-page-body[data-v-f1c3569e]{background:#f5f5f5}.m-t[data-v-f1c3569e]{margin-top:%?16?%}\n/* 头部 轮播图 */.carousel-section[data-v-f1c3569e]{position:relative;padding-top:10px}.carousel-section .titleNview-placing[data-v-f1c3569e]{height:0;padding-top:44px;box-sizing:initial}.carousel-section .titleNview-background[data-v-f1c3569e]{position:absolute;top:0;left:0;width:100%;height:50vw;max-height:400px;transition:.4s}.carousel[data-v-f1c3569e]{width:100%;height:50vw;max-height:400px}.carousel .carousel-item[data-v-f1c3569e]{width:100%;height:100%;padding:0 %?28?%;overflow:hidden}.carousel uni-image[data-v-f1c3569e]{width:100%;height:100%;border-radius:%?10?%;padding:%?20?%}.swiper-dots[data-v-f1c3569e]{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-f1c3569e]{width:%?36?%;height:%?36?%;border-radius:50px;font-size:%?24?%;color:#fff;text-align:center;line-height:%?36?%}.swiper-dots .sign[data-v-f1c3569e]{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-f1c3569e]{display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap;padding:%?30?% %?22?%;background:#fff\n /* 原图标颜色太深,不想改图了,所以加了透明度 */}.cate-section .cate-item[data-v-f1c3569e]{display:flex;flex-direction:column;align-items:center;font-size:%?26?%;color:#303133}.cate-section uni-image[data-v-f1c3569e]{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-f1c3569e]{width:100%;height:%?210?%;padding:%?10?% 0;background:#fff}.ad-1 uni-image[data-v-f1c3569e]{width:100%;height:100%}\n/* 秒杀专区 */.seckill-section[data-v-f1c3569e]{padding:%?4?% %?30?% %?24?%;background:#fff}.seckill-section .miaosha[data-v-f1c3569e]{font-size:%?35?%;font-weight:1000;color:#fa436a}.seckill-section .s-header[data-v-f1c3569e]{display:flex;align-items:center;height:%?92?%;line-height:1}.seckill-section .s-header .s-img[data-v-f1c3569e]{width:%?140?%;height:%?30?%}.seckill-section .s-header .tip[data-v-f1c3569e]{font-size:%?28?%;color:#909399;margin:0 %?20?% 0 %?40?%}.seckill-section .s-header .timer[data-v-f1c3569e]{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-f1c3569e]{font-size:%?32?%;color:#909399;flex:1;text-align:right}.seckill-section .floor-list-whitelist[data-v-f1c3569e]{display:flex;flex-direction:row;flex-wrap:wrap}.seckill-section .floor-list[data-v-f1c3569e]{white-space:nowrap}.seckill-section .scoll-wrapper[data-v-f1c3569e]{display:flex;align-items:flex-start}.seckill-section .floor-item[data-v-f1c3569e]{width:calc(100%/3);padding-right:%?20?%;margin-top:%?20?%;font-size:%?26?%;color:#303133;line-height:1.8}.seckill-section .floor-item uni-image[data-v-f1c3569e]{max-height:%?600?%;width:100%;height:40vw;border-radius:%?6?%}.seckill-section .floor-item .price[data-v-f1c3569e]{color:#fa436a}.f-header[data-v-f1c3569e]{display:flex;align-items:center;height:%?140?%;padding:%?6?% %?30?% %?8?%;background:#fff}.f-header uni-image[data-v-f1c3569e]{flex-shrink:0;width:%?80?%;height:%?80?%;margin-right:%?20?%}.f-header .tit-box[data-v-f1c3569e]{flex:1;display:flex;flex-direction:column}.f-header .tit[data-v-f1c3569e]{font-size:%?34?%;color:#font-color-dark;line-height:1.3}.f-header .tit2[data-v-f1c3569e]{font-size:%?24?%;color:#909399}.f-header .icon-you[data-v-f1c3569e]{font-size:%?34?%;color:#909399}\n/* 团购楼层 */.group-section[data-v-f1c3569e]{background:#fff}.group-section .g-swiper[data-v-f1c3569e]{height:%?650?%;padding-bottom:%?30?%}.group-section .g-swiper-item[data-v-f1c3569e]{width:100%;padding:0 %?30?%;display:flex}.group-section uni-image[data-v-f1c3569e]{width:100%;height:%?460?%;border-radius:4px}.group-section .g-item[data-v-f1c3569e]{display:flex;flex-direction:column;overflow:hidden}.group-section .left[data-v-f1c3569e]{flex:1.2;margin-right:%?24?%}.group-section .left .t-box[data-v-f1c3569e]{padding-top:%?20?%}.group-section .right[data-v-f1c3569e]{flex:0.8;flex-direction:column-reverse}.group-section .right .t-box[data-v-f1c3569e]{padding-bottom:%?20?%}.group-section .t-box[data-v-f1c3569e]{height:%?160?%;font-size:%?30?%;color:#303133;line-height:1.6}.group-section .price[data-v-f1c3569e]{color:#fa436a}.group-section .m-price[data-v-f1c3569e]{font-size:%?26?%;text-decoration:line-through;color:#909399;margin-left:%?8?%}.group-section .pro-box[data-v-f1c3569e]{display:flex;align-items:center;margin-top:%?10?%;font-size:%?24?%;color:%?28?%;padding-right:%?10?%}.group-section .progress-box[data-v-f1c3569e]{flex:1;border-radius:10px;overflow:hidden;margin-right:%?8?%}\n/* 分类推荐楼层 */.hot-floor[data-v-f1c3569e]{width:100%;overflow:hidden;margin-bottom:%?20?%}.hot-floor .floor-img-box[data-v-f1c3569e]{width:100%;height:%?320?%;position:relative}.hot-floor .floor-img-box[data-v-f1c3569e]:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;background:linear-gradient(hsla(0,0%,100%,.06) 30%,#f8f8f8)}.hot-floor .floor-img[data-v-f1c3569e]{width:100%;height:100%}.hot-floor .floor-list[data-v-f1c3569e]{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-f1c3569e]{display:flex;align-items:flex-start}.hot-floor .floor-item[data-v-f1c3569e]{margin-right:%?20?%;font-size:%?26?%;color:#303133;line-height:1.8}.hot-floor .floor-item uni-image[data-v-f1c3569e]{width:%?180?%;height:%?180?%;border-radius:%?6?%}.hot-floor .floor-item .price[data-v-f1c3569e]{color:#fa436a}.hot-floor .more[data-v-f1c3569e]{display:flex;align-items:center;justify-content:center;flex-direction:column;flex-shrink:0;width:%?180?%;height:%?180?%;border-radius:%?6?%;background:#f3f3f3;font-size:%?28?%;color:#909399}.hot-floor .more uni-text[data-v-f1c3569e]:first-child{margin-bottom:%?4?%}\n/* 猜你喜欢 */.guess-section[data-v-f1c3569e]{display:flex;flex-wrap:wrap;padding:0 %?30?%;background:#fff}.guess-section .guess-item[data-v-f1c3569e]{display:flex;flex-direction:column;width:48%;padding-bottom:%?40?%}.guess-section .guess-item[data-v-f1c3569e]:nth-child(2n + 1){margin-right:4%}.guess-section .image-wrapper[data-v-f1c3569e]{width:100%;height:%?330?%;border-radius:3px;overflow:hidden}.guess-section .image-wrapper uni-image[data-v-f1c3569e]{width:100%;height:100%;opacity:1}.guess-section .title[data-v-f1c3569e]{font-size:12px;color:#303133;line-height:%?80?%}.guess-section .price[data-v-f1c3569e]{font-size:%?32?%;color:#fa436a;line-height:1}.guess-section .price .sales[data-v-f1c3569e]{color:#999;font-size:%?24?%}.guess-section .price .symbol[data-v-f1c3569e]{font-size:%?24?%}body.?%PAGE?%[data-v-f1c3569e]{background:#f5f5f5}',""]),t.exports=e},"3ea1":function(t,e,i){"use strict";var a=i("8212"),n=i.n(a);n.a},4844:function(t,e,i){"use strict";var a=i("0dc6"),n=i.n(a);n.a},"546e":function(t,e,i){"use strict";i.r(e);var a=i("a929"),n=i("6004");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("0dde");var r,s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"f1c3569e",null,!1,a["a"],r);e["default"]=c.exports},6004:function(t,e,i){"use strict";i.r(e);var a=i("ac08"),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},"7b68":function(t,e,i){"use strict";i.r(e);var a=i("d1ed"),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},"81e8":function(t,e,i){var a=i("31df");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("37d84883",a,!0,{sourceMap:!1,shadowMode:!1})},8212:function(t,e,i){var a=i("9a69");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("4f120a3f",a,!0,{sourceMap:!1,shadowMode:!1})},"9a69":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".uni-load-more[data-v-788e84f3]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-788e84f3]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-788e84f3]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>uni-view[data-v-788e84f3]{position:absolute}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]{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-788e84f3 1.56s ease infinite;animation:load-data-v-788e84f3 1.56s ease infinite}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>uni-view uni-view[data-v-788e84f3]:nth-child(4){top:11px;left:0}.load1[data-v-788e84f3],\n.load2[data-v-788e84f3],\n.load3[data-v-788e84f3]{height:24px;width:24px}.load2[data-v-788e84f3]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-788e84f3]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-788e84f3]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-788e84f3]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-788e84f3]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-788e84f3]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-788e84f3]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-788e84f3]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-788e84f3]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-788e84f3]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-788e84f3]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-788e84f3]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-788e84f3]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-788e84f3]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-788e84f3{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e},"9df0":function(t,e,i){"use strict";i.r(e);var a=i("1ebc"),n=i("d052");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("3ea1");var r,s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"788e84f3",null,!1,a["a"],r);e["default"]=c.exports},a6be:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var 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=[]},a929:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniLoadMore:i("9df0").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:{autoplay:!0,interval:7e3,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)],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),i("v-uni-view",{staticClass:"seckill-section"},[i("v-uni-view",{staticClass:"floor-list-whitelist"},t._l(t.cateList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"floor-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToDetailPages(e)}}},[i("v-uni-view",{staticStyle:{width:"100%","text-align":"center"}},[i("v-uni-image",{attrs:{src:e.image,mode:"aspectFit"}})],1),i("v-uni-text",{staticClass:"title clamp"},[t._v(t._s(e.title))]),i("v-uni-view",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-evenly"}},[i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(e.sales_price))]),i("v-uni-button",{staticClass:"no-border confirm-btn",attrs:{type:"primary"},nativeOn:{click:function(i){return i.stopPropagation(),t.addCart(e)}}},[t._v("add cart")])],1)],1)})),1)],1),i("uni-load-more",{attrs:{status:t.loadingType}}),t.flashSale&&t.flashSale.product.length>0?i("v-uni-view",{staticClass:"seckill-section"},[i("v-uni-view",{staticClass:"floor-list-whitelist"},t._l(t.cateList,(function(e){return i("v-uni-view",{key:e.id},[i("v-uni-view",{staticClass:"cate-item b-b two",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeFirst(e.id)}}},[t._v(t._s(e.name))]),t._l(e.child,(function(e){return i("v-uni-view",{key:e.id,staticClass:"cate-item b-b",class:{active:e.id==t.sId},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeSecond(e)}}},[t._v(t._s(e.name))])}))],2)})),1)],1):t._e()],1)},o=[]},ac08:function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("1da1")),o=a(i("10b5")),r={components:{uniCountdown:o.default},data:function(){return{loadingType:"",titleNViewBackground:"",swiperCurrent:0,swiperLength:0,carouselList:[],goodsList:[],menu:[],flashSale:"",cateList:[],page:1,pageSize:16,day:0,hour:0,minute:0,second:0}},computed:{},onLoad:function(){},onShow: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.checkLogin();case 2:i=e.sent,i&&(t.loadCateList(),t.loadData());case 4:case"end":return e.stop()}}),e)})))()},onReachBottom:function(){this.loadCateList()},onPullDownRefresh:function(){this.$refs&&this.$refs.countd&&(this.$refs.countd.syncFlag=!1),this.loadCateList("refresh")},onShareAppMessage:function(t){},methods:{loadData: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:i=t,i.$api.request("/ads/index","GET").then((function(t){var e=t;i.titleNViewBackground=e[0].background,i.swiperLength=e.length,i.carouselList=e}));case 2: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++);case 8:case"end":return e.stop()}}),e)})))()},loadCateList: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:if("nomore"!=e.loadingType){i.next=2;break}return i.abrupt("return");case 2:return"refresh"===t&&(e.cateList=[],e.page=1),e,i.next=6,e.$api.request("/product/lists","GET",{fid:"",sid:0,page:e.page,by:"weigh",desc:"desc"});case 6:if(a=i.sent,a){i.next=10;break}return e.loadingType="nomore",i.abrupt("return");case 10:e.cateList=e.cateList.concat(a),e.loadingType=a.length>20?"nomore":"more",a.length<20?e.loadingType="nomore":(e.loadingType="more",e.page++),"refresh"===t&&uni.stopPullDownRefresh();case 14:case"end":return i.stop()}}),i)})))()},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)})))()},addCart:function(t){var e=this;return(0,n.default)(regeneratorRuntime.mark((function i(){var a,n;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.checkLogin();case 2:if(a=i.sent,!a){i.next=8;break}return i.next=6,e.$api.request("/cart/add?id="+t.product_id);case 6:n=i.sent,n&&uni.navigateTo({url:"/pages/cart/cart"});case 8:case"end":return i.stop()}}),i)})))()},swiperChange:function(t){var e=t.detail.current;this.swiperCurrent=e,this.titleNViewBackground=this.carouselList[e].background},navToDetailPages:function(t){uni.navigateTo({url:"/pages/product/product?id=".concat(t.product_id)})},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=r},b3f9: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-e73e11fa]{display:flex;flex-direction:row;justify-content:flex-start;padding:%?2?% 0}.uni-countdown__splitor[data-v-e73e11fa]{display:flex;justify-content:center;line-height:%?48?%;padding:%?5?%;font-size:%?24?%}.uni-countdown__number[data-v-e73e11fa]{display:flex;justify-content:center;align-items:center;width:%?52?%;height:%?48?%;line-height:%?48?%;margin:%?5?%;text-align:center;font-size:%?24?%}',""]),t.exports=e},d052:function(t,e,i){"use strict";i.r(e);var a=i("eef1"),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},d1ed: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},eef1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=a}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.4b7c3d90.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.4b7c3d90.js new file mode 100644 index 0000000..e89fbcc --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.4b7c3d90.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-login"],{"140a":function(t,n,a){var i=a("3e2b");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var e=a("4f06").default;e("346f278b",i,!0,{sourceMap:!1,shadowMode:!1})},"3da6":function(t,n,a){"use strict";var i=a("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,a("96cf");var e=i(a("1da1")),o=i(a("5530")),c=a("2f62"),r={data:function(){return{mobile:"",password:"",logining:!1}},onLoad:function(){},methods:(0,o.default)((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,e.default)(regeneratorRuntime.mark((function n(){var a;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:a=n.sent,a?(t.$store.commit("login",a),t.logining=!0,setTimeout((function(){uni.switchTab({url:"/pages/index/index"}),setTimeout((function(){location.reload()}))}),2e3)):t.logining=!1;case 5:case"end":return n.stop()}}),n)})))()},register:function(t){uni.navigateTo({url:"./register?event="+t})}})};n.default=r},"3e2b":function(t,n,a){var i=a("24fb");n=i(!1),n.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-4cc9a57c]{background:#fff}.container[data-v-4cc9a57c]{padding-top:%?160?%;position:relative;display:flex;justify-content:center;height:100vh;overflow:hidden;background:#fff}.wrapper[data-v-4cc9a57c]{position:relative;z-index:90;background:#fff;padding-bottom:%?40?%;max-width:%?1000?%}.back-btn[data-v-4cc9a57c]{position:absolute;left:%?40?%;z-index:9999;padding-top:0;top:%?40?%;font-size:%?40?%;color:#303133}.left-top-sign[data-v-4cc9a57c]{font-size:%?120?%;color:#f8f8f8;position:relative;left:%?-16?%}.welcome[data-v-4cc9a57c]{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-4cc9a57c]{padding:0 %?60?%}.input-item[data-v-4cc9a57c]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0 %?30?%;background:#f8f6fc;height:%?120?%;border-radius:4px;margin-bottom:%?50?%;word-break:break-all}.input-item[data-v-4cc9a57c]:last-child{margin-bottom:0}.input-item .tit[data-v-4cc9a57c]{height:%?50?%;line-height:%?56?%;font-size:%?26?%;color:#606266}.input-item uni-input[data-v-4cc9a57c]{height:%?60?%;font-size:%?30?%;color:#303133;width:100%}.confirm-btn[data-v-4cc9a57c]{width:%?630?%;height:%?76?%;line-height:%?76?%;border-radius:50px;margin-top:%?70?%;background:#fa436a;color:#fff;font-size:%?32?%}.confirm-btn[data-v-4cc9a57c]:after{border-radius:100px}.forget-section[data-v-4cc9a57c]{font-size:%?34?%;color:#4399fc;text-align:center;margin-top:%?100?%}.forget-section uni-label[data-v-4cc9a57c]{margin:%?10?% %?60?%}.register-section[data-v-4cc9a57c]{position:absolute;left:0;bottom:%?50?%;width:100%;font-size:%?26?%;color:#606266;text-align:center}.register-section uni-text[data-v-4cc9a57c]{color:#4399fc;margin-left:%?10?%}body.?%PAGE?%[data-v-4cc9a57c]{background:#fff}',""]),t.exports=n},"44a4":function(t,n,a){"use strict";var i=a("140a"),e=a.n(i);e.a},"932d":function(t,n,a){"use strict";a.r(n);var i=a("3da6"),e=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(n,t,(function(){return i[t]}))}(o);n["default"]=e.a},ab06:function(t,n,a){"use strict";a.r(n);var i=a("f0c8"),e=a("932d");for(var o in e)"default"!==o&&function(t){a.d(n,t,(function(){return e[t]}))}(o);a("44a4");var c,r=a("f0c5"),s=Object(r["a"])(e["default"],i["b"],i["c"],!1,null,"4cc9a57c",null,!1,i["a"],c);n["default"]=s.exports},f0c8:function(t,n,a){"use strict";var i;a.d(n,"b",(function(){return e})),a.d(n,"c",(function(){return o})),a.d(n,"a",(function(){return i}));var e=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",{staticClass:"container"},[a("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)}}}),a("v-uni-view",{staticClass:"wrapper"},[a("v-uni-view",{staticClass:"left-top-sign"},[t._v("LOGIN")]),a("v-uni-view",{staticClass:"welcome"},[t._v("Welcome Back !")]),a("v-uni-view",{staticClass:"input-content"},[a("v-uni-view",{staticClass:"input-item"},[a("v-uni-text",{staticClass:"tit"},[t._v("Account")]),a("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),a("v-uni-view",{staticClass:"input-item"},[a("v-uni-text",{staticClass:"tit"},[t._v("Password")]),a("v-uni-input",{attrs:{type:"mobile",value:"",placeholder:"","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),a("v-uni-view",{staticClass:"input-item"},[a("v-uni-text",{staticStyle:{"line-height":"28px","font-size":"13px",color:"#606266"}},[t._v("Forget Password ? please contact"),a("a",{staticStyle:{"margin-left":"10px"},attrs:{href:"mailto:wendy.wang@inter.ikea.com"}},[t._v("wendy.wang@inter.ikea.com")])])],1)],1),a("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("Login")])],1)],1)},o=[]}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.c527eebd.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.c527eebd.js deleted file mode 100644 index efe93b6..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.c527eebd.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-login"],{"3da6":function(t,n,a){"use strict";var i=a("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,a("96cf");var e=i(a("1da1")),o=i(a("5530")),r=a("2f62"),s={data:function(){return{mobile:"",password:"",logining:!1}},onLoad:function(){},methods:(0,o.default)((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,e.default)(regeneratorRuntime.mark((function n(){var a;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:a=n.sent,a?(t.$store.commit("login",a),t.logining=!0,setTimeout((function(){uni.switchTab({url:"/pages/index/index"})}),2e3)):t.logining=!1;case 5:case"end":return n.stop()}}),n)})))()},register:function(t){uni.navigateTo({url:"./register?event="+t})}})};n.default=s},"932d":function(t,n,a){"use strict";a.r(n);var i=a("3da6"),e=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(n,t,(function(){return i[t]}))}(o);n["default"]=e.a},"9b24":function(t,n,a){var i=a("d191");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var e=a("4f06").default;e("fbd6f61a",i,!0,{sourceMap:!1,shadowMode:!1})},ab06:function(t,n,a){"use strict";a.r(n);var i=a("f7e0"),e=a("932d");for(var o in e)"default"!==o&&function(t){a.d(n,t,(function(){return e[t]}))}(o);a("faaa");var r,s=a("f0c5"),d=Object(s["a"])(e["default"],i["b"],i["c"],!1,null,"61d32ab6",null,!1,i["a"],r);n["default"]=d.exports},d191:function(t,n,a){var i=a("24fb");n=i(!1),n.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-61d32ab6]{background:#fff}.container[data-v-61d32ab6]{padding-top:%?160?%;position:relative;display:flex;justify-content:center;height:100vh;overflow:hidden;background:#fff}.wrapper[data-v-61d32ab6]{position:relative;z-index:90;background:#fff;padding-bottom:%?40?%;max-width:%?1000?%}.back-btn[data-v-61d32ab6]{position:absolute;left:%?40?%;z-index:9999;padding-top:0;top:%?40?%;font-size:%?40?%;color:#303133}.left-top-sign[data-v-61d32ab6]{font-size:%?120?%;color:#f8f8f8;position:relative;left:%?-16?%}.welcome[data-v-61d32ab6]{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-61d32ab6]{padding:0 %?60?%}.input-item[data-v-61d32ab6]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0 %?30?%;background:#f8f6fc;height:%?120?%;border-radius:4px;margin-bottom:%?50?%;word-break:break-all}.input-item[data-v-61d32ab6]:last-child{margin-bottom:0}.input-item .tit[data-v-61d32ab6]{height:%?50?%;line-height:%?56?%;font-size:%?26?%;color:#606266}.input-item uni-input[data-v-61d32ab6]{height:%?60?%;font-size:%?30?%;color:#303133;width:100%}.confirm-btn[data-v-61d32ab6]{width:%?630?%;height:%?76?%;line-height:%?76?%;border-radius:50px;margin-top:%?70?%;background:#fa436a;color:#fff;font-size:%?32?%}.confirm-btn[data-v-61d32ab6]:after{border-radius:100px}.forget-section[data-v-61d32ab6]{font-size:%?34?%;color:#4399fc;text-align:center;margin-top:%?100?%}.forget-section uni-label[data-v-61d32ab6]{margin:%?10?% %?60?%}.register-section[data-v-61d32ab6]{position:absolute;left:0;bottom:%?50?%;width:100%;font-size:%?26?%;color:#606266;text-align:center}.register-section uni-text[data-v-61d32ab6]{color:#4399fc;margin-left:%?10?%}body.?%PAGE?%[data-v-61d32ab6]{background:#fff}',""]),t.exports=n},f7e0:function(t,n,a){"use strict";var i;a.d(n,"b",(function(){return e})),a.d(n,"c",(function(){return o})),a.d(n,"a",(function(){return i}));var e=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",{staticClass:"container"},[a("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)}}}),a("v-uni-view",{staticClass:"wrapper"},[a("v-uni-view",{staticClass:"left-top-sign"},[t._v("LOGIN")]),a("v-uni-view",{staticClass:"welcome"},[t._v("Welcome Back !")]),a("v-uni-view",{staticClass:"input-content"},[a("v-uni-view",{staticClass:"input-item"},[a("v-uni-text",{staticClass:"tit"},[t._v("Account")]),a("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),a("v-uni-view",{staticClass:"input-item"},[a("v-uni-text",{staticClass:"tit"},[t._v("Password")]),a("v-uni-input",{attrs:{type:"mobile",value:"",placeholder:"","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),a("v-uni-view",{staticClass:"input-item"},[a("v-uni-text",{staticStyle:{"line-height":"28px","font-size":"13px",color:"#606266"}},[t._v("Forget Password ? please contact"),a("a",{staticStyle:{"margin-left":"10px"},attrs:{href:"mailto:wendy.wang@inter.ikea.com"}},[t._v("wendy.wang@inter.ikea.com")])])],1)],1),a("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("Login")])],1)],1)},o=[]},faaa:function(t,n,a){"use strict";var i=a("9b24"),e=a.n(i);e.a}}]); \ No newline at end of file