Browse Source

静态页面

xcx 4 years ago
parent
commit
c030a474f5

+ 1
- 1
src/pages/index/DingDanZhiFuZhuangTai/index.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="Page">
3
-    <MainPageContainer :ShowMainHeader="true" :ShowMainTabBar="true" MainHeaderTitle="首页" :MainTabBarActiveId="1">
3
+    <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="订单状态">
4 4
       <div class="PageContainer">
5 5
         订单支付状态
6 6
       </div>

+ 1
- 0
src/pages/index/LanQiuDingDan/index.vue View File

@@ -231,6 +231,7 @@ export default {
231 231
         this.TotalPrice = 0
232 232
         this.Multiple = 1
233 233
         this.DataLock = false
234
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
234 235
       }).catch((res) => {
235 236
         this.Toast(res.data.message)
236 237
         this.DataLock = false

+ 25
- 0
src/pages/index/PaiLie3DingDan/index.vue View File

@@ -103,6 +103,18 @@
103 103
 
104 104
         <div class="Layer" v-if="ShowStore">
105 105
           <div class="centerLabel">
106
+            <span v-if="MyStoreList.length">我的店铺:</span>
107
+            <ul v-if="MyStoreList.length">
108
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
109
+                <div class="flex-item">
110
+                  <div>
111
+                    <span>{{item.name}}</span>
112
+                  </div>
113
+                </div>
114
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
115
+                <i class="iconfont iconyigouxuan active" v-else></i>
116
+              </li>
117
+            </ul>
106 118
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
107 119
             <ul v-if="RecommendStoreList.length">
108 120
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
@@ -147,6 +159,7 @@ export default {
147 159
   name: '',
148 160
   data () {
149 161
     return {
162
+      MyStoreList: [],
150 163
       CurrentStoreName: null, // 当前选择店铺名称
151 164
       CurrentStoreId: null, // 当前选择店铺id
152 165
       RecommendStoreList: [], // 推荐店铺列表
@@ -194,6 +207,17 @@ export default {
194 207
       }).then((res) => {
195 208
         this.StoreList = res.data.data.nearest || []
196 209
         this.RecommendStoreList = res.data.data.recommend || []
210
+        this.MyStoreList = res.data.data.mine || []
211
+        if (this.MyStoreList.length) {
212
+          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
213
+          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
214
+        } else if (this.RecommendStoreList.length) {
215
+          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
216
+          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
217
+        } else if (this.StoreList.length) {
218
+          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
219
+          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
220
+        }
197 221
       })
198 222
     },
199 223
     ReturnType (type) { // 投注类型返回值
@@ -265,6 +289,7 @@ export default {
265 289
         this.TotalPrize = 0
266 290
         this.Multiple = 1
267 291
         this.DataLock = false
292
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
268 293
       }).catch((res) => {
269 294
         this.Toast(res.data.message)
270 295
         this.DataLock = false

+ 25
- 0
src/pages/index/PaiLie5DingDan/index.vue View File

@@ -94,6 +94,18 @@
94 94
 
95 95
         <div class="Layer" v-if="ShowStore">
96 96
           <div class="centerLabel">
97
+            <span v-if="MyStoreList.length">我的店铺:</span>
98
+            <ul v-if="MyStoreList.length">
99
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
100
+                <div class="flex-item">
101
+                  <div>
102
+                    <span>{{item.name}}</span>
103
+                  </div>
104
+                </div>
105
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
106
+                <i class="iconfont iconyigouxuan active" v-else></i>
107
+              </li>
108
+            </ul>
97 109
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
98 110
             <ul v-if="RecommendStoreList.length">
99 111
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
@@ -138,6 +150,7 @@ export default {
138 150
   name: '',
139 151
   data () {
140 152
     return {
153
+      MyStoreList: [],
141 154
       CurrentStoreName: null, // 当前选择店铺名称
142 155
       CurrentStoreId: null, // 当前选择店铺id
143 156
       RecommendStoreList: [], // 推荐店铺列表
@@ -193,6 +206,17 @@ export default {
193 206
       }).then((res) => {
194 207
         this.StoreList = res.data.data.nearest || []
195 208
         this.RecommendStoreList = res.data.data.recommend || []
209
+        this.MyStoreList = res.data.data.mine || []
210
+        if (this.MyStoreList.length) {
211
+          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
212
+          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
213
+        } else if (this.RecommendStoreList.length) {
214
+          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
215
+          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
216
+        } else if (this.StoreList.length) {
217
+          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
218
+          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
219
+        }
196 220
       })
197 221
     },
198 222
     ToPostBetting () { // 去下注
@@ -237,6 +261,7 @@ export default {
237 261
         this.TotalPrize = 0
238 262
         this.Multiple = 1
239 263
         this.DataLock = false
264
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
240 265
       }).catch((res) => {
241 266
         this.Toast(res.data.message)
242 267
         this.DataLock = false

+ 25
- 0
src/pages/index/ShuangSeQiuDingDan/index.vue View File

@@ -56,6 +56,18 @@
56 56
 
57 57
         <div class="Layer" v-if="ShowStore">
58 58
           <div class="centerLabel">
59
+            <span v-if="MyStoreList.length">我的店铺:</span>
60
+            <ul v-if="MyStoreList.length">
61
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
62
+                <div class="flex-item">
63
+                  <div>
64
+                    <span>{{item.name}}</span>
65
+                  </div>
66
+                </div>
67
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
68
+                <i class="iconfont iconyigouxuan active" v-else></i>
69
+              </li>
70
+            </ul>
59 71
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
60 72
             <ul v-if="RecommendStoreList.length">
61 73
               <li v-for="(item, index) in RecommendStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
@@ -101,6 +113,7 @@ export default {
101 113
   name: '',
102 114
   data () {
103 115
     return {
116
+      MyStoreList: [],
104 117
       CurrentStoreName: null, // 当前选择店铺名称
105 118
       CurrentStoreId: null, // 当前选择店铺id
106 119
       RecommendStoreList: [], // 推荐店铺列表
@@ -134,6 +147,17 @@ export default {
134 147
     }).then((res) => {
135 148
       this.StoreList = res.data.data.nearest || []
136 149
       this.RecommendStoreList = res.data.data.recommend || []
150
+      this.MyStoreList = res.data.data.mine || []
151
+      if (this.MyStoreList.length) {
152
+        this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
153
+        this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
154
+      } else if (this.RecommendStoreList.length) {
155
+        this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
156
+        this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
157
+      } else if (this.StoreList.length) {
158
+        this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
159
+        this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
160
+      }
137 161
     })
138 162
   },
139 163
   mounted () {
@@ -188,6 +212,7 @@ export default {
188 212
         this.TotalPrize = 0
189 213
         this.Multiple = 1
190 214
         this.DataLock = false
215
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
191 216
       }).catch((res) => {
192 217
         this.Toast(res.data.message)
193 218
         this.DataLock = false

+ 30
- 0
src/pages/index/ZuQiuDingDan/index.vue View File

@@ -75,6 +75,18 @@
75 75
 
76 76
         <div class="Layer" v-if="ShowStore">
77 77
           <div class="centerLabel">
78
+            <span v-if="MyStoreList.length">我的店铺:</span>
79
+            <ul v-if="MyStoreList.length">
80
+              <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
81
+                <div class="flex-item">
82
+                  <div>
83
+                    <span>{{item.name}}</span>
84
+                  </div>
85
+                </div>
86
+                <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
87
+                <i class="iconfont iconyigouxuan active" v-else></i>
88
+              </li>
89
+            </ul>
78 90
             <span v-if="RecommendStoreList.length">推荐店铺:</span>
79 91
             <ul v-if="RecommendStoreList.length">
80 92
               <li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
@@ -122,6 +134,7 @@ export default {
122 134
   name: '',
123 135
   data () {
124 136
     return {
137
+      MyStoreList: [],
125 138
       PriceArr: [0, 0], // 奖金区间
126 139
       AllParts: [], // 投注生成结果
127 140
       CurrentPassUnitNum: 0,
@@ -219,6 +232,7 @@ export default {
219 232
         this.TotalPrice = 0
220 233
         this.Multiple = 1
221 234
         this.DataLock = false
235
+        window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
222 236
       }).catch((res) => {
223 237
         this.Toast(res.data.message)
224 238
         this.DataLock = false
@@ -233,6 +247,7 @@ export default {
233 247
       }).then((res) => {
234 248
         let StoreList = res.data.data.nearest || []
235 249
         let RecommendStoreList = res.data.data.recommend || []
250
+        let MyStoreList = res.data.data.mine || []
236 251
         StoreList.map((item) => {
237 252
           if (item.status - 0 === 1) {
238 253
             this.StoreList.push(item)
@@ -243,6 +258,21 @@ export default {
243 258
             this.RecommendStoreList.push(item)
244 259
           }
245 260
         })
261
+        MyStoreList.map((item) => {
262
+          if (item.status - 0 === 1) {
263
+            this.MyStoreList.push(item)
264
+          }
265
+        })
266
+        if (this.MyStoreList.length) {
267
+          this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
268
+          this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
269
+        } else if (this.RecommendStoreList.length) {
270
+          this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
271
+          this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
272
+        } else if (this.StoreList.length) {
273
+          this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
274
+          this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
275
+        }
246 276
       })
247 277
     },
248 278
     ToGetAllParts () { // 枚举投注