chenxiong 3 rokov pred
rodič
commit
ab235411ce

+ 13 - 10
pages/shopping/shoppingCart.vue

@@ -14,7 +14,7 @@
 									<view class="goods-item">
 										<view class="item-wrap">
 											<view class="goods-msg">
-												<u-checkbox @change="checkboxChange"  style="width: 100%;" v-model="list[index].checked" shape="circle" :name="index">
+												<u-checkbox @change="checkboxChange" :disabled="item.goodsStatus == 0"  style="width: 100%;" v-model="list[index].checked" shape="circle" :name="index">
 													<view class="flex">
 														<view class="goods-img">
 															<image :src="$method.splitImgHost(item.coverUrl, true)"></image>
@@ -22,6 +22,7 @@
 														<view class="flex__auto">
 															<view class="goods-title">{{ item.goodsName }}</view>
 															<view class="priceTag">¥ {{ item.standPrice }}</view>
+															<view class="priceTag" v-if="item.goodsStatus == 0">该商品已下架</view>
 														</view>
 													</view>
 												</u-checkbox>
@@ -617,15 +618,17 @@ page {
 						font-weight: bold;
 						text-align: right;
 						
-						.priceTag {
-							font-size: 30rpx;
-							font-family: PingFang SC;
-							font-weight: bold;
-							color: #ff2d55;
-							display: flex;
-							flex-direction: row-reverse;
-							margin-right: 8rpx;
-						}
+						
+					}
+					
+					.priceTag {
+						font-size: 30rpx;
+						font-family: PingFang SC;
+						font-weight: bold;
+						color: #ff2d55;
+						display: flex;
+						flex-direction: row-reverse;
+						margin-right: 8rpx;
 					}
 				}
 				

+ 11 - 1
pages2/msg/detail.vue

@@ -162,7 +162,17 @@ export default {
 							if (item.gradeStatus == 1 && item.status == 1 && (item.serviceEndTime > this.sysTime) && (item
 									.classEndTime && (item.classEndTime < this.sysTime)) && (item.periodStatus == 0 || item
 									.periodStatus == -1) && item.studyCount > 0) {
-								this.selectClass(item, index);
+										uni.showModal({
+											title:'提示',
+											content:'班级有效期已过期,请选择班级',
+											success:(res) => {
+												if(res.confirm) {
+													uni.navigateTo({
+														url:'../wd/class'
+													})
+												}
+											}
+										})
 								return;
 							}
 							

+ 3 - 0
pages2/verify/input.vue

@@ -25,6 +25,7 @@
 							:label="item.fieldName"
 							:required="item.required"
 							:label-width="auto"
+              :disabled="true"
 							:prop="item.required ? item.fieldKey : ''"
 						>
 							<u-input v-model="form.name" :placeholder="`请输入${item.fieldName}`" />
@@ -35,6 +36,7 @@
 							:label="item.fieldName"
 							:required="item.required"
 							:label-width="auto"
+              :disabled="true"
 							:prop="item.required ? item.fieldKey : ''"
 						>
 							<u-input v-model="form.idcard" :placeholder="`请输入${item.fieldName}`" />
@@ -45,6 +47,7 @@
 							:label="item.fieldName"
 							:required="item.required"
 							:label-width="auto"
+              :disabled="true"
 							:prop="item.required ? item.fieldKey : ''"
 						>
 							<u-input v-model="form.telphone" :placeholder="`请输入${item.fieldName}`" />