启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-5ea696a0.f25ba34a.js

1 lines
32 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ea696a0"],{"10c4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return l}));a("3b2b"),a("6b54"),a("28a5"),a("a481");function i(t){return!!/^(([^<>()\\[\]\\.,;:\s@"]+(\.[^<>()\\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)}function l(t){return!!/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)}},"4eca":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAeCAYAAAC7Q5mxAAANoUlEQVRoQ92ZeViVVR7Hv+e9GzsIXOCyg6ggmsqOgLKoaS7tmTlmOTm2z5hlY7PkTDnlTJpTT7k0LaOlpulTmVui5gKIIqKJrLGJyqZersDduPfM8573rnAvkP2Tcx543vc9+/mc33bOJf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omUcJmcSJSSmzMpPDI8HAe+PoiO1g7WRCQWISF1AiakTcC2bTvV7e3thQQ4Rw3GYiOnL1vxbbPlhxjnW3bnlQwK0NGSaj9blhgZHbFOJBJltre0Q6vVwk/uB1dXV61SpVrlE6FdTeJXDrhzdx4qxzO+LYDmrmjhhnmglD/J83c92yESv0LSFjf/v8AZyjr+B4LFbrkZJx0FAAAAAElFTkSuQmCC"},"61a2":function(t,e,a){"use strict";a("8888")},8888:function(t,e,a){},a9c2:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-drawer",{attrs:{"with-header":!1,size:1e3,visible:t.drawer,direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(e){t.drawer=e}}},[t.psInfo?i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{staticClass:"head"},[i("div",{staticClass:"full"},[i("img",{staticClass:"order_icon",attrs:{src:t.psInfo.avatar?t.psInfo.avatar:t.moren,alt:""}}),t._v(" "),i("div",{staticClass:"text"},[i("div",{staticClass:"title"},[t._v(t._s(t.psInfo.nickname))]),t._v(" "),i("div",{staticClass:"acea-row"},[t.psInfo.member_icon?i("img",{staticClass:"svip-grade",attrs:{src:t.psInfo.member_icon,alt:""}}):t._e(),t._v(" "),t.psInfo.is_svip>0?i("div",{staticClass:"svip"},[i("img",{staticClass:"svip-img",attrs:{src:a("4eca")}})]):t._e()])]),t._v(" "),t.isUser?i("div",[t.isDetail?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.isEdit=!0,t.isDetail=!1,t.activeName="userInfo"}}},[t._v("编辑")]):t._e(),t._v(" "),t.isEdit&&!t.isDetail?i("el-button",{attrs:{type:"default",size:"small"},on:{click:function(e){t.isEdit=!1,t.isDetail=!0}}},[t._v("取消")]):t._e(),t._v(" "),t.isEdit&&!t.isDetail?i("el-button",{attrs:{type:"success",size:"small"},on:{click:t.onEdit}},[t._v("完成")]):t._e(),t._v(" "),i("el-dropdown",{staticClass:"ml10",on:{command:t.handleCommand}},[i("el-button",{attrs:{icon:"el-icon-more",size:"small"}}),t._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"integral"}},[t._v("设置积分")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"balance"}},[t._v("设置余额")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"group"}},[t._v("设置分组")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"label"}},[t._v("设置标签")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"reference"}},[t._v("修改推荐人")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"password"}},[t._v("修改密码")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"svipLevel"}},[t._v("编辑会员等级")]),t._v(" "),i("el-dropdown-item",{attrs:{command:"svipSet"}},[t._v("付费会员设置")])],1)],1)],1):t._e()]),t._v(" "),i("div",[i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("余额")]),t._v(" "),i("div",[i("div",{staticClass:"value1"},[t._v(t._s(t.psInfo.now_money)+"元")])])]),t._v(" "),i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("总计订单")]),t._v(" "),i("div",[t._v(t._s(t.psInfo.pay_count)+"笔")])]),t._v(" "),i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("总消费金额")]),t._v(" "),i("div",[t._v(t._s(t.psInfo.pay_price)+"元")])]),t._v(" "),i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("积分")]),t._v(" "),i("div",[t._v(t._s(t.psInfo.integral))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("用户成长值")]),t._v(" "),i("div",[t._v(t._s(t.psInfo.member_value))])])])])]),t._v(" "),i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.tabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[!t.isEdit&&t.isDetail?i("el-tab-pane",{attrs:{label:"用户信息",name:"userInfo"}},["userInfo"==t.activeName?[i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("基本信息")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v("用户ID:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.uid||"-"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("手机号码:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.phone||"-"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("用户账号:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.account||"-"))])])])]),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("用户概况")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v("推广员:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(1==t.psInfo.is_promoter?"是":"否"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("用户状态:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(1==t.psInfo.status?"开启":"关闭"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("用户等级:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.member_level))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("用户标签:")]),t._v(" "),i("div",{staticClass:"value"},t._l(t.psInfo.userLabel,(function(e,a){return i("span",{key:a},[t._v("\n "+t._s(e.label_name)+"\n ")])})),0)]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("用户分组:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.group&&t.psInfo.group.group_name||"无"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("推广人:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.spread&&t.psInfo.spread.nickname||"无"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("注册时间:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.create_time))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("登录时间:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.last_time))])]),t._v(" "),1==t.psInfo.is_svip||2==t.psInfo.is_svip?i("li",{staticClass:"item"},[i("div",[t._v("会员到期时间:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.svip_endtime))])]):t._e()])]),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("用户备注")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v("备注:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.psInfo.mark?t.psInfo.mark:"-"))])])])]),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("补充信息")]),t._v(" "),i("ul",{staticClass:"list"},t._l(t.psInfo.extend_info,(function(e,a){return i("li",{key:a,staticClass:"item"},[i("div",[t._v(t._s(e.title)+":")]),t._v(" "),"radio"==e.type?i("div",{staticClass:"value"},t._l(e.content,(function(a,l){return i("span",{key:l},[e.value==l.toString()?i("span",[t._v(t._s(a))]):t._e()])})),0):i("div",{staticClass:"value"},[t._v(t._s(e.value))])])})),0)])]:t._e()],2):t.isEdit&&!t.isDetail?i("el-tab-pane",{attrs:{label:"用户信息",name:"userInfo"}},["userInfo"==t.activeName?i("el-form",{ref:"userDataField",attrs:{size:"small",rules:t.ruleValidate,model:t.psInfo,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("基本信息")]),t._v(" "),i("el-row",{staticClass:"mt20",attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"用户ID:",prop:"uid"}},[i("el-input",{staticClass:"selWidth",attrs:{type:"text",disabled:"",size:"small"},model:{value:t.psInfo.uid,callback:function(e){t.$set(t.psInfo,"uid",e)},expression:"psInfo.uid"}})],1)],1),t._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"手机号码:",prop:"phone"}},[i("el-input",{staticClass:"selWidth",attrs:{size:"small"},model:{value:t.psInfo.phone,callback:function(e){t.$set(t.psInfo,"phone",e)},expression:"psInfo.phone"}})],1)],1),t._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"身份证号:",prop:"card_id"}},[i("el-input",{staticClass:"selWidth",attrs:{size:"small"},model:{value:t.psInfo.card_id,callback:function(e){t.$set(t.psInfo,"card_id",e)},expression:"psInfo.card_id"}})],1)],1)],1)],1),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("用户概况")]),t._v(" "),i("el-row",{staticClass:"mt20",attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"用户等级:"}},[i("el-select",{staticClass:"selWidth",attrs:{size:"small",placeholder:"请选择"},model:{value:t.psInfo.member_level,callback:function(e){t.$set(t.psInfo,"member_level",e)},expression:"psInfo.member_level"}},t._l(t.memberList,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"用户分组:"}},[i("el-select",{staticClass:"selWidth",attrs:{size:"small",placeholder:"请选择"},model:{value:t.psInfo.group_id,callback:function(e){t.$set(t.psInfo,"group_id",e)},expression:"psInfo.group_id"}},[i("el-option",{attrs:{value:""}},[t._v("全部")]),t._v(" "),t._l(t.groupList,(function(t,e){return i("el-option",{key:e,attrs:{value:t.group_id,label:t.group_name}})}))],2)],1)],1),t._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"用户标签:"}},[i("el-select",{staticClass:"selWidth",attrs:{size:"small",multiple:"",placeholder:"请选择"},model:{value:t.psInfo.label_id,callback:function(e){t.$set(t.psInfo,"label_id",e)},expression:"psInfo.label_id"}},[i("el-option",{attrs:{value:""}},[t._v("全部")]),t._v(" "),t._l(t.labelLists,(function(t,e){return i("el-option",{key:e,attrs:{value:t.label_id,label:t.label_name}})}))],2)],1)],1)],1),t._v(" "),i("el-row",{attrs:{gutter:24}},[i("el-form-item",{attrs:{label:"推广员:",prop:"is_promoter"}},[i("el-radio-group",{model:{value:t.psInfo.is_promoter,callback:function(e){t.$set(t.psInfo,"is_promoter",e)},expression:"psInfo.is_promoter"}},[i("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),t._v(" "),i("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),t._v(" "),i("el-row",{attrs:{gutter:24}},[i("el-form-item",{attrs:{label:"用户状态:",prop:"status"}},[i("el-radio-group",{model:{value:t.psInfo.status,callback:function(e){t.$set(t.psInfo,"status",e)},expression:"psInfo.status"}},[i("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),t._v(" "),i("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1)],1),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("用户备注")]),t._v(" "),i("el-row",{staticClass:"mt20",attrs:{gutter:24}},[i("el-form-item",{attrs:{label:"备注:"}},[i("el-input",{staticClass:"selWidth",attrs:{type:"textarea",size:"small",placeholder:"请填写备注"},model:{value:t.psInfo.mark,callback:function(e){t.$set(t.psInfo,"mark",e)},expression:"psInfo.mark"}})],1)],1)],1),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("补充信息")]),t._v(" "),i("el-row",{staticClass:"mt20",attrs:{gutter:24}},t._l(t.psInfo.extend_info,(function(e,a){return i("el-col",{key:a,attrs:{span:12}},["input"==e.type?i("el-form-item",{attrs:{label:e.title+":",required:1==e.is_require}},[i("el-input",{staticClass:"selWidth",attrs:{type:"text",size:"small",placeholder:e.msg},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1):"int"==e.type?i("el-form-item",{attrs:{label:e.title+":",required:1==e.is_require}},[i("el-input",{staticClass:"selWidth",attrs:{type:"number",size:"small",placeholder:e.msg},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1):"email"==e.type?i("el-form-item",{attrs:{label:e.title+":",required:1==e.is_require}},[i("el-input",{staticClass:"selWidth",attrs:{size:"small",placeholder:e.msg},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1):"date"==e.type?i("el-form-item",{attrs:{label:e.title+":",required:1==e.is_require}},[i("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"date",placement:"bottom-end",placeholder:e.msg},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1):"id_card"==e.type?i("el-form-item",{attrs:{label:e.title+":",required:1==e.is_require}},[i("el-input",{staticClass:"selWidth",attrs:{size:"small",placeholder:e.msg},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1):"phone"==e.type?i("el-form-item",{attrs:{label:e.title+":",required:1==e.is_require}},[i("el-input",{staticClass:"selWidth",attrs:{type:"number",size:"small",placeholder:e.msg},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1):"radio"==e.type?i("el-form-item",{attrs:{label:e.title+":",required:1==e.is_require}},[i("el-radio-group",{model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}},t._l(e.content,(function(e,a){return i("el-radio",{key:a,attrs:{label:a}},[i("span",[t._v(t._s(e))])])})),1)],1):"address"==e.type?i("el-form-item",{attrs:{label:e.title+":",required:1==e.is_require}},[i("el-input",{staticClass:"selWidth",attrs:{size:"small",placeholder:e.msg},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1):t._e()],1)})),1)],1)]):t._e()],1):t._e(),t._v(" "),i("el-tab-pane",{attrs:{label:"消费记录",name:"record"}},["record"==t.activeName?[i("el-table",{attrs:{data:t.tableData.data,size:"small"}},t._l(t.columns,(function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.key,label:t.title,width:"item.minWidth"}})})),1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)]:t._e()],2),t._v(" "),i("el-tab-pane",{attrs:{label:"积分明细",name:"detailed"}},["detailed"==t.activeName?[i("el-table",{attrs:{data:t.tableData.data,size:"small"}},t._l(t.columns,(function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.key,label:e.title,width:"item.minWidth"},scopedSlots:t._u([{key:"default",fn:function(a){return["number"==e.key?i("div",[1==a.row.pm?i("span",{staticStyle:{color:"rgb(255, 59, 48)"}},[t._v("+"+t._s(a.row.number))]):0==a.row.pm?i("span",{staticStyle:{color:"rgb(130, 228, 147)"}},[t._v("-"+t._s(a.row.number))]):t._e()]):"status"==e.key?i("div",[1==a.row.status?i("span",[t._v("已解冻")]):0==a.row.status?i("span",[t._v("冻结中")]):t._e()]):i("div",[i("span",[t._v(t._s(a.row[e.key]))])])]}}],null,!0)})})),1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)]:t._e()],2),t._v(" "),i("el-tab-pane",{attrs:{label:"签到记录",name:"signRecord"}},["signRecord"==t.activeName?[i("el-table",{attrs:{data:t.tableData.data,size:"small"}},t._l(t.columns,(function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.key,label:t.title,width:"item.minWidth"}})})),1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)]:t._e()],2),t._v(" "),i("el-tab-pane",{attrs:{label:"持有优惠券",name:"coupon"}},["coupon"==t.activeName?[i("el-table",{attrs:{data:t.tableData.data,size:"small"}},t._l(t.columns,(function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.key,label:t.title,width:"item.minWidth"}})})),1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)]:t._e()],2),t._v(" "),i("el-tab-pane",{attrs:{label:"余额变更",name:"balance",size:"small"}},["balance"==t.activeName?[i("el-table",{attrs:{data:t.tableData.data,size:"small"}},t._l(t.columns,(function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.key,label:t.title,width:"item.minWidth"}})})),1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)]:t._e()],2),t._v(" "),i("el-tab-pane",{attrs:{label:"用户成长值",name:"growth",size:"small"}},["growth"==t.activeName?[i("el-table",{attrs:{data:t.tableData.data,size:"small"}},t._l(t.columns,(function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.key,label:e.title,width:"item.minWidth"},scopedSlots:t._u([{key:"default",fn:function(a){return["number"==e.key?i("div",[a.row["pm"]>0?i("span",{staticStyle:{color:"#ff0000"}},[t._v("+"+t._s(a.row[e.key]))]):i("span",{staticStyle:{color:"#00C050"}},[t._v("-"+t._s(a.row[e.key]))])]):i("span",[t._v(t._s(a.row[e.key]))])]}}],null,!0)})})),1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)]:t._e()],2),t._v(" "),i("el-tab-pane",{attrs:{label:"浏览足迹",name:"footsteps"}},["footsteps"==t.activeName?[i("el-table",{attrs:{data:t.tableData.data,size:"small"}},[t._l(t.columns,(function(e,a){return i("el-table-column",{key:a,attrs:{prop:e.key,label:e.title,width:"item.minWidth"},scopedSlots:t._u([{key:"default",fn:function(a){return["image"==e.key?i("div",{staticClass:"acea-row",staticStyle:{"align-items":"center"}},[i("div",{staticClass:"demo-image__preview"},[a.row.spu?i("el-image",{attrs:{src:a.row.spu&&a.row.spu.image,"preview-src-list":[a.row.spu.image]}}):t._e()],1),t._v(" "),i("span",{staticClass:"priceBox",staticStyle:{"margin-left":"10px",width:"220px"}},[t._v(t._s(a.row.spu&&a.row.spu.store_name))])]):"create_time"==e.key?i("span",[t._v(t._s(a.row[e.key]))]):i("span",[t._v(t._s(a.row.spu&&a.row.spu[e.key]))])]}}],null,!0)})}))],2),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)]:t._e()],2),t._v(" "),i("el-tab-pane",{attrs:{label:"推荐人变更记录",name:"recommend"}},["recommend"==t.activeName?[i("el-table",{attrs:{data:t.tableData.data,size:"small"}},[i("el-table-column",{attrs:{prop:"spread.uid",label:"上级推荐人ID","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.spread&&e.row.spread.uid||"-"))])]}}],null,!1,1368616764)}),t._v(" "),i("el-table-column",{attrs:{prop:"spread.nickname",label:"上级推荐人昵称","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.spread&&e.row.spread.nickname||"用户已注销"))])]}}],null,!1,1905106276)}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"绑定时间","min-width":"100"}})],1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)]:t._e()],2)],1)],1):t._e()])],1)},l=[],s=(a("7f7f"),a("c24f")),n=a("10c4"),r={name:"UserDetails",props:{drawer:{type:Boolean,default:!1},isUser:{type:Boolean,default:!1},labelLists:{type:Array,default:function(){return[]}},groupList:{type:Array,default:function(){return[]}},memberList:{type:Array,default:function(){return[]}}},data:function(){var t=function(t,e,a){e&&(/^1[3456789]\d{9}$/.test(e)?a():a(new Error("格式不正确!")))},e=function(t,e,a){if(!e)return a(new Error("请输入身份证号"));/^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[Xx\d]$/.test(e)?a():a(new Error("格式不正确!"))};return{direction:"rtl",moren:a("cdfe"),columns:[],activeName:"userInfo",Visible:!1,loading:!0,uid:"",list:[{val:"0",label:"消费记录"},{val:"3",label:"持有优惠券"},{val:"4",label:"余额变动"},{val:"2",label:"推荐人修改记录"}],tableData:{data:[],total:0},tableFrom:{page:1,limit:6},psInfo:null,type:"0",ruleValidate:{phone:[{validator:t,trigger:"blur"}],card_id:[{validator:e,trigger:"blur"}],email:[{validator:n["a"],trigger:"blur"}],password:[{required:!0,trigger:"blur"}]},isEdit:!1,isDetail:!0,timeVal:[]}},mounted:function(){},beforeUpdate:function(){this.$nextTick((function(){}))},methods:{changeType:function(t){this.type=t,this.tableFrom.page=1,this.getInfo(t)},getData:function(t,e,a){this.activeName="userInfo",t&&(this.uid=t,this.getHeader()),this.isEdit=e,this.isDetail=a},getInfo:function(t){var e=this;switch(this.loading=!0,t){case"record":Object(s["rb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"订单编号",key:"order_sn",minWidth:250},{title:"收货人",key:"real_name",minWidth:90},{title:"商品数量",key:"total_num",minWidth:80},{title:"商品总价",key:"total_price",minWidth:90},{title:"实付金额",key:"pay_price",minWidth:90},{title:"交易完成时间",key:"pay_time",minWidth:160}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"recommend":Object(s["bb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"上级推荐人ID",key:"spread.uid",minWidth:120},{title:"上级推荐人昵称",key:"spread.nickname",minWidth:120},{title:"绑定时间",key:"create_time",minWidth:120}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"signRecord":Object(s["vb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"获得积分",key:"number",minWidth:120},{title:"签到时间",key:"create_time",minWidth:120},{title:"备注",key:"title",minWidth:120}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"coupon":Object(s["jb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"优惠券名称",key:"coupon_title",minWidth:120},{title:"面值",key:"coupon_price",minWidth:120},{title:"最低消费额",key:"use_min_price",minWidth:120},{title:"兑换时间",key:"use_time",minWidth:120}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"balance":Object(s["ib"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"变动金额",key:"number",minWidth:90},{title:"变动后",key:"balance",minWidth:90},{title:"类型",key:"title",minWidth:100},{title:"创建时间",key:"create_time",minWidth:150},{title:"备注",key:"mark",minWidth:200}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"growth":this.tableFrom.uid=this.uid,Object(s["X"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"成长值来源",key:"title",minWidth:90},{title:"成长值变化",key:"number",minWidth:90},{title:"变化后成长值",key:"balance",minWidth:100},{title:"日期",key:"create_time",minWidth:150},{title:"备注",key:"mark",minWidth:200}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"detailed":Object(s["sb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"来源/用途",key:"title",minWidth:90},{title:"积分变化",key:"number",minWidth:90},{title:"状态",key:"status",minWidth:90},{title:"当前有效积分",key:"balance",minWidth:100},{title:"日期",key:"create_time",minWidth:150},{title:"备注",key:"mark",minWidth:200}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"footsteps":Object(s["mb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"商品信息",key:"image",minWidth:200},{title:"价格",key:"price",minWidth:50},{title:"浏览时间",key:"create_time",minWidth:50}],e.loading=!1})).catch((function(){e.loading=!1}));break;default:Object(s["ib"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"变动金额",key:"number",minWidth:90},{title:"变动后",key:"balance",minWidth:90},{title:"类型",key:"title",minWidth:100},{title:"创建时间",key:"create_time",minWidth:150},{title:"备注",key:"mark",minWidth:200}],e.loading=!1})).catch((function(){e.loading=!1}))}},handleClose:function(){this.$emit("closeDrawer")},tabClick:function(t){this.tableFrom.page=1,this.getInfo(t.name)},onEdit:function(){for(var t=this,e=this,a=0;a<e.psInfo.extend_info.length;a++){var i=e.psInfo.extend_info[a];if(i.is_require||i.value){if(("date"===i.type||"address"===i.type||"int"===i.type)&&!i.value)return this.$message.warning(i.msg);if("input"===i.type&&!i.value.trim())return this.$message.warning(i.msg);if("email"===i.type){if(i.is_require&&!i.value)return this.$message.warning(i.msg);if(!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(i.value))return this.$message.warning("请填写正确的邮箱")}if("phone"===i.type){if(i.is_require&&!i.value)return this.$message.warning(i.msg);if(!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.value))return this.$message.warning(i.msg)}if("id_card"===i.type){if(i.is_require&&!i.value)return this.$message.warning(i.msg);if(!/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/i.test(i.value))return this.$message.warning("请填写正确的身份证号码")}}}e.loading=!0,Object(s["lb"])(this.uid,this.psInfo).then((function(e){t.isEdit=!1,t.isDetail=!0,t.loading=!1,t.$message.success(e.message)})).catch((function(e){t.loading=!1,t.$message.error(e.message)}))},handleCommand:function(t){"integral"==t?this.$emit("changeIntegral",{uid:this.uid}):"balance"==t?this.$emit("setMoney",{uid:this.uid}):"group"==t?this.$emit("setGroup",{uid:this.uid}):"label"==t?this.$emit("setLabel",{uid:this.uid}):"reference"==t?this.$emit("setModify",{uid:this.uid}):"password"==t?this.$emit("setPassword",{uid:this.uid}):"svipLevel"==t?this.$emit("setMember",{uid:this.uid}):"svipSet"==t&&this.$emit("giveMember",{uid:this.uid})},pageChange:function(t){this.tableFrom.page=t,this.getInfo(this.activeName)},handleSizeChange:function(t){this.tableFrom.limit=t,this.getInfo(this.activeName)},getHeader:function(){var t=this;this.loading=!0,Object(s["kb"])(this.uid).then((function(e){t.loading=!1,t.psInfo=e.data})).catch((function(){t.loading=!1}))}}},o=r,c=(a("61a2"),a("2877")),d=Object(c["a"])(o,i,l,!1,null,"d30321ee",null);e["a"]=d.exports},cdfe:function(t,e,a){t.exports=a.p+"system/img/f.5aa43cd3.png"}}]);