chenxiong vor 3 Jahren
Ursprung
Commit
a82127b8aa

+ 3 - 1
pages/index/index.vue

@@ -203,6 +203,8 @@ export default {
 			uni.removeStorageSync('updateHome'); //消费首页刷新事件
 		}
 		
+		this.appCommonConfig();
+		
 		if(this.$method.isLogin()){
 			this.$store.state.allowLoading = false;
 			this.$api.getinfoAttached().then(res => {
@@ -225,7 +227,7 @@ export default {
 		};
 	},
 	methods: {
-		...mapActions(['getUserInfo']),
+		...mapActions(['getUserInfo','appCommonConfig']),
 		toFixed(number) {
 			if(number > 0) {
 				return number.toFixed(2)

+ 3 - 1
pages/shopping/shoppingCart.vue

@@ -58,7 +58,7 @@
 						</u-checkbox-group>
 					</uni-swipe-action>
 				</view>
-				<view class="bottomBox">
+				<view class="bottomBox" v-if="!hideBuyState">
 					<view>
 						<u-checkbox label="all" name="all" shape="circle" @change="checkboxAllChange" v-model="allChecked"></u-checkbox>
 						<text>全选</text>
@@ -149,6 +149,7 @@
 </template>
 
 <script>
+import { mapGetters } from 'vuex';
 export default {
 	data() {
 		return {
@@ -178,6 +179,7 @@ export default {
 			examIndex: 0
 		};
 	},
+	computed: { ...mapGetters(['userInfo','hideBuyState']) },
 	onLoad(option) {
 		console.log(option,987)
 	},

+ 2 - 2
pages/wd/index.vue

@@ -59,7 +59,7 @@
 						考试预约
 					</view>
 				</navigator>
-				<navigator  hover-class="none" url="/pages2/order/index" class="menu_box">
+				<navigator  hover-class="none" v-if="!hideBuyState" url="/pages2/order/index" class="menu_box">
 					<view class="box_left">
 						<image src="/static/icon/my_icon7.png" class="my_icon"></image>
 						<view>我的订单</view>
@@ -140,7 +140,7 @@ export default {
 			this.$navTo.togo('/pages/login/login');
 		}
 	},
-	computed: { ...mapGetters(['userInfo']) }
+	computed: { ...mapGetters(['userInfo','hideBuyState']) }
 };
 </script>
 <style>

+ 2 - 2
pages2/bank/detail.vue

@@ -82,7 +82,7 @@
 				</view>
 			</view>
 		</view>
-		<view class="bottomBox">
+		<view class="bottomBox" v-if="!hideBuyState">
 			<view class="priceTag">¥ {{ toFixed(goodsData.standPrice) }}</view>
 			<view style="display: flex;color: #FFFFFF;align-items: center;">
 				<view class="btn1" @click="addCart">加购物车</view>
@@ -120,7 +120,7 @@ export default {
 		}
 	},
 	onUnload() {},
-	computed: { ...mapGetters(['userInfo']) },
+	computed: { ...mapGetters(['userInfo','hideBuyState']) },
 	onLoad(option) {
 		this.id = option.id;
 		this.getDetail();

+ 2 - 2
pages3/course/detail.vue

@@ -70,7 +70,7 @@
 				</view>
 			</view>
 		</view>
-		<view class="bottomBox">
+		<view class="bottomBox" v-if="!hideBuyState">
 			<view class="priceTag">¥ {{toFixed(detail.standPrice)}}</view>
 			<view style="display: flex;color: #FFFFFF;align-items: center;">
 				<view class="btn1" @click="addCart">加购物车</view>
@@ -120,7 +120,7 @@ export default {
 			startTime:0
 		};
 	},
-	computed: { ...mapGetters(['userInfo','goodsAuditionConfigIdList','playSectionId']) },
+	computed: { ...mapGetters(['userInfo','goodsAuditionConfigIdList','playSectionId','hideBuyState']) },
 	onLoad(option) {
 		this.id = option.id;
 		this.getDetail()