lilei 11 месяцев назад
Родитель
Сommit
2d0ad428fe
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      pages/index/index.vue

+ 8 - 0
pages/index/index.vue

@@ -14,6 +14,10 @@
 					<scrollBox v-if="list.length&&!hasRedPacket" :list="list"></scrollBox>
 					<scrollBox v-if="slist.length&&hasRedPacket" :list="slist"></scrollBox>
 				</view>
+				<!-- 版本提示 -->
+				<view class="notices flex align_center" v-if="showVersion">
+					<view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 当前是体验版</view>
+				</view>
 				<!-- 保证金 -->
 				<view class="notices flex align_center" v-if="bondRecord" @click="toPayBondAmount">
 					<view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 您有一笔保证金待支付 ¥{{bondRecord.bondAmount}}</view> 
@@ -158,6 +162,10 @@
 		},
 		computed: {
 			...mapState(['hasLogin','vuex_vinScanNums','vuex_tabBarList']),
+			showVersion () {
+				const baseUrl = getApp().globalData.baseUrl
+				return baseUrl.indexOf(".test.") >= 0
+			},
 			hasShelf(){
 				return this.$store.state.vuex_storeShelf
 			},