浏览代码

增加返回按钮
修改图标

tanxue 1 月之前
父节点
当前提交
9b358ff98e
共有 4 个文件被更改,包括 13 次插入0 次删除
  1. 7 0
      pages/admin/Hetong/HetongList.vue
  2. 6 0
      pages/admin/ShouYe/shouye.vue
  3. 二进制
      static/images/index/ht-a-icon.png
  4. 二进制
      static/images/index/ht-icon.png

+ 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'

二进制
static/images/index/ht-a-icon.png


二进制
static/images/index/ht-icon.png