zx/public/static/js/pages-product-storeClassifi...

1 line
16 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-product-storeClassification-index"],{"085d":function(t,e,n){"use strict";n.r(e);var o=n("50bc"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"12ea":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.attrList=function(t,e){return a.default.get("server/".concat(t,"/attr/lst"),e,{login:!0})},e.categoryBrandlist=function(t){return a.default.get("server/".concat(t,"/category/brandlist"),{},{login:!0})},e.categoryList=function(t){return a.default.get("server/".concat(t,"/category/list"),{},{login:!0})},e.categorySelect=function(t){return a.default.get("server/".concat(t,"/category/select"),{},{login:!0})},e.getDeliveryType=function(t){return a.default.get("server/".concat(t,"/product/config"),{},{login:!0})},e.merClassifyAdd=function(t,e){return a.default.post("server/".concat(t,"/category/create"),e,{login:!0})},e.merClassifyDetail=function(t,e){return a.default.get("server/".concat(t,"/category/detail/").concat(e),{},{login:!0})},e.merClassifyLst=function(t){return a.default.get("server/".concat(t,"/category/select"),{},{login:!0})},e.merClassifyUpdate=function(t,e,n){return a.default.post("server/".concat(t,"/category/update/").concat(e),n,{login:!0})},e.productCreate=function(t,e){return a.default.post("server/".concat(t,"/product/create"),e,{login:!0})},e.productDeleteApi=function(t,e){return a.default.post("server/".concat(t,"/product/delete/").concat(e),{},{login:!0})},e.productDestory=function(t,e,n){return a.default.post("server/".concat(t,"/product/destory/").concat(e),n,{login:!0})},e.productDetail=function(t,e){return a.default.get("server/".concat(t,"/product/detail/").concat(e),{},{login:!0})},e.productLstApi=function(t,e){return a.default.get("server/".concat(t,"/product/lst"),e,{login:!0})},e.productOffApi=function(t,e,n){return a.default.post("server/".concat(t,"/product/status/").concat(e),n,{login:!0})},e.productRecommendApi=function(t,e,n){return a.default.post("server/".concat(t,"/product/good/").concat(e),n,{login:!0})},e.productRestore=function(t,e){return a.default.post("server/".concat(t,"/product/restore/").concat(e),{},{login:!0})},e.productTitle=function(t,e){return a.default.get("server/".concat(t,"/product/title"),e,{login:!0})},e.productUpdate=function(t,e,n){return a.default.post("server/".concat(t,"/product/update/").concat(e),n,{login:!0})},e.specificationAdd=function(t,e){return a.default.post("server/".concat(t,"/attr/create"),e,{login:!0})},e.specificationDel=function(t,e){return a.default.post("server/".concat(t,"/attr/delete"),e,{login:!0})},e.specificationDetail=function(t,e){return a.default.get("server/".concat(t,"/attr/detail/").concat(e),{},{login:!0})},e.specificationLst=function(t,e){return a.default.get("server/".concat(t,"/attr/lst"),e,{login:!0})},e.specificationUpdate=function(t,e,n){return a.default.post("server/".concat(t,"/attr/update/").concat(e),n,{login:!0})},e.storeClassifyDel=function(t,e){return a.default.post("server/".concat(t,"/category/delete/").concat(e),{},{login:!0})},e.storeClassifyLst=function(t){return a.default.get("server/".concat(t,"/category/lst"),{},{login:!0})},e.templateCreate=function(t,e){return a.default.post("server/".concat(t,"/template/create"),e,{login:!0})},e.templateDelete=function(t,e){return a.default.post("server/".concat(t,"/template/delete"),e,{login:!0})},e.templateDetail=function(t,e){return a.default.get("server/".concat(t,"/template/detail/").concat(e),{},{login:!0})},e.templateList=function(t,e){return a.default.get("server/".concat(t,"/template/lst"),e,{login:!0})},e.templateUpdate=function(t,e,n){return a.default.post("server/".concat(t,"/template/update/").concat(e),n,{login:!0})},n("c223");var a=o(n("fea3"))},"13b2":function(t,e,n){"use strict";var o=n("d54d"),a=n.n(o);a.a},"3cb9":function(t,e,n){var o=n("c86c");e=o(!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/* 文章场景相关 */.container[data-v-6ea95adb]{padding-bottom:%?126?%}.storeClassContent_item[data-v-6ea95adb]{width:%?710?%;margin:%?20?% auto;padding:%?32?% %?30?%;background:#fff}.storeClassContent_item_father[data-v-6ea95adb]{display:flex;align-items:center;justify-content:space-between;color:#282828}.storeClassContent_item_father_label[data-v-6ea95adb]{display:flex;align-items:center;font-size:%?30?%}.storeClassContent_item_father_label uni-image[data-v-6ea95adb]{width:%?30?%;margin-right:%?10?%}.storeClassContent_item_father_label .iconfont[data-v-6ea95adb]{color:#e93323;font-size:%?32?%;margin-right:%?10?%}.storeClassContent_item_father_right[data-v-6ea95adb]{color:#bbb}.storeClassContent_item_father_right .iconfont[data-v-6ea95adb]{color:#282828}.storeClassContent_item_child[data-v-6ea95adb]{margin-top:%?30?%}.storeClassContent_item_child_item[data-v-6ea95adb]{background:#f5f5f5;padding:%?24?% %?30?%;border-radius:10px;margin-bottom:%?20?%;color:#282828;display:flex;flex-wrap:wrap;justify-content:space-between;font-size:%?26?%}.storeClassContent_tip[data-v-6ea95adb]{display:flex;align-items:center;color:#e93323;font-size:%?22?%;padding:%?23?% %?30?%}.storeClassContent_tip uni-image[data-v-6ea95adb]{width:%?23?%;height:%?23?%;margin-right:%?10?%}.handle_bottom[data-v-6ea95adb]{position:fixed;bottom:0;left:0;width:100%;height:%?126?%;background:#fff;display:flex;align-items:center;justify-content:center}.handle_bottom_button[data-v-6ea95adb]{width:%?690?%;height:%?86?%;background:#e93323;border-radius:%?43?%;display:flex;align-items:center;justify-content:center;font-size:%?32?%;color:#fff}',""]),t.exports=e},"50bc":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c223");var o=n("c25d"),a=n("12ea"),i={data:function(){return{selectStoreClassId:1,mer_id:"",storeClassList:[]}},onLoad:function(t){this.mer_id=t.mer_id,this.getStoreClassification()},onShow:function(){},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=i},5543:function(t,e,n){"use strict";n.r(e);var o=n("8477"),a=n("085d");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("13b2");var r=n("828b"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"6ea95adb",null,!1,o["a"],void 0);e["default"]=s.exports},8477: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=[]},c25d:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(n,o){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){n(t.tapIndex)},fail:function(t){o(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,n){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){n(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,i.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!";return new Promise((function(n,o){uni.showModal({title:t,content:e,success:function(t){t.confirm&&n(),t.cancel&&o()}})}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,a=(0,i.default)({title:t,duration:o,position:"center",mask:!0,icon:e||"none"},n);uni.showToast(a)},e.chooseImage=function(t){return new Promise((function(e,n){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){n(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=r,e.formatDate=s,e.getQuarterStartDate=function(){var t=new Date(l,function(){var t=0;u<3&&(t=0);2<u&&u<6&&(t=3);5<u&&u<9&&(t=6);u>8&&(t=9);return t}(),1);return s(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(n){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,n){var o=e,a="navigateTo";switch(o=n?o+"?"+r(n):o,t){case 1:a="navigateTo";break;case 2:a="redirectTo";break;case 3:a="reLaunch";break;case 4:a="switchTab";break;default:a="navigateTo";break}uni[a]({url:o,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,a.default)(window))&&"document"in window){if("function"===typeof FileReader){var o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="blob",o.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},o.onerror=n,void o.send()}var i=document.createElement("canvas"),r=i.getContext("2d"),s=new Image;return s.onload=function(){i.width=s.width,i.height=s.height,r.drawImage(s,0,0),e(i.toDataURL()),i.height=i.width=0},s.onerror=n,void(s.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,a.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,a.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var o=new plus.io.FileReader;o.onload=function(t){e(t.target.result)},o.onerror=function(t){n(t)},o.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return s(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),s(t,"yyyy-MM-dd")},e.throttle=function(t,e){var n,o;e=e||200;return function(){for(var a=this,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];n=r,o||(o=setTimeout((function(){o=null,t.apply(a,n)}),e))}},e.unique=function(t){t=t||[];for(var e={},n=0;n<t.length;n++){var o=JSON.stringify(t[n]);"undefined"==typeof o&&(e[o]=1)}for(var n in t.length=0,e)t[t.length]=n;return t};var a=o(n("fcf3")),i=o(n("9b1b"));function r(t){var e,n=[];return Object.keys(t).forEach((function(e){n.push("".concat(e,"=").concat(t[e]))})),e=n.join("&"),e}function s(t,e){return t?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(t).format(e)):""}n("d4b5"),n("7a76"),n("c9b5"),n("bf0f"),n("2797"),n("dc8a"),n("aa9c"),n("c223"),n("5c47"),n("0506"),n("a1c1"),n("23f4"),n("7d2f"),n("9c4e"),n("ab80"),Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr(String(e[n]).length)));return t};var c=new Date,u=c.getMonth(),l=c.getYear();l+=l<2e3?1900:0},d54d:function(t,e,n){var o=n("3cb9");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("967d").default;a("1d8caf71",o,!0,{sourceMap:!1,shadowMode:!1})}}]);