zx/public/static/js/pages-admin-business-index....

1 line
14 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-business-index"],{"00b5":function(t,i,e){"use strict";var n=e("4f23"),a=e.n(n);a.a},"2af4":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/* 文章场景相关 */.store_content[data-v-6440ba35]{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-6440ba35]{-webkit-transform:translateZ(0);transform:translateZ(0)}.store_content .title[data-v-6440ba35]{font-size:%?32?%;font-weight:700;text-align:center;height:%?123?%;line-height:%?123?%;position:relative}.store_content .title .iconfont[data-v-6440ba35]{position:absolute;right:%?30?%;color:#8a8a8a;font-size:%?35?%}.store_content .store-list[data-v-6440ba35]{height:%?120?%;line-height:%?120?%}.store_content .store-list .mer_logo[data-v-6440ba35]{width:%?60?%;height:%?60?%;margin-right:%?20?%}uni-form[data-v-6440ba35]{font-size:%?28?%;color:#282828}uni-form uni-input[data-v-6440ba35],\nuni-form uni-radio-group[data-v-6440ba35]{flex:1;text-align:right}uni-form uni-input[data-v-6440ba35]{font-size:%?26?%}uni-form uni-label[data-v-6440ba35]{margin-right:%?50?%}uni-form uni-radio[data-v-6440ba35]{margin-right:%?8?%}uni-form uni-checkbox-group[data-v-6440ba35]{height:%?90?%}uni-form uni-checkbox[data-v-6440ba35]{margin-right:%?20?%}uni-form uni-button[data-v-6440ba35]{height:%?76?%;border-radius:%?38?%;margin:%?16?% %?30?%;background-color:#e93323;font-size:%?30?%;line-height:%?76?%;color:#fff}.panel[data-v-6440ba35]{padding-right:%?30?%;padding-left:%?30?%;background-color:#fff}.panel ~ .panel[data-v-6440ba35]{margin-top:%?14?%}.panel .acea-row[data-v-6440ba35]{height:%?90?%}.panel .acea-row ~ .acea-row[data-v-6440ba35]{border-top:1px solid #eee}.input-placeholder[data-v-6440ba35]{font-size:%?26?%;color:#bbb}.icon-xiangyou[data-v-6440ba35]{margin-left:%?25?%;font-size:%?18?%;color:#bfbfbf}.btn-wrap[data-v-6440ba35]{width:100%;padding:8px 16px;border-top:1px solid #f5f5f5}.btn-wrap .back[data-v-6440ba35]{border:1px solid #e93323;background:none;color:#e93323}.popup[data-v-6440ba35]{width:100%;border-top-left-radius:%?16?%;border-top-right-radius:%?16?%;background-color:#fff;overflow:hidden}.popup uni-scroll-view[data-v-6440ba35]{height:%?466?%;padding-right:%?30?%;padding-left:%?30?%;box-sizing:border-box}.popup .text[data-v-6440ba35]{flex:1;min-width:0;font-size:%?28?%;color:#282828}.popup .info[data-v-6440ba35]{margin-top:%?10?%;font-size:%?22?%;color:#909090}.popup .icon-guanbi[data-v-6440ba35]{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-6440ba35]{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-6440ba35]{display:inline-flex;max-width:100%}.popup .name[data-v-6440ba35]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:%?30?%}.popup .label[data-v-6440ba35]{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-6440ba35]{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-6440ba35]{background-color:#fde9e7;color:#e93323}',""]),t.exports=i},"30e0":function(t,i,e){var n=e("c7a9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("0f9b8997",n,!0,{sourceMap:!1,shadowMode:!1})},3880:function(t,i,e){"use strict";e.r(i);var n=e("99d3"),a=e("62ec");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("8460");var s=e("828b"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"00129a85",null,!1,n["a"],void 0);i["default"]=r.exports},"3bb3":function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("aa9c");var a=n(e("d19c")),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,i=[{type:"customer",title:"客服记录",url:"/pages/chat/customer_list/index?type=1&mer_id="+t,icon:"iconfont icon-kefujilu"}];return this.service.is_verify&&i.push({title:"订单核销",url:"/pages/admin/order_cancellation/index?mer_id="+t,icon:"iconfont icon-dingdanhexiao"}),this.service.customer&&i.push({title:"订单管理",url:"/pages/admin/order/index?mer_id="+t,icon:"iconfont icon-dingdanguanli"}),this.service.is_goods&&i.push({title:"商品管理",url:"/pages/product/list/index?mer_id="+t,icon:"iconfont icon-shangjiaguanli"}),i}},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 i=this;this.$nextTick((function(){i.$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?"商家管理":"平台管理"})}}};i.default=o},"4f23":function(t,i,e){var n=e("2af4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("112844c2",n,!0,{sourceMap:!1,shadowMode:!1})},"62ec":function(t,i,e){"use strict";e.r(i);var n=e("3bb3"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},"642b":function(t,i,e){"use strict";e.r(i);var n=e("89dd"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},8460:function(t,i,e){"use strict";var n=e("30e0"),a=e.n(n);a.a},"89dd":function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("bf0f"),e("2797");var n=e("672a"),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 i=this;(0,n.getStoreList)(t).then((function(t){i.storeList=t.data;var e=""!==i.is_sys?null:uni.getStorageSync("serMerId"),n=null,a=!1;i.storeList.forEach((function(t){a||(e?e==t["merchant"]["mer_id"]&&(n=t,a=!0):(i.is_sys&&!t["merchant"]["mer_id"]||"0"==i.is_sys&&t["merchant"]["mer_id"])&&(n=t,a=!0))})),n||(n=i.storeList[0]),i.id=n?n["mer_id"]:"",i.$emit("getStoreInfo",n["merchant"]),i.$emit("getService",n)}))},getStoreName:function(t){for(var i=0;i<this.storeList.length;i++)this.storeList[i]["merchant"]["mer_id"]==t&&(this.$emit("getStoreInfo",this.storeList[i]["merchant"]),uni.setStorageSync("storeInfo",this.storeList[i]["merchant"]),this.$emit("getService",this.storeList[i]))}}};i.default=a},"99d3":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"business"},[e("v-uni-view",{staticClass:"business-header"},[t.service?e("v-uni-view",{staticClass:"headerbox",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeTips.apply(void 0,arguments)}}},[e("v-uni-image",{attrs:{src:t.service.merchant.mer_avatar,mode:""}}),e("span",{staticClass:"font line1"},[t._v(t._s(t.service.merchant.mer_name||"暂无店铺"))]),t.downStatus?e("v-uni-text",{staticClass:"iconfont icon-xiala1"}):e("v-uni-text",{staticClass:"iconfont icon-xiala1 spin"})],1):t._e()],1),e("v-uni-view",{staticClass:"business-content"},t._l(t.list,(function(i,n){return e("v-uni-view",{staticClass:"listBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goNext(i)}}},[e("v-uni-text",{staticClass:"businessIcon",class:i.icon}),e("v-uni-view",[t._v(t._s(i.title))])],1)})),1),e("shopList",{ref:"shopList",attrs:{is_sys:t.is_sys},on:{changeStoreClose:function(i){arguments[0]=i=t.$handleEvent(i),t.changeClose.apply(void 0,arguments)},getService:function(i){arguments[0]=i=t.$handleEvent(i),t.getService.apply(void 0,arguments)}}})],1)},a=[]},c7a9: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/* 文章场景相关 */.businessIcon[data-v-00129a85]{color:#2291f8;font-size:%?80?%;display:inline-block;margin-bottom:%?29?%}.business-header[data-v-00129a85]{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-00129a85]{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-00129a85]{max-width:%?260?%;display:inline-block;margin-left:%?10?%;line-height:%?28?%}.business-header .headerbox uni-image[data-v-00129a85]{width:%?34?%;height:%?34?%;position:relative;top:%?4?%}.business-header .headerbox .spin[data-v-00129a85]{display:inline-block;-webkit-transform:rotate(180deg);transform:rotate(180deg);font-size:%?36?%}.business-content[data-v-00129a85]{width:100%;padding:0 %?18?%;margin-top:%?151?%;display:flex;justify-content:space-around;flex-wrap:wrap}.business-content .listBox[data-v-00129a85]{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-00129a85]{width:%?66?%;height:%?66?%;background:#f34c20}[data-v-00129a85] uni-radio .wx-radio-input.wx-radio-input-checked,[data-v-00129a85] uni-radio .uni-radio-input.uni-radio-input-checked{border:1px solid #2291f8!important;background-color:#2291f8!important}',""]),t.exports=i},cb5f:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("v-uni-view",{staticClass:"store_content",class:t.isShow?"on":""},[e("v-uni-view",{staticClass:"popup",class:{on:t.isShow}},[e("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[e("v-uni-radio-group",{attrs:{name:"store_name"},on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.changeStore.apply(void 0,arguments)}}},[t._l(t.storeList,(function(i){return[i.merchant?e("div",{staticClass:"store-list"},[e("v-uni-label",{key:i.merchant.mer_id,staticClass:"acea-row row-middle"},[e("v-uni-view",{staticClass:"text"},[e("v-uni-view",{staticClass:"acea-row row-middle"},[i.merchant.mer_avatar?e("v-uni-image",{staticClass:"mer_logo",attrs:{src:i.merchant.mer_avatar,mode:""}}):t._e(),e("v-uni-view",{staticClass:"name line1"},[t._v(t._s(i.merchant.mer_name))])],1)],1),e("v-uni-radio",{staticClass:"radio",attrs:{value:i.merchant.mer_id.toString(),checked:i.merchant.mer_id==t.id}})],1)],1):t._e()]}))],2)],1)],1)],1),e("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:!t.isShow},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.close.apply(void 0,arguments)}}})],1)},a=[]},d19c:function(t,i,e){"use strict";e.r(i);var n=e("cb5f"),a=e("642b");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("00b5");var s=e("828b"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"6440ba35",null,!1,n["a"],void 0);i["default"]=r.exports}}]);