diff --git a/addons/unishop/uniapp/uni-shop/manifest.json b/addons/unishop/uniapp/uni-shop/manifest.json index b8b58d4..741f310 100644 --- a/addons/unishop/uniapp/uni-shop/manifest.json +++ b/addons/unishop/uniapp/uni-shop/manifest.json @@ -63,7 +63,7 @@ }, "h5" : { "title" : "宜家自购商城", - "domain" : "http://132.232.77.71:9192/", + "domain" : "http://47.101.187.29:8083/", "router" : { "base" : "/h5/", "mode" : "hash" diff --git a/addons/unishop/uniapp/uni-shop/pages/public/login.vue b/addons/unishop/uniapp/uni-shop/pages/public/login.vue index 5449141..2265a8c 100644 --- a/addons/unishop/uniapp/uni-shop/pages/public/login.vue +++ b/addons/unishop/uniapp/uni-shop/pages/public/login.vue @@ -42,7 +42,8 @@ - - + + 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 7d9c8d5..25ff03f 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.b5327bc6.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.30a08c4e.js similarity index 83% rename from addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.b5327bc6.js rename to addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.30a08c4e.js index 95f4ec8..e3381f1 100644 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.b5327bc6.js +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.30a08c4e.js @@ -1 +1 @@ -(function(e){function n(n){for(var a,i,s=n[0],u=n[1],c=n[2],g=0,d=[];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))},p=function(){var e=getCurrentPages(),n=e[e.length-2];return n},d=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,p,d,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),p=c[0],d=c[1],"/pay/submit"==n&&console.log(d),e.abrupt("return",new Promise((function(e){if(p&&(t&&g(JSON.stringify(d)),e(!1)),d){if(d.header.hasOwnProperty("Set-Cookie")){var n=d.header["Set-Cookie"].replace("; path=/","");s.default.prototype.$store.commit("setCookie",n)}d.hasOwnProperty("data")?(d.data.hasOwnProperty("code")&&401==d.data.code&&s.default.prototype.$store.commit("logout"),d.data.hasOwnProperty("code")&&1==d.data.code?(d.data.msg?t&&g(d.data.msg):uni.hideToast(),e(d.data.data)):(d.data.hasOwnProperty("msg")?t&&g(d.data.msg):t&&g("返回参数错误"),e(!1))):(t&&g("不能识别数据"),e(!1))}})));case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),y=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n&&!s.default.prototype.$store.state.hasLogin&&(e="/pages/public/login"),uni.navigateTo({url:e})};s.default.config.productionTip=!1,s.default.prototype.$fire=new s.default,s.default.prototype.$store=u.default,s.default.prototype.$api={msg:g,prePage:p,checkLogin:d,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 +(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];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/pages-public-login.847f577e.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.847f577e.js new file mode 100644 index 0000000..e7d004f --- /dev/null +++ b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.847f577e.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-login"],{"26f6":function(t,e,n){"use strict";n.r(e);var i=n("cbd0"),a=n("8b13");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("628d");var c,r=n("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"6e032c26",null,!1,i["a"],c);e["default"]=s.exports},"628d":function(t,e,n){"use strict";var i=n("96e3"),a=n.n(i);a.a},"8b13":function(t,e,n){"use strict";n.r(e);var i=n("b3f1"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"96e3":function(t,e,n){var i=n("fd33");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("407ca79c",i,!0,{sourceMap:!1,shadowMode:!1})},b3f1:function(t,e,n){"use strict";var i=n("ee27");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=i(n("c964")),o=i(n("f3f3")),c=n("2f62"),r={data:function(){return{mobile:"",password:"",logining:!1}},onLoad:function(){},methods:(0,o.default)({},(0,c.mapMutations)(["login"]),{inputChange:function(t){var e=t.currentTarget.dataset.key;this[e]=t.detail.value},navBack:function(){uni.navigateBack()},toLogin:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.logining=!0,e.next=3,t.$api.request("/user/login","POST",{mobile:t.mobile,password:t.password});case 3:n=e.sent,n?(t.$store.commit("login",n),t.logining=!0,setTimeout((function(){uni.navigateBack()}),2e3)):t.logining=!1;case 5:case"end":return e.stop()}}),e)})))()},register:function(t){uni.navigateTo({url:"./register?event="+t})}})};e.default=r},cbd0:function(t,e,n){"use strict";var i,a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"back-btn yticon icon-zuojiantou-up",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navBack.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"wrapper"},[n("v-uni-view",{staticClass:"left-top-sign"},[t._v("LOGIN")]),n("v-uni-view",{staticClass:"welcome"},[t._v("欢迎回来!")]),n("v-uni-view",{staticClass:"input-content"},[n("v-uni-view",{staticClass:"input-item"},[n("v-uni-text",{staticClass:"tit"},[t._v("手机号码")]),n("v-uni-input",{attrs:{type:"text",value:t.mobile,placeholder:"请输入手机号码","data-key":"mobile"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChange.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"input-item"},[n("v-uni-text",{staticClass:"tit"},[t._v("密码")]),n("v-uni-input",{attrs:{type:"mobile",value:"",placeholder:"6-18位不含特殊字符的数字、字母组合","placeholder-class":"input-empty",maxlength:"20",password:!0,"data-key":"password"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChange.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.toLogin.apply(void 0,arguments)}}})],1)],1),n("v-uni-button",{staticClass:"confirm-btn",attrs:{disabled:t.logining},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toLogin.apply(void 0,arguments)}}},[t._v("登录")]),n("v-uni-view",{staticClass:"forget-section"},[n("v-uni-view",[n("v-uni-label",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register("resetpwd")}}},[t._v("忘记密码")])],1)],1)],1)],1)},o=[];n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}))},fd33:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-6e032c26]{background:#fff}.container[data-v-6e032c26]{padding-top:%?160?%;position:relative;width:100vw;height:100vh;overflow:hidden;background:#fff}.wrapper[data-v-6e032c26]{position:relative;z-index:90;background:#fff;padding-bottom:%?40?%}.back-btn[data-v-6e032c26]{position:absolute;left:%?40?%;z-index:9999;padding-top:0;top:%?40?%;font-size:%?40?%;color:#303133}.left-top-sign[data-v-6e032c26]{font-size:%?120?%;color:#f8f8f8;position:relative;left:%?-16?%}.welcome[data-v-6e032c26]{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-6e032c26]{padding:0 %?60?%}.input-item[data-v-6e032c26]{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-6e032c26]:last-child{margin-bottom:0}.input-item .tit[data-v-6e032c26]{height:%?50?%;line-height:%?56?%;font-size:%?26?%;color:#606266}.input-item uni-input[data-v-6e032c26]{height:%?60?%;font-size:%?30?%;color:#303133;width:100%}.confirm-btn[data-v-6e032c26]{width:%?630?%;height:%?76?%;line-height:%?76?%;border-radius:50px;margin-top:%?70?%;background:#fa436a;color:#fff;font-size:%?32?%}.confirm-btn[data-v-6e032c26]:after{border-radius:100px}.forget-section[data-v-6e032c26]{font-size:%?34?%;color:#4399fc;text-align:center;margin-top:%?100?%}.forget-section uni-label[data-v-6e032c26]{margin:%?10?% %?60?%}.register-section[data-v-6e032c26]{position:absolute;left:0;bottom:%?50?%;width:100%;font-size:%?26?%;color:#606266;text-align:center}.register-section uni-text[data-v-6e032c26]{color:#4399fc;margin-left:%?10?%}body.?%PAGE?%[data-v-6e032c26]{background:#fff}',""]),t.exports=e}}]); \ No newline at end of file diff --git a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.f5c51072.js b/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.f5c51072.js deleted file mode 100644 index 25d1cc4..0000000 --- a/addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-public-login.f5c51072.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-login"],{"26f6":function(t,e,n){"use strict";n.r(e);var i=n("aeba"),a=n("8b13");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("ad1a");var r,c=n("f0c5"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"7bed8116",null,!1,i["a"],r);e["default"]=s.exports},4699:function(t,e,n){var i=n("c72d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("470dd67d",i,!0,{sourceMap:!1,shadowMode:!1})},"8b13":function(t,e,n){"use strict";n.r(e);var i=n("b3f1"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},ad1a:function(t,e,n){"use strict";var i=n("4699"),a=n.n(i);a.a},aeba:function(t,e,n){"use strict";var i,a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"back-btn yticon icon-zuojiantou-up",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navBack.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"wrapper"},[n("v-uni-view",{staticClass:"left-top-sign"},[t._v("LOGIN")]),n("v-uni-view",{staticClass:"welcome"},[t._v("欢迎回来!")]),n("v-uni-view",{staticClass:"input-content"},[n("v-uni-view",{staticClass:"input-item"},[n("v-uni-text",{staticClass:"tit"},[t._v("手机号码")]),n("v-uni-input",{attrs:{type:"text",value:t.mobile,placeholder:"请输入手机号码","data-key":"mobile"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChange.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"input-item"},[n("v-uni-text",{staticClass:"tit"},[t._v("密码")]),n("v-uni-input",{attrs:{type:"mobile",value:"",placeholder:"6-18位不含特殊字符的数字、字母组合","placeholder-class":"input-empty",maxlength:"20",password:!0,"data-key":"password"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChange.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.toLogin.apply(void 0,arguments)}}})],1)],1),n("v-uni-button",{staticClass:"confirm-btn",attrs:{disabled:t.logining},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toLogin.apply(void 0,arguments)}}},[t._v("登录")]),n("v-uni-view",{staticClass:"forget-section"},[n("v-uni-view",[n("v-uni-label",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register("resetpwd")}}},[t._v("忘记密码")]),t._v("-"),n("v-uni-label",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register("register")}}},[t._v("立马注册")])],1)],1)],1)],1)},o=[];n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}))},b3f1:function(t,e,n){"use strict";var i=n("ee27");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=i(n("c964")),o=i(n("f3f3")),r=n("2f62"),c={data:function(){return{mobile:"",password:"",logining:!1}},onLoad:function(){},methods:(0,o.default)({},(0,r.mapMutations)(["login"]),{inputChange:function(t){var e=t.currentTarget.dataset.key;this[e]=t.detail.value},navBack:function(){uni.navigateBack()},toLogin:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.logining=!0,e.next=3,t.$api.request("/user/login","POST",{mobile:t.mobile,password:t.password});case 3:n=e.sent,n?(t.$store.commit("login",n),t.logining=!0,setTimeout((function(){uni.navigateBack()}),2e3)):t.logining=!1;case 5:case"end":return e.stop()}}),e)})))()},register:function(t){uni.navigateTo({url:"./register?event="+t})}})};e.default=c},c72d:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 背景颜色*/uni-page-body[data-v-7bed8116]{background:#fff}.container[data-v-7bed8116]{padding-top:%?160?%;position:relative;width:100vw;height:100vh;overflow:hidden;background:#fff}.wrapper[data-v-7bed8116]{position:relative;z-index:90;background:#fff;padding-bottom:%?40?%}.back-btn[data-v-7bed8116]{position:absolute;left:%?40?%;z-index:9999;padding-top:0;top:%?40?%;font-size:%?40?%;color:#303133}.left-top-sign[data-v-7bed8116]{font-size:%?120?%;color:#f8f8f8;position:relative;left:%?-16?%}.welcome[data-v-7bed8116]{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-7bed8116]{padding:0 %?60?%}.input-item[data-v-7bed8116]{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-7bed8116]:last-child{margin-bottom:0}.input-item .tit[data-v-7bed8116]{height:%?50?%;line-height:%?56?%;font-size:%?26?%;color:#606266}.input-item uni-input[data-v-7bed8116]{height:%?60?%;font-size:%?30?%;color:#303133;width:100%}.confirm-btn[data-v-7bed8116]{width:%?630?%;height:%?76?%;line-height:%?76?%;border-radius:50px;margin-top:%?70?%;background:#fa436a;color:#fff;font-size:%?32?%}.confirm-btn[data-v-7bed8116]:after{border-radius:100px}.forget-section[data-v-7bed8116]{font-size:%?34?%;color:#4399fc;text-align:center;margin-top:%?100?%}.forget-section uni-label[data-v-7bed8116]{margin:%?10?% %?60?%}.register-section[data-v-7bed8116]{position:absolute;left:0;bottom:%?50?%;width:100%;font-size:%?26?%;color:#606266;text-align:center}.register-section uni-text[data-v-7bed8116]{color:#4399fc;margin-left:%?10?%}body.?%PAGE?%[data-v-7bed8116]{background:#fff}',""]),t.exports=e}}]); \ No newline at end of file