d64cd58f
wesley88
上传验收小程序
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<template>
<view class="page">
<!-- 搜索 -->
<view class="head-search">
<u-search bg-color="#fff" placeholder="请输入关键词" v-model="query.advertisingName" :show-action="false" @search="search"></u-search>
<u-button type="success" @click="search">搜索</u-button>
</view>
<view class="screen-list">
<view class="list" @click="typeshow = true">
<text>类型</text>
<image :src="$imgUrl('/down.png')"></image>
<u-select v-model="typeshow" :list="typeList" @confirm="(v) => {queryChange('advertisingType', v)}"></u-select>
</view>
<!-- <view class="list" @click="setList(1)">
<text>租金</text>
<image :src="$imgUrl('/down.png')"></image>
</view>
<view class="list" @click="setList(2)">
<text>筛选</text>
<image :src="$imgUrl('/down.png')"></image>
</view> -->
<u-select v-model="show" :list="companys" @confirm="handleCompanyConfirm" mini borderless></u-select>
</view>
<!-- 订单列表 -->
<view class="goods-data">
<view class="goods-list">
<view class="list" v-for="(item,index) in tableData" :key="index" @click="toDetail(item)">
<view class="thumb">
|
29cad55a
杨鑫
'验收'
|
30
|
<u-image width="20vw" height="20vw" :src="item.cereAdvertisingInformation.locationDiagram"></u-image>
|
d64cd58f
wesley88
上传验收小程序
|
31
32
33
34
|
<!-- <image :src="item.locationDiagram" mode="widthFix"></image> -->
</view>
<view class="item">
<view class="title">
|
29cad55a
杨鑫
'验收'
|
35
|
<text class="one-omit">{{item.cereAdvertisingInformation.advertisingName}}</text>
|
d64cd58f
wesley88
上传验收小程序
|
36
37
38
|
</view>
<view>
<view class="goods-list-text">
|
29cad55a
杨鑫
'验收'
|
39
40
|
<view class="goods-list-txt">轮播顺序:<text>{{item.cereAdvertisingInformation.rotationOrder}}</text></view>
<view class="goods-list-txt">所属移动端:<text>{{item.cereAdvertisingInformation.affiliation}}</text></view>
|
d64cd58f
wesley88
上传验收小程序
|
41
42
|
</view>
<view class="goods-list-text">
|
29cad55a
杨鑫
'验收'
|
43
44
|
<view class="goods-list-txt">投放定价:<text>{{item.cereReleasePoliciesVO[0]?item.cereReleasePoliciesVO[0].rentalPrice:0}}/{{item.cereReleasePoliciesVO[0]?item.cereReleasePoliciesVO[0].leaseTerm:'月'}}</text></view>
<!-- <view class="goods-list-txt">单次可租赁时间:<text>1天</text></view> -->
|
d64cd58f
wesley88
上传验收小程序
|
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tableData: [],
query: {
advertisingName: '',
advertisingType: '',
},
pageindex: {
pageNumber: 1,
pageSize: 10,
|
29cad55a
杨鑫
'验收'
|
66
67
|
resourceType:'广告位',
dataForm:'2'
|
d64cd58f
wesley88
上传验收小程序
|
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
},
typeshow: false,
typeList: [
{ value: '线上广告位', label: '线上广告位'},
{ value: '实体广告位', label: '实体广告位'},
],
show:false,
companys:[
{
value: '1',
label: '线上广告位'
},
{
value: '2',
label: '线下广告位'
}
]
};
},
mounted() {
this.getAll()
},
methods: {
//查询全数据
getAll() {
let query = Object.assign(this.pageindex, this.query);
|
29cad55a
杨鑫
'验收'
|
95
|
this.$http.sendRequest('/cereReleaseInvestmentResources/queryByPage', 'POST', query, 1).then(res => {
|
d64cd58f
wesley88
上传验收小程序
|
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
//成功回调
this.tableData = res.data.data.content;
}).catch(err => {
console.log(err)
//请求失败
})
},
search() {
this.pageindex = {
pageNumber: 1,
pageSize: 10,
}
this.getAll()
},
queryChange(key, val) {
this.query[`${key}`] = val[0].value;
this.search();
},
toDetail(item) {
|
29cad55a
杨鑫
'验收'
|
115
116
|
let items = JSON.stringify(item.cereAdvertisingInformation)
let celue = JSON.stringify(item.cereReleasePoliciesVO)
|
d64cd58f
wesley88
上传验收小程序
|
117
|
uni.navigateTo({
|
29cad55a
杨鑫
'验收'
|
118
|
url: `/pages/advertisementDetail/advertisementDetail?item=${items}&celue=${celue}`
|
d64cd58f
wesley88
上传验收小程序
|
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
})
},
// advertisementTime() {
// uni.navigateTo({
// url: '/pages/advertisementTime/advertisementTime'
// })
// },
setList(val){
console.log(val)
if(val == 0){
this.companys=[
{
value: '1',
label: '线上广告位'
},
{
value: '2',
label: '线下广告位'
}
]
}else if(val ==1){
this.companys = []
}else if(val ==2){
this.companys = []
}
this.show = true
},
handleCompanyConfirm(val){
console.log(val)
let page = {
pageNumber: 1,
pageSize: 10,
advertisingType:val[0].label
}
|
29cad55a
杨鑫
'验收'
|
157
|
this.$http.sendRequest('/cereReleaseInvestmentResources/likeGet', 'POST', page, 1).then(res => {
|
d64cd58f
wesley88
上传验收小程序
|
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
//成功回调
this.tableData = res.data.data.content
})
},
sousu(){
if(this.keyword != ''){
}
},
}
}
</script>
<style scoped lang="scss">
@import 'advertisement.scss';
</style>
|