mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-03-25 23:03:12 +00:00
1 line
4.2 KiB
JavaScript
1 line
4.2 KiB
JavaScript
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/user/index"],{"354c":function(e,t,n){"use strict";n.r(t);var i=n("7f6e"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"78a4":function(e,t,n){},"7f6e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("df17"),a={components:{editLable:function(){n.e("pages/admin/user/components/userLable/index").then(function(){return resolve(n("d7ce"))}.bind(null,n)).catch(n.oe)},editBalance:function(){n.e("pages/admin/user/components/editBalance/index").then(function(){return resolve(n("963c"))}.bind(null,n)).catch(n.oe)},member:function(){n.e("pages/admin/user/components/member/index").then(function(){return resolve(n("0c0a"))}.bind(null,n)).catch(n.oe)},coupon:function(){n.e("pages/admin/user/components/coupon/index").then(function(){return resolve(n("c6b5"))}.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}},onLoad:function(e){this.uid=e.uid,this.userInfo(1)},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.visibleMember=!0},memberCloseDrawer:function(){this.visibleMember=!1},balanceTap:function(e){this.type=e,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(5)},bindLevelChange:function(e){this.levelIndex=e.detail.value,this.userUpdate(1)},userUpdate:function(e){var t=this,n={};n=5==e?{type:5,group_id:this.groupArray[this.groupIndex].id}:{type:2,level:this.levelArray[this.levelIndex].id},(0,i.postUserUpdateOther)(this.uid,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;(0,i.getUserInfo)(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"])},9763:function(e,t,n){"use strict";var i=n("78a4"),a=n.n(i);a.a},c205:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("89bd");i(n("3240"));var a=i(n("cd89"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},c649: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.$createElement,t=(this._self._c,this.groupArray.length),n=this.levelArray.length,i=this.infoData.label_id&&this.infoData.label_id.length,a=parseInt(this.uid),o=parseInt(this.uid);this.$mp.data=Object.assign({},{$root:{g0:t,g1:n,g2:i,m0:a,m1:o}})},a=[]},cd89:function(e,t,n){"use strict";n.r(t);var i=n("c649"),a=n("354c");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("9763");var s=n("828b"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"ec95dc14",null,!1,i["a"],void 0);t["default"]=u.exports}},[["c205","common/runtime","common/vendor"]]]); |