Kaynağa Gözat

国庆签到

sunlupeng 1 yıl önce
ebeveyn
işleme
fc4aac8123

+ 12 - 2
src/components/AppSidebar.vue

@@ -28,7 +28,7 @@
                 </el-radio-group>
                 <ul class="hot-item-body">
                     <div class="skeleton">
-                        <li v-for="(item,index) in goodsList" :key="index" class="hot-item">
+                        <li v-for="(item,index) in goodsList" :key="index" class="hot-item" style="cursor: pointer;" @click="handleClickExchange(item.skuId)">
                             <!-- <a href="/home/pointsMall"> -->
                                 <img style="width: 150px;height: 150px;" :src="item.imgUrl" alt="">
                             <!-- </a> -->
@@ -79,7 +79,7 @@
                 </el-radio-group>
                 <ul class="hot-item-body">
                     <div class="skeleton">
-                        <li v-for="(item,index) in goodsList" :key="index" class="hot-item">
+                        <li v-for="(item,index) in goodsList" :key="index" class="hot-item" style="cursor: pointer;" @click="handleClickExchange(item.skuId)">
                             <!-- <a href="/home/pointsMall"> -->
                                 <img style="width: 150px;height: 150px;" :src="item.imgUrl" alt="">
                             <!-- </a> -->
@@ -190,6 +190,16 @@ export default {
         };
     },
     methods: {
+        handleClickExchange(id) {  
+            this.$router.push({
+                path: '/home/pointsMall/redeem',
+                query: {
+                    id: id,
+                    name: 'goodsNotice',
+                    type:36,
+                }
+            });
+        },
         tabChange(val){
            this.getGoodsInfo(val);
         },

+ 4 - 0
src/router/index.js

@@ -82,6 +82,10 @@ const routes = [
         path: '/home/festiveEvents/game',
         component: () => import('@/views/HomeView/Game.vue')
       },
+      {
+        path: '/home/festiveEvents/guoQingQianDao',
+        component: () => import('@/views/HomeView/AnswerGame/GuoQingQianDao.vue')
+      },
       {
         path: '/home/festiveEvents/zhongQiuQianDao',
         component: () => import('@/views/HomeView/AnswerGame/ZhongQiuQianDao.vue')

+ 3 - 3
src/utils/request.js

@@ -2,11 +2,11 @@ import axios from 'axios'
 import { Message, MessageBox } from 'element-ui'
 import { getToken } from '@/utils/auth'
 
-let prodBaseURL = 'https://xiaoyou.dgtis.com/admin';//正式地址
+// let prodBaseURL = 'https://xiaoyou.dgtis.com/admin';//正式地址
 
-// let prodBaseURL = 'https://malltest.dgtis.com/admin';//阿里云地址
+let prodBaseURL = 'https://malltest.dgtis.com/admin';//阿里云地址
 
-let devBaseURL = 'https://xiaoyou.dgtis.com/admin';//测试地址
+let devBaseURL = 'https://malltest.dgtis.com/admin';//测试地址
 
 // create an axios instance
 const service = axios.create({

+ 7 - 7
src/views/HomeView/AnswerGame/GuoQingQianDao.vue

@@ -5,9 +5,9 @@
                 <div class="gameBox">
                     <div class="home">
                         <div :class="{ 'dim': isDim }">
-                            <img class="rules" src="@/assets/image/answerGame/zhongqiu/rules.png" alt="互动规则" @click="clickRuleWrapper">
-                            <img class="answer" src="@/assets/image/answerGame/zhongqiu/answer.png" alt="答题按钮" @click="clickAnswer">
-                            <img class="exit" src="@/assets/image/answerGame/zhongqiu/exit.png" alt="退出互动" @click="getOut">
+                            <!-- <img class="rules" src="@/assets/image/answerGame/guoqing/rules.png" alt="互动规则" @click="clickRuleWrapper"> -->
+                            <img class="answer" src="@/assets/image/answerGame/guoqing/answer.png" alt="答题按钮" @click="clickAnswer">
+                            <img class="exit" src="@/assets/image/answerGame/guoqing/exit.png" alt="退出互动" @click="getOut">
                         </div>
                         
                     </div>
@@ -225,7 +225,7 @@ export default{
 .gameBox .home{
     position: relative;
     z-index: 10;
-    background: url(@/assets/image/answerGame/zhongqiu/homeBg.jpg) no-repeat;
+    background: url(@/assets/image/answerGame/guoqing/homeBg.jpg) no-repeat;
     background-size: 100% 100%;
     width: 375px;
     height: 667px;
@@ -250,7 +250,7 @@ export default{
 .home .answer{
     cursor: pointer;
     position: absolute;
-    width: 200px;
+    width: 150px;
     bottom: 22%;
     left: 0;
     right: 0;
@@ -259,7 +259,7 @@ export default{
 .home .exit{
     cursor: pointer;
     position: absolute;
-    width: 200px;
+    width: 150px;
     bottom: 12%;
     left: 0;
     right: 0;
@@ -303,7 +303,7 @@ export default{
   .confirmWrapper{
     cursor: pointer;
     position: absolute;
-    background: url(@/assets/image/answerGame/zhongqiu/finish.png) no-repeat;
+    background: url(@/assets/image/answerGame/guoqing/finish.png) no-repeat;
     background-size: 100% 100%;
     width: 271px;
     height: 326px;

+ 10 - 0
src/views/HomeView/FestiveEvents.vue

@@ -78,6 +78,16 @@ export default {
             console.log(val);
             //节日游戏
             if(val.type=='1'){
+                 //国庆节签到
+                 if(val.actId==38){
+                    this.$router.push({
+                        path: '/home/festiveEvents/guoQingQianDao',
+                        query: {
+                            actId:val.actId
+                        }
+                    });
+                    return;
+                }
                 //中秋节签到
                 if(val.actId==33){
                     this.$router.push({

+ 10 - 5
src/views/HomeView/RedeemView.vue

@@ -537,6 +537,7 @@ export default {
             disabled: true,
             skuCount: 1,
             total: undefined,
+            skuId:this.$route.query.id,
             data: {},
             imgUrls: [],
             dialogFormOrderInfo: false,
@@ -612,13 +613,17 @@ export default {
                 this.money = 0
             }
             console.log(this.money);
-        }
+        },
+        '$route' (to, from) {
+            // 路由发生变化页面刷新
+            this.$router.go(0);
+		}
     },
     created() {
-        const skuId = this.$route.query.id;
-        this.dataForm.skuId = skuId;
-        this.getInfo(skuId);
-        this.getCouponList(skuId);
+        // this.skuId = this.$route.query.id;
+        this.dataForm.skuId = this.skuId;
+        this.getInfo(this.skuId);
+        this.getCouponList(this.skuId);
         this.getNotice('goodsNotice');
     },
     methods: {