vipUserItem.js 8.0 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_manage/components/vipUserItem"],{1088:function(e,n,t){"use strict";t.r(n);var o=t(1089),i=t(1091);for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t(1093);var u,s=t(34),a=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"b111055a",null,!1,o["components"],u);a.options.__file="pages_manage/components/vipUserItem.vue",n["default"]=a.exports},1089:function(e,n,t){"use strict";t.r(n);var o=t(1090);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},1090:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return o}));try{o={uCheckboxGroup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(t.bind(null,877))},uCheckbox:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-checkbox/u-checkbox")]).then(t.bind(null,885))},uAvatar:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-avatar/u-avatar")]).then(t.bind(null,652))},uTag:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-tag/u-tag")]).then(t.bind(null,668))},uLoadmore:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(t.bind(null,783))},uPopup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(t.bind(null,740))},uModal:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-modal/u-modal")]).then(t.bind(null,853))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-input/u-input")]).then(t.bind(null,861))},uNotify:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-notify/u-notify")]).then(t.bind(null,1163))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.__map(e.viplist,(function(n,t){var o=e.__get_orig(n),i=n.createTime?n.createTime.substring(0,10):null,r=n.tag?n.tag.split(","):null;return{$orig:o,g0:i,g1:r}})));e._isMounted||(e.e0=function(n){e.triggered=!1},e.e1=function(n){e.triggered=!1}),e.$mp.data=Object.assign({},{$root:{l0:t}})},r=!1,u=[];i._withStripped=!0},1091:function(e,n,t){"use strict";t.r(n);var o=t(1092),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},1092:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t(11)),r=t(290);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,i.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var a={props:{viplist:{type:Array,default:function(){return[]}},isShowSelectAll:{type:Boolean,default:!1},pageOptions:{type:Object,default:function(){return{pageNum:1,pageSize:8}}},status:{type:String,default:"loadmore"}},computed:{imgPath:function(){return this.$store.state.imgpath}},data:function(){return{checkList:[],cccc:[!1],user:[],isEnabled:!0,triggered:!1,stopWatchDays:"停止看课三天",showmore:!1,contpl:"",changelist:"",changeremark:"",selnum:"",titlelist:"",showlist:!1,groupid:"",openData:[],morelist:[{name:"改昵称",value:0,text:"请输入修改昵称"},{name:"改备注",value:1,text:"请输入备注"}]}},mounted:function(){this.user=e.getStorageSync("companyUserInfo")?JSON.parse(e.getStorageSync("companyUserInfo")):{}},methods:{changemore:function(e){this.openData=e,this.groupid=e.userId,this.showmore=!this.showmore},confirmchange:function(){var e=this;"改昵称"==this.titlelist?this.updatagroup():this.updataremark(),console.log(this.openData.userId),console.log(this.changeremark),console.log(this.changelist),this.showlist=!1,setTimeout((function(){e.showmore=!1}),200)},updataremark:function(){var n=this,t={remark:this.changeremark,userCompanyUserId:this.openData.userCompanyUserId};(0,r.updataRemark)(t).then((function(t){200==t.code?(e.showToast({icon:"none",title:"修改成功"}),n.$emit("changelistname")):e.showToast({icon:"none",title:t.msg})}))},updatagroup:function(){var n=this,t={fsUserId:this.openData.userId,nickName:this.changelist};(0,r.getchangesUserInfo)(t).then((function(t){200==t.code?(e.showToast({icon:"none",title:"修改成功"}),n.$emit("changelistname")):e.showToast({icon:"none",title:t.msg})}))},nameMore:function(e){console.log(e),this.titlelist=e.name,this.contpl=e.text,this.selnum=e.value,console.log(this.openData),console.log("标题",this.titlelist),this.changelist=this.openData.nickname,this.changeremark=this.openData.remark,this.showlist=!0},closemore:function(){this.showmore=!this.showmore},openmore:function(){},tophone:function(n){console.log(n),null==n?e.showToast({title:"用户暂时没有录入电话",icon:"none",duration:2e3}):e.setClipboardData({data:String(n),success:function(){e.makePhoneCall({phoneNumber:n,success:function(){console.log("拨号成功")},fail:function(){console.log("拨号失败")}})}})},copyId:function(n){e.setClipboardData({data:String(n),success:function(){e.showToast({title:"复制成功",icon:"none",duration:2e3})}})},pullDownRefresh:function(){var n=this;this.triggered=!0,setTimeout((function(){n.triggered=!1,e.stopPullDownRefresh(),n.$emit("changePageOptions",s(s({},n.pageOptions),{},{pageNum:1})),n.$emit("pullDownRefresh")}),1e3)},reachBottom:function(){var n=this;"loadmore"===this.status&&(this.$emit("changeStatus","loading"),e.showNavigationBarLoading(),setTimeout((function(){n.$emit("changePageOptions",s(s({},n.pageOptions),{},{pageNum:n.pageOptions.pageNum+1})),n.$emit("reachBottom"),e.hideNavigationBarLoading()}),1e3))},morepage:function(n){e.navigateTo({url:"/pages_managedata/vipdetail?id="+n.userId+"&userCompanyId="+n.userCompanyUserId}),e.setStorageSync("detailUser",n)},openModel:function(e,n){"label"==e?this.$emit("getlableId",n.userCompanyUserId):"disable"==e?this.$emit("getuserId",n.userCompanyUserId):"disabled"==e?(this.$emit("getuserIds",n.userCompanyUserId),console.log(n.userId)):this.$emit("change",n.userCompanyUserId)},changeitem:function(e){this.$emit("changeItem",e)}}};n.default=a}).call(this,t(2)["default"])},1093:function(e,n,t){"use strict";t.r(n);var o=t(1094),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},1094:function(e,n,t){}}]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_manage/components/vipUserItem.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'pages_manage/components/vipUserItem-create-component',
  5. {
  6. 'pages_manage/components/vipUserItem-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(1088))
  8. })
  9. },
  10. [['pages_manage/components/vipUserItem-create-component']]
  11. ]);