Commit 1c0ef516 by caoyanzhi

update: 接口调整

parent 66cbfcb4
......@@ -18,7 +18,7 @@
<el-checkbox v-model="myCustomData.searchFlag" :true-label="1" :false-label="0">允许全品牌搜索</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox>离职继承</el-checkbox>
<el-checkbox v-model="myCustomData.handoverFlag" :true-label="1" :false-label="0">离职继承</el-checkbox>
<div class="set-tip-text">保存勾选项后,店长可以选择离职的导购名下的好友会员,选择离职继承</div>
</el-form-item>
</el-form>
......@@ -45,7 +45,8 @@ export default {
return {
wxEnterpriseRelatedId: JSON.parse(sessionStorage.getItem('userInfos')).wxEnterpriseId,
myCustomData: {
searchFlag: 0
searchFlag: 0,
handoverFlag: 0
},
loading: false
};
......@@ -61,6 +62,7 @@ export default {
// enterpriseId: JSON.parse(localStorage.getItem('userInfos')).enterpriseId
};
para.searchFlag = this.myCustomData.searchFlag;
para.handoverFlag = this.myCustomData.handoverFlag;
postRequest('/haoban-app-customer-web/customer/save-customer-setting', para).then(res => {
let resData = res.data;
......@@ -84,6 +86,7 @@ export default {
if (errorCode == 1) {
if (result) {
this.myCustomData.searchFlag = result.searchFlag;
this.myCustomData.handoverFlag = result.handoverFlag;
}
return;
}
......
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