|
|
@ -61,18 +61,18 @@ |
|
|
|
console.log(cid != undefined, cid != "undefined", cid) |
|
|
|
console.log("cid>>>>>>>>>>", cid) |
|
|
|
if (cid != null || cid != "null") { |
|
|
|
that.pushCid(cid); |
|
|
|
uni.setStorageSync('cid', cid); |
|
|
|
clearInterval(t1); |
|
|
|
that.pushCid(); |
|
|
|
return |
|
|
|
} |
|
|
|
}, 130); |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
async pushCid() { |
|
|
|
console.log('pushCid1111111>>>>>') |
|
|
|
async pushCid(val) { |
|
|
|
console.log('pushCid1111111>>>>>', val) |
|
|
|
let params = { |
|
|
|
cid: uni.getStorageSync('cid') |
|
|
|
cid: val |
|
|
|
}; |
|
|
|
console.log("pushCid>>>>", params); |
|
|
|
let data = await Api.apiCall('post', Api.index.pushCid, params); |
|
|
@ -176,7 +176,7 @@ |
|
|
|
console.log('hasLogin>>>', index.state.hasLogin) |
|
|
|
} |
|
|
|
|
|
|
|
if(userInfo){ |
|
|
|
if (userInfo) { |
|
|
|
index.state.hasVip = userInfo.memberLevelId == 1 ? false : true; |
|
|
|
} |
|
|
|
|
|
|
|