pages-chat-customer_login-index.df0d9ab8.js 7.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-chat-customer_login-index"],{"5c8d":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{style:t.viewColor},[e("v-uni-view",{staticClass:"customerCount"},[e("v-uni-view",{staticClass:"title"},[t._v("选择登录店铺")]),e("v-uni-view",{staticClass:"store_count"},[e("v-uni-scroll-view",{attrs:{"scroll-y":"true","show-scrollbar":"false"}},t._l(t.list,(function(i,n){return e("v-uni-view",{staticClass:"item"},[e("v-uni-view",{staticClass:"info",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.login(i)}}},[e("v-uni-image",{staticClass:"image",attrs:{src:i.merchant.mer_avatar}}),e("v-uni-view",{staticClass:"text"},[e("v-uni-view",{staticClass:"name"},[t._v(t._s(i.merchant.mer_name))]),e("v-uni-view",{staticClass:"desc"},[t._v(t._s(i.account))])],1)],1),e("v-uni-text",{staticClass:"iconfont icon-ic_rightarrow"})],1)})),1)],1),e("v-uni-view",{staticClass:"picture-group"},[e("v-uni-view",{staticClass:"picture",style:{"background-image":"url("+t.domain+"/static/images/customer_login_bg.png)"}})],1)],1),t.loaded&&!t.list.length?e("v-uni-view",[e("v-uni-view",{staticClass:"empty"},[e("v-uni-image",{staticClass:"img",attrs:{src:t.domain+"/static/images/noPermission.png)"}}),e("v-uni-view",{staticClass:"title"},[t._v("暂无权限")]),e("v-uni-view",{staticClass:"intr"},[t._v("抱歉,您还没有登录权限哦!")]),e("v-uni-navigator",{staticClass:"btn",attrs:{"open-type":"switchTab",url:"/pages/index/index"}},[t._v("返回首页")])],1)],1):t._e(),t.isShowbox?e("v-uni-view",{staticClass:"success"},[e("v-uni-view",{staticClass:"bg"}),e("v-uni-view",{staticClass:"con bg-f boder-24"},[e("v-uni-image",{attrs:{src:t.domain+"/static/images/login_success.png",mode:""}}),e("v-uni-view",{staticClass:"text"},[t._v("登录成功")]),e("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.close.apply(void 0,arguments)}}},[t._v("我知道了")])],1)],1):t._e()],1)},o=[]},"93a9":function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e("672a"),o=e("8f59"),a=e("aa10"),s={name:"CustomerLogin",computed:(0,o.mapGetters)(["viewColor","keyColor"]),components:{},data:function(){return{domain:a.HTTP_REQUEST_URL,list:[],isShowbox:!1,key:"",loaded:!1}},onLoad:function(t){this.key=t.key,this.loaded=!this.key,!this.loaded&&this.getList()},onShow:function(t){},onHide:function(){},onUnload:function(){},methods:{close:function(){this.isShowbox=!1,uni.reLaunch({url:"/pages/index/index"})},getList:function(){var t=this;uni.showLoading({title:"加载中",mask:!0}),(0,n.getStoreList)().then((function(i){uni.hideLoading(),t.loaded=!0,t.list=i.data}))},login:function(t){var i=this;uni.showLoading({title:"授权中",mask:!0}),(0,n.serviceLogin)(this.key,{service_id:t.service_id}).then((function(t){uni.hideLoading(),i.isShowbox=!0})).catch((function(t){uni.hideLoading(),uni.showToast({title:t,icon:"none"})}))}}};i.default=s},a83c:function(t,i,e){"use strict";e.r(i);var n=e("5c8d"),o=e("c572");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("f588");var s=e("828b"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"22465ac6",null,!1,n["a"],void 0);i["default"]=c.exports},bd9e:function(t,i,e){var n=e("c86c");i=n(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-22465ac6]{background-color:#fff;height:100%}body.?%PAGE?%[data-v-22465ac6]{background-color:#fff}.customerCount .title[data-v-22465ac6]{padding:%?60?% %?40?% %?50?%;color:#282828;font-size:%?36?%;font-weight:700;position:fixed;top:0;width:100%;background-color:#fff;z-index:2}.customerCount .store_count[data-v-22465ac6]{margin-top:%?160?%;height:100%;margin-bottom:%?400?%}.customerCount .store_count uni-scroll-view[data-v-22465ac6]{height:100%}.customerCount .store_count .item[data-v-22465ac6]{border-top:1px solid #e5e5e5;padding:%?21?% %?20?%;display:flex;align-items:center;justify-content:space-between}.customerCount .store_count .item .info[data-v-22465ac6]{width:%?500?%;display:flex;align-items:center}.customerCount .store_count .item .info .image[data-v-22465ac6]{width:%?80?%;height:%?80?%;border-radius:100%}.customerCount .store_count .item .info .text[data-v-22465ac6]{margin-left:%?20?%}.customerCount .store_count .item .info .text .name[data-v-22465ac6]{color:#282828;font-size:%?30?%}.customerCount .store_count .item .info .text .desc[data-v-22465ac6]{color:#666;font-size:%?26?%;margin-top:%?10?%}.customerCount .store_count .item .iconfont[data-v-22465ac6]{font-size:%?30?%;color:#999}.customerCount .picture-group[data-v-22465ac6]{position:fixed;display:flex;justify-content:center;bottom:0;background-color:#fff;width:100%}.customerCount .picture[data-v-22465ac6]{width:%?650?%;height:%?390?%;background-size:100% 100%;background-repeat:no-repeat}.empty[data-v-22465ac6]{text-align:center;margin-top:%?300?%}.empty .img[data-v-22465ac6]{width:%?414?%;height:%?305?%}.empty .title[data-v-22465ac6]{color:#282828;font-size:%?28?%;font-weight:700}.empty .intr[data-v-22465ac6]{font-size:%?24?%;color:#999;margin-top:%?14?%}.empty .btn[data-v-22465ac6]{width:%?240?%;height:%?80?%;line-height:%?80?%;border:%?1?% solid var(--view-theme);text-align:center;border-radius:%?50?%;margin:%?44?% auto 0;color:var(--view-theme)}.success[data-v-22465ac6]{z-index:10;position:fixed;left:0;top:0;width:100%;height:100%}.success .bg[data-v-22465ac6]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5)}.success .con[data-v-22465ac6]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?500?%;height:%?540?%;font-size:%?34?%;color:#282828}.success .con uni-image[data-v-22465ac6]{width:%?290?%;height:%?224?%}.success .con .text[data-v-22465ac6]{color:#282828;font-size:%?36?%;margin-top:%?36?%;font-weight:700}.success .con .btn[data-v-22465ac6]{width:%?408?%;height:%?88?%;line-height:%?88?%;margin-top:%?38?%;font-size:%?28?%;text-align:center;color:#fff;background:#2291f8;border-radius:%?50?%}',""]),t.exports=i},c572:function(t,i,e){"use strict";e.r(i);var n=e("93a9"),o=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},e7d3:function(t,i,e){var n=e("bd9e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("967d").default;o("bd4b0cce",n,!0,{sourceMap:!1,shadowMode:!1})},f588:function(t,i,e){"use strict";var n=e("e7d3"),o=e.n(n);o.a}}]);