Blame view

lvdao-miniapp/pages/record/record.vue 3.28 KB
3f535f30   杨鑫   '初始'
1
2
3
  <template>
  	<view class="page">
  		<view class="screen-list">
3f535f30   杨鑫   '初始'
4
  			<view class="list">
20f3f580   wesley88   1
5
  				<u-input  type="select" @click="typeShow = true":placeholder="pageindex.auditStatus == '1'?'待审核':pageindex.auditStatus == '2'?'待签约':pageindex.auditStatus == '3'?'已驳回':'状态筛选'"  />
3f535f30   杨鑫   '初始'
6
7
8
9
10
11
  			</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">
e5b57447   杨鑫   '分包问卷'
12
13
14
  					<view class="title">
  						<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>
  						<view class="right"><u-icon name="arrow-rightward"></u-icon></view>
3f535f30   杨鑫   '初始'
15
  					</view>
e5b57447   杨鑫   '分包问卷'
16
  					<view class="info-item">申请时间:{{item.applicationTime}}</view>
0fd8b750   杨鑫   '最新落地1'
17
  					<view class="info-item">状态:<span style="color: #0FBB59;">{{item.auditStatus =='1'?'待审核':item.auditStatus =='2'?'待签约':item.auditStatus =='3'?'已驳回':item.auditStatus =='4'?'已签约':'已终止'}}</span></view>
249d13ce   杨鑫   最新
18
  					
3f535f30   杨鑫   '初始'
19
  				</view>
3f535f30   杨鑫   '初始'
20
21
  			</view>
  		</view>
20f3f580   wesley88   1
22
  		<view v-if="recordList.length == 0" style="text-align: center;margin-top: 60rpx;color:#808080;">暂无数据</view>
60cd6339   杨鑫   '最新'
23
  		<u-select v-model="typeShow" :list="activesType" @confirm="typeChange"></u-select>
3f535f30   杨鑫   '初始'
24
25
26
27
28
29
30
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
e5b57447   杨鑫   '分包问卷'
31
32
  				recordList:'',
  				pageindex: {
45318813   杨鑫   '最新版本'
33
  					auditStatus:1,
2a109046   杨鑫   '最新小程序'
34
  					pageNumber: 0,
e5b57447   杨鑫   '分包问卷'
35
36
  					pageSize: 10
  				},
60cd6339   杨鑫   '最新'
37
38
  				activesType: [
  					{
60cd6339   杨鑫   '最新'
39
  					value: 1,
45318813   杨鑫   '最新版本'
40
41
42
43
  					label: '待审核'
  				},{
  					value:2,
  					label: '待签约'
60cd6339   杨鑫   '最新'
44
45
  				},
  				{
45318813   杨鑫   '最新版本'
46
47
  					value: 3,
  					label: '已驳回'
60cd6339   杨鑫   '最新'
48
49
50
  				}
  				],
  				typeShow:false,
3f535f30   杨鑫   '初始'
51
52
  			};
  		},
e5b57447   杨鑫   '分包问卷'
53
54
55
  		mounted(){
  			this.getALL()
  		},
3f535f30   杨鑫   '初始'
56
  		methods: {
e5b57447   杨鑫   '分包问卷'
57
  			getALL(){
0fd8b750   杨鑫   '最新落地1'
58
  				this.pageindex.applicant =uni.getStorageSync('user').phone
e5b57447   杨鑫   '分包问卷'
59
60
  				this.$http.sendRequest('/cereBusinessInfo/queryByPage', 'POST', this.pageindex,1).then(res => {
  					//成功回调
440bccda   wesley88   1
61
  					 this.recordList = res.data.data.records
20f3f580   wesley88   1
62
  					this.$http.sendRequest('/cereAdvertiserInfo/queryByPage', 'POST', this.pageindex, 1).then(item => {
a6a3878d   杨鑫   最新绿道
63
64
65
  					 if(item.data.data.content !=undefined &&item.data.data.content.length !=0){
  						 				
  						 item.data.data.content.map(val=>{
20f3f580   wesley88   1
66
67
68
69
70
71
72
73
74
75
76
  							  this.recordList.push(val)
  						 })
  					 } 
  					
  					 
  					})
  				})
  				return
  				this.pageindex.applicant =uni.getStorageSync('user').phone
  				this.$http.sendRequest('/cereBusinessInfo/queryByPage', 'POST', this.pageindex,1).then(res => {
  					//成功回调
e5b57447   杨鑫   '分包问卷'
77
78
79
80
  					
  					this.$http.sendRequest('/cereAdvertiserInfo/queryByPage', 'POST', this.pageindex, 1).then(item => {
  					
  					this.recordList =  [...res.data.data.content,...item.data.data.content]
60cd6339   杨鑫   '最新'
81
  					
e5b57447   杨鑫   '分包问卷'
82
83
84
85
  					})
  				})
  			
  			},
3f535f30   杨鑫   '初始'
86
87
88
89
90
91
  			recordXq(item){
  				 const encodedItem = encodeURIComponent(JSON.stringify(item));
  				uni.navigateTo({
  				 url: `/pages/accepting/accepting?item=${encodedItem}`,
  				 })
  			},
60cd6339   杨鑫   '最新'
92
  			typeChange(e) {
60cd6339   杨鑫   '最新'
93
  				this.pageindex.start = e[0].labels
45318813   杨鑫   '最新版本'
94
95
  				this.pageindex.auditStatus = e[0].value
  					this.getALL()
60cd6339   杨鑫   '最新'
96
  			},
3f535f30   杨鑫   '初始'
97
98
99
100
101
102
103
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'record.scss';
  </style>