Commit d630b88b by wangyusheng

Merge branch 'dev'

# Conflicts:
#	dist/css/app.848c18aa51796952764e986536af71b0.css
#	dist/index.html
#	dist/js/1.0b1c2755763f6f0a7f3e.js
#	dist/js/1.9a9fbf130d98cf15bb61.js
#	dist/js/1.ec110e0b911a45a58347.js
#	dist/js/12.33e7b27f6c7a60db2ae0.js
#	dist/js/12.ef53eb7e3e1acd2397a7.js
#	dist/js/12.f783f4906b784c3aa6b3.js
#	dist/js/13.79065c607e997e58c45c.js
#	dist/js/14.0a76580ae2428bb57628.js
#	dist/js/14.1f5fc7f711e23a36a4e6.js
#	dist/js/14.38fcffe8af07c55de242.js
#	dist/js/15.31fa0ace63998ca77114.js
#	dist/js/16.28614b181083330029bc.js
#	dist/js/16.4356070f5ce64ed4e745.js
#	dist/js/16.a67e9399f890241aaff9.js
#	dist/js/17.98b88e47885d0a937d97.js
#	dist/js/18.0d24bb89d6a39a42ac82.js
#	dist/js/19.19def850a5fdcb02cc84.js
#	dist/js/2.95dcf175291696c7bb4d.js
#	dist/js/20.729e260f0c3432cc4bd4.js
#	dist/js/20.8c076231b9ee66f1e78b.js
#	dist/js/21.45bd98b38fedc2f1da8a.js
#	dist/js/22.606784525963725e8e2f.js
#	dist/js/22.792a044fdf113b5c8c02.js
#	dist/js/23.35599e5dca14cfa2b9bb.js
#	dist/js/24.677c76813e32ac85f977.js
#	dist/js/25.95b2f547172c4aca55b7.js
#	dist/js/25.db0a89eef441d9f48115.js
#	dist/js/26.06baecf88fc9ac2eaad0.js
#	dist/js/27.09512d2798858a35443a.js
#	dist/js/27.2f6ef6c664462f9d301c.js
#	dist/js/27.eb3c8511b34a313aa9d2.js
#	dist/js/28.1d3934c6fbdb35bd045e.js
#	dist/js/28.1f30e7f2805a795e2407.js
#	dist/js/28.459dc2ee57ec44feeb3e.js
#	dist/js/29.de830868545b93a0f855.js
#	dist/js/29.f3f836ff078689e11ab6.js
#	dist/js/30.963bbe9332bd0670d48c.js
#	dist/js/30.b5241c6f607bdd7f3f4d.js
#	dist/js/30.d4d7c1192fe2ffa3cc12.js
#	dist/js/31.025ce08e2a5bc866e65f.js
#	dist/js/32.4c5e27fe84116c9c072f.js
#	dist/js/32.6545c14911b1768f08fd.js
#	dist/js/33.e80c7b32bc6a3e2fbfc5.js
#	dist/js/33.f4553c090325152bc614.js
#	dist/js/34.13da10d0025f2aca9931.js
#	dist/js/34.4cb7b962b913d1dad553.js
#	dist/js/35.81c599e5e991800534ef.js
#	dist/js/36.7183538bcebf11c237aa.js
#	dist/js/36.9e997a7b056f23aa5d7f.js
#	dist/js/37.1ea418f1eaa438e234b7.js
#	dist/js/38.6f3457830a76f750ff20.js
#	dist/js/38.a3dc4f2b6c4da80451f5.js
#	dist/js/39.37c7cd3152173d2889cd.js
#	dist/js/39.48190ed4f98a81877e54.js
#	dist/js/39.f56ebb15d74b0414dd75.js
#	dist/js/4.4a93811fbb3e6719f24c.js
#	dist/js/40.bf7bf48ca56d6130c6f3.js
#	dist/js/5.2d7fd6be07a62ca3a382.js
#	dist/js/5.f64e801a0fe45197e7a4.js
#	dist/js/6.c12b27d5fd054c9b9716.js
#	dist/js/6.da46d28e00eb7e6a1f37.js
#	dist/js/6.ee121b6853e051aa169a.js
#	dist/js/7.7c5078b7d8e04810ca05.js
#	dist/js/7.9542b3b2e086612b6f11.js
#	dist/js/8.650fac36185dc9834c59.js
#	dist/js/9.724367636d16a98e853e.js
parents c60b793d be1ca88f
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./static/img/favicon.ico><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/lodash.min.js></script><title>memberproject</title><link href=./css/app.848c18aa51796952764e986536af71b0.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.35.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/people.2.0.42.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/aside-menu.2.0.12.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/store.2.0.00.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/selector.1.1.33.js></script><script src=//web-1251519181.file.myqcloud.com/components/space.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script type=text/javascript src=./js/manifest.a2972a46661eca3f0410.js></script><script type=text/javascript src=./js/vendor.0fd38a4fcbdc024d78ff.js></script><script type=text/javascript src=./js/app.e92e3e7cb08d4a1c7423.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./static/img/favicon.ico><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/lodash.min.js></script><title>memberproject</title><link href=./css/app.7b0f27e048b06ecc07b4704c280408c7.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.35.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/people.2.0.42.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/aside-menu.2.0.12.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/store.2.0.00.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/selector.1.2.13.js></script><script src=//web-1251519181.file.myqcloud.com/components/space.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script type=text/javascript src=./js/manifest.860cf6edb8edb1e9e157.js></script><script type=text/javascript src=./js/vendor.0fd38a4fcbdc024d78ff.js></script><script type=text/javascript src=./js/app.e32e80fdc4aa179ff5f4.js></script></body></html>
\ No newline at end of file
webpackJsonp([17],{"1c7t":function(e,t){},zWgH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"buyermembers",components:{Navbar:n("+vdD").a}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"buyer-part"},[t("Navbar"),this._v("\n 电商买家\n")],1)},staticRenderFns:[]};var s=n("VU/8")(a,r,!1,function(e){n("1c7t")},"data-v-ae6134c2",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([18],{"1c7t":function(e,t){},zWgH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"buyermembers",components:{Navbar:n("+vdD").a}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"buyer-part"},[t("Navbar"),this._v("\n 电商买家\n")],1)},staticRenderFns:[]};var s=n("VU/8")(a,r,!1,function(e){n("1c7t")},"data-v-ae6134c2",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([19],{OQ6q:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"memberlist",data:function(){return{bodyHeight:document.body.clientHeight||document.documentElement.clientHeight,defaultActive:this.$route.path}},mounted:function(){var e=this;window.onresize=function(){e.bodyHeight=document.body.clientHeight||document.documentElement.clientHeight}},components:{Navbar:i("+vdD").a}},o={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"achievementwrap",style:{height:this.bodyHeight-64+"px"}},[t("div",{staticClass:"achievementwrap-right"},[t("div",{style:{height:"100%"}},[t("keep-alive",[this.$route.meta.keepAlive?t("router-view"):this._e()],1),this._v(" "),this.$route.meta.keepAlive?this._e():t("router-view")],1)])])},staticRenderFns:[]};var a=i("VU/8")(n,o,!1,function(e){i("iqpy")},"data-v-9b641668",null);t.default=a.exports},iqpy:function(e,t){}});
\ No newline at end of file
webpackJsonp([20],{OQ6q:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"memberlist",data:function(){return{bodyHeight:document.body.clientHeight||document.documentElement.clientHeight,defaultActive:this.$route.path}},mounted:function(){var e=this;window.onresize=function(){e.bodyHeight=document.body.clientHeight||document.documentElement.clientHeight}},components:{Navbar:i("+vdD").a}},o={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"achievementwrap",style:{height:this.bodyHeight-64+"px"}},[t("div",{staticClass:"achievementwrap-right"},[t("div",{style:{height:"100%"}},[t("keep-alive",[this.$route.meta.keepAlive?t("router-view"):this._e()],1),this._v(" "),this.$route.meta.keepAlive?this._e():t("router-view")],1)])])},staticRenderFns:[]};var a=i("VU/8")(n,o,!1,function(e){i("iqpy")},"data-v-9b641668",null);t.default=a.exports},iqpy:function(e,t){}});
\ No newline at end of file
webpackJsonp([20],{"/HSQ":function(e,t){},kVpV:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("AKaA"),r=a("WSiR"),o=a("NTL1"),l=a("8V46"),s={data:function(){return{navpath:[{name:"首页",path:""},{name:"微信会员",path:""},{name:"批量导入",path:""},{name:"日志详情",path:""}],tableData:[],page:{currentPage:1,pageSize:20,totalCount:0},integralType:"积分扣除",count:{all:0,success:0,error:0},batchId:"",batchType:""}},methods:{exportExcel:function(){window.location.href=o.a.downloadErrorData+"?requestProject=member&batchType="+this.batchType+"&batchId="+this.batchId},handleCurrentChange:function(e){this.page.currentPage=e,this.getLogsDetail()},handleSizeChange:function(e){this.page.pageSize=e,this.getLogsDetail()},getLogsDetail:function(){var e=this,t={batchId:this.batchId,batchType:this.batchType,currentPage:this.page.currentPage,pageSize:this.page.pageSize};Object(n.b)(o.a.queryBatchRetErrInfo,t).then(function(t){if(0==t.data.errorCode){var a=t.data.result;console.log(a),e.page.totalCount=a.totalCount,e.tableData=a.result}else Object(l.a)(t.data.message)}).catch(function(e){Object(l.b)(e)})}},created:function(){console.log(sessionStorage.getItem("bulkLogsDetail"));var e=JSON.parse(sessionStorage.getItem("bulkLogsDetail")),t=e.batchId,a=e.batchType,n=e.total,r=e.succeedNum,o=e.errorNum;this.batchId=t,this.batchType=a,console.log(this.batchType),this.count.all=n,this.count.success=r,this.count.error=o,this.getLogsDetail()},components:{NavPath:r.a}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"bulkLogsDetail"}},[a("nav-path",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"contentBulkIntegral"},[a("div",{staticClass:"contentInfo"},[a("div",{staticClass:"flex"},[a("span",{staticClass:"headerTips"},[e._v("总条数:"+e._s(e.count.all)+" 条,成功导入 "+e._s(e.count.success)+" 条,"),a("span",{staticClass:"headerTipsError"},[e._v("错误 "+e._s(e.count.error)+" 条")])]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai"}),e._v(" 导出")])],1),e._v(" "),a("el-table",{attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"sequence",label:"序号"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.sequence||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"errorCause",label:"错误提示"}}),e._v(" "),a("el-table-column",{attrs:{prop:"cardNum",label:"会员卡号"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.cardNum||"--")+"\n ")]}}])}),e._v(" "),11==e.batchType||12==e.batchType?a("el-table-column",{attrs:{prop:"opIntegral",label:"变更额度"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.opIntegral||"--")+"\n ")]}}],null,!1,761788206)}):e._e(),e._v(" "),11==e.batchType?a("el-table-column",{attrs:{label:"成本主体"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.costStoreName||"--")+"\n ")]}}],null,!1,1787028140)}):e._e(),e._v(" "),13==e.batchType?a("el-table-column",{attrs:{label:"等级编码"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.gradeCode||"--")+"\n ")]}}],null,!1,267654791)}):e._e(),e._v(" "),13==e.batchType?a("el-table-column",{attrs:{label:"等级名称"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.gradeName||"--")+"\n ")]}}],null,!1,3867179405)}):e._e(),e._v(" "),14==e.batchType?a("el-table-column",{attrs:{label:"门店代码"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.costStoreCode||"--")+"\n ")]}}],null,!1,2930117414)}):e._e(),e._v(" "),14==e.batchType?a("el-table-column",{attrs:{label:"门店名称"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.costStoreName||"--")+"\n ")]}}],null,!1,1787028140)}):e._e(),e._v(" "),a("el-table-column",{attrs:{prop:"remark",label:"原因备注"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.remark||"--")+"\n ")]}}])})],1),e._v(" "),e.tableData.length>0?a("dm-pagination",{attrs:{background:"","current-page":e.page.currentPage,"page-sizes":[20,40,60,80],"page-size":e.page.pageSize,layout:"total, sizes, prev, pager, next",total:e.page.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var u=a("VU/8")(s,c,!1,function(e){a("/HSQ")},"data-v-97b94d96",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([21],{"/HSQ":function(e,t){},kVpV:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("AKaA"),r=a("WSiR"),o=a("NTL1"),l=a("8V46"),s={data:function(){return{navpath:[{name:"首页",path:""},{name:"微信会员",path:""},{name:"批量导入",path:""},{name:"日志详情",path:""}],tableData:[],page:{currentPage:1,pageSize:20,totalCount:0},integralType:"积分扣除",count:{all:0,success:0,error:0},batchId:"",batchType:""}},methods:{exportExcel:function(){window.location.href=o.a.downloadErrorData+"?requestProject=member&batchType="+this.batchType+"&batchId="+this.batchId},handleCurrentChange:function(e){this.page.currentPage=e,this.getLogsDetail()},handleSizeChange:function(e){this.page.pageSize=e,this.getLogsDetail()},getLogsDetail:function(){var e=this,t={batchId:this.batchId,batchType:this.batchType,currentPage:this.page.currentPage,pageSize:this.page.pageSize};Object(n.c)(o.a.queryBatchRetErrInfo,t).then(function(t){if(0==t.data.errorCode){var a=t.data.result;console.log(a),e.page.totalCount=a.totalCount,e.tableData=a.result}else Object(l.a)(t.data.message)}).catch(function(e){Object(l.b)(e)})}},created:function(){console.log(sessionStorage.getItem("bulkLogsDetail"));var e=JSON.parse(sessionStorage.getItem("bulkLogsDetail")),t=e.batchId,a=e.batchType,n=e.total,r=e.succeedNum,o=e.errorNum;this.batchId=t,this.batchType=a,console.log(this.batchType),this.count.all=n,this.count.success=r,this.count.error=o,this.getLogsDetail()},components:{NavPath:r.a}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"bulkLogsDetail"}},[a("nav-path",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"contentBulkIntegral"},[a("div",{staticClass:"contentInfo"},[a("div",{staticClass:"flex"},[a("span",{staticClass:"headerTips"},[e._v("总条数:"+e._s(e.count.all)+" 条,成功导入 "+e._s(e.count.success)+" 条,"),a("span",{staticClass:"headerTipsError"},[e._v("错误 "+e._s(e.count.error)+" 条")])]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai"}),e._v(" 导出")])],1),e._v(" "),a("el-table",{attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"sequence",label:"序号"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.sequence||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"errorCause",label:"错误提示"}}),e._v(" "),a("el-table-column",{attrs:{prop:"cardNum",label:"会员卡号"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.cardNum||"--")+"\n ")]}}])}),e._v(" "),11==e.batchType||12==e.batchType?a("el-table-column",{attrs:{prop:"opIntegral",label:"变更额度"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.opIntegral||"--")+"\n ")]}}],null,!1,761788206)}):e._e(),e._v(" "),11==e.batchType?a("el-table-column",{attrs:{label:"成本主体"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.costStoreName||"--")+"\n ")]}}],null,!1,1787028140)}):e._e(),e._v(" "),13==e.batchType?a("el-table-column",{attrs:{label:"等级编码"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.gradeCode||"--")+"\n ")]}}],null,!1,267654791)}):e._e(),e._v(" "),13==e.batchType?a("el-table-column",{attrs:{label:"等级名称"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.gradeName||"--")+"\n ")]}}],null,!1,3867179405)}):e._e(),e._v(" "),14==e.batchType?a("el-table-column",{attrs:{label:"门店代码"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.costStoreCode||"--")+"\n ")]}}],null,!1,2930117414)}):e._e(),e._v(" "),14==e.batchType?a("el-table-column",{attrs:{label:"门店名称"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.costStoreName||"--")+"\n ")]}}],null,!1,1787028140)}):e._e(),e._v(" "),a("el-table-column",{attrs:{prop:"remark",label:"原因备注"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.remark||"--")+"\n ")]}}])})],1),e._v(" "),e.tableData.length>0?a("dm-pagination",{attrs:{background:"","current-page":e.page.currentPage,"page-sizes":[20,40,60,80],"page-size":e.page.pageSize,layout:"total, sizes, prev, pager, next",total:e.page.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var u=a("VU/8")(s,c,!1,function(e){a("/HSQ")},"data-v-97b94d96",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([22],{Qfvq:function(t,e){},"j/xf":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("WSiR"),n=a("Rrai"),i={name:"album",components:{vNav:r.a,photoAlbum:n.default},data:function(){return{navpath:[{name:"首页",path:""},{name:"会员详情",path:""},{name:"相册",path:""}],memberId:"",from:""}},created:function(){var t=this.$route.query.from,e=this.$route.query.memberId;switch(this.memberId=e,this.from=t,t){case"0":this.navpath[1]={name:"会员详情",path:"/wechatmemberDetail?memberId="+e};break;case"1":this.navpath[1]={name:"会员详情",path:"/wechatTotalDetail?memberId="+e};break;default:this.navpath.splice(1,1)}}},m={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"page-content"},[e("v-nav",{attrs:{navpath:this.navpath}}),this._v(" "),e("photo-album",{attrs:{"member-id":this.memberId,from:this.from}}),this._v(" "),e("vue-gic-footer",{staticStyle:{"padding-bottom":"80px"}})],1)},staticRenderFns:[]};var s=a("VU/8")(i,m,!1,function(t){a("Qfvq")},"data-v-6a791518",null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([24],{Qfvq:function(t,e){},"j/xf":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("WSiR"),n=a("Rrai"),i={name:"album",components:{vNav:r.a,photoAlbum:n.default},data:function(){return{navpath:[{name:"首页",path:""},{name:"会员详情",path:""},{name:"相册",path:""}],memberId:"",from:""}},created:function(){var t=this.$route.query.from,e=this.$route.query.memberId;switch(this.memberId=e,this.from=t,t){case"0":this.navpath[1]={name:"会员详情",path:"/wechatmemberDetail?memberId="+e};break;case"1":this.navpath[1]={name:"会员详情",path:"/wechatTotalDetail?memberId="+e};break;default:this.navpath.splice(1,1)}}},m={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"page-content"},[e("v-nav",{attrs:{navpath:this.navpath}}),this._v(" "),e("photo-album",{attrs:{"member-id":this.memberId,from:this.from}}),this._v(" "),e("vue-gic-footer",{staticStyle:{"padding-bottom":"80px"}})],1)},staticRenderFns:[]};var s=a("VU/8")(i,m,!1,function(t){a("Qfvq")},"data-v-6a791518",null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([24],{miwu:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});o("AKaA");var s=window.location.origin,i=s.indexOf("localhost")>-1?"http://gicdev.demogic.com":s,n={name:"selector",data:function(){return{expends:!0,ret:[],total:0}},methods:{confirm:function(){var t=this;this.$refs.selector.collectConditions().then(function(e){t.expends=!e.filterAbbrInfo.length,t.getGoodsList(e.conditions)})},goback:function(){this.ret=[],this.expends=!this.expends,this.$refs.selector.removeConditions()},getGoodsList:function(t){var e=this,o={currentPage:1,pageSize:40,source:1,queryList:t};this.axios.post(i+"/api-plug/store-goods-sku-filter",o).then(function(t){if(0===t.data.errorCode){var o=t.data.result;e.ret=o.result,e.total=o.total}})}}},r={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"selector-router"},[o("vue-gic-goods-selector",{ref:"selector"}),t._v(" "),o("div",{staticClass:"gic-button"},[t.expends?o("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")]):o("el-button",{on:{click:t.goback}},[t._v("返回")])],1),t._v(" "),o("h1",[t._v("一共有"+t._s(t.total)+"条数据")]),t._v(" "),o("div",t._l(t.ret,function(e,s){return o("li",{key:s,staticClass:"good-list"},[t._v(t._s(e))])}),0)],1)},staticRenderFns:[]};var c=o("VU/8")(n,r,!1,function(t){o("oCPk")},"data-v-6892081c",null);e.default=c.exports},oCPk:function(t,e){}});
\ No newline at end of file
webpackJsonp([26],{miwu:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});o("AKaA");var s=window.location.origin,i=s.indexOf("localhost")>-1?"http://gicdev.demogic.com":s,n={name:"selector",data:function(){return{expends:!0,ret:[],total:0}},methods:{confirm:function(){var t=this;this.$refs.selector.collectConditions().then(function(e){t.expends=!e.filterAbbrInfo.length,t.getGoodsList(e.conditions)})},goback:function(){this.ret=[],this.expends=!this.expends,this.$refs.selector.removeConditions()},getGoodsList:function(t){var e=this,o={currentPage:1,pageSize:40,source:1,queryList:t};this.axios.post(i+"/api-plug/store-goods-sku-filter",o).then(function(t){if(0===t.data.errorCode){var o=t.data.result;e.ret=o.result,e.total=o.total}})}}},r={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"selector-router"},[o("vue-gic-goods-selector",{ref:"selector"}),t._v(" "),o("div",{staticClass:"gic-button"},[t.expends?o("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")]):o("el-button",{on:{click:t.goback}},[t._v("返回")])],1),t._v(" "),o("h1",[t._v("一共有"+t._s(t.total)+"条数据")]),t._v(" "),o("div",t._l(t.ret,function(e,s){return o("li",{key:s,staticClass:"good-list"},[t._v(t._s(e))])}),0)],1)},staticRenderFns:[]};var c=o("VU/8")(n,r,!1,function(t){o("oCPk")},"data-v-6892081c",null);e.default=c.exports},oCPk:function(t,e){}});
\ No newline at end of file
webpackJsonp([36],{"34RI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),s=a.n(i),n=a("WSiR"),r=a("AKaA"),o=a("NTL1"),u=a("8V46"),c=a("lRwf"),l=a.n(c),d={name:"membertask",data:function(){return{bodyHeight:document.body.clientHeight||document.documentElement.clientHeight,navpath:[{name:"首页",path:""},{name:"会员",path:"/wechatmembers"},{name:"会员任务",path:""}],isEdit:null,missionList:[]}},methods:{changeVal:function(e){val=val.length>6?val.substr(0,6):val},getMemberMissionList:function(){var e=this;Object(r.a)(o.a.memberMissionList).then(function(t){0===t.data.errorCode?(e.isEdit=t.data.result.isEdit,e.missionList=t.data.result.missionList.map(function(e){return s()({},e,{item:e.item.map(function(e){return s()({},e,{statusEdit:1==e.status})})})})):Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},editRewardValue:function(e){e.isEdit?e.isEdit=!0:l.a.set(e,"isEdit",!0),e.isCurValue?e.isCurValue=e.rewardValue:l.a.set(e,"isCurValue",e.rewardValue)},submitRewardValue:function(e){Object(r.a)(o.a.memberMissionUpdate,{missionItemEnterpriseId:e.missionItemEnterpriseId,usedRule:e.usedRule,rewardRule:e.rewardRule,rewardValue:e.rewardValue}).then(function(t){0===t.data.errorCode?(e.isEdit=!1,Object(u.c)()):Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},cancleRewardValue:function(e){e.rewardValue=e.isCurValue,e.isEdit=!1},changeValue:function(e){var t=e.statusEdit?1:0;return 1==t&&0===e.rewardValue?(Object(u.a)("请完善积分奖励"),e.statusEdit=!1,!1):e.status===t?(e.statusEdit=!1,!1):void Object(r.a)(o.a.memberMissionOpen,{missionItemEnterpriseId:e.missionItemEnterpriseId,status:t}).then(function(a){0===a.data.errorCode?(e.status=t,Object(u.c)()):Object(u.a)(a.data.message)}).catch(function(e){Object(u.b)(e)})}},created:function(){this.getMemberMissionList(),this.$store.commit("mutations-slide",!1)},components:{"v-nav":n.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"member-task",style:{height:e.bodyHeight-64+"px"}},[a("div",{staticClass:"min100"},[a("v-nav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"achievement"},e._l(e.missionList,function(t,i){return a("div",{key:i,staticClass:"achievement-item"},[a("div",{staticClass:"achievement-top"},[a("span",{staticClass:"achievement-title"},[e._v(e._s(t.missionName))])]),e._v(" "),a("div",{staticClass:"achievement-editwrap"},[a("el-table",{attrs:{data:t.item,"tooltip-effect":"dark","header-row-class-name":"curheader"}},[a("el-table-column",{attrs:{prop:"missionItemName",label:"字段名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rewardValue",label:"奖励积分额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("奖励\n "),a("el-input-number",{directives:[{name:"show",rawName:"v-show",value:1==t.row.isEdit,expression:"scope.row.isEdit == true"}],attrs:{maxlength:"6","controls-position":"right",min:0,max:1e5},model:{value:t.row.rewardValue,callback:function(a){e.$set(t.row,"rewardValue",a)},expression:"scope.row.rewardValue"}}),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:!0!==t.row.isEdit,expression:"scope.row.isEdit !== true"}]},[e._v(" "+e._s(t.row.rewardValue)+" ")]),e._v(" 积分\n "),a("i",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&!0!==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit !== true"}],staticClass:"el-icon-edit pointer",on:{click:function(a){return e.editRewardValue(t.row)}}}),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&1==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit == true"}],attrs:{type:"text"},on:{click:function(a){return e.submitRewardValue(t.row)}}},[e._v("\n 保存\n ")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&1==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit == true"}],attrs:{type:"text"},on:{click:function(a){return e.cancleRewardValue(t.row)}}},[e._v("\n 取消\n ")])],1)]}}],null,!0)}),e._v(" "),1==e.isEdit?a("el-table-column",{attrs:{prop:"status",label:"开关",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"achievement-handler"},[a("el-switch",{attrs:{"active-text":"启用","inactive-text":"停用"},on:{change:function(a){return e.changeValue(t.row)}},model:{value:t.row.statusEdit,callback:function(a){e.$set(t.row,"statusEdit",a)},expression:"scope.row.statusEdit"}})],1)]}}],null,!0)}):e._e()],1)],1)])}),0)],1),e._v(" "),a("div",{staticClass:"footer-box foot-add"},[a("vue-gic-footer")],1)])},staticRenderFns:[]};var v=a("VU/8")(d,m,!1,function(e){a("lxnr")},null,null);t.default=v.exports},lxnr:function(e,t){}});
\ No newline at end of file
webpackJsonp([37],{"34RI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),s=a.n(i),n=a("WSiR"),r=a("AKaA"),o=a("NTL1"),u=a("8V46"),c=a("lRwf"),l=a.n(c),d={name:"membertask",data:function(){return{bodyHeight:document.body.clientHeight||document.documentElement.clientHeight,navpath:[{name:"首页",path:""},{name:"会员",path:"/wechatmembers"},{name:"会员任务",path:""}],isEdit:null,missionList:[]}},methods:{changeVal:function(e){val=val.length>6?val.substr(0,6):val},getMemberMissionList:function(){var e=this;Object(r.a)(o.a.memberMissionList).then(function(t){0===t.data.errorCode?(e.isEdit=t.data.result.isEdit,e.missionList=t.data.result.missionList.map(function(e){return s()({},e,{item:e.item.map(function(e){return s()({},e,{statusEdit:1==e.status})})})})):Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},editRewardValue:function(e){e.isEdit?e.isEdit=!0:l.a.set(e,"isEdit",!0),e.isCurValue?e.isCurValue=e.rewardValue:l.a.set(e,"isCurValue",e.rewardValue)},submitRewardValue:function(e){Object(r.a)(o.a.memberMissionUpdate,{missionItemEnterpriseId:e.missionItemEnterpriseId,usedRule:e.usedRule,rewardRule:e.rewardRule,rewardValue:e.rewardValue}).then(function(t){0===t.data.errorCode?(e.isEdit=!1,Object(u.c)()):Object(u.a)(t.data.message)}).catch(function(e){Object(u.b)(e)})},cancleRewardValue:function(e){e.rewardValue=e.isCurValue,e.isEdit=!1},changeValue:function(e){var t=e.statusEdit?1:0;return 1==t&&0===e.rewardValue?(Object(u.a)("请完善积分奖励"),e.statusEdit=!1,!1):e.status===t?(e.statusEdit=!1,!1):void Object(r.a)(o.a.memberMissionOpen,{missionItemEnterpriseId:e.missionItemEnterpriseId,status:t}).then(function(a){0===a.data.errorCode?(e.status=t,Object(u.c)()):Object(u.a)(a.data.message)}).catch(function(e){Object(u.b)(e)})}},created:function(){this.getMemberMissionList(),this.$store.commit("mutations-slide",!1)},components:{"v-nav":n.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"member-task",style:{height:e.bodyHeight-64+"px"}},[a("div",{staticClass:"min100"},[a("v-nav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"achievement"},e._l(e.missionList,function(t,i){return a("div",{key:i,staticClass:"achievement-item"},[a("div",{staticClass:"achievement-top"},[a("span",{staticClass:"achievement-title"},[e._v(e._s(t.missionName))])]),e._v(" "),a("div",{staticClass:"achievement-editwrap"},[a("el-table",{attrs:{data:t.item,"tooltip-effect":"dark","header-row-class-name":"curheader"}},[a("el-table-column",{attrs:{prop:"missionItemName",label:"字段名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"rewardValue",label:"奖励积分额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("奖励\n "),a("el-input-number",{directives:[{name:"show",rawName:"v-show",value:1==t.row.isEdit,expression:"scope.row.isEdit == true"}],attrs:{maxlength:"6","controls-position":"right",min:0,max:1e5},model:{value:t.row.rewardValue,callback:function(a){e.$set(t.row,"rewardValue",a)},expression:"scope.row.rewardValue"}}),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:!0!==t.row.isEdit,expression:"scope.row.isEdit !== true"}]},[e._v(" "+e._s(t.row.rewardValue)+" ")]),e._v(" 积分\n "),a("i",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&!0!==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit !== true"}],staticClass:"el-icon-edit pointer",on:{click:function(a){return e.editRewardValue(t.row)}}}),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&1==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit == true"}],attrs:{type:"text"},on:{click:function(a){return e.submitRewardValue(t.row)}}},[e._v("\n 保存\n ")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isEdit&&1==t.row.isEdit,expression:"isEdit == 1 && scope.row.isEdit == true"}],attrs:{type:"text"},on:{click:function(a){return e.cancleRewardValue(t.row)}}},[e._v("\n 取消\n ")])],1)]}}],null,!0)}),e._v(" "),1==e.isEdit?a("el-table-column",{attrs:{prop:"status",label:"开关",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"achievement-handler"},[a("el-switch",{attrs:{"active-text":"启用","inactive-text":"停用"},on:{change:function(a){return e.changeValue(t.row)}},model:{value:t.row.statusEdit,callback:function(a){e.$set(t.row,"statusEdit",a)},expression:"scope.row.statusEdit"}})],1)]}}],null,!0)}):e._e()],1)],1)])}),0)],1),e._v(" "),a("div",{staticClass:"footer-box foot-add"},[a("vue-gic-footer")],1)])},staticRenderFns:[]};var v=a("VU/8")(d,m,!1,function(e){a("lxnr")},null,null);t.default=v.exports},lxnr:function(e,t){}});
\ No newline at end of file
webpackJsonp([5],{"/HCr":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("2X9c"),a=e.n(i),r={name:"page500",data:function(){return{img_500:a.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},n={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"member/#/memberSummary"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=e("VU/8")(r,n,!1,function(t){e("rHLO")},"data-v-56ad123d",null);s.default=c.exports},"2X9c":function(t,s,e){t.exports=e.p+"img/error_500.af3a106.svg"},rHLO:function(t,s){}});
\ No newline at end of file
webpackJsonp([7],{"/HCr":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("2X9c"),a=e.n(i),r={name:"page500",data:function(){return{img_500:a.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},n={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"member/#/memberSummary"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=e("VU/8")(r,n,!1,function(t){e("rHLO")},"data-v-56ad123d",null);s.default=c.exports},"2X9c":function(t,s,e){t.exports=e.p+"img/error_500.af3a106.svg"},rHLO:function(t,s){}});
\ No newline at end of file
......@@ -26,6 +26,9 @@ export function checkStatus(err) {
}else if(err.response.status == 500){
Message.error('服务器错误500');
return false;
} else {
Message.error(err.response.message);
return false;
}
}else {
Message.error(err);
......
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var t,o,b,u=0,i=[];u<a.length;u++)o=a[u],c[o]&&i.push(c[o][0]),c[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(f&&f(a,n,r);i.length;)i.shift()();if(r)for(u=0;u<r.length;u++)b=d(d.s=r[u]);return b};var a={},c={44:0};function d(f){if(a[f])return a[f].exports;var c=a[f]={i:f,l:!1,exports:{}};return e[f].call(c.exports,c,c.exports,d),c.l=!0,c.exports}d.e=function(e){var f=c[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var a=new Promise(function(a,d){f=c[e]=[a,d]});f[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"js/"+e+"."+{0:"70238a2725290aa883f0",1:"9a9fbf130d98cf15bb61",2:"b01350d103aa78a417de",3:"728e05895e857e295078",4:"aa34179b1b3988619216",5:"1f827fac0a8cdf4ae458",6:"5d4f5c64b5b8224261d0",7:"2b717e79f60a18e43239",8:"6923fd90fed88e21c1f0",9:"15b5a3166c312ff2e866",10:"d8eca6d462da9d306c8a",11:"eec107f16b7f13b17417",12:"f8ba5db2b9f25be6097b",13:"bd63fa836492b93f2f62",14:"5305429bd6f70d1d77ba",15:"897d5b1edd8ed28ab53c",16:"069b9dd4e70f896ca7f9",17:"2ca8283a3d74bbdb2081",18:"eff54bf015bd93207d99",19:"f09472a574ad5e084838",20:"9e8cb6f0464e45310db8",21:"97482e9f14ecc5cd777f",22:"44dcf11106b0103df964",23:"ee06ca47662a39706c73",24:"9eefc3e0364f96d786c1",25:"90fe4924fe6fcc7ae9d4",26:"384f41072f16a7f66773",27:"ff0767db6cce72381bb1",28:"3d0e6678f66e687dfd63",29:"5438a4c1c8fb6736e12f",30:"32710bdae1e838e8c329",31:"f1b0147fb92a6da63c87",32:"db67d69a77879d43f498",33:"90069e638045693e1536",34:"2c3d8a1e579c04ba381f",35:"e97e5d7f4923ebd8d88e",36:"0dd6a3eaf91ec01db4cf",37:"8968ed7e821bc18e43fa",38:"540872eb8970e730774d",39:"5eeed465f34155c5f44d",40:"8382aefa46077ee817cd",41:"e9ba336b4382fca995fc"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var f=c[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),a},d.m=e,d.c=a,d.d=function(e,f,a){d.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(f,"a",f),f},d.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var o,b,d,u=0,i=[];u<a.length;u++)b=a[u],f[b]&&i.push(f[b][0]),f[b]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(c&&c(a,r,t);i.length;)i.shift()();if(t)for(u=0;u<t.length;u++)d=n(n.s=t[u]);return d};var a={},f={44:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"js/"+e+"."+{0:"bc17c4220dc79813bd32",1:"9a9fbf130d98cf15bb61",2:"5341a773680518a7f48b",3:"728e05895e857e295078",4:"4a93811fbb3e6719f24c",5:"2d7fd6be07a62ca3a382",6:"ee121b6853e051aa169a",7:"b02731d9202632128a13",8:"224307e9e679dc8f7b70",9:"15b5a3166c312ff2e866",10:"d8eca6d462da9d306c8a",11:"c3264ca211411a7a552a",12:"ef53eb7e3e1acd2397a7",13:"a38b185b5b22501bd731",14:"0a76580ae2428bb57628",15:"0c68fe45d65b0ef6cf21",16:"28614b181083330029bc",17:"9893279b04f47bd26152",18:"88c77e5c427f3857353f",19:"9ae17b9bb0d0c4e219e8",20:"8c076231b9ee66f1e78b",21:"840184763dd15d4b1a0f",22:"606784525963725e8e2f",23:"35599e5dca14cfa2b9bb",24:"677c76813e32ac85f977",25:"c5025353a2d7e3fce606",26:"06baecf88fc9ac2eaad0",27:"09512d2798858a35443a",28:"459dc2ee57ec44feeb3e",29:"de830868545b93a0f855",30:"b5241c6f607bdd7f3f4d",31:"8e067540b71ed165177c",32:"4c5e27fe84116c9c072f",33:"e80c7b32bc6a3e2fbfc5",34:"29f3ee6a8797c5d7bc10",35:"84d918d2dd91a14f2098",36:"9e997a7b056f23aa5d7f",37:"f2132113ebfe84dce54b",38:"6f3457830a76f750ff20",39:"37c7cd3152173d2889cd",40:"00d66f661c34ce837197",41:"e9ba336b4382fca995fc"}[e]+".js";var o=setTimeout(b,12e4);function b(){t.onerror=t.onload=null,clearTimeout(o);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=b,r.appendChild(t),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -27,7 +27,7 @@
<script src="//web-1251519181.cos.ap-shanghai.myqcloud.com/components/footer.2.0.02.js"></script>
<script src="//web-1251519181.cos.ap-shanghai.myqcloud.com/components/store.2.0.00.js"></script>
<script src="//web-1251519181.cos.ap-shanghai.myqcloud.com/components/card.2.0.02.js"></script>
<script src="//web-1251519181.cos.ap-shanghai.myqcloud.com/components/selector.1.1.33.js"></script>
<script src="//web-1251519181.cos.ap-shanghai.myqcloud.com/components/selector.1.2.13.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/space.2.0.02.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js"></script>
</body>
......
......@@ -30,6 +30,7 @@ export default {
this.axios.get(`${this.baseUrl}/api-auth/get-login-user-info?requestProject=member`).then((res) => {
if (res.data.errorCode == 0) {
const uId = res.data.result && res.data.result.userId;
this.$store.commit('checkAdmin', res.data.result || {});
if (this.uniqueId === '') {
this.$store.commit('changeUniqueId', uId);
}
......
......@@ -22,6 +22,7 @@
<div class="navtitle">
{{ navpath[navpath.length - 1].name }}
<slot name="member"></slot>
<div v-html="layoutTips" class="layout--tips--wrap"></div>
</div>
</div>
</template>
......@@ -43,7 +44,12 @@ export default {
}
}
},
methods: {}
methods: {},
computed: {
layoutTips() {
return this.$store.state.layoutTips;
}
},
};
</script>
......@@ -94,4 +100,24 @@ export default {
font-weight: 700;
color: #303133;
}
.layout--tips--wrap {
margin-right: 24px;
}
</style>
<style lang="scss">
.layout--tips {
i {
margin-right: 4px;
color: #1890ff;
}
font-weight: normal;
margin-top: 24px;
padding: 8px 16px;
line-height: 1.5;
font-size: 13px;
border-radius: 4px;
color: #606266;
background-color: #f4f4f5;
}
</style>
\ No newline at end of file
import { fetch,fetchqs } from "./fetch";
import { fetch, fetchqs, fetchGet } from "./fetch";
export function doFetch(url,option) {
return fetch(url+'?requestProject=member',option);
}
......@@ -6,3 +6,8 @@ export function doFetch(url,option) {
export function doFetchqs(url,option) {
return fetchqs(url+'?requestProject=member',option);
}
export function doFetchGet(url, option) {
option.requestProject = 'member';
return fetchGet(url, option);
}
......@@ -20,3 +20,12 @@ export function fetchqs(url,options) {
})
}
export function fetchGet(url, options) {
return new Promise((resolve, reject) => {
axios.get(url, { params: options }).then(res => {
resolve(res);
}).catch(err => {
reject(err);
})
})
}
\ No newline at end of file
......@@ -76,6 +76,7 @@ const urlConfig = {
downloadErrorData: '/api-member/downloadErrorData', // 批量积分导入-日志详情-下载错误数据
getClerkList: '/api-member/query-clerk-by-storeId', // 获取导购选项
modifyClerk: '/api-member/member-load-update-clerk', // 更改专属导购
switchPos: '/api-member/member-change-wechat-member-pos', // 微信转pos
}
const defaultUrl = Object.assign({}, urlConfig);
......
......@@ -10,6 +10,7 @@ import {
} from "../../../static/js/checkStatus";
import { formatLongTime, paddingBorth } from "@/utils/utils";
import { mapState } from "vuex";
import UserInfoCard from '../wechatmembers/UserInfoCard.vue'
let showFields = [];
......@@ -287,10 +288,12 @@ export default {
}
},
activated() {
this.setLayoutTips();
// this.$store.commit("mutations-slide", false);
// this.$nextTick(_ => {
this.$store.commit("mutations-slide", true);
// });
this.getProcessList();
},
methods: {
// 父组件调用子组件方法,触发父组件事件
......@@ -1034,6 +1037,20 @@ export default {
this.phoneNameCard = event.target.value;
this.page.currentPage = 1;
this.getAjaxMembers();
},
setLayoutTips(flag = true) {
if (flag) {
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
POS会员:POS开卡的会员总数,不含POS转微信的会员;可查看服务门店下的会员,无服务门店的仅超管可见
</div>
`
)
} else {
this.$store.commit('mutations_layoutTips', '');
}
}
},
created() {
......@@ -1048,6 +1065,17 @@ export default {
? sessionStorage.getItem("poscurrentPage")
: 1;
this.getEnterpriseInfo();
this.$on('hook:deactivated', _ => {
this.setLayoutTips(false);
if(this.timer) clearInterval(this.timer);
})
this.$on('hook:beforeDestroy', _ => {
this.setLayoutTips(false);
if(this.timer) clearInterval(this.timer);
})
},
mounted() {
this.setLayoutTips();
},
beforeMount() {
this.getAjaxMembers();
......@@ -1055,6 +1083,7 @@ export default {
components: {
searchinput,
Navbar,
NavPath
NavPath,
UserInfoCard
}
};
......@@ -170,71 +170,12 @@
class="tablecontent-cell"
@click="linkDetail(scope.row.memberId)"
>
<el-popover
placement="top-start"
width="400"
height="180"
trigger="hover"
@show="showSingleInfo(scope.row.memberId)"
>
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img">
<img
width="100"
height="100"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
>
</div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span
:title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'"
class="channelicon fr"
:class="singleInfo.status == 0 ? 'gzhiconcanclegray' : singleInfo.status == 1 ? 'gzhicon' : 'gzhicongray'"
></span>
<span
:title="singleInfo.wxStatus == 0 ? '未使用小程序' : singleInfo.wxStatus == 1 ? '使用过小程序' : ''"
class="channelicon fr mr6"
:class="singleInfo.wxStatus == 0 ? 'xcxicongray' : singleInfo.wxStatus == 1 ? 'xcxicon' : ''"
></span>
</span>
<p class="lheigth0">
<span class="evl-right">{{ singleInfo.sex }}</span><span class="evl-right">{{ singleInfo.age }}</span><span :title="singleInfo.cardNo">{{ singleInfo.cardNo | filterCarNo }}</span></p>
<p class="lheigth0"><span>{{ singleInfo.mainStoreName }}</span></p>
<div class="singelinfo-cost">
<div class="singelinfo-costitem">
<p>{{ singleInfo.costFee }}</p>
<p>消费总额</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.costTimes }}</p>
<p>消费次数</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.lastCost }}</p>
<p>最近消费</p>
</div>
</div>
</div>
</div>
<div class="singelinfo-jl mBottom20 mTop20">
<a class="singelinfo-jlitem">消费记录 ({{ singleInfo.numOfSale }})</a>
<a class="singelinfo-jlitem">营销记录 ({{ singleInfo.numOfmarket }})</a>
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference" class="member-span">
<img
class="tablecontent-cellimg mr6"
width="60"
height="60"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
>
</span>
</el-popover>
<User-info-card
:scopeData="scope.row"
@showSingleInfo="showSingleInfo(scope.row.memberId)"
@linkDetail="linkDetail(scope.row.memberId)"
:singleInfo="singleInfo"
></User-info-card>
<span class="fix-block">{{ scope.row.memberName | formatMember }}</span>
</div>
<span v-else-if="item == 'grade'">{{ scope.row.gradeName }}</span>
......@@ -359,69 +300,12 @@
v-if="item == 'name'"
class="tablecontent-cell"
>
<el-popover
placement="top-start"
width="400"
height="180"
trigger="hover"
@show="showSingleInfo(scope.row.memberId)"
>
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img">
<img
width="100"
height="100"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
>
</div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span
:title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'"
class="channelicon fr"
:class="singleInfo.status == 0 ? 'gzhiconcanclegray' : singleInfo.status == 1 ? 'gzhicon' : 'gzhicongray'"
></span>
<span
:title="singleInfo.wxStatus == 0 ? '未使用小程序' : singleInfo.wxStatus == 1 ? '使用过小程序' : ''"
class="channelicon fr mr6"
:class="singleInfo.wxStatus == 0 ? 'xcxicongray' : singleInfo.wxStatus == 1 ? 'xcxicon' : ''"
></span>
</span>
<p class="lheigth0">
<span class="evl-right">{{ singleInfo.sex }}</span><span class="evl-right">{{ singleInfo.age }}</span><span :title="singleInfo.cardNo">{{ singleInfo.cardNo | filterCarNo }}</span></p>
<p class="lheigth0"><span>{{ singleInfo.mainStoreName }}</span></p>
<div class="singelinfo-cost">
<div class="singelinfo-costitem">
<p>{{ singleInfo.costFee }}</p>
<p>消费总额</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.costTimes }}</p>
<p>消费次数</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.lastCost }}</p>
<p>最近消费</p>
</div>
</div>
</div>
</div>
<div class="singelinfo-jl mBottom20 mTop20">
<a class="singelinfo-jlitem">消费记录 ({{ singleInfo.numOfSale }})</a>
<a class="singelinfo-jlitem">营销记录 ({{ singleInfo.numOfmarket }})</a>
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference" class="member-span"><img
class="tablecontent-cellimg mr6"
width="60"
height="60"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt="">
</span>
</el-popover>
<User-info-card
:scopeData="scope.row"
@showSingleInfo="showSingleInfo(scope.row.memberId)"
@linkDetail="linkDetail(scope.row.memberId)"
:singleInfo="singleInfo"
></User-info-card>
<span class="fix-block">{{ scope.row.memberName | formatMember }}</span>
</div>
<span v-else-if="item == 'grade'">{{ scope.row.gradeName }}</span>
......
<template>
<div id="UserInfoCard">
<el-popover
placement="top-start"
width="400"
height="180"
trigger="hover"
@show="showSingleInfo">
<div
class="pointer"
@click="linkDetail"
>
<div class="singelinfo">
<div class="singelinfo-img"><img
width="100"
height="100"
:src="scopeData.thirdImgUrl ? scopeData.thirdImgUrl : './static/img/default.png'"
alt=""
></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scopeData.memberName }}
<span
:title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'"
class="channelicon fr"
:class="singleInfo.status == 0 ? 'gzhiconcanclegray' : singleInfo.status == 1 ? 'gzhicon' : 'gzhicongray'"
></span>
<span
:title="singleInfo.wxStatus == 0 ? '未使用小程序' : singleInfo.wxStatus == 1 ? '使用过小程序' : ''"
class="channelicon fr mr6"
:class="singleInfo.wxStatus == 0 ? 'xcxicongray' : singleInfo.wxStatus == 1 ? 'xcxicon' : ''"
></span>
</span>
<p class="lheigth0">
<span class="evl-right">{{ singleInfo.sex}}</span>
<span class="evl-right">{{ singleInfo.age }}</span>
<span :title="singleInfo.cardNo">{{ singleInfo.cardNo | formatCardName }}</span></p>
<p class="lheigth0"><span>{{ singleInfo.mainStoreName }}</span></p>
<div class="singelinfo-cost">
<div class="singelinfo-costitem">
<p>{{ singleInfo.costFee }}</p>
<p>消费总额</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.costTimes }}</p>
<p>消费次数</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.lastCost }}</p>
<p>最近消费</p>
</div>
</div>
</div>
</div>
<div class="singelinfo-jl mBottom20 mTop20">
<a class="singelinfo-jlitem">消费记录 ({{ singleInfo.numOfSale }})</a>
<a class="singelinfo-jlitem">营销记录 ({{ singleInfo.numOfmarket }})</a>
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference" class="member-span"><img
class="tablecontent-cellimg mr6"
width="60"
height="60"
:src="scopeData.thirdImgUrl ? scopeData.thirdImgUrl : './static/img/default.png'"
alt=""
></span>
</el-popover>
</div>
</template>
<script>
export default {
name: 'UserInfoCard',
methods: {
showSingleInfo() {
this.$emit('showSingleInfo')
},
linkDetail() {
this.$emit('linkDetail')
}
},
props: {
scopeData: Object,
singleInfo: Object
}
}
</script>
<style lang="scss" scoped>
#UserInfoCard {
display: inline-block;
}
</style>
......@@ -10,6 +10,7 @@ import {
} from "../../../static/js/checkStatus";
import { formatLongTime, paddingBorth } from "@/utils/utils";
import { mapState } from "vuex";
import UserInfoCard from './UserInfoCard.vue'
let showFields = [];
......@@ -1034,6 +1035,20 @@ export default {
? sessionStorage.getItem("currentPage")
: 1;
},
setLayoutTips(flag = true) {
if (flag) {
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
微信总量:微信用户总数,包含微信会员(有开卡)和纯微信粉丝(未开卡);可查看服务门店下的用户,无服务门店的仅超管可见
</div>
`
)
} else {
this.$store.commit('mutations_layoutTips', '');
}
}
// 获取会员协管门店
// getSubStoreList() {
......@@ -1046,15 +1061,13 @@ export default {
// }
},
activated() {
this.setLayoutTips();
this.getProcessList();
this.$store.commit("mutations-slide", false);
this.$nextTick(_ => {
this.$store.commit("mutations-slide", true);
});
},
deactivated() {
if(this.timer) clearInterval(this.timer);
},
created() {
if (!this.storeImageUrl) {
this.$store.dispatch("getStorePicture");
......@@ -1064,10 +1077,23 @@ export default {
this.initialize();
this.getAjaxMembers();
this.getGradeList();
this.$on('hook:deactivated', _ => {
this.setLayoutTips(false);
if(this.timer) clearInterval(this.timer);
})
this.$on('hook:beforeDestroy', _ => {
this.setLayoutTips(false);
if(this.timer) clearInterval(this.timer);
})
this.setLayoutTips();
},
mounted() {
this.setLayoutTips();
},
components: {
searchinput,
Navbar,
NavPath
NavPath,
UserInfoCard,
}
};
......@@ -181,71 +181,12 @@
@click="linkDetail(scope.row.memberId)"
style="cursor: pointer;"
class="tablecontent-cell">
<el-popover
placement="top-start"
width="400"
height="180"
trigger="hover"
@show="showSingleInfo(scope.row.memberId)">
<div
class="pointer"
@click="linkDetail(scope.row.memberId)"
>
<div class="singelinfo">
<div class="singelinfo-img"><img
width="100"
height="100"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span
:title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'"
class="channelicon fr"
:class="singleInfo.status == 0 ? 'gzhiconcanclegray' : singleInfo.status == 1 ? 'gzhicon' : 'gzhicongray'"
></span>
<span
:title="singleInfo.wxStatus == 0 ? '未使用小程序' : singleInfo.wxStatus == 1 ? '使用过小程序' : ''"
class="channelicon fr mr6"
:class="singleInfo.wxStatus == 0 ? 'xcxicongray' : singleInfo.wxStatus == 1 ? 'xcxicon' : ''"
></span>
</span>
<p class="lheigth0">
<span class="evl-right">{{ singleInfo.sex}}</span>
<span class="evl-right">{{ singleInfo.age }}</span>
<span :title="singleInfo.cardNo">{{ singleInfo.cardNo | formatCardName }}</span></p>
<p class="lheigth0"><span>{{ singleInfo.mainStoreName }}</span></p>
<div class="singelinfo-cost">
<div class="singelinfo-costitem">
<p>{{ singleInfo.costFee }}</p>
<p>消费总额</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.costTimes }}</p>
<p>消费次数</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.lastCost }}</p>
<p>最近消费</p>
</div>
</div>
</div>
</div>
<div class="singelinfo-jl mBottom20 mTop20">
<a class="singelinfo-jlitem">消费记录 ({{ singleInfo.numOfSale }})</a>
<a class="singelinfo-jlitem">营销记录 ({{ singleInfo.numOfmarket }})</a>
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference" class="member-span"><img
class="tablecontent-cellimg mr6"
width="60"
height="60"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
></span>
</el-popover>
<User-info-card
:scopeData="scope.row"
@showSingleInfo="showSingleInfo(scope.row.memberId)"
@linkDetail="linkDetail(scope.row.memberId)"
:singleInfo="singleInfo"
></User-info-card>
<span class="fix-block">{{ scope.row.memberName | formatMember }}</span>
</div>
<span v-else-if="item == 'grade'">{{ scope.row.gradeName ? scope.row.gradeName : '-' }}</span>
......@@ -371,66 +312,12 @@
v-if="item == 'name'"
class="tablecontent-cell"
@click="linkDetail(scope.row.memberId)">
<el-popover
placement="top-start"
width="400"
height="180"
trigger="hover"
@show="showSingleInfo(scope.row.memberId)">
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img"><img
width="100"
height="100"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span
:title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'"
class="channelicon fr"
:class="singleInfo.status == 0 ? 'gzhiconcanclegray' : singleInfo.status == 1 ? 'gzhicon' : 'gzhicongray'"
></span>
<span
:title="singleInfo.wxStatus == 0 ? '未使用小程序' : singleInfo.wxStatus == 1 ? '使用过小程序' : ''"
class="channelicon fr mr6"
:class="singleInfo.wxStatus == 0 ? 'xcxicongray' : singleInfo.wxStatus == 1 ? 'xcxicon' : ''"
></span>
</span>
<p class="lheigth0">
<span class="evl-right">{{ singleInfo.sex }} </span><span class="evl-right">{{ singleInfo.age }} </span><span :title="singleInfo.cardNo">{{ singleInfo.cardNo | formatCardName }}</span></p>
<p class="lheigth0"><span>{{ singleInfo.mainStoreName }}</span></p>
<div class="singelinfo-cost">
<div class="singelinfo-costitem">
<p>{{ singleInfo.costFee }}</p>
<p>消费总额</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.costTimes }}</p>
<p>消费次数</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.lastCost }}</p>
<p>最近消费</p>
</div>
</div>
</div>
</div>
<div class="singelinfo-jl mBottom20 mTop20">
<a class="singelinfo-jlitem">消费记录 ({{ singleInfo.numOfSale }})</a>
<a class="singelinfo-jlitem">营销记录 ({{ singleInfo.numOfmarket }})</a>
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference" class="member-span"><img
class="tablecontent-cellimg mr6"
width="60"
height="60"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : ''"
alt=""
></span>
</el-popover>
<User-info-card
:scopeData="scope.row"
@showSingleInfo="showSingleInfo(scope.row.memberId)"
@linkDetail="linkDetail(scope.row.memberId)"
:singleInfo="singleInfo"
></User-info-card>
<span class="fix-block">{{ scope.row.memberName | formatMember }}</span>
</div>
<span v-else-if="item == 'grade'">{{ scope.row.gradeName }}</span>
......
import nav from "../../common/navbar/navbar.vue";
import { doFetch, doFetchqs } from "../../components/axios/api";
import { doFetch, doFetchqs, doFetchGet } from "../../components/axios/api";
import url from "../../components/axios/url";
import {
checkFalse,
......@@ -546,7 +546,7 @@ export default {
})
.catch(err => {
checkStatus(err);
this.dialogSubStoreVisible = false;
this.dilogBaseVisible = false;
this.$refs[formName].resetFields();
});
} else {
......@@ -884,6 +884,20 @@ export default {
.catch(err => {
checkStatus(err);
});
},
switchPOS() {
this.$confirm('请确认是否将选中微信会员转换为POS会员,转换后无法撤销,ERP数据结构以openId为主键的请勿用此功能', '微信转POS会员', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
doFetchGet(url.switchPos, { mid: this.memberId })
.then(res => {
const { errorCode, message, result } = res.data || {};
if(errorCode !== 0) return checkFalse(message);
if(result) this.$router.push({ path: '/posmemberDetail', query: { memberId: this.memberId } });
})
})
}
},
created() {
......
......@@ -111,7 +111,17 @@
<div class="wechat-partone">
<div class="wechat-cardinfowrap">
<div class="wechat-cardinfo">
<div class="wechat-cardtitle">会员卡信息</div>
<div class="wechat-cardtitle" style="display:flex;justify-content:space-between">
<span>会员卡信息</span>
<el-dropdown trigger="click" style="margin-right:15px" v-if="$store.state.isAdmin && memberInfo.cardNum != -1">
<span class="el-dropdown-link">
<span class="iconfont icon-gengduo" style="cursor:pointer"></span>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="switchPOS">微信转POS</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="wechat-cardcontent">
<div class="wechat-carditem">
<span>商户会员卡号</span><span class="ml15 w135 ell disinline-txt" :title="memberInfo.cardNum">{{ memberInfo.cardNum | fomatNumber }}</span>
......@@ -142,7 +152,7 @@
</div>
<div class="wechat-carditem lheigth40">
<span>开卡渠道</span><span class="ml15 w100 ell disinline-txt" :title="memberInfo.openCardChannel">{{ memberInfo.openCardChannel | fomatText }}</span>
<span>开卡门店</span><span class="ml15 w100 ell disinline-txt" :title="memberInfo.openStoreName">{{ memberInfo.openStoreName | fomatText }}</span>
</div>
<div class="wechat-carditem lheigth40">
<span>开卡方式</span><span class="ml15 color555">{{ memberInfo.openCardChannelDict | fomatText }}</span>
......
import nav from "../../common/navbar/navbar.vue";
import { doFetch, doFetchqs } from "../../components/axios/api";
import { doFetch, doFetchqs, doFetchGet } from "../../components/axios/api";
import url from "../../components/axios/url";
import {
checkFalse,
......@@ -547,7 +547,7 @@ export default {
})
.catch(err => {
checkStatus(err);
this.dialogSubStoreVisible = false;
this.dilogBaseVisible = false;
this.$refs[formName].resetFields();
});
} else {
......@@ -885,6 +885,20 @@ export default {
.catch(err => {
checkStatus(err);
});
},
switchPOS() {
this.$confirm('请确认是否将选中微信会员转换为POS会员,转换后无法撤销,ERP数据结构以openId为主键的请勿用此功能', '微信转POS会员', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
doFetchGet(url.switchPos, { mid: this.memberId })
.then(res => {
const { errorCode, message, result } = res.data || {};
if(errorCode !== 0) return checkFalse(message);
if(result) this.$router.push({ path: '/posmemberDetail', query: { memberId: this.memberId } });
})
})
}
},
created() {
......
......@@ -112,7 +112,17 @@
<div class="wechat-partone">
<div class="wechat-cardinfowrap">
<div class="wechat-cardinfo">
<div class="wechat-cardtitle">会员卡信息</div>
<div class="wechat-cardtitle" style="display:flex;justify-content:space-between">
<span>会员卡信息</span>
<el-dropdown trigger="click" style="margin-right:15px" v-if="$store.state.isAdmin && memberInfo.cardNum != -1">
<span class="el-dropdown-link">
<span class="iconfont icon-gengduo" style="cursor:pointer"></span>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="switchPOS">微信转POS</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="wechat-cardcontent">
<div class="wechat-carditem">
<span>商户会员卡号</span><span class="ml15 w135 ell disinline-txt" :title="memberInfo.cardNum">{{ memberInfo.cardNum | fomatNumber }}</span>
......@@ -143,7 +153,7 @@
</div>
<div class="wechat-carditem lheigth40">
<span>开卡渠道</span><span class="ml15 w100 ell disinline-txt" :title="memberInfo.openCardChannel">{{ memberInfo.openCardChannel | fomatText }}</span>
<span>开卡门店</span><span class="ml15 w100 ell disinline-txt" :title="memberInfo.openStoreName">{{ memberInfo.openStoreName | fomatText }}</span>
</div>
<div class="wechat-carditem lheigth40">
<span>开卡方式</span><span class="ml15 color555">{{ memberInfo.openCardChannelDict | fomatText }}</span>
......
......@@ -10,6 +10,7 @@ import {
} from "../../../static/js/checkStatus";
import { formatLongTime, paddingBorth } from "@/utils/utils";
import { mapState } from "vuex";
import UserInfoCard from './UserInfoCard.vue'
let showFields = [];
let fieldOptions = [];
......@@ -198,7 +199,7 @@ export default {
} else {
let self = this;
clearTimeout(self.timer);
this.timer = setTimeout(() => {
this.timer = setInterval(() => {
this.getProcessList();
}, 5000);
}
......@@ -958,7 +959,20 @@ export default {
}
})
},
setLayoutTips(flag = true) {
if (flag) {
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
微信会员:微信开卡会员总数,包含POS开卡转微信的会员总数;可查看服务门店下的会员,无服务门店的仅超管可见
</div>
`
)
} else {
this.$store.commit('mutations_layoutTips', '');
}
},
// premodefiySubStoreId
promiseAll() {
// http://gicdev.demogic.com/api-member/find-member-fields?requestProject=member
......@@ -981,8 +995,10 @@ export default {
activated() {
// this.$store.commit("mutations-slide", false);
// this.$nextTick(_ => {
this.setLayoutTips();
this.$store.commit("mutations-slide", true);
// });
this.getProcessList();
},
created() {
this.fieldList();
......@@ -994,10 +1010,20 @@ export default {
this.initialize();
this.getAjaxMembers();
this.getGradeList();
this.setLayoutTips();
this.$on('hook:deactivated', _ => {
this.setLayoutTips(false);
if(this.timer) clearInterval(this.timer);
})
this.$on('hook:beforeDestroy', _ => {
this.setLayoutTips(false);
if(this.timer) clearInterval(this.timer);
})
},
components: {
searchinput,
Navbar,
NavPath
NavPath,
UserInfoCard
}
};
......@@ -179,71 +179,12 @@
@click="linkDetail(scope.row.memberId)"
style="cursor: pointer;"
class="tablecontent-cell">
<el-popover
placement="top-start"
width="400"
height="180"
trigger="hover"
@show="showSingleInfo(scope.row.memberId)">
<div
class="pointer"
@click="linkDetail(scope.row.memberId)"
>
<div class="singelinfo">
<div class="singelinfo-img"><img
width="100"
height="100"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span
:title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'"
class="channelicon fr"
:class="singleInfo.status == 0 ? 'gzhiconcanclegray' : singleInfo.status == 1 ? 'gzhicon' : 'gzhicongray'"
></span>
<span
:title="singleInfo.wxStatus == 0 ? '未使用小程序' : singleInfo.wxStatus == 1 ? '使用过小程序' : ''"
class="channelicon fr mr6"
:class="singleInfo.wxStatus == 0 ? 'xcxicongray' : singleInfo.wxStatus == 1 ? 'xcxicon' : ''"
></span>
</span>
<p class="lheigth0">
<span class="evl-right">{{ singleInfo.sex}}</span>
<span class="evl-right">{{ singleInfo.age }}</span>
<span :title="singleInfo.cardNo">{{ singleInfo.cardNo | formatCardName }}</span></p>
<p class="lheigth0"><span>{{ singleInfo.mainStoreName }}</span></p>
<div class="singelinfo-cost">
<div class="singelinfo-costitem">
<p>{{ singleInfo.costFee }}</p>
<p>消费总额</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.costTimes }}</p>
<p>消费次数</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.lastCost }}</p>
<p>最近消费</p>
</div>
</div>
</div>
</div>
<div class="singelinfo-jl mBottom20 mTop20">
<a class="singelinfo-jlitem">消费记录 ({{ singleInfo.numOfSale }})</a>
<a class="singelinfo-jlitem">营销记录 ({{ singleInfo.numOfmarket }})</a>
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference" class="member-span"><img
class="tablecontent-cellimg mr6"
width="60"
height="60"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
></span>
</el-popover>
<User-info-card
:scopeData="scope.row"
@showSingleInfo="showSingleInfo(scope.row.memberId)"
@linkDetail="linkDetail(scope.row.memberId)"
:singleInfo="singleInfo"
></User-info-card>
<span class="fix-block">{{ scope.row.memberName | formatMember }}</span>
</div>
<span v-else-if="item == 'grade'">{{ scope.row.gradeName ? scope.row.gradeName : '-' }}</span>
......@@ -370,67 +311,12 @@
v-if="item == 'name'"
class="tablecontent-cell"
@click="linkDetail(scope.row.memberId)">
<el-popover
placement="top-start"
width="400"
height="180"
trigger="hover"
@show="showSingleInfo(scope.row.memberId)">
<div class="pointer">
<div class="singelinfo">
<div class="singelinfo-img"><img
width="100"
height="100"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : './static/img/default.png'"
alt=""
></div>
<div class="singelinfo-content pLeft10 pRight10">
<span class="lheigth0">{{ scope.row.memberName }}
<span
:title="singleInfo.status == 0 ? '取消关注公众号' : singleInfo.status == 1 ? '已关注公众号' : '未关注公众号'"
class="channelicon fr"
:class="singleInfo.status == 0 ? 'gzhiconcanclegray' : singleInfo.status == 1 ? 'gzhicon' : 'gzhicongray'"
></span>
<span
:title="singleInfo.wxStatus == 0 ? '未使用小程序' : singleInfo.wxStatus == 1 ? '使用过小程序' : ''"
class="channelicon fr mr6"
:class="singleInfo.wxStatus == 0 ? 'xcxicongray' : singleInfo.wxStatus == 1 ? 'xcxicon' : ''"
></span>
</span>
<p class="lheigth0">
<span class="evl-right">{{ singleInfo.sex }} </span><span class="evl-right">{{ singleInfo.age }} </span><span :title="singleInfo.cardNo">{{ singleInfo.cardNo | formatCardName }}</span></p>
<p class="lheigth0"><span>{{ singleInfo.mainStoreName }}</span></p>
<div class="singelinfo-cost">
<div class="singelinfo-costitem">
<!-- 调整 跑数据的时候取错了 这里调换一下 -->
<p>{{ singleInfo.costFee }}</p>
<p>消费总额</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.costTimes }}</p>
<p>消费次数</p>
</div>
<div class="singelinfo-costitem">
<p>{{ singleInfo.lastCost }}</p>
<p>最近消费</p>
</div>
</div>
</div>
</div>
<div class="singelinfo-jl mBottom20 mTop20">
<a class="singelinfo-jlitem">消费记录 ({{ singleInfo.numOfSale }})</a>
<a class="singelinfo-jlitem">营销记录 ({{ singleInfo.numOfmarket }})</a>
<a class="singelinfo-jlitem">卡券记录 ({{ singleInfo.couponCount }})</a>
</div>
</div>
<span slot="reference" class="member-span"><img
class="tablecontent-cellimg mr6"
width="60"
height="60"
:src="scope.row.thirdImgUrl ? scope.row.thirdImgUrl : ''"
alt=""
></span>
</el-popover>
<User-info-card
:scopeData="scope.row"
@showSingleInfo="showSingleInfo(scope.row.memberId)"
@linkDetail="linkDetail(scope.row.memberId)"
:singleInfo="singleInfo"
></User-info-card>
<span class="fix-block">{{ scope.row.memberName | formatMember }}</span>
</div>
<span v-else-if="item == 'grade'">{{ scope.row.gradeName }}</span>
......
......@@ -12,7 +12,9 @@ export default new Vuex.Store({
slideShow: false,
forzenList: false,
storeImageUrl: "",
uniqueId: ''
uniqueId: '',
isAdmin: false,
layoutTips: ''
},
mutations: {
[types.TITLE]: (state, data) => {
......@@ -32,7 +34,14 @@ export default new Vuex.Store({
},
['changeUniqueId'](state, id) {
state.uniqueId = id || '';
}
},
checkAdmin(state, data) {
const { superAdmin } = data;
state.isAdmin = superAdmin === 1 ? true : false;
},
mutations_layoutTips(state, val) {
state.layoutTips = val;
},
},
actions: {
getStorePicture({ commit }) {
......
......@@ -26,6 +26,9 @@ export function checkStatus(err) {
}else if(err.response.status == 500){
Message.error('服务器错误500');
return false;
} else {
Message.error(err.response.message);
return false;
}
}else {
Message.error(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment