|
@@ -50,6 +50,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import pointAuth from '../../components/alert/pointAuth.vue'
|
|
import pointAuth from '../../components/alert/pointAuth.vue'
|
|
|
|
|
+ import config from "@/assets/http/config.js"
|
|
|
export default {
|
|
export default {
|
|
|
name: "votePopup",
|
|
name: "votePopup",
|
|
|
components: {
|
|
components: {
|
|
@@ -155,7 +156,19 @@
|
|
|
userId: this.vuex_userId,
|
|
userId: this.vuex_userId,
|
|
|
}
|
|
}
|
|
|
const res = await this.$api.activity.getGiftList(data);
|
|
const res = await this.$api.activity.getGiftList(data);
|
|
|
- this.gitfs = res.data.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])
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ //正式环境,返回所有道具(包括现金道具)
|
|
|
|
|
+ this.gitfs = res.data.data;
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
hideVote() {
|
|
hideVote() {
|
|
|
this.show = false;
|
|
this.show = false;
|