This commit is contained in:
cun-nan 2024-09-24 17:08:49 +08:00
parent c7670d1b27
commit bf1165deba
2 changed files with 68 additions and 44 deletions

View File

@ -320,6 +320,12 @@
"navigationStyle": "custom"
}
},
{
"path": "invite/details",
"style": {
"navigationBarTitleText": "活动详情"
}
},
{
"path": "feedback/feedback",
"style": {

View File

@ -1,7 +1,48 @@
<template>
<view class="content">
<view class="container">
<view class="box-hang">
<view class="dis">活动名称</view>
<view class="" >
<text>推荐会员消费有礼</text>
</view>
</view>
<view class="box-hang">
<view class="dis">活动时间</view>
<view class="" >
<text>长期有效</text>
</view>
</view>
<view class="box-hang">
<view class="dis">推荐人等级</view>
<view class="" >
<text>普通会员白金会员</text>
</view>
</view>
<view class="box-hang">
<view class="dis">支付方式</view>
<view class="" >
<text>微信支付宝云闪付现金pos刷卡</text>
</view>
</view>
<view class="box-hang">
<view class="dis">赠送优惠券</view>
<view class="" >
<text>50元优惠券</text>
</view>
</view>
<view class="box-hang">
<view class="dis">赠送积分</view>
<view class="" >
<text>20</text>
</view>
</view>
<view class="box-hang">
<view class="dis">赠送成长值</view>
<view class="" >
<text>2成长值</text>
</view>
</view>
</view>
</view>
</template>
@ -19,26 +60,17 @@
}
},
onLoad() {
this.resetting() //
this.getList() //
},
onLoad() {},
onPullDownRefresh() {
//
this.resetting() //
this.getList() //
uni.stopPullDownRefresh()
},
onReachBottom() {
//
if (this.pageNo >= this.totalPage) {
uni.showToast({
title: '没有下一页数据',
icon: 'none'
})
} else {
this.pageNo++
this.getList()
}
},
@ -46,36 +78,6 @@
},
methods: {
//
resetting() {
this.pageNo = 1
this.pageSize = 10
this.totalPage = ''
this.List = []
},
//
async getList() {
uni.showLoading({
title: '加载中'
});
let res = await request({
url: '网络请求',
method: 'get',
data: {
pageNo: this.pageNo,
pageSize: this.pageSize,
}
})
if (res.code == 200) {
uni.hideLoading(); //
if (this.pageNo != 1) {
this.List = this.ruleList.concat(res.result.records)
} else {
this.List = res.result.records
}
this.totalPage = res.result.pages
}
},
goback() {
uni.navigateBack()
}
@ -92,6 +94,22 @@
width: 100%;
height: 100vh;
box-sizing: border-box;
padding-top: 12px;
}
.box-hang {
background-color: white;
width: 96%;
display: flex;
box-sizing: border-box;
padding: 15px 15px;
border-bottom: 1px solid #f4f5f6;
margin: 0 auto;
font-size: 14px;
}
.dis {
color: #666666;
width: 30%;
}
</style>