Pārlūkot izejas kodu

增加返回按钮
修改图标

tanxue 1 mēnesi atpakaļ
vecāks
revīzija
9b358ff98e

+ 7 - 0
pages/admin/Hetong/HetongList.vue

@@ -1,6 +1,7 @@
 <template>
 	<view class="phone-list-page ht-list-page">
 		<view class="icon-title-navBar-box border-navBar-box">
+			<view @click="goUpPage" class="nav-bar-icon"></view>
 			<text class="nav-bar-title">历史合同</text>
 		</view>
 	<!-- 课程列表 -->
@@ -146,6 +147,12 @@ function checkKecheng(item) {
 		url: `/pages/admin/Hetong/HetongInfo?id=${item.id}`
 	})
 }
+
+function goUpPage() {
+	uni.redirectTo({
+		url: '/pages/admin/ShouYe/shouye'
+	})	
+}
 </script>
 
 <style>

+ 6 - 0
pages/admin/ShouYe/shouye.vue

@@ -147,6 +147,8 @@
 		kechengCount: 0, //剩余课程数量
 		kechengUsed: 0, //售出课程数量
 		tixingFlag:false,
+		jzHtId:null,
+
 	});
 	const swiperInfo = ref([]);
 	const dotStyle = reactive({
@@ -202,6 +204,7 @@
 			indexInfoData.kechengCount = res.data.kechengCount;
 			indexInfoData.kechengUsed = res.data.kechengUsed;
 			indexInfoData.tixingFlag =res.data.tixingFlag;
+			indexInfoData.jzHtId =res.data.jzHtId;
 		})
 	}
 
@@ -280,6 +283,9 @@
 					uni.navigateTo({
 						url: '/pages/admin/Hetong/Hetong'
 					})
+					uni.navigateTo({
+						url: `/pages/admin/Hetong/Hetong?id=${indexInfoData.jzHtId}`
+					})
 				}else{
 					uni.redirectTo({
 						url: '/pages/admin/Hetong/HetongList'

BIN
static/images/index/ht-a-icon.png


BIN
static/images/index/ht-icon.png