启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/static/js/pages-admin-business-index....

1 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-business-index"],{"435b":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-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=e},5132: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("6859"),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},"73bc":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=[]},"770a":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("b9a2")),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},"900a":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=[]},"974e":function(t,e,i){"use strict";var n=i("a305"),a=i.n(n);a.a},"9ce8":function(t,e,i){var n=i("435b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("4e264154",n,!0,{sourceMap:!1,shadowMode:!1})},a122:function(t,e,i){"use strict";i.r(e);var n=i("770a"),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},a305:function(t,e,i){var n=i("bc62");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("7d86df78",n,!0,{sourceMap:!1,shadowMode:!1})},b9a2:function(t,e,i){"use strict";i.r(e);var n=i("900a"),a=i("d188");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("e635");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"6440ba35",null,!1,n["a"],void 0);e["default"]=r.exports},bc62: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-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=e},ca3a:function(t,e,i){"use strict";i.r(e);var n=i("73bc"),a=i("a122");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("974e");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"00129a85",null,!1,n["a"],void 0);e["default"]=r.exports},d188:function(t,e,i){"use strict";i.r(e);var n=i("5132"),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},e635:function(t,e,i){"use strict";var n=i("9ce8"),a=i.n(n);a.a}}]);