下载地址复制修改

This commit is contained in:
GaoHao
2024-12-06 18:18:01 +08:00
parent ab815d703d
commit f55c9a9ee1
5 changed files with 55 additions and 234 deletions

View File

@@ -43,12 +43,7 @@
this.show_share = false;
},
taobaoLogin() {
uni.setClipboardData({
data: this.relationId,
success: r => {
// this.$queue.showToast('邀请码复制成功');
}
});
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) {
this.$Request.get('/app/common/type/49').then(res => {
@@ -69,6 +64,7 @@
} else {
this.show_share = true;
}
} else {
// #ifndef H5
plus.runtime.openURL(res.data.value, function(res) {
@@ -76,6 +72,12 @@
});
// #endif
// #ifdef H5
uni.setClipboardData({
data: res.data.value,
success: r => {
// this.$queue.showToast('邀请码复制成功');
}
});
window.location.href = res.data.value;
// #endif
}
@@ -108,6 +110,12 @@
});
// #endif
// #ifdef H5
uni.setClipboardData({
data: res.data.value,
success: r => {
// this.$queue.showToast('邀请码复制成功');
}
});
window.location.href = res.data.value;
// #endif
}