徐总多门店
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
4.4 KiB

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/user/index"],{"1b9f":function(e,t,n){"use strict";n.r(t);var i=n("c1eb"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=a.a},"29d1":function(e,t,n){},"492f":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.types?e.groupArray.length:null),i=e.types?e.levelArray.length:null,a=e.infoData.label_id&&e.infoData.label_id.length,s=parseInt(e.uid),o=parseInt(e.uid);e.$mp.data=Object.assign({},{$root:{g0:n,g1:i,g2:a,m0:s,m1:o}})},a=[]},"566f":function(e,t,n){"use strict";n.r(t);var i=n("492f"),a=n("1b9f");for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);n("80e9");var o=n("828b"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"0daba716",null,!1,i["a"],void 0);t["default"]=u.exports},"80e9":function(e,t,n){"use strict";var i=n("29d1"),a=n.n(i);a.a},c1eb:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("e727"),a={components:{editLable:function(){n.e("pages/admin/user/components/userLable/index").then(function(){return resolve(n("f01a"))}.bind(null,n)).catch(n.oe)},editBalance:function(){n.e("pages/admin/user/components/editBalance/index").then(function(){return resolve(n("bd1f"))}.bind(null,n)).catch(n.oe)},member:function(){n.e("pages/admin/user/components/member/index").then(function(){return resolve(n("5a56"))}.bind(null,n)).catch(n.oe)},coupon:function(){n.e("pages/admin/user/components/coupon/index").then(function(){return resolve(n("560e"))}.bind(null,n)).catch(n.oe)}},data:function(){return{getHeight:this.$util.getWXStatusHeight(),uid:0,infoData:{},groupArray:[],levelArray:[],groupIndex:-1,levelIndex:-1,visibleLable:!1,visibleBalance:!1,type:0,visibleMember:!1,visibleCoupon:!1,isShow:!1,types:1}},onLoad:function(e){this.uid=e.uid,this.types=parseInt(e.types),this.userInfo(this.types)},methods:{openTap:function(){this.isShow=!this.isShow},couponTap:function(){this.$refs.coupon.userCoupon(0),this.visibleCoupon=!0},couponSeeTap:function(){this.$refs.coupon.userCoupon(2),this.visibleCoupon=!0},couponCloseDrawer:function(e){this.visibleCoupon=!1,e&&this.userInfo()},memberTap:function(){this.types&&(this.visibleMember=!0)},memberCloseDrawer:function(){this.visibleMember=!1},balanceTap:function(){this.types&&(this.type=1,this.visibleBalance=!0)},integralTap:function(){this.types&&(this.type=0,this.visibleBalance=!0)},successChange:function(){this.visibleBalance=!1,this.visibleMember=!1,this.userInfo()},balanceCloseDrawer:function(){this.visibleBalance=!1},lableCloseDrawer:function(e){this.visibleLable=!1,e&&this.userInfo()},editLabels:function(){this.visibleLable=!0,this.$refs.lable.productLabel(JSON.parse(JSON.stringify(this.infoData)),0,[])},bindPickerChange:function(e){this.groupIndex=e.detail.value,this.userUpdate(4)},bindLevelChange:function(e){this.levelIndex=e.detail.value,this.userUpdate(1)},userUpdate:function(e){var t=this,n={};n=4==e?{type:4,uid:this.uid,group_id:this.groupArray[this.groupIndex].id}:{type:1,uid:this.uid,level:this.levelArray[this.levelIndex].id},(0,i.postUserUpdate)(n).then((function(e){t.$util.Tips({title:e.msg})})).catch((function(e){t.$util.Tips({title:e})}))},levelList:function(){var e=this;(0,i.getLevelList)().then((function(t){var n=e.infoData.level;t.data.list.forEach((function(t,i){t.id==n&&(e.levelIndex=i)})),e.levelArray=t.data.list})).catch((function(t){e.$util.Tips({title:t})}))},groupList:function(){var e=this;(0,i.getGroupList)().then((function(t){var n=e.infoData.group_id;t.data.forEach((function(t,i){t.id==n&&(e.groupIndex=i)})),e.groupArray=t.data})).catch((function(t){e.$util.Tips({title:t})}))},goarrow:function(){e.navigateBack()},userInfo:function(e){var t=this,n="";n=this.types?i.getUserInfo:i.getStoreUserInfo,n(this.uid).then((function(n){t.infoData=n.data,e&&(t.groupList(),t.levelList())})).catch((function(e){t.$util.Tips({title:e})}))}}};t.default=a}).call(this,n("df3c")["default"])},e7cb:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("7561");i(n("3240"));var a=i(n("566f"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["e7cb","common/runtime","common/vendor"]]]);