zx/public/static/js/pages-chat-customer_info-in...

1 line
5.5 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-chat-customer_info-index"],{"0de7":function(t,i,n){"use strict";n.r(i);var e=n("337d"),s=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(a);i["default"]=s.a},"1b06":function(t,i,n){"use strict";var e=n("2cc9"),s=n.n(e);s.a},"2cc9":function(t,i,n){var e=n("c745");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var s=n("967d").default;s("045c406f",e,!0,{sourceMap:!1,shadowMode:!1})},"337d":function(t,i,n){"use strict";n("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,n("bf0f");var e=n("672a"),s=n("8f59"),a={data:function(){return{userInfo:null,merId:"",uid:"",loading:!1}},computed:(0,s.mapGetters)(["isLogin","viewColor"]),onLoad:function(t){this.mer_id=t.mer_id,this.uid=t.uid,this.serviceUser()},methods:{saveMark:function(){var t=this;this.loading||(this.loading=!0,(0,e.serviceSaveMark)(this.mer_id,this.uid,this.userInfo.mark).then((function(t){uni.showToast({icon:"success",title:"保存成功"}),setTimeout((function(t){uni.navigateBack()}),1e3)})).catch((function(t){uni.showToast({title:t,icon:"none"})})).finally((function(i){setTimeout((function(i){t.loading=!1}),2e3)})))},serviceUser:function(){var t=this;uni.showLoading({title:"加载中",mask:!0}),(0,e.serviceUser)(this.mer_id,this.uid).then((function(i){t.userInfo=i.data})).catch((function(t){uni.showToast({title:t,icon:"none"}),setTimeout((function(t){uni.navigateBack()}),1e3)})).finally((function(t){uni.hideLoading()}))}}};i.default=a},4207:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return s})),n.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{style:t.viewColor},[n("v-uni-form",{attrs:{"report-submit":"true"}},[t.userInfo?n("v-uni-view",[n("v-uni-view",{staticClass:"user-info"},[n("v-uni-image",{staticClass:"image",attrs:{src:t.userInfo.user.avatar||"/static/images/f.png"}}),n("v-uni-text",[t._v(t._s(t.userInfo.user.nickname))])],1),n("v-uni-view",{staticClass:"customerInfo"},[n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"text"},[t._v("备注昵称")]),n("v-uni-view",{staticClass:"input"},[n("v-uni-input",{attrs:{type:"text",placeholder:"请输入"},model:{value:t.userInfo.mark,callback:function(i){t.$set(t.userInfo,"mark",i)},expression:"userInfo.mark"}})],1)],1),t.userInfo.user.phone?n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"text"},[t._v("手机号")]),n("v-uni-view",{staticClass:"input"},[t._v(t._s(t.userInfo.user.phone))])],1):t._e(),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"text"},[t._v("推广员")]),n("v-uni-view",{staticClass:"input"},[t._v(t._s(t.userInfo.user.is_promoter?"是":"否"))])],1)],1)],1),n("v-uni-button",{staticClass:"confirmBnt",attrs:{"form-type":"submit"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.saveMark.apply(void 0,arguments)}}},[t._v("确认")])],1):t._e()],1)],1)},s=[]},c745:function(t,i,n){var e=n("c86c");i=e(!1),i.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