更新优化

This commit is contained in:
GaoHao
2025-01-13 16:10:50 +08:00
parent 08a4983e92
commit aae9c397f9
4 changed files with 39 additions and 44 deletions

View File

@@ -1,11 +1,11 @@
// APP // APP
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; // // const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名 // const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名 // const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; // const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名 const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名 const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
// h5 // h5
// const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; // // const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; //

View File

@@ -9,6 +9,7 @@
</template> </template>
<script> <script>
import { $cache_config } from '@/store/cashe.js'
export default { export default {
data() { data() {
return { return {
@@ -38,6 +39,18 @@
// this.content = res.data.content; // this.content = res.data.content;
// } // }
// }); // });
console.log($cache_config.agreement)
uni.request({
url: $cache_config.agreement,
method: 'GET',
success: (res) => {
console.log(res.data[154])
},
fail: (err) => {
console.error(err)
}
})
this.$u.get('app/common/type/154').then(res => { this.$u.get('app/common/type/154').then(res => {
this.content = res.data.value this.content = res.data.value

View File

@@ -99,44 +99,24 @@
this.$Request.get('/app/common/type/50').then(res => { this.$Request.get('/app/common/type/50').then(res => {
if (res.code === 0) { if (res.code === 0) {
if (res.data && res.data.value) { if (res.data && res.data.value) {
if (this.openShares) { // #ifndef H5
let ua = navigator.userAgent.toLowerCase(); plus.runtime.openURL(res.data.value, function(res) {
if (ua.indexOf('micromessenger') === -1) {
this.show_share = false; });
// #ifndef H5 // #endif
plus.runtime.openURL(res.data.value, function(res) { // #ifdef H5
uni.setClipboardData({
}); data: res.data.value,
// #endif success: r => {
// #ifdef H5 // this.$queue.showToast('邀请码复制成功');
window.location.href = res.data.value;
// uni.switchTab({
// url: 'pages/index/index'
// })
// #endif
} else {
this.show_share = true;
} }
} else { });
// #ifndef H5
plus.runtime.openURL(res.data.value, function(res) { uni.switchTab({
url: '/pages/index/index'
}); })
// #endif // window.location.href = res.data.value;
// #ifdef H5 // #endif
uni.setClipboardData({
data: res.data.value,
success: r => {
// this.$queue.showToast('邀请码复制成功');
}
});
uni.switchTab({
url: '/pages/index/index'
})
// window.location.href = res.data.value;
// #endif
}
} }
} }
}); });

View File

@@ -46,7 +46,9 @@ const $map = {
860: 'dyadUnitId', 860: 'dyadUnitId',
881: '', 881: '',
109: '', 109: '',
922: 'withdrawNum' 922: 'withdrawNum',
155: 'privacy',
154: 'agreement'
} }
function callback() { function callback() {