yuantianjiao 6 vuotta sitten
vanhempi
commit
e06df47c87

+ 1
- 1
src/pages/user/placeOrderDetail/index.vue Näytä tiedosto

@@ -223,7 +223,7 @@ export default {
223 223
           //   window.history.go(-2)
224 224
           // })
225 225
         }).catch(() => {
226
-          this.ajaxOff = true
226
+          this.ajaxoff = true
227 227
         })
228 228
       }
229 229
     },

+ 1
- 0
src/pages/user/placeOrderForCourse/index.vue Näytä tiedosto

@@ -236,6 +236,7 @@ export default {
236 236
         }
237 237
         item.select = true
238 238
       } else {
239
+        this.showCoupon = ''
239 240
         item.select = false
240 241
       }
241 242
     },

+ 19
- 4
src/pages/user/rush/index.vue Näytä tiedosto

@@ -49,9 +49,8 @@
49 49
 <script>
50 50
 import logo from '../../../common/icon/qrCode.jpg'
51 51
 import { mapState, createNamespacedHelpers } from 'vuex'
52
-const { mapActions: actions } = createNamespacedHelpers('app')
53 52
 const { mapState: mapRushState, mapActions: mapRushActions } = createNamespacedHelpers('rush')
54
-const { mapState: mapUserState } = createNamespacedHelpers('userCenter')
53
+const { mapState: mapUserState, mapActions: mapUserActions } = createNamespacedHelpers('userCenter')
55 54
 export default {
56 55
   data () {
57 56
     return {
@@ -71,10 +70,19 @@ export default {
71 70
     }
72 71
   },
73 72
   created () {
74
-    console.log(1)
75
-    console.log(this.userInfo)
73
+    if (location.search && this.toolClass.UrlSearch(location.search).code) {
74
+      this.code = this.toolClass.UrlSearch(location.search).code
75
+    } else {
76
+      this.code = null
77
+    }
78
+    this.getUserInfo({ org: this.org, code: this.code }).then(() => {
79
+      console.log(this.userInfo)
80
+    })
76 81
     this.AddNewFlashBuyCustomer({ flashBuyId: this.$route.query.flashBuyId }).then(() => {
77 82
       this.getRush({ flashBuyId: this.$route.query.flashBuyId }).then((res) => {
83
+        if (!res.flashBuy) {
84
+          this.$toast('活动已不存在')
85
+        }
78 86
         this.used = res.flashCustomer.IsAttend === 1 ? false : true
79 87
         this.newCustomer = res.flashCustomer.IsNew === 1 ? true : false
80 88
         let start = new Date(this.detail.StartDate).getTime()
@@ -89,10 +97,14 @@ export default {
89 97
     }),
90 98
     ...mapUserState({
91 99
       userInfo: x => x.userInfo
100
+    }),
101
+    ...mapState({
102
+      org: x => x.app.orgId
92 103
     })
93 104
   },
94 105
   methods: {
95 106
     ...mapRushActions(['setRush', 'getRush', 'AddNewFlashBuyCustomer', 'IsNewCustomer', 'UpdateFlashBuyCustomer']),
107
+    ...mapUserActions(['getUserInfo']),
96 108
     timing (startTime, endTime) {
97 109
       this.Interval = setInterval(() => {
98 110
         let nowTime = new Date().getTime()
@@ -158,4 +170,7 @@ export default {
158 170
 .rule img {
159 171
   width: 100%;
160 172
 }
173
+.rule p {
174
+  color: #9d876d;
175
+}
161 176
 </style>

+ 3
- 2
src/pages/user/rush/page.scss Näytä tiedosto

@@ -25,7 +25,8 @@
25 25
     text-align: center;
26 26
     font-size: .16rem;
27 27
     color: #9D876D;
28
-    padding-bottom: .2rem
28
+    padding-bottom: .2rem;
29
+    font-weight: bold;
29 30
   }
30 31
   .video-or-cover{
31 32
     width: 100%;
@@ -59,7 +60,7 @@
59 60
       margin-bottom: .05rem;
60 61
     }
61 62
     div:nth-of-type(2){
62
-      color: #585858;
63
+      color: #9D876D;
63 64
       font-size: .14rem;
64 65
     }
65 66
   }