Blame view

pages/record/record.vue 2.12 KB
4dfe89e4   monkeyhouyi   初始化
1
2
3
  <template>
  	<view class="page">
  		<view class="screen-list">
4dfe89e4   monkeyhouyi   初始化
4
5
  			<view class="list">
  				<text>租赁申请记录</text>
c62ab6f2   杨鑫   1
6
  				<image :src="$imgUrl('/down.png')" ></image>
4dfe89e4   monkeyhouyi   初始化
7
8
9
10
11
12
  			</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">
abd11604   monkeyhouyi   物业缴费
13
  					<view class="title">
354e3811   杨鑫   '验收'
14
  						<view class="left">{{item.cereBasicInformationShop&&item.cereBasicInformationShop.shopName?item.cereBasicInformationShop.shopName:item.cereBasicInformationVenue&&item.cereBasicInformationVenue.venueName?item.cereBasicInformationVenue.venueName:item.cereAdvertisingInformation&&item.cereAdvertisingInformation.advertisingName?item.cereAdvertisingInformation.advertisingName:''}}</view>
abd11604   monkeyhouyi   物业缴费
15
  						<view class="right"><u-icon name="arrow-rightward"></u-icon></view>
4dfe89e4   monkeyhouyi   初始化
16
  					</view>
354e3811   杨鑫   '验收'
17
18
  					<view class="info-item">申请时间:{{item.applicationTime}}</view>
  					<view class="info-item">状态:<span style="color: #0FBB59;">{{item.auditStatus == '1'?'待审核':item.auditStatus == '2'?'审核通过':item.auditStatus == '3'?'已驳回':''}}</span></view>
4dfe89e4   monkeyhouyi   初始化
19
  				</view>
4dfe89e4   monkeyhouyi   初始化
20
21
22
23
24
25
26
27
28
  			</view>
  		</view>
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
354e3811   杨鑫   '验收'
29
30
31
32
33
  				recordList:'',
  				pageindex: {
  					pageNumber: 1,
  					pageSize: 10
  				},
4dfe89e4   monkeyhouyi   初始化
34
35
  			};
  		},
354e3811   杨鑫   '验收'
36
37
38
  		mounted(){
  			this.getALL()
  		},
4dfe89e4   monkeyhouyi   初始化
39
  		methods: {
354e3811   杨鑫   '验收'
40
41
42
43
44
45
46
47
48
49
50
51
52
  			getALL(){
  				this.pageindex.applicant =uni.getStorageSync('shopId')
  				this.$http.sendRequest('/cereBusinessInfo/queryByPage', 'POST', this.pageindex,1).then(res => {
  					//成功回调
  					
  					this.$http.sendRequest('/cereAdvertiserInfo/queryByPage', 'POST', this.pageindex, 1).then(item => {
  					
  					this.recordList =  [...res.data.data.content,...item.data.data.content]
  					console.log(this.recordList)
  					})
  				})
  			
  			},
4dfe89e4   monkeyhouyi   初始化
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
  			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>