4dfe89e4
monkeyhouyi
初始化
|
1
2
|
<template>
<view class="page">
|
00e7322c
monkeyhouyi
我的活动申请
|
3
|
<view class="tabs-box">
|
1b38b4ce
monkeyhouyi
商铺、广告-列表、详情
|
4
5
|
<u-tabs-swiper ref="tabs" :current="current" :list="tabList" @change="tabsChange" :is-scroll="false" :font-size="24" active-color="#0FBB59" :height="70">
</u-tabs-swiper>
|
00e7322c
monkeyhouyi
我的活动申请
|
6
|
</view>
|
4dfe89e4
monkeyhouyi
初始化
|
7
8
|
<!-- 搜索 -->
<view class="head-search">
|
00e7322c
monkeyhouyi
我的活动申请
|
9
10
|
<u-search bg-color="#fff" placeholder="请输入关键词" v-model="query.keyword" :show-action="false" @search="search"></u-search>
<u-button type="success" @click="search">搜索</u-button>
|
4dfe89e4
monkeyhouyi
初始化
|
11
|
</view>
|
4dfe89e4
monkeyhouyi
初始化
|
12
13
|
<view class="goods-data">
<view class="goods-list">
|
00e7322c
monkeyhouyi
我的活动申请
|
14
15
16
17
|
<view class="good-item" v-for="(v, i) in datalist" :key="i">
<view class="body">
<image :src="$imgUrl('/img/2.jpg')" ></image>
<view class="info">
|
19e734d2
杨鑫
场地,登录页,隐私政策
|
18
|
<view class="title">绿道好物节</view>
|
00e7322c
monkeyhouyi
我的活动申请
|
19
20
21
|
<view class="info-items">
<view class="info-item">
<view class="label">活动时间:</view>
|
19e734d2
杨鑫
场地,登录页,隐私政策
|
22
|
<text>2024.10.20</text>
|
00e7322c
monkeyhouyi
我的活动申请
|
23
24
25
26
27
28
29
30
31
|
</view>
<view class="info-item">
<view class="label">参与商家:</view>
<text>6人</text>
</view>
<view class="info-item">
<view class="label">活动状态:</view>
<text>待审核</text>
</view>
|
4dfe89e4
monkeyhouyi
初始化
|
32
33
34
|
</view>
</view>
</view>
|
00e7322c
monkeyhouyi
我的活动申请
|
35
36
37
38
39
40
|
<view class="footer">
<u-button type="primary" size="mini">编辑</u-button>
<u-button type="success" size="mini">提交审核</u-button>
<u-button type="success" size="mini">查看详情</u-button>
<u-button type="info" size="mini">撤回</u-button>
</view>
|
4dfe89e4
monkeyhouyi
初始化
|
41
|
</view>
|
00e7322c
monkeyhouyi
我的活动申请
|
42
|
<u-loadmore :status="statuslist" @loadmore='loading' style="width: 100%; text-align: center;"/>
|
4dfe89e4
monkeyhouyi
初始化
|
43
44
|
</view>
</view>
|
00e7322c
monkeyhouyi
我的活动申请
|
45
46
47
48
|
<view style="height: 120rpx;"></view>
<view class="page-footer">
<u-button type="success" @click="toAdd">活动申请</u-button>
</view>
|
4dfe89e4
monkeyhouyi
初始化
|
49
50
51
52
53
54
55
|
</view>
</template>
<script>
export default {
data() {
return {
|
00e7322c
monkeyhouyi
我的活动申请
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
tabList:[
{ name: '全部' },
{ name: '待提交' },
{ name: '待审核' },
{ name: '通过' },
{ name: '驳回' },
{ name: '进行中' },
{ name: '已结束' },
],
current: 0,
datalist: [{}],
total: 2,
statuslist: 'loadmore',
query: {
keyword: '',
pageSize: 10,
pageNum: 0,
},
|
c62ab6f2
杨鑫
1
|
74
75
76
|
listIn:0,
num:0,
|
4dfe89e4
monkeyhouyi
初始化
|
77
78
|
};
},
|
c62ab6f2
杨鑫
1
|
79
|
onLoad(option) {
|
00e7322c
monkeyhouyi
我的活动申请
|
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
console.log(option.id);
this.num = option.id;
this.statuslist = 'nomore';
},
onPullDownRefresh(e) {
let that = this
that.statuslist = 'loading';
this.page = 0;
setTimeout(() => {
that.datalist = [{}];
that.statuslist = that.datalist.length >= that.total ? 'nomore' : 'loadmore';
uni.stopPullDownRefresh();
}, 1000);
},
onReachBottom(e) {
// this.loading();
|
c62ab6f2
杨鑫
1
|
96
|
},
|
4dfe89e4
monkeyhouyi
初始化
|
97
|
methods: {
|
00e7322c
monkeyhouyi
我的活动申请
|
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
tabsChange(val) {
this.current = val;
},
search() {},
loading() {
let that = this
if(that.statuslist == 'nomore') return;
that.statuslist = 'loading';
that.query.pageNum = ++that.query.pageNum;
setTimeout(() => {
let data = [{}, {}];
that.datalist = [...that.datalist, ...data];
console.log(that.datalist);
that.statuslist = that.datalist.length >= that.total ? 'nomore' : 'loadmore';
}, 300)
},
|
4dfe89e4
monkeyhouyi
初始化
|
114
115
116
117
118
|
sel(val){
this.listIn = val
},
reconciliationdetail() {
|
00e7322c
monkeyhouyi
我的活动申请
|
119
120
121
122
123
|
},
toAdd() {
uni.navigateTo({
url: '/pages/activityAdd/activityAdd'
})
|
4dfe89e4
monkeyhouyi
初始化
|
124
125
126
127
128
129
130
131
|
}
}
}
</script>
<style scoped lang="scss">
@import 'mycreated.scss';
</style>
|