Browse Source

静态页面

xcx 4 years ago
parent
commit
d962952bc6

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

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

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

@@ -392,6 +392,21 @@
392 392
         font-size: 0.24rem;
393 393
         color: #ff5200;
394 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 411
       > .flex-item {
397 412
         position: relative;

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

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

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

@@ -271,6 +271,21 @@
271 271
         font-size: 0.24rem;
272 272
         color: #ff5200;
273 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 290
       > .flex-item {
276 291
         position: relative;