公告优化更新

This commit is contained in:
GaoHao 2025-01-09 17:21:54 +08:00
parent f53512d2a3
commit 92e53ae8b2
4 changed files with 19 additions and 12 deletions

View File

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

View File

@ -2,8 +2,8 @@
"name" : "斯耀短剧",
"appid" : "__UNI__E0B05B1",
"description" : "",
"versionName" : "1.1.9",
"versionCode" : 119,
"versionName" : "1.2.0",
"versionCode" : 120,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -131,7 +131,7 @@
export default {
data() {
return {
ruleShow: true,
ruleShow: false,
rule_title: "",
rule_content: "",
money: '',
@ -186,10 +186,11 @@
return
}
this.$Request.getT("app/announcement", {type: 1}).then(res => {
if (res.code == 0) {
if (res.code == 0 && res.data.length > 0) {
this.ruleList = res.data
$cache_config.set('ruleCash',this.ruleList)
this.ruleInit()
this.ruleShow = true
}
});
},
@ -247,7 +248,13 @@
* 规则弹窗打开
*/
showRule(){
console.log(this.ruleIndex)
if( this.ruleList.length <= 0) {
uni.showToast({
title: "暂未配置规则",
icon: 'none'
})
return
}
this.ruleInit()
this.ruleShow = true
},

View File

@ -440,7 +440,7 @@
return
}
httpsRequest.getT("app/announcement", {type: 0}).then(res => {
if (res.code == 0) {
if (res.code == 0&&res.data.length > 0) {
this.ruleShow = true
this.ruleList = res.data
$cache_config.set('ruleIndex',this.ruleList)