|
|
|
|
@ -32,8 +32,8 @@
|
|
|
|
|
<u-switch @change="handleSwitch($event, 'defaultCity')"
|
|
|
|
|
cusSize='24'
|
|
|
|
|
cusTop='2'
|
|
|
|
|
:cusLeft='defaultCitySwitch ? 3.5 : 2.2'
|
|
|
|
|
v-model="defaultCitySwitch"
|
|
|
|
|
:cusLeft='fdb_Homecity ? 3.5 : 2.2'
|
|
|
|
|
v-model="fdb_Homecity"
|
|
|
|
|
activeColor="#027aff"
|
|
|
|
|
inactiveColor="#e5e5e5"
|
|
|
|
|
></u-switch>
|
|
|
|
|
@ -52,8 +52,8 @@
|
|
|
|
|
<u-switch @change="handleSwitch($event, 'recommend')"
|
|
|
|
|
cusSize='24'
|
|
|
|
|
cusTop='2'
|
|
|
|
|
:cusLeft='recommendSwitch ? 3.5 : 2.2'
|
|
|
|
|
v-model="recommendSwitch"
|
|
|
|
|
:cusLeft='fdb_HomeTab ? 3.5 : 2.2'
|
|
|
|
|
v-model="fdb_HomeTab"
|
|
|
|
|
activeColor="#027aff"
|
|
|
|
|
inactiveColor="#e5e5e5"
|
|
|
|
|
></u-switch>
|
|
|
|
|
@ -94,15 +94,26 @@ export default {
|
|
|
|
|
return this.G.shareFun();
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
let that = this;
|
|
|
|
|
this.applySwitch = this.appInfo.applyNumDisplay == 1 ? true : false;
|
|
|
|
|
this.getShareInfo();
|
|
|
|
|
// this.getShareInfo();
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
let that = this;
|
|
|
|
|
that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
|
|
|
|
|
uni.setStorageSync("agencyInfo", aRes.agency);
|
|
|
|
|
let _data = aRes.agency;
|
|
|
|
|
that.fdb_Homecity = _data.fdbHomeCity == 1 ? true : false;
|
|
|
|
|
that.fdb_HomeTab = _data.fdbHomeTab == 1 ? true : false;
|
|
|
|
|
console.log("获取团队信息:", aRes, that.fdb_Homecity, that.fdb_HomeTab);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
applySwitch: false,
|
|
|
|
|
jobSwitch: false,
|
|
|
|
|
defaultCitySwitch: false,
|
|
|
|
|
recommendSwitch: false,
|
|
|
|
|
fdb_Homecity: false,
|
|
|
|
|
fdb_HomeTab: false,
|
|
|
|
|
appInfo: uni.getStorageSync("miniApp-info"),
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
@ -129,7 +140,15 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} if (type == "defaultCity") {
|
|
|
|
|
this.G.Put(this.api.merchantManagement_updateField, { fieldName: "fdbHomeCity", fieldValue: e ? 1 : 0 }, (res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
resolve();
|
|
|
|
|
});
|
|
|
|
|
}if (type == "recommend") {
|
|
|
|
|
this.G.Put(this.api.merchantManagement_updateField, { fieldName: "fdbHomeTab", fieldValue: e ? 1 : 0 }, (res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
resolve();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.G.Put(this.api.merchantManagement_updateField, { fieldName: "applyNumDisplay", fieldValue: e ? 1 : 0 }, (res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
|