公告优化更新
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// 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/"; //后台服务域名
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
// const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
||||||
const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
|
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
|
||||||
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名
|
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"name" : "斯耀短剧",
|
"name" : "斯耀短剧",
|
||||||
"appid" : "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.1.9",
|
"versionName" : "1.2.0",
|
||||||
"versionCode" : 119,
|
"versionCode" : 120,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
ruleShow: true,
|
ruleShow: false,
|
||||||
rule_title: "",
|
rule_title: "",
|
||||||
rule_content: "",
|
rule_content: "",
|
||||||
money: '',
|
money: '',
|
||||||
@@ -186,10 +186,11 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$Request.getT("app/announcement", {type: 1}).then(res => {
|
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
|
this.ruleList = res.data
|
||||||
$cache_config.set('ruleCash',this.ruleList)
|
$cache_config.set('ruleCash',this.ruleList)
|
||||||
this.ruleInit()
|
this.ruleInit()
|
||||||
|
this.ruleShow = true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -247,7 +248,13 @@
|
|||||||
* 规则弹窗打开
|
* 规则弹窗打开
|
||||||
*/
|
*/
|
||||||
showRule(){
|
showRule(){
|
||||||
console.log(this.ruleIndex)
|
if( this.ruleList.length <= 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "暂未配置规则",
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.ruleInit()
|
this.ruleInit()
|
||||||
this.ruleShow = true
|
this.ruleShow = true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -440,7 +440,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
httpsRequest.getT("app/announcement", {type: 0}).then(res => {
|
httpsRequest.getT("app/announcement", {type: 0}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0&&res.data.length > 0) {
|
||||||
this.ruleShow = true
|
this.ruleShow = true
|
||||||
this.ruleList = res.data
|
this.ruleList = res.data
|
||||||
$cache_config.set('ruleIndex',this.ruleList)
|
$cache_config.set('ruleIndex',this.ruleList)
|
||||||
|
|||||||
Reference in New Issue
Block a user