tanxue před 2 hodinami
rodič
revize
b196fecb62
2 změnil soubory, kde provedl 62 přidání a 0 odebrání
  1. 13 0
      api/khShouye.js
  2. 49 0
      components/listCard/hetongCard.vue

+ 13 - 0
api/khShouye.js

@@ -0,0 +1,13 @@
+import request from '@/utils/request'
+
+export function getKehuIndex(data = {}) {
+  return request({
+    'url': '/kehu/index',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}

+ 49 - 0
components/listCard/hetongCard.vue

@@ -0,0 +1,49 @@
+<template>
+	<view class="shouye-card-box kecheng-card-box">
+		<!-- card title -->
+		<view class="card-head-box">
+			<view class="card-line-title">合同</view>
+		</view>
+		<!-- kaoshi title -->
+		<view class="card-name-box">
+			<view class="card-name" v-if="data.realName"><icon></icon>{{data.realName}}</view>
+			<!-- <text class="card-level">{{data.zyLevelName}}</text> -->
+		</view>
+		<!-- 内容区域 -->
+		<view class="card-content-box kaoshi-content-box">
+			<view class="card-content-item">
+				<icon :style="{ backgroundImage: 'url(' + data.iconsArr.timeIcon + ')' }"></icon>
+				<view class="content-text-box">
+					<text>时间</text>
+				</view>
+			</view>
+		</view>
+		<!-- 底部 -->
+		<view class="card-bottom-box">
+			<button type="default" class="index-card-btn" @click="handleStudy(data)">查看</button>
+		</view>
+	</view>
+</template>
+
+<script setup>
+	defineProps({
+		data: {
+			type: Object,
+		}
+	})
+	
+	function checkMore() {
+		uni.navigateTo({
+			url:"/pages/client/Kecheng/list?from=shouye"
+		})
+	}
+	
+	function handleStudy(item) {
+		uni.navigateTo({
+			url: `/pages/client/hetong/hetongInfo?id=${item.id}`
+		})
+	}
+</script>
+
+<style>
+</style>