3 Commits
wwz ... test

Author SHA1 Message Date
GaoHao
5ac2d1e173 Merge branch 'gaohao' of https://e.coding.net/g-cphe0354/duanju/video_app into test 2025-01-15 09:32:04 +08:00
GaoHao
c296e8b410 首页公告优化 2025-01-15 09:31:16 +08:00
GaoHao
aae9c397f9 更新优化 2025-01-13 16:10:50 +08:00
4 changed files with 46 additions and 46 deletions

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

@@ -439,14 +439,17 @@
this.ruleInit() this.ruleInit()
return return
} }
httpsRequest.getT("app/announcement", {type: 0}).then(res => { if(!uni.getStorageSync('ruleShow')){
if (res.code == 0&&res.data.length > 0) { httpsRequest.getT("app/announcement", {type: 0}).then(res => {
this.ruleShow = true if (res.code == 0&&res.data.length > 0) {
this.ruleList = res.data this.ruleShow = true
$cache_rule.set('ruleIndex',this.ruleList) this.ruleList = res.data
this.ruleInit() $cache_rule.set('ruleIndex',this.ruleList)
} this.ruleInit()
}); }
});
}
}, },
onReachBottom() { onReachBottom() {
if (this.page < this.pages) { if (this.page < this.pages) {
@@ -486,6 +489,8 @@
this.ruleIndex++ this.ruleIndex++
if( this.ruleIndex >= this.ruleList.length) { if( this.ruleIndex >= this.ruleList.length) {
this.ruleIndex = 0 this.ruleIndex = 0
uni.setStorageSync('ruleShow', true)
return return
} }
this.ruleShow = false this.ruleShow = false

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() {