一个番茄酱 2 år sedan
förälder
incheckning
592bd36f8d

+ 3 - 0
education_family/common/common_utils/src/main/java/com/xunwang/commonutils/RedisIdWorker.java

@@ -7,6 +7,9 @@ import java.time.LocalDateTime;
 import java.time.ZoneOffset;
 import java.time.format.DateTimeFormatter;
 
+/**
+ * redis全局唯一id生成
+ */
 @Component
 public class RedisIdWorker {
 

+ 1 - 1
education_family/service/service-ucenter/src/main/java/com/xunwang/ucenter/entity/MpOpenidUid.java

@@ -39,7 +39,7 @@ public class MpOpenidUid implements Serializable {
     private String unionid;
 
     @ApiModelProperty(value = "无序唯一id,游客模式,不记录任何信息")
-    @TableId(value = "uid", type = IdType.ID_WORKER_STR)
+    @TableId(value = "uid")
     private String uid;
 
     @ApiModelProperty(value = "第1次登录日期时间")

+ 13 - 1
education_family/service/service-ucenter/src/main/java/com/xunwang/ucenter/service/impl/MiniProgramOpenidUidServiceImpl.java

@@ -6,6 +6,7 @@ import com.google.gson.Gson;
 import com.google.gson.JsonObject;
 import com.xunwang.commonutils.JwtUtils;
 import com.xunwang.commonutils.RandomNameUtils;
+import com.xunwang.commonutils.RedisIdWorker;
 import com.xunwang.commonutils.ResultCode;
 import com.xunwang.servicebase.exception.XunwangException;
 import com.xunwang.ucenter.entity.MpOpenidUid;
@@ -17,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.redis.core.RedisTemplate;
 import org.springframework.stereotype.Service;
 
+import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
 import java.util.HashMap;
 import java.util.Map;
@@ -35,6 +37,9 @@ public class MiniProgramOpenidUidServiceImpl extends ServiceImpl<MiniProgramOpen
     @Autowired
     private RedisTemplate<String, Object> redisTemplate;
 
+    @Resource
+    private RedisIdWorker redisIdWorker;
+
     /**
      * 获取用户openid,unionid等
      * @param appid
@@ -65,17 +70,23 @@ public class MiniProgramOpenidUidServiceImpl extends ServiceImpl<MiniProgramOpen
         MpOpenidUid user = baseMapper.selectOne(new QueryWrapper<MpOpenidUid>().eq("openid", openid));
         String alias = "";
         String avatar = "";
+        String formatUid = "";
         if (user == null) {
             // 新用户注册
             avatar = "https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0";
             user = new MpOpenidUid();
             alias = RandomNameUtils.generateName();
-            user.setOpenid(openid).setUnionid(unionid).setAlias(alias).setCity(city);
+            long uid = redisIdWorker.nextId("uid");
+            formatUid = String.format("%08x", uid);
+
+            user.setOpenid(openid).setUnionid(unionid).setAlias(alias).setCity(city).setUid(formatUid);
             baseMapper.insert(user);
+
         } else {
             // 老用户登录
             alias = user.getAlias();
             avatar = user.getAvatar();
+            formatUid = user.getUid();
 
             user.setLastLoginDatetime(null).setCity(city);
             baseMapper.updateById(user);
@@ -90,6 +101,7 @@ public class MiniProgramOpenidUidServiceImpl extends ServiceImpl<MiniProgramOpen
         map.put("alias", alias);
         map.put("city", city);
         map.put("avatar", avatar);
+        map.put("uid", formatUid);
 
         return map;
     }

+ 2 - 1
education_uni/components/my-login/my-login.vue

@@ -49,7 +49,8 @@
 				const userInfo = {
 					alias: loginResult.data.alias,
 					avatar: loginResult.data.avatar,
-					city: loginResult.data.city
+					city: loginResult.data.city,
+					uid: loginResult.data.uid
 				}
 				this.updateUserInfo(userInfo)
 			}

+ 119 - 39
education_uni/subpkg/add_stu_require/add_stu_require.vue

@@ -45,7 +45,7 @@
 					<checkbox-group @change="chechboxChangeAM">
 						<view class="th2_0">上午</view>
 						<label v-for="item in timeAM" :key="item.value">
-							<checkbox class="th2_1" :value="item.value"></checkbox>
+							<checkbox class="th2_1" :value="item.value" :checked="item.checked"></checkbox>
 						</label>
 					</checkbox-group>
 				</view>
@@ -53,7 +53,7 @@
 					<checkbox-group @change="chechboxChangePM">
 						<view class="th2_0">下午</view>
 						<label v-for="item in timePM" :key="item.value">
-						<checkbox class="th2_1" :value="item.value"></checkbox>
+						<checkbox class="th2_1" :value="item.value" :checked="item.checked"></checkbox>
 						</label>
 					</checkbox-group>
 				</view>
@@ -61,7 +61,7 @@
 					<checkbox-group @change="chechboxChangeEvening">
 						<view class="th2_0">晚上</view>
 						<label v-for="item in timeEvening" :key="item.value">
-						<checkbox class="th2_1" :value="item.value"></checkbox>
+						<checkbox class="th2_1" :value="item.value" :checked="item.checked"></checkbox>
 						</label>
 					</checkbox-group>
 				</view>
@@ -105,6 +105,7 @@
 				courseAM: [],
 				coursePM: [],
 				courseEV: [],
+				courseWeekday: [],
 				// 表单数据
 				baseFormData: {
 					name: '',
@@ -210,94 +211,114 @@
 				// 上课时间
 				// 上午
 				timeAM: [{
-					value: 'A1',
-						name: '1'
+						value: 'A1',
+						name: '1',
+						checked: false
 						
 					},
 					{
 						name: '2',
-						value: 'A2'
+						value: 'A2',
+						checked: false
 					},
 					{
 						name: '3',
-						value: 'A3'
+						value: 'A3',
+						checked: false
 					},
 					{
 						name: '4',
-						value: 'A4'
+						value: 'A4',
+						checked: false
 					},
 					{
 						name: '5',
-						value: 'A5'
+						value: 'A5',
+						checked: false
 					},
 					{
 						name: '6',
-						value: 'A6'
+						value: 'A6',
+						checked: false
 					},
 					{
 						name: '7',
-						value: 'A7'
+						value: 'A7',
+						checked: false
 					}
 				],
 				// 下午
 				timePM: [{
-					value: 'P1',
-						name: '1'
-						
+						value: 'P1',
+						name: '1',
+						checked: false
 					},
 					{
 						name: '2',
-						value: 'P2'
+						value: 'P2',
+						checked: false
 					},
 					{
 						name: '3',
-						value: 'P3'
+						value: 'P3',
+						checked: false
 					},
 					{
 						name: '4',
-						value: 'P4'
+						value: 'P4',
+						checked: false
 					},
 					{
 						name: '5',
-						value: 'P5'
+						value: 'P5',
+						checked: false
 					},
 					{
 						name: '6',
-						value: 'P6'
+						value: 'P6',
+						checked: false
 					},
 					{
 						name: '7',
-						value: 'P7'
+						value: 'P7',
+						checked: false
 					}
 				],
 				// 晚上
 				timeEvening: [{
 						name: '1',
-						value: 'E1'
+						value: 'E1',
+						checked: false
 					},
 					{
 						name: '2',
-						value: 'E2'
+						value: 'E2',
+						checked: false
 					},
 					{
 						name: '3',
-						value: 'E3'
+						value: 'E3',
+						checked: false
 					},
 					{
 						name: '4',
-						value: 'E4'
+						value: 'E4',
+						checked: false
 					},
 					{
 						name: '5',
-						value: 'E5'
+						value: 'E5',
+						checked: false
 					},
 					{
 						name: '6',
-						value: 'E6'
+						value: 'E6',
+						checked: false
 					},
 					{
 						name: '7',
-						value: 'E7'
+						value: 'E7',
+						checked: false
 					}
 				],
 				rules: {
@@ -328,6 +349,50 @@
 		created() {
 			this.getPriceAndTree()
 		},
+		onLoad(option) {
+			if (option.item !== undefined) {
+				let item = JSON.parse(decodeURIComponent(option.item))
+				item.datetime = null
+				item.deal = null
+				item.deleted = null
+				item.display = null
+				item.id = null
+				item.locked = null
+				item.requireId = null
+				item.uid = null
+				item.verifyRefuseReason = null
+				item.verifyStatus = null
+				// console.log(item)
+				this.baseFormData = item
+				this.courseWeekday = item.courseWeekday.split(",")
+				this.baseFormData.courseWeekday = this.courseWeekday
+				console.log(this.baseFormData)
+				console.log("选中的日期:" + this.courseWeekday)
+				for (let i = 0; i < this.courseWeekday.length; i++) {
+					for (let x = 0; x < this.timeAM.length; x++) {
+						if (this.courseWeekday[i] == this.timeAM[x].value) {
+							this.timeAM[x].checked = true
+							this.courseAM.push(this.courseWeekday[i])
+						}
+					}
+					
+					for (let y = 0; y < this.timePM.length; y++) {
+						if (this.courseWeekday[i] == this.timePM[y].value) {
+							// console.log(this.timePM[y].value)
+							this.timePM[y].checked = true
+							this.coursePM.push(this.courseWeekday[i])
+						}
+					}
+					
+					for (let z = 0; z < this.timeEvening.length; z++) {
+						if (this.courseWeekday[i] == this.timeEvening[z].value) {
+							this.timeEvening[z].checked = true
+							this.courseEV.push(this.courseWeekday[i])
+						}
+					}
+				}
+			}
+		},
 		methods: {
 			// 手机号
 			// 手机号
@@ -399,19 +464,23 @@
 					return uni.$showMsg('操作过快,请耐心等待…')
 				}
 				this.isLoading = true
+				
 				this.baseFormData.courseWeekday = []
 				this.$refs.baseForm.validate().then(res => {
 					if (this.baseFormData.phone === '') return uni.$showMsg('手机号未获取!')
 					if (this.baseFormData.locationStr === '') return uni.$showMsg('请选择地址!')
 					if (this.baseFormData.subjectSmall === '1-1' || this.baseFormData.subjectSmall === '') return uni.$showMsg('请选择课程')
-					if (this.courseAM.length === 0 && this.coursePM.length === 0 && this.courseEV.length === 0) return uni.$showMsg('请选择上课时间!')
-					if (this.courseAM[this.courseAM.length - 1] == '' && this.coursePM.length === 0 && this.courseEV.length === 0) return uni.$showMsg('请选择上课时间!')
-					if (this.courseAM.length === 0 && this.coursePM[this.coursePM.length - 1] == '' && this.courseEV.length === 0) return uni.$showMsg('请选择上课时间!')
-					if (this.courseAM.length === 0 && this.coursePM.length === 0 && this.courseEV[this.courseEV.length - 1] == '') return uni.$showMsg('请选择上课时间!')
-					if (this.courseAM[this.courseAM.length - 1] == '' && this.coursePM[this.coursePM.length - 1] == '' && this.courseEV.length === 0) return uni.$showMsg('请选择上课时间!')
-					if (this.courseAM[this.courseAM.length - 1] == '' && this.coursePM.length === 0 && this.courseEV[this.courseEV.length - 1] == '') return uni.$showMsg('请选择上课时间!')
-					if (this.courseAM.length === 0 && this.coursePM[this.coursePM.length - 1] == '' && this.courseEV[this.courseEV.length - 1] == '') return uni.$showMsg('请选择上课时间!')
-					if (this.courseAM[this.courseAM.length - 1] == '' && this.coursePM[this.coursePM.length - 1] == '' && this.courseEV[this.courseEV.length - 1] == '') return uni.$showMsg('请选择上课时间!')
+					
+					
+					if (this.courseAM.length === 0 && this.coursePM.length === 0 && this.courseEV.length === 0 ) return uni.$showMsg('请选择上课时间!')
+					if (this.courseAM[this.courseAM.length - 1] == '' && this.coursePM.length === 0 && this.courseEV.length === 0 ) return uni.$showMsg('请选择上课时间!')
+					if (this.courseAM.length === 0 && this.coursePM[this.coursePM.length - 1] == '' && this.courseEV.length === 0 ) return uni.$showMsg('请选择上课时间!')
+					if (this.courseAM.length === 0 && this.coursePM.length === 0 && this.courseEV[this.courseEV.length - 1] == '' ) return uni.$showMsg('请选择上课时间!')
+					if (this.courseAM[this.courseAM.length - 1] == '' && this.coursePM[this.coursePM.length - 1] == '' && this.courseEV.length === 0 ) return uni.$showMsg('请选择上课时间!')
+					if (this.courseAM[this.courseAM.length - 1] == '' && this.coursePM.length === 0 && this.courseEV[this.courseEV.length - 1] == '' ) return uni.$showMsg('请选择上课时间!')
+					if (this.courseAM.length === 0 && this.coursePM[this.coursePM.length - 1] == '' && this.courseEV[this.courseEV.length - 1] == '' ) return uni.$showMsg('请选择上课时间!')
+					if (this.courseAM[this.courseAM.length - 1] == '' && this.coursePM[this.coursePM.length - 1] == '' && this.courseEV[this.courseEV.length - 1] == '' ) return uni.$showMsg('请选择上课时间!')
+					
 					if (this.courseAM.length > 0) {
 						this.baseFormData.courseWeekday.push(this.courseAM[this.courseAM.length - 1])
 					}
@@ -423,7 +492,16 @@
 					}
 					// 上课时间
 					this.baseFormData.courseWeekday = this.baseFormData.courseWeekday.join()
-					// console.log(this.baseFormData.courseWeekday)
+					// 末尾为,
+					if (this.baseFormData.courseWeekday.slice(-1) === ',') {
+						this.baseFormData.courseWeekday = this.baseFormData.courseWeekday.substring(0, this.baseFormData.courseWeekday.length - 1)
+					}
+					// 开始为,
+					if (this.baseFormData.courseWeekday.slice(0,1) === ',') {
+						let temp = this.baseFormData.courseWeekday.substring(1, this.baseFormData.courseWeekday.length )
+						this.baseFormData.courseWeekday = temp
+					}
+					
 					// 教员学历
 					if (this.baseFormData.teacherEdu === '') return uni.$showMsg('请选择教员学历!')
 					
@@ -442,7 +520,7 @@
 									}
 								} else {
 									if (this.coursePrice[i].priceMapping.fulltime_price_2_l > this.baseFormData.salary || this.baseFormData.salary > this.coursePrice[i].priceMapping.fulltime_price_2_h) {
-										this.errorPrice = '价格在' + this.coursePrice[i].priceMapping.fulltime_price_2_l + '~' + this.coursePrice[i].priceMapping.fulltime_price_2_h + '之间'
+										this.errorPrice = '价格在' + this.coursePrice[i].priceMapping.fulltime_price_2_l + '~' + this.coursePrice[i].priceMapping.fulltime_price_2_h + '之间'
 										return uni.$showMsg('请合理选择课时费')
 									}
 								}
@@ -472,7 +550,7 @@
 						}
 					}
 					
-					// console.log(this.baseFormData)
+					console.log(this.baseFormData)
 					
 					uni.request({
 						url: 'http://192.168.0.207:8222/education/student-requirements/publishRequirements',
@@ -484,7 +562,9 @@
 						success: res => {
 							uni.$showMsg(res.data.message)
 							setTimeout(() => {
-								uni.navigateBack()
+								uni.navigateTo({
+									url: '/subpkg/student_require/student_require'
+								})
 							}, 1000)
 						}
 					})

+ 254 - 11
education_uni/subpkg/stu_require_detail/stu_require_detail.vue

@@ -41,6 +41,42 @@
 				<text class="contain-text">课程时间:</text>
 			</uni-col>
 		</uni-row>
+		<view class="tr-container">
+			<view class="tr_1">
+				<text class="th_0" decode="true">&ensp;&ensp;&ensp;&ensp;</text>
+				<text class="th_1">周一</text>
+				<text class="th_1">周二</text>
+				<text class="th_1">周三</text>
+				<text class="th_1">周四</text>
+				<text class="th_1">周五</text>
+				<text class="th_1">周六</text>
+				<text class="th_1">周日</text>
+			</view>
+			<view class="tr_2">
+				<checkbox-group>
+					<view class="th2_0">上午</view>
+					<label v-for="item in timeAM" :key="item.value">
+						<checkbox class="th2_1" :value="item.value" :checked="item.checked" disabled></checkbox>
+					</label>
+				</checkbox-group>
+			</view>
+			<view class="tr_2">
+				<checkbox-group>
+					<view class="th2_0">下午</view>
+					<label v-for="item in timePM" :key="item.value">
+						<checkbox class="th2_1" :value="item.value" :checked="item.checked" disabled></checkbox>
+					</label>
+				</checkbox-group>
+			</view>
+			<view class="tr_2">
+				<checkbox-group>
+					<view class="th2_0">晚上</view>
+					<label v-for="item in timeEvening" :key="item.value">
+					<checkbox class="th2_1" :value="item.value" :checked="item.checked" disabled></checkbox>
+					</label>
+				</checkbox-group>
+			</view>
+		</view>
 		<uni-row>
 			<uni-col :span="12" :push="1">
 				<view class="contain-item"><text class="contain-text">教员类型:</text>{{item.teacherType}}</view>
@@ -77,7 +113,7 @@
 		</uni-row>
 		<uni-row>
 			<uni-col :push="1">
-				<view class="contain-item"><text class="contain-text">审核不通过原因:</text>{{item.verifyRefuseReason}}</view>
+				<view class="contain-item"><text class="contain-text">审核不通过原因:</text>{{item.verifyRefuseReason || '暂无'}}</view>
 			</uni-col>
 		</uni-row>
 		<uni-row>
@@ -95,35 +131,180 @@
 				<view class="contain-item"><text class="contain-text">微信号:</text>{{item.wxid}}</view>
 			</uni-col>
 		</uni-row>
+		
+		<button class="publish-button" @click="publishButton">以此为模板新发布</button>
 	</view>
 </template>
 
 <script>
+	import { mapState } from 'vuex';
+	
 	export default {
 		data() {
 			return {
 				item: {},
+				courseWeekday: [],
 				location: [],
 				marker: [{
 					id: 1,
 					joinCluster:true,
 					latitude: 0,
 					longitude: 0,
-					width: 30,
-					height: 30,
+					width: 40,
+					height: 40,
 					iconPath: '/static/location.png',
 				}],
+				// 上课时间
+				// 上午
+				timeAM: [{
+						value: 'A1',
+						name: '1',
+						checked: false
+					},
+					{
+						name: '2',
+						value: 'A2',
+						checked: false
+					},
+					{
+						name: '3',
+						value: 'A3',
+						checked: false
+					},
+					{
+						name: '4',
+						value: 'A4',
+						checked: false
+					},
+					{
+						name: '5',
+						value: 'A5',
+						checked: false
+					},
+					{
+						name: '6',
+						value: 'A6',
+						checked: false
+					},
+					{
+						name: '7',
+						value: 'A7',
+						checked: false
+					}
+				],
+				// 下午
+				timePM: [{
+						value: 'P1',
+						name: '1',
+						checked: false
+					},
+					{
+						name: '2',
+						value: 'P2',
+						checked: false
+					},
+					{
+						name: '3',
+						value: 'P3',
+						checked: false
+					},
+					{
+						name: '4',
+						value: 'P4',
+						checked: false
+					},
+					{
+						name: '5',
+						value: 'P5',
+						checked: false
+					},
+					{
+						name: '6',
+						value: 'P6',
+						checked: false
+					},
+					{
+						name: '7',
+						value: 'P7',
+						checked: false
+					}
+				],
+				// 晚上
+				timeEvening: [{
+						name: '1',
+						value: 'E1',
+						checked: false
+					},
+					{
+						name: '2',
+						value: 'E2',
+						checked: false
+					},
+					{
+						name: '3',
+						value: 'E3',
+						checked: false
+					},
+					{
+						name: '4',
+						value: 'E4',
+						checked: false
+					},
+					{
+						name: '5',
+						value: 'E5',
+						checked: false
+					},
+					{
+						name: '6',
+						value: 'E6',
+						checked: false
+					},
+					{
+						name: '7',
+						value: 'E7',
+						checked: false
+					}
+				],
 			};
 		},
-		onLoad(option) {
-			let options = decodeURIComponent(option.item)
-			this.item = JSON.parse(options)
-			console.log(this.item)
+		computed: {
+			...mapState('m_user', ['requireDetail'])
+		},
+		created() {
+			this.item = JSON.parse(this.requireDetail)
 			this.location = this.item.locationAl.split(",")
-			this.marker.latitude = Number(this.location[0])
-			console.log(Number(this.location[0]))
-			this.marker.longitude = Number(this.location[1])
-			console.log(this.marker)
+			this.marker[0].latitude = Number(this.location[0])
+			this.marker[0].longitude = Number(this.location[1])
+			this.courseWeekday = this.item.courseWeekday.split(",")
+			// console.log("选中的日期:" + this.courseWeekday)
+			for (let i = 0; i < this.courseWeekday.length; i++) {
+				for (let x = 0; x < this.timeAM.length; x++) {
+					if (this.courseWeekday[i] == this.timeAM[x].value) {
+						this.timeAM[x].checked = true
+					}
+				}
+				
+				for (let y = 0; y < this.timePM.length; y++) {
+					if (this.courseWeekday[i] == this.timePM[y].value) {
+						// console.log(this.timePM[y].value)
+						this.timePM[y].checked = true
+					}
+				}
+				
+				for (let z = 0; z < this.timeEvening.length; z++) {
+					if (this.courseWeekday[i] == this.timeEvening[z].value) {
+						this.timeEvening[z].checked = true
+					}
+				}
+			}
+		},
+		methods: {
+			publishButton() {
+				uni.navigateTo({
+					url:'/subpkg/add_stu_require/add_stu_require?item='+encodeURIComponent(this.requireDetail)
+				})
+			}
 		}
 	}
 </script>
@@ -146,4 +327,66 @@
 		width: 100%;
 	}
 }
+.tr-container{
+	    display: flex;
+	    position: relative;
+	    width: 96%;
+	    flex-direction: column;
+	    font-size: 26rpx;
+	    /* border: 1rpx solid gray; */
+	    margin: -10px 20rpx;
+		margin-bottom: 20px;
+	}
+	
+	.tr_1 {
+	    display: flex;
+	    position: relative;
+	    height: 80rpx;
+	    line-height: 80rpx;
+	}
+	.tr_2{
+	    display: block;
+	    height: 80rpx;
+	    line-height: 80rpx;
+	}
+	
+	.th_0,
+	.th_1,
+	.th_2,
+	.th2_0,
+	.th2_1,
+	.th2_2{
+	    width: 12%;
+	    height: 80rpx;
+	    line-height: 80rpx;
+	    border-right: 1rpx solid gray;
+	    border-bottom: 1rpx solid gray;
+	    text-align: center;
+	}
+	
+	.th_0,
+	.th_1,
+	.th_2{
+	    border-top: 1rpx solid gray;
+	}
+	
+	.th_0,
+	.th2_0{
+	    border-left: 1rpx solid gray;
+	}
+	
+	.th2_0{
+	    float: left;
+	    width: 12%;
+	    height: 80rpx;
+	    line-height: 80rpx;
+	    text-align: center;
+	    /* background-color: greenyellow; */
+	}
+	
+.publish-button {
+	background-color: #E2F0D9;
+	width: 60%;
+	border-radius: 50%;
+}
 </style>

+ 12 - 8
education_uni/subpkg/student_require/student_require.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<uni-swipe-action>
-			<template v-for="(item, index) in requirement">
+			<view v-for="(item, index) in requirement" :key="item.requireId">
 				<uni-swipe-action-item :threshold="0" :right-options="item.options" @click="bindClick(item)">
 					<view class="requires" @click="requireDetail(item)">
 						<uni-row class="demo-uni-row">
@@ -32,7 +32,7 @@
 						</view>
 					</view>
 				</uni-swipe-action-item>
-			</template>
+			</view>
 		</uni-swipe-action>
 		
 		<uni-fab  :pattern="pattern" horizontal="left" vertical="bottom"
@@ -42,6 +42,8 @@
 </template>
 
 <script>
+	import { mapState, mapMutations } from 'vuex'
+	
 	export default {
 		data() {
 			return {
@@ -60,6 +62,7 @@
 			this.getPublishCounts()
 		},
 		methods: {
+			...mapMutations('m_user', ['updateRequireDetail']),
 			fabClick() {
 				uni.navigateTo({
 					url: '/subpkg/add_stu_require/add_stu_require'
@@ -72,23 +75,23 @@
 				this.requirement = result.data.list
 				for (let i = 0; i < this.requirement.length; i++) {
 					if (this.requirement[i].display === '上架') {
-						this.requirement[i].dispaly = '下架'
+						this.requirement[i].display = '下架'
 						this.requirement[i].options = [{text: '下架', style: {backgroundColor: '#E2F0D9', color: 'black'}}]
 					} else {
-						this.requirement[i].dispaly = '上架'
+						this.requirement[i].display = '上架'
 						this.requirement[i].options = [{text: '上架', style: {backgroundColor: '#E2F0D9', color: 'black'}}]
 					}
 				}
-				console.log(this.requirement)
+				// console.log(this.requirement)
 			},
 			async bindClick(item) {
 				const queryObj = {
-					display: item.dispaly,
+					display: item.display,
 					requireId: item.requireId
 				}
 				const { data: result } = await uni.$http.get('/education/student-requirements/updatePersonDisplay', queryObj)
 				if (result.code === 20000) {
-					uni.$showMsg(item.dispaly + '成功')
+					uni.$showMsg(item.display + '成功')
 					setTimeout(() => {
 						this.getPublishCounts()
 					}, 500)
@@ -96,8 +99,9 @@
 			},
 			requireDetail(item) {
 				let stu_require = JSON.stringify(item)
+				this.updateRequireDetail(stu_require)
 				uni.navigateTo({
-					url: '/subpkg/stu_require_detail/stu_require_detail?item=' + encodeURIComponent(stu_require)
+					url: '/subpkg/stu_require_detail/stu_require_detail'
 				})
 			}
 		}