You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-business-index"],{"0101":function(t,e,i){var n=i("24fb");e=n(!1),e.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/* 文章场景相关 */.store_content[data-v-a7f3cd9c]{position:fixed;bottom:0;width:100%;left:0;background-color:#fff;z-index:77;border-radius:%?16?% %?16?% 0 0;padding-bottom:%?60?%;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.store_content.on[data-v-a7f3cd9c]{-webkit-transform:translateZ(0);transform:translateZ(0)}.store_content .title[data-v-a7f3cd9c]{font-size:%?32?%;font-weight:700;text-align:center;height:%?123?%;line-height:%?123?%;position:relative}.store_content .title .iconfont[data-v-a7f3cd9c]{position:absolute;right:%?30?%;color:#8a8a8a;font-size:%?35?%}.store_content .store-list[data-v-a7f3cd9c]{height:%?120?%;line-height:%?120?%}.store_content .store-list .mer_logo[data-v-a7f3cd9c]{width:%?60?%;height:%?60?%;margin-right:%?20?%}uni-form[data-v-a7f3cd9c]{font-size:%?28?%;color:#282828}uni-form uni-input[data-v-a7f3cd9c],\nuni-form uni-radio-group[data-v-a7f3cd9c]{flex:1;text-align:right}uni-form uni-input[data-v-a7f3cd9c]{font-size:%?26?%}uni-form uni-label[data-v-a7f3cd9c]{margin-right:%?50?%}uni-form uni-radio[data-v-a7f3cd9c]{margin-right:%?8?%}uni-form uni-checkbox-group[data-v-a7f3cd9c]{height:%?90?%}uni-form uni-checkbox[data-v-a7f3cd9c]{margin-right:%?20?%}uni-form uni-button[data-v-a7f3cd9c]{height:%?76?%;border-radius:%?38?%;margin:%?16?% %?30?%;background-color:#e93323;font-size:%?30?%;line-height:%?76?%;color:#fff}.panel[data-v-a7f3cd9c]{padding-right:%?30?%;padding-left:%?30?%;background-color:#fff}.panel ~ .panel[data-v-a7f3cd9c]{margin-top:%?14?%}.panel .acea-row[data-v-a7f3cd9c]{height:%?90?%}.panel .acea-row ~ .acea-row[data-v-a7f3cd9c]{border-top:1px solid #eee}.input-placeholder[data-v-a7f3cd9c]{font-size:%?26?%;color:#bbb}.icon-xiangyou[data-v-a7f3cd9c]{margin-left:%?25?%;font-size:%?18?%;color:#bfbfbf}.btn-wrap[data-v-a7f3cd9c]{width:100%;padding:8px 16px;border-top:1px solid #f5f5f5}.btn-wrap .back[data-v-a7f3cd9c]{border:1px solid #e93323;background:none;color:#e93323}.popup[data-v-a7f3cd9c]{width:100%;border-top-left-radius:%?16?%;border-top-right-radius:%?16?%;background-color:#fff;overflow:hidden}.popup uni-scroll-view[data-v-a7f3cd9c]{height:%?466?%;padding-right:%?30?%;padding-left:%?30?%;box-sizing:border-box}.popup .text[data-v-a7f3cd9c]{flex:1;min-width:0;font-size:%?28?%;color:#282828}.popup .info[data-v-a7f3cd9c]{margin-top:%?10?%;font-size:%?22?%;color:#909090}.popup .icon-guanbi[data-v-a7f3cd9c]{position:absolute;top:50%;right:%?30?%;z-index:2;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:%?30?%;color:#707070;cursor:pointer}.popup uni-button[data-v-a7f3cd9c]{height:%?86?%;border-radius:%?43?%;margin-right:%?30?%;margin-left:%?30?%;background-color:#e93323;font-size:%?30?%;line-height:%?86?%;color:#fff}.popup .text .acea-row[data-v-a7f3cd9c]{display:inline-flex;max-width:100%}.popup .name[data-v-a7f3cd9c]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:%?30?%}.popup .label[data-v-a7f3cd9c]{width:%?56?%;height:%?28?%;border:1px solid #e93323;margin-left:%?18?%;font-size:%?20?%;line-height:%?26?%;text-align:center;color:#e93323}.popup .type[data-v-a7f3cd9c]{width:%?124?%;height:%?42?%;margin-top:%?14?%;background-color:#fcf0e0;font-size:%?24?%;line-height:%?42?%;text-align:center;color:#d67300}.popup .type.special[data-v-a7f3cd9c]{background-color:#fde9e7;color:#e93323}',""]),t.exports=e},"66d1":function(t,e,i){var n=i("75ea");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("110f8038",n,!0,{sourceMap:!1,shadowMode:!1})},"75ea":function(t,e,i){var n=i("24fb");e=n(!1),e.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/* 文章场景相关 */.businessIcon[data-v-0af079a0]{color:#2291f8;font-size:%?80?%;display:inline-block;margin-bottom:%?29?%}.business-header[data-v-0af079a0]{height:%?305?%;background:linear-gradient(180deg,#2291f8,rgba(34,145,248,0));position:fixed;width:100%;text-align:center;top:0;left:0}.business-header .headerbox[data-v-0af079a0]{max-width:%?360?%;margin:0 auto;position:relative;padding:%?10?% %?0?% %?10?% %?0?%;background-color:rgba(0,0,0,.25);border-radius:%?30?%;color:#fff;margin-top:%?33?%}.business-header .headerbox .font[data-v-0af079a0]{max-width:%?260?%;display:inline-block;margin-left:%?10?%;line-height:%?28?%}.business-header .headerbox uni-image[data-v-0af079a0]{width:%?34?%;height:%?34?%;position:relative;top:%?4?%}.business-header .headerbox .spin[data-v-0af079a0]{display:inline-block;-webkit-transform:rotate(180deg);transform:rotate(180deg);font-size:%?36?%}.business-content[data-v-0af079a0]{width:100%;padding:0 %?18?%;margin-top:%?151?%;display:flex;justify-content:space-around;flex-wrap:wrap}.business-content .listBox[data-v-0af079a0]{width:%?345?%;height:%?270?%;background:#fff;box-shadow:%?0?% %?5?% %?15?% rgba(142,82,77,.1);border-radius:%?20?%;z-index:1;margin-bottom:%?20?%;display:flex;flex-direction:column;justify-content:center;align-items:center}.business-content .listBox uni-image[data-v-0af079a0]{width:%?66?%;height:%?66?%;background:#f34c20}[data-v-0af079a0] uni-radio .wx-radio-input.wx-radio-input-checked,[data-v-0af079a0] uni-radio .uni-radio-input.uni-radio-input-checked{border:1px solid #2291f8!important;background-color:#2291f8!important}',""]),t.exports=e},"7e3a":function(t,e,i){"use strict";i.r(e);var n=i("d391"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"929a":function(t,e,i){"use strict";var n=i("66d1"),a=i.n(n);a.a},"998b":function(t,e,i){"use strict";i.r(e);var n=i("aac2"),a=i("7e3a");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("d2ba");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"a7f3cd9c",null,!1,n["a"],void 0);e["default"]=r.exports},"9cc70":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"business"},[i("v-uni-view",{staticClass:"business-header"},[t.service?i("v-uni-view",{staticClass:"headerbox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTips.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:t.service.merchant.mer_avatar,mode:""}}),i("span",{staticClass:"font line1"},[t._v(t._s(t.service.merchant.mer_name||"暂无店铺"))]),t.downStatus?i("v-uni-text",{staticClass:"iconfont icon-xiala1"}):i("v-uni-text",{staticClass:"iconfont icon-xiala1 spin"})],1):t._e()],1),i("v-uni-view",{staticClass:"business-content"},t._l(t.list,(function(e,n){return i("v-uni-view",{staticClass:"listBox",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goNext(e)}}},[i("v-uni-text",{staticClass:"businessIcon",class:e.icon}),i("v-uni-view",[t._v(t._s(e.title))])],1)})),1),i("shopList",{ref:"shopList",attrs:{is_sys:t.is_sys},on:{changeStoreClose:function(e){arguments[0]=e=t.$handleEvent(e),t.changeClose.apply(void 0,arguments)},getService:function(e){arguments[0]=e=t.$handleEvent(e),t.getService.apply(void 0,arguments)}}})],1)},a=[]},a5e2:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("14d9");var a=n(i("998b")),o={name:"business",components:{shopList:a.default},data:function(){return{is_sys:"",downStatus:!1,service:null}},computed:{list:function(){if(!this.service)return[];var t=this.service.mer_id,e=[{type:"customer",title:"客服记录",url:"/pages/chat/customer_list/index?type=1&mer_id="+t,icon:"iconfont icon-kefujilu"}];return this.service.is_verify&&e.push({title:"订单核销",url:"/pages/admin/order_cancellation/index?mer_id="+t,icon:"iconfont icon-dingdanhexiao"}),this.service.customer&&e.push({title:"订单管理",url:"/pages/admin/order/index?mer_id="+t,icon:"iconfont icon-dingdanguanli"}),this.service.is_goods&&e.push({title:"商家管理",url:"/pages/product/list/index?mer_id="+t,icon:"iconfont icon-shangjiaguanli"}),e}},onLoad:function(t){this.is_sys=t.is_sys,this.getStoreList({is_sys:this.is_sys}),uni.setNavigationBarTitle({title:this.is_sys?"平台管理":"商家管理"})},methods:{getStoreList:function(t){var e=this;this.$nextTick((function(){e.$refs.shopList.getStoreList(t)}))},changeTips:function(t){this.downStatus=!this.downStatus,this.$refs.shopList.isShowStore()},changeClose:function(){this.downStatus=!1},goNext:function(t){if("customer"==t.type&&0==this.service.status)return this.$util.Tips({title:"客服已离线,请开启客服状态!"});uni.navigateTo({url:t.url})},getService:function(t){this.service=t,t&&t.merchant?uni.setNavigationBarTitle({title:t.merchant.mer_name}):uni.setNavigationBarTitle({title:t.mer_id?"商家管理":"平台管理"})}}};e.default=o},aac2:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"store_content",class:t.isShow?"on":""},[i("v-uni-view",{staticClass:"popup",class:{on:t.isShow}},[i("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[i("v-uni-radio-group",{attrs:{name:"store_name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeStore.apply(void 0,arguments)}}},[t._l(t.storeList,(function(e){return[e.merchant?i("div",{staticClass:"store-list"},[i("v-uni-label",{key:e.merchant.mer_id,staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[e.merchant.mer_avatar?i("v-uni-image",{staticClass:"mer_logo",attrs:{src:e.merchant.mer_avatar,mode:""}}):t._e(),i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.merchant.mer_name))])],1)],1),i("v-uni-radio",{staticClass:"radio",attrs:{value:e.merchant.mer_id.toString(),checked:e.merchant.mer_id==t.id}})],1)],1):t._e()]}))],2)],1)],1)],1),i("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:!t.isShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)},a=[]},b92e:function(t,e,i){"use strict";i.r(e);var n=i("a5e2"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},d2ba:function(t,e,i){"use strict";var n=i("eece"),a=i.n(n);a.a},d391:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("159b");var n=i("c6c3"),a={props:["is_sys"],data:function(){return{isShow:!1,id:"",storeList:[]}},watch:{},mounted:function(){},methods:{isShowStore:function(){this.isShow=!this.isShow},close:function(){this.$emit("changeStoreClose"),this.isShow=!1},changeStore:function(t){this.close(),this.getStoreName(t.detail.value),uni.setStorageSync("serMerId",t.detail.value)},getStoreList:function(t){var e=this;(0,n.getStoreList)(t).then((function(t){e.storeList=t.data;var i=""!==e.is_sys?null:uni.getStorageSync("serMerId"),n=null,a=!1;e.storeList.forEach((function(t){a||(i?i==t["merchant"]["mer_id"]&&(n=t,a=!0):(e.is_sys&&!t["merchant"]["mer_id"]||"0"==e.is_sys&&t["merchant"]["mer_id"])&&(n=t,a=!0))})),n||(n=e.storeList[0]),e.id=n?n["mer_id"]:"",e.$emit("getStoreInfo",n["merchant"]),e.$emit("getService",n)}))},getStoreName:function(t){for(var e=0;e<this.storeList.length;e++)this.storeList[e]["merchant"]["mer_id"]==t&&(this.$emit("getStoreInfo",this.storeList[e]["merchant"]),uni.setStorageSync("storeInfo",this.storeList[e]["merchant"]),this.$emit("getService",this.storeList[e]))}}};e.default=a},e840:function(t,e,i){"use strict";i.r(e);var n=i("9cc70"),a=i("b92e");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("929a");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"0af079a0",null,!1,n["a"],void 0);e["default"]=r.exports},eece:function(t,e,i){var n=i("0101");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5fd6878b",n,!0,{sourceMap:!1,shadowMode:!1})}}]); |