lilei vor 2 Jahren
Ursprung
Commit
9f55cd2369

+ 2 - 3
pages/approveStore/list.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="pagesCons">
 		<view class="utabs">
-			<u-tabs-swiper ref="uTabs" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
+			<u-tabs-swiper ref="uTabs" bar-width="160" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
 			<view class="message">我的邀请码:{{yqcode}} <copyText :text="yqcode" label="邀请码"></copyText></view>
 		</view>
 		<swiper class="check-list" :current="swiperCurrent" @transition="transition" @change="swiperChange" @animationfinish="animationfinish">
@@ -74,7 +74,6 @@
 		onLoad(options) {
 			const _this = this
 			_this.tabList = this.$store.state.vuex_storeAuthState
-			_this.tabList[0].count = this.total
 			// 邀请码
 			_this.yqcode = this.$store.state.vuex_userData.extInfo.dealer.dealerInviteCode
 			// 获取数据
@@ -142,7 +141,7 @@
 						}else{
 							this.list = res.data.list || []
 						}
-						this.total = res.data.count || 0
+						this.total = Number(res.data.count) || 0
 						if(this.current == 0){
 							this.tabList[0].count = this.total
 						}

+ 1 - 1
pages/replenishmentManage/replenishmentList.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="pagesCons">
 		<view class="utabs">
-			<u-tabs-swiper ref="uTabs" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
+			<u-tabs-swiper ref="uTabs" bar-width="90" :list="tabList" name="dispName" :current="current" @change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
 		</view>
 		<swiper class="check-list" :current="swiperCurrent" @transition="transition" @change="swiperChange" @animationfinish="animationfinish">
 			<swiper-item class="swiper-item" v-for="(tabs, index) in tabList" :key="index">

+ 5 - 1
pages/sales/index.vue

@@ -149,7 +149,11 @@
 				getLookUpDatas({ pageNo: 1,pageSize: 1000, lookupCode: code}).then(res => {
 					console.log(res)
 					if (res.status == 200) {
-						this.$store.state[vuexKey] = res.data.list || [];
+						const list = res.data.list;
+						list.map(item => {
+							item.count = 0
+						})
+						this.$store.state[vuexKey] = list || [];
 					}
 				});
 			},