no message

cyl/job_im
jscyl13849007907 2 weeks ago
parent e2fdc32a6c
commit 9db7b16627

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

@ -15,7 +15,7 @@ let data = {
// coziID: '7491244881596809243', // coziID: '7491244881596809243',
baseUrl: "https://daotian.matripe.com.cn",// 网络请求的基础路径 baseUrl: "https://daotian.matripe.com.cn",// 网络请求的基础路径
// baseUrl: "http://192.168.3.83:8001", // 网络请求的基础路径 // baseUrl: "http://192.168.3.83:8001", // 网络请求的基础路径
// baseUrl: "http://192.168.3.4:8001",// tom3 baseUrl: "http://192.168.1.3:8001",// tom3
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
version: uni.getAccountInfoSync().miniProgram.version || "1.0.0", version: uni.getAccountInfoSync().miniProgram.version || "1.0.0",
mapKey: 'LHQBZ-MLTEG-BO4QK-QJ2TH-NLGZJ-7GFAS', mapKey: 'LHQBZ-MLTEG-BO4QK-QJ2TH-NLGZJ-7GFAS',

Loading…
Cancel
Save