Blame view

pages/record/record.vue 1.69 KB
4dfe89e4   monkeyhouyi   初始化
1
2
3
4
5
6
  <template>
  	<view class="page">
  		<view class="screen-list">
  			<view>记录查询</view>
  			<view class="list">
  				<text>租赁申请记录</text>
c62ab6f2   杨鑫   1
7
  				<image :src="$imgUrl('/down.png')" ></image>
4dfe89e4   monkeyhouyi   初始化
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  			</view>
  		</view>
  		<!-- 记录列表 -->
  		<view class="record-list">
  			<view class="record-list-box" v-for="(item,index) in recordList" :key="index" @click="recordXq(item)">
  				<view class="list">
  				<view class="title-date">
  					<view class="date">
  						<text>租赁资源名称:{{item.recordName}}</text>
  					</view>
  					<view class="date">
  						<text>承租人姓名:{{item.porName}}</text>
  					</view>
  					<view class="date">
  						<text>提交时间:{{item.tTime}}</text>
  					</view>
  					<view class="date">
  						状态:<text :class="item.state == '受理中'?'org':'green'">{{item.state}}</text>
  					</view>
  				</view>
  				<view class="integral">
c62ab6f2   杨鑫   1
29
  					<image :src="$imgUrl('/right2.png')"></image>
4dfe89e4   monkeyhouyi   初始化
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
  				</view>
  				</view>
  				
  			</view>
  		</view>
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
  				recordList:[
  					{
  						recordName:'这里有名称这里有名称',
  						porName:'徐丽',
  						tTime:'2022-02-22 12:00:00',
  						state:'受理中'
  					},
  					{
  						recordName:'这里有名称这里有名称',
  						porName:'徐丽',
  						tTime:'2022-02-22 12:00:00',
  						state:'已通过'
  					}
  				]
  			};
  		},
  		methods: {
  			recordXq(item){
  				 const encodedItem = encodeURIComponent(JSON.stringify(item));
  				uni.navigateTo({
  				 url: `/pages/accepting/accepting?item=${encodedItem}`,
  				 })
  			},
  			contractdetail(){
  				// uni.navigateTo({
  				
  				// })
  			}
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'record.scss';
  </style>