优化注册渠道码
This commit is contained in:
@@ -33,7 +33,7 @@ export function returnShareUrl() {
|
||||
return 'https://dj-h5.hnsiyao.cn'
|
||||
}
|
||||
if (env === 'php_production') {
|
||||
return 'https://playlet.test.h5.sxczgkj.com/'
|
||||
return 'https://playlet.test.h5.sxczgkj.com'
|
||||
}
|
||||
if (env === 'local') {
|
||||
return AppConfig[env]
|
||||
|
||||
@@ -78,16 +78,20 @@ let data = reactive({
|
||||
});
|
||||
|
||||
onLoad(async (options) => {
|
||||
if (uni.getStorageSync('qdCodeion')) {
|
||||
data.qdCodeion = uni.getStorageSync('qdCodeion');
|
||||
let localQdCodeion = uni.getStorageSync('qdCodeion');
|
||||
if (localQdCodeion && localQdCodeion != 'null') {
|
||||
data.qdCodeion = localQdCodeion;
|
||||
}
|
||||
if (options.qdCode) {
|
||||
if (options.qdCode && options.qdCode != 'null') {
|
||||
data.qdCodeion = options.qdCode;
|
||||
}
|
||||
if (options.invitation) {
|
||||
data.invitation = options.invitation;
|
||||
}
|
||||
|
||||
console.log('localQdCodeion===', localQdCodeion);
|
||||
console.log('options.qdCode===', typeof options.qdCode);
|
||||
|
||||
let res = await commonType(3);
|
||||
data.isregisterCode = res.value;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user