张延森 4 年前
父节点
当前提交
d35535af77

+ 2
- 2
src/components/index/Banner/index.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="components Banner">
3 3
     <swiper :options="SwiperOptions" ref="MySwiper">
4
-      <swiper-slide v-for="(item, index) in Banner" :key="index">
4
+      <swiper-slide v-for="(item, index) in list" :key="index">
5 5
         <div class="SwiperItem">
6 6
           <img :src="item.image" class="centerLabel cover" alt="">
7 7
         </div>
@@ -21,7 +21,7 @@ const { mapState: mapIndexState } = createNamespacedHelpers('index')
21 21
 export default {
22 22
   name: 'Banner',
23 23
   props: {
24
-    List: { // 列表数据
24
+    list: { // 列表数据
25 25
       default: () => {
26 26
         return []
27 27
       },

+ 11
- 9
src/components/index/LanQiuGuoGuanHunHeTouZhu/index.vue 查看文件

@@ -1,17 +1,19 @@
1 1
 <template>
2 2
   <div class="components LanQiuGuoGuanHunHeTouZhu">
3 3
     <ul>
4
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wl`] !== undefined && item.playOdds[`bst-wls`] !== undefined && item.matchWay[`bst-wl`].isPass && item.matchWay[`bst-wls`].isPass">
5
-        <div class="Title flex-h">
6
-          <div class="flex-item">
7
-            <div>
8
-              <span>{{item.awayTeamName}} VS {{item.homeTeamName}}</span>
4
+      <li v-for="(item, index) in PageData" :key="index">
5
+        <div v-if="item.playOdds[`bst-wl`] !== undefined && item.playOdds[`bst-wls`] !== undefined && item.matchWay[`bst-wl`].isPass && item.matchWay[`bst-wls`].isPass">
6
+          <div class="Title flex-h">
7
+            <div class="flex-item">
8
+              <div>
9
+                <span>{{item.awayTeamName}} VS {{item.homeTeamName}}</span>
10
+              </div>
9 11
             </div>
12
+            <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
13
+          </div>
14
+          <div class="Detail">
15
+            <LqgghhtzShengFu :MoreSelect="item.MoreSelect" :Id="item.matchId" :ListId="item.matchWeek" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WlData="item.playOdds['bst-wl']" :WlsData="item.playOdds['bst-wls']" @SelectItem="SelectItem" @ShowMore="ToShowMore"></LqgghhtzShengFu>
10 16
           </div>
11
-          <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12
-        </div>
13
-        <div class="Detail">
14
-          <LqgghhtzShengFu :MoreSelect="item.MoreSelect" :Id="item.matchId" :ListId="item.matchWeek" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WlData="item.playOdds['bst-wl']" :WlsData="item.playOdds['bst-wls']" @SelectItem="SelectItem" @ShowMore="ToShowMore"></LqgghhtzShengFu>
15 17
         </div>
16 18
       </li>
17 19
     </ul>

+ 4
- 2
src/pages/WoDe/ChongZhi/index.vue 查看文件

@@ -15,8 +15,10 @@
15 15
 </template>
16 16
 
17 17
 <script>
18
-import MainPageContainer from '../../../components/common/MainPageContainer'
19 18
 import { createNamespacedHelpers } from 'vuex'
19
+import MainPageContainer from '../../../components/common/MainPageContainer'
20
+import { APIBase } from '@/util/constant'
21
+
20 22
 const { mapState: mapUserState, mapActions: mapUserActions, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
21 23
 export default {
22 24
   name: '',
@@ -60,7 +62,7 @@ export default {
60 62
         this.Toast('充值牛逼数量必须为正整数')
61 63
         return false
62 64
       }
63
-      window.location.href = `/api/app/alipay/deposit?amount=${this.Amount - 0}&returnURL=${encodeURIComponent(`${window.location.origin}/#/WoDe/ChongZhiZhuangTai`)}&token=${window.localStorage.Jwt}`
65
+      window.location.href = `${APIBase}api/app/alipay/deposit?amount=${this.Amount - 0}&returnURL=${encodeURIComponent(`${window.location.origin}/#/WoDe/ChongZhiZhuangTai`)}&token=${window.localStorage.Jwt}`
64 66
     }
65 67
   }
66 68
 }

+ 3
- 0
src/pages/WoDe/GeRenSheZhi/ZhangHuSheZhi/BangDingShenFenZheng/index.vue 查看文件

@@ -41,6 +41,9 @@ export default {
41 41
   },
42 42
   mounted () {
43 43
     this.$nextTick(() => {
44
+      this.IdCard = (this.UserInfo || {}).IdCard
45
+      this.RealName = (this.UserInfo || {}).RealName
46
+      console.log(this.UserInfo)
44 47
     })
45 48
   },
46 49
   methods: {

+ 1
- 0
src/pages/WoDe/GeRenSheZhi/ZhangHuSheZhi/BangDingZhiFuBao/index.vue 查看文件

@@ -37,6 +37,7 @@ export default {
37 37
   },
38 38
   mounted () {
39 39
     this.$nextTick(() => {
40
+      this.AliAccount = (this.UserInfo || {}).alipayUser
40 41
     })
41 42
   },
42 43
   methods: {

+ 11
- 1
src/pages/index/ShouYe/index.vue 查看文件

@@ -14,7 +14,7 @@
14 14
               <!-- banner -->
15 15
               <div class="Banner">
16 16
                 <div>
17
-                  <Banner></Banner>
17
+                  <Banner :list="bannerList"></Banner>
18 18
                 </div>
19 19
               </div>
20 20
 
@@ -73,6 +73,16 @@ export default {
73 73
   name: 'index',
74 74
   data () {
75 75
     return {
76
+      bannerList: [
77
+        {
78
+          image: 'https://niucai.oss-cn-beijing.aliyuncs.com/app/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20201101151720.png',
79
+          link: null
80
+        },
81
+        {
82
+          image: 'https://niucai.oss-cn-beijing.aliyuncs.com/app/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20201101151720.png',
83
+          link: null
84
+        }
85
+      ]
76 86
     }
77 87
   },
78 88
   computed: {

+ 3
- 1
src/util/PublicMethod.js 查看文件

@@ -1,6 +1,8 @@
1 1
 /* eslint-disable */
2 2
 import Axios from 'axios'
3 3
 import qs from 'qs'
4
+import { APIBase } from './constant'
5
+
4 6
 const ToolClass = {
5 7
   FormatDate (date, fmt = 'yyyy-MM-dd hh:mm:ss') {
6 8
     var o = {
@@ -88,7 +90,7 @@ const ToolClass = {
88 90
       url: Url,
89 91
       data: Data,
90 92
       headers: { ...Header },
91
-      baseURL: process.env.NODE_ENV === 'production' ? 'https://api.xnsport.cn/' : '/'
93
+      baseURL: APIBase
92 94
     }
93 95
     Axios({ ...aParams }).then(res => {
94 96
       // console.log('response---->', res)

+ 2
- 0
src/util/constant.js 查看文件

@@ -0,0 +1,2 @@
1
+
2
+export const APIBase = process.env.NODE_ENV === 'production' ? 'https://api.xnsport.cn/' : '/'