设置密码 会员

This commit is contained in:
魏啾
2024-05-23 11:21:11 +08:00
parent d0cf4a5cc6
commit 8386120c87
9 changed files with 259 additions and 75 deletions

View File

@@ -9,20 +9,20 @@
<image class="towcontentitemimage"
src="https://ointmentweapp.oss-cn-beijing.aliyuncs.com/my/recharge.png" mode="aspectFill"></image>
<view class="towcontentitemone flex-start">
<image class="towcontentitemoneimage" :src="item.store_avatar" mode="aspectFill"></image>
<text class="towcontentitemonetext" style="color: #333333;">{{item.store_title}}</text>
<image class="towcontentitemoneimage" :src="item.logo" mode="aspectFill"></image>
<text class="towcontentitemonetext" style="color: #333333;">{{item.chainName}}</text>
</view>
<view class="towcontentitemtow flex-between">
<text class="towcontentitemtowetext" style="color:#333333;">{{item.vip_number}}</text>
<text>{{item.end_time}}</text>
<text class="towcontentitemtowetext" style="color:#333333;">{{item.is_vip}}</text>
<text>{{item.shopName}}</text>
</view>
</view>
</view>
<view v-if="list.length==0 && is_end == true" class="flex-colum">
<view v-if="list.length== 0 && is_end == true" class="flex-colum" >
<image :src="bgnothave" mode="aspectFill">
</image>
</view>
<u-loadmore :status="form.status" />
<u-loadmore :status="form.status" iconSize='24' fontSize='24' height='40' />
</view>
</template>
@@ -30,53 +30,57 @@
export default {
data() {
return {
bgnothave:uni.getStorageSync('bgnothave'),
bgnothave: uni.getStorageSync('bgnothave'),
list: [],
is_end: false,
nickname: uni.cache.get('loginuser').userinfo.nickname,
nickname: uni.cache.get('userInfo').nickName,
form: {
page: 1,
page: 1, //页数
size: 10, //页容量
status: 'loadmore',
},
}
},
onShow() {
this.userusercarlist()
this.paygetShopByMember()
},
onReachBottom() {
this.userusercarlist()
},
computed: {
this.paygetShopByMember()
},
computed: {},
methods: {
async userusercarlist() {
let res = await this.api.userusercarlist({
async paygetShopByMember() {
let res = await this.api.paygetShopByMember({
page: this.form.page,
store_id:uni.cache.get('store_id')
pageSize: this.form.size,
userId: uni.cache.get('userInfo').id,
shopId:''
})
if (res.length == 0) {
this.is_end = true
if (res.data.pages < this.form.page) {
this.form.status = 'nomore'
if (this.form.page == 1 && res.data.list == 0) {
this.is_end = true
}
return false;
} else {
this.form.status = 'loading';
this.form.page = ++this.form.page;
setTimeout(() => {
this.list = [...this.list, ...res];
if (res.length == 10) {
this.form.status = 'loading';
} else {
this.is_end = true;
this.list = [...this.list, ...res.data.list];
this.form.status = 'loading';
if (res.data.pageNum == res.data.pages) {
this.form.status = 'nomore';
} else {
this.form.status = 'loading';
}
}, 500)
}
},
eeInfo(e) {
uni.pro.navigateTo('my/member/memberinfo',{
id: e.vip_id,
lang:1
eeInfo(item) {
uni.pro.navigateTo('member/index',{
shopId_id:item.shopId,
type:'list'
})
},
}
@@ -137,6 +141,7 @@
.towcontentitemone {
position: relative;
z-index: 10;
.towcontentitemoneimage {
width: 76rpx;
height: 76rpx;
@@ -162,7 +167,7 @@
width: 100%;
left: 0;
bottom: 18rpx;
padding:0 32rpx;
padding: 0 32rpx;
// margin-top: 52rpx;
font-size: 24rpx;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;