|
|
@@ -156,18 +156,21 @@
|
|
|
userId: this.vuex_userId,
|
|
|
}
|
|
|
const res = await this.$api.activity.getGiftList(data);
|
|
|
- console.log("config.baseURL",config.baseURL)
|
|
|
- if(config.baseURL === 'http://vote-back.guosen-fumao.cn/api'){
|
|
|
- this.gitfs = [];
|
|
|
- //测试环境,过滤掉现金道具
|
|
|
- for(let i = 0; i < res.data.data.length; i++){
|
|
|
- if(res.data.data[i].payType === 'POINT_EXCHANGE_GOODS'){
|
|
|
- this.gitfs.push(res.data.data[i])
|
|
|
+ if(this.$isNotEmpty(res.data.data)){
|
|
|
+ if(config.baseURL === 'http://vote-back.guosen-fumao.cn/api'){
|
|
|
+ this.gitfs = [];
|
|
|
+ //测试环境,过滤掉现金道具
|
|
|
+ for(let i = 0; i < res.data.data.length; i++){
|
|
|
+ if(res.data.data[i].payType === 'POINT_EXCHANGE_GOODS'){
|
|
|
+ this.gitfs.push(res.data.data[i])
|
|
|
+ }
|
|
|
}
|
|
|
+ }else{
|
|
|
+ //正式环境,返回所有道具(包括现金道具)
|
|
|
+ this.gitfs = res.data.data;
|
|
|
}
|
|
|
}else{
|
|
|
- //正式环境,返回所有道具(包括现金道具)
|
|
|
- this.gitfs = res.data.data;
|
|
|
+ this.$dialog.showModal('暂无助力道具',false,this.vuex_theme.bgColor)
|
|
|
}
|
|
|
},
|
|
|
hideVote() {
|