1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-storeClassification-index"],{"0824":function(t,e,n){"use strict";n.r(e);var o=n("4c84"),a=n("783f");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("b3ca");var i=n("f0c5"),c=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"f6ed48c0",null,!1,o["a"],void 0);e["default"]=c.exports},"497a":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af");var o=n("f89e"),a=n("fe63"),r={data:function(){return{selectStoreClassId:1,mer_id:"",storeClassList:[]}},onLoad:function(t){this.mer_id=t.mer_id},onShow:function(){this.getStoreClassification()},methods:{deleteItem:function(t,e){var n=this;(0,o.Modal)("温馨提示",'"'.concat(t.cate_name,'"将被删除,请问是否继续')).then((function(){(0,a.storeClassifyDel)(n.mer_id,t.store_category_id).then((function(t){n.$util.Tips({title:t.message,icon:"success"}),n.getStoreClassification()})).catch((function(t){return n.$util.Tips({title:t})}))}))},selectStoreClass:function(t){t.store_category_id!=this.selectStoreClassId?this.selectStoreClassId=t.store_category_id:this.selectStoreClassId=""},getStoreClassification:function(){var t=this;uni.showLoading({title:"加载中",mask:!0}),(0,a.storeClassifyLst)(this.mer_id).then((function(e){uni.hideLoading(),t.storeClassList=e.data}),(function(e){t.$util.Tips({title:e.msg})}))},edit:function(t){uni.navigateTo({url:"/pages/product/storeClassification/addStoreClass?mer_id=".concat(this.mer_id,"&pid=").concat(t.store_category_id)})}}};e.default=r},"4c84":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"storeClassContent"},[t._l(t.storeClassList,(function(e,o){return n("v-uni-view",{key:o,staticClass:"storeClassContent_item"},[n("v-uni-view",{staticClass:"storeClassContent_item_father",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.selectStoreClass(e)},longpress:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.deleteItem(e,o)}}},[n("v-uni-view",{staticClass:"storeClassContent_item_father_label"},[n("v-uni-button",{staticClass:"iconfont",class:t.selectStoreClassId==e.store_category_id?"icon-jian":"icon-tianjia1"}),n("span",[t._v(t._s(e.cate_name))])],1),n("v-uni-view",{staticClass:"storeClassContent_item_father_right"},[n("span",{staticClass:"iconfont icon-bianji",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.edit(e)}}})])],1),t.selectStoreClassId==e.store_category_id?n("v-uni-view",{staticClass:"storeClassContent_item_child"},t._l(e.children,(function(e,o){return n("v-uni-view",{key:o,staticClass:"storeClassContent_item_child_item",on:{longpress:function(n){arguments[0]=n=t.$handleEvent(n),t.deleteItem(e,o)}}},[n("span",[t._v(t._s(e.cate_name))]),n("span",{staticClass:"iconfont icon-bianji",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.edit(e)}}})])})),1):t._e()],1)})),n("v-uni-view",{staticClass:"storeClassContent_tip"},[n("v-uni-text",{staticClass:"iconfont icon-duoshanghupc-shuomingdanchuang"}),n("span",[t._v("长按分类标题可删除")])],1)],2),n("v-uni-view",{staticClass:"handle_bottom"},[n("v-uni-navigator",{staticClass:"handle_bottom_button",attrs:{url:"/pages/product/storeClassification/addStoreClass?mer_id="+t.mer_id}},[t._v("添加分类")])],1)],1)},a=[]},"4f93":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r
|