Bläddra i källkod

更新研学首页tab

vaecebyZ 9 månader sedan
förälder
incheckning
282625d27e
2 ändrade filer med 12 tillägg och 7 borttagningar
  1. 6 0
      pages/dev/index.vue
  2. 6 7
      study/index.vue

+ 6 - 0
pages/dev/index.vue

@@ -10,6 +10,7 @@
     <button @click="toShare">记录研学历程</button>
     <button @click="jscode">获取jscode</button>
     <button @click="fenxiang">研学分享</button>
+    <button @click="daijia">代驾</button>
     <uni-calendar ref="calendar" :showMonth="false" style="z-index: 999;" :insert="false" @confirm="confirm"
       title="出发时间" :showCancelAndOk="false">
       <template v-slot:btn>
@@ -31,6 +32,11 @@ export default {
     };
   },
   methods: {
+    daijia(){
+      uni.navigateTo({
+        url: '/trip/index/index'
+      });
+    },
     openCalendar() {
       this.$refs.calendar.open();
     },

+ 6 - 7
study/index.vue

@@ -190,13 +190,12 @@
 				getMenu({currentPage:1,pageSize:5,userId,belongType:2}).then(res=>{
 					if(res.state == 'Success'){
 						this.typeList = res.content.records
-						const redRoad = this.typeList.find(item=>item.columnName == '红色革命');
-						// 把红色革命放到列表的第一个
-						if(redRoad){
-							this.typeList = this.typeList.filter(item=>item.columnName != '红色革命')
-							this.typeList.unshift(redRoad)
-						}
-						console.log(res.content.records);
+						// const redRoad = this.typeList.find(item=>item.columnName == '红色革命');
+						// // 把红色革命放到列表的第一个
+						// if(redRoad){
+						// 	this.typeList = this.typeList.filter(item=>item.columnName != '红色革命')
+						// 	this.typeList.unshift(redRoad)
+						// }
 					}
 				})
 			},