张延森 4 years ago
parent
commit
d35535af77

+ 2
- 2
src/components/index/Banner/index.vue View File

1
 <template>
1
 <template>
2
   <div class="components Banner">
2
   <div class="components Banner">
3
     <swiper :options="SwiperOptions" ref="MySwiper">
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
         <div class="SwiperItem">
5
         <div class="SwiperItem">
6
           <img :src="item.image" class="centerLabel cover" alt="">
6
           <img :src="item.image" class="centerLabel cover" alt="">
7
         </div>
7
         </div>
21
 export default {
21
 export default {
22
   name: 'Banner',
22
   name: 'Banner',
23
   props: {
23
   props: {
24
-    List: { // 列表数据
24
+    list: { // 列表数据
25
       default: () => {
25
       default: () => {
26
         return []
26
         return []
27
       },
27
       },

+ 11
- 9
src/components/index/LanQiuGuoGuanHunHeTouZhu/index.vue View File

1
 <template>
1
 <template>
2
   <div class="components LanQiuGuoGuanHunHeTouZhu">
2
   <div class="components LanQiuGuoGuanHunHeTouZhu">
3
     <ul>
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
             </div>
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
           </div>
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
         </div>
17
         </div>
16
       </li>
18
       </li>
17
     </ul>
19
     </ul>

+ 4
- 2
src/pages/WoDe/ChongZhi/index.vue View File

15
 </template>
15
 </template>
16
 
16
 
17
 <script>
17
 <script>
18
-import MainPageContainer from '../../../components/common/MainPageContainer'
19
 import { createNamespacedHelpers } from 'vuex'
18
 import { createNamespacedHelpers } from 'vuex'
19
+import MainPageContainer from '../../../components/common/MainPageContainer'
20
+import { APIBase } from '@/util/constant'
21
+
20
 const { mapState: mapUserState, mapActions: mapUserActions, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
22
 const { mapState: mapUserState, mapActions: mapUserActions, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
21
 export default {
23
 export default {
22
   name: '',
24
   name: '',
60
         this.Toast('充值牛逼数量必须为正整数')
62
         this.Toast('充值牛逼数量必须为正整数')
61
         return false
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 View File

41
   },
41
   },
42
   mounted () {
42
   mounted () {
43
     this.$nextTick(() => {
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
   methods: {
49
   methods: {

+ 1
- 0
src/pages/WoDe/GeRenSheZhi/ZhangHuSheZhi/BangDingZhiFuBao/index.vue View File

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

+ 11
- 1
src/pages/index/ShouYe/index.vue View File

14
               <!-- banner -->
14
               <!-- banner -->
15
               <div class="Banner">
15
               <div class="Banner">
16
                 <div>
16
                 <div>
17
-                  <Banner></Banner>
17
+                  <Banner :list="bannerList"></Banner>
18
                 </div>
18
                 </div>
19
               </div>
19
               </div>
20
 
20
 
73
   name: 'index',
73
   name: 'index',
74
   data () {
74
   data () {
75
     return {
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
   computed: {
88
   computed: {

+ 3
- 1
src/util/PublicMethod.js View File

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

+ 2
- 0
src/util/constant.js View File

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