Browse Source

静态页面

xcx 4 years ago
parent
commit
d962952bc6

+ 6
- 2
src/pages/index/PaiLie3/index.vue View File

128
         <div class="Bottom flex-h">
128
         <div class="Bottom flex-h">
129
           <span class="SelectRes">共<em>{{TotalResNum}}</em>注<em>{{TotalResNum * 200}}</em>牛币</span>
129
           <span class="SelectRes">共<em>{{TotalResNum}}</em>注<em>{{TotalResNum * 200}}</em>牛币</span>
130
           <a class="iconfont iconjian" @click="EmptyData"></a>
130
           <a class="iconfont iconjian" @click="EmptyData"></a>
131
-          <router-link :to="{ name: 'PaiLie3DingDan' }" class="iconfont icongouwuche"></router-link>
131
+          <router-link :to="{ name: 'PaiLie3DingDan' }" class="iconfont icongouwuche"><span>{{PaiLie3Cart.length > 99 ? '99+' : PaiLie3Cart.length}}</span></router-link>
132
           <!-- <a class="iconfont iconqushi"></a> -->
132
           <!-- <a class="iconfont iconqushi"></a> -->
133
           <div class="flex-item"></div>
133
           <div class="flex-item"></div>
134
           <a class="Btn" :class="{'active': CanCreateRes}" @click="AddCart">添加号码</a>
134
           <a class="Btn" :class="{'active': CanCreateRes}" @click="AddCart">添加号码</a>
142
 <script>
142
 <script>
143
 import MainPageContainer from '../../../components/common/MainPageContainer'
143
 import MainPageContainer from '../../../components/common/MainPageContainer'
144
 import { createNamespacedHelpers } from 'vuex'
144
 import { createNamespacedHelpers } from 'vuex'
145
-const { mapMutations: mapUserMutations } = createNamespacedHelpers('user')
145
+const { mapState: mapUserState, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
146
 export default {
146
 export default {
147
   name: '',
147
   name: '',
148
   data () {
148
   data () {
170
     }
170
     }
171
   },
171
   },
172
   computed: {
172
   computed: {
173
+    ...mapUserState({
174
+      UserInfo: x => x.UserInfo, // 用户信息
175
+      PaiLie3Cart: x => x.PaiLie3Cart
176
+    })
173
   },
177
   },
174
   components: {
178
   components: {
175
     MainPageContainer
179
     MainPageContainer

+ 15
- 0
src/pages/index/PaiLie3/page.scss View File

392
         font-size: 0.24rem;
392
         font-size: 0.24rem;
393
         color: #ff5200;
393
         color: #ff5200;
394
         margin-right: 0.1rem;
394
         margin-right: 0.1rem;
395
+        position: relative;
396
+        overflow: visible;
397
+        >span {
398
+          display: inline-block;
399
+          font-size: 0.1rem;
400
+          color: #fff;
401
+          min-width: 0.16rem;
402
+          line-height: 0.16rem;
403
+          text-align: center;
404
+          border-radius: 100%;
405
+          background: #ff5200;
406
+          position: absolute;
407
+          right: -0.06rem;
408
+          top: -0.06rem;
409
+        }
395
       }
410
       }
396
       > .flex-item {
411
       > .flex-item {
397
         position: relative;
412
         position: relative;

+ 6
- 2
src/pages/index/PaiLie5/index.vue View File

92
         <div class="Bottom flex-h">
92
         <div class="Bottom flex-h">
93
           <span class="SelectRes">共<em>{{TotalResNum}}</em>注<em>{{TotalResNum * 200}}</em>牛币</span>
93
           <span class="SelectRes">共<em>{{TotalResNum}}</em>注<em>{{TotalResNum * 200}}</em>牛币</span>
94
           <a class="iconfont iconjian" v-if="SelectType === 1" @click="EmptySelectArea"></a>
94
           <a class="iconfont iconjian" v-if="SelectType === 1" @click="EmptySelectArea"></a>
95
-          <router-link :to="{ name: 'PaiLie5DingDan' }" class="iconfont icongouwuche"></router-link>
95
+          <router-link :to="{ name: 'PaiLie5DingDan' }" class="iconfont icongouwuche"><span>{{PaiLie5Cart.length > 99 ? '99+' : PaiLie5Cart.length}}</span></router-link>
96
           <div class="flex-item"></div>
96
           <div class="flex-item"></div>
97
           <a class="Btn" :class="{'active': CanCreateRes}" @click="AddCart">添加号码</a>
97
           <a class="Btn" :class="{'active': CanCreateRes}" @click="AddCart">添加号码</a>
98
           <a class="Btn" :class="{'active': CanCreateRes}" @click="CreateOrder">投注</a>
98
           <a class="Btn" :class="{'active': CanCreateRes}" @click="CreateOrder">投注</a>
105
 <script>
105
 <script>
106
 import MainPageContainer from '../../../components/common/MainPageContainer'
106
 import MainPageContainer from '../../../components/common/MainPageContainer'
107
 import { createNamespacedHelpers } from 'vuex'
107
 import { createNamespacedHelpers } from 'vuex'
108
-const { mapMutations: mapUserMutations } = createNamespacedHelpers('user')
108
+const { mapState: mapUserState, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
109
 export default {
109
 export default {
110
   name: '',
110
   name: '',
111
   data () {
111
   data () {
126
     }
126
     }
127
   },
127
   },
128
   computed: {
128
   computed: {
129
+    ...mapUserState({
130
+      UserInfo: x => x.UserInfo, // 用户信息
131
+      PaiLie5Cart: x => x.PaiLie5Cart
132
+    })
129
   },
133
   },
130
   components: {
134
   components: {
131
     MainPageContainer
135
     MainPageContainer

+ 15
- 0
src/pages/index/PaiLie5/page.scss View File

271
         font-size: 0.24rem;
271
         font-size: 0.24rem;
272
         color: #ff5200;
272
         color: #ff5200;
273
         margin-right: 0.1rem;
273
         margin-right: 0.1rem;
274
+        position: relative;
275
+        overflow: visible;
276
+        >span {
277
+          display: inline-block;
278
+          font-size: 0.1rem;
279
+          color: #fff;
280
+          min-width: 0.16rem;
281
+          line-height: 0.16rem;
282
+          text-align: center;
283
+          border-radius: 100%;
284
+          background: #ff5200;
285
+          position: absolute;
286
+          right: -0.06rem;
287
+          top: -0.06rem;
288
+        }
274
       }
289
       }
275
       > .flex-item {
290
       > .flex-item {
276
         position: relative;
291
         position: relative;