|
@@ -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
|