优化问题
This commit is contained in:
@@ -108,6 +108,9 @@ export default {
|
||||
locationdistrict(data) { //获取行政区域(区,街道)
|
||||
return uni.api.get("/location/district", data);
|
||||
},
|
||||
queryMemberAccount(data) { //获取行政区域(区,街道)
|
||||
return uni.api.get("/pay/queryMemberAccount", data);
|
||||
},
|
||||
ordermineCoupons(data) { //我的优惠券
|
||||
return uni.api.get("/order/mineCoupons", data, false);
|
||||
},
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
<view class="bild">
|
||||
<view class="bildLeft">
|
||||
<text>我的余额</text>
|
||||
<view>12</view>
|
||||
<view>{{info.amount}}</view>
|
||||
</view>
|
||||
<view class="bildRight">
|
||||
<text>我的积分</text>
|
||||
<view>12</view>
|
||||
<view>{{info.levelConsume}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="navTop">
|
||||
@@ -21,28 +21,18 @@
|
||||
<view :class="[active==2?'xian':'']" style="left: 36rpx;"> </view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="listStyle">
|
||||
<view class="listStyle" v-for="(item,i) in list" :key="i">
|
||||
<!-- <image :src="require('')" style="width: 76rpx;height: 76rpx;float: left;" mode=""></image> -->
|
||||
<view class="listrigth">
|
||||
<view>尚美养储值卡</view>
|
||||
<view>2023-04-21 10:32:44</view>
|
||||
<view>{{item.biz_name}}</view>
|
||||
<view>+{{item.amount}}</view>
|
||||
</view>
|
||||
<view class="listrigth2">
|
||||
<view>尚美养储值卡2</view>
|
||||
<view>2023-04-21 10:32:44</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="listStyle">
|
||||
<!-- <image :src="require('./1.png')" style="width: 76rpx;height: 76rpx;float: left;" mode=""></image> -->
|
||||
<view class="listrigth">
|
||||
<view>尚美养储值卡</view>
|
||||
<view>2023-04-21 10:32:44</view>
|
||||
</view>
|
||||
<view class="listrigth2">
|
||||
<view>尚美养储值卡</view>
|
||||
<view>2023-04-21 10:32:44</view>
|
||||
<view>{{item.create_time}}</view>
|
||||
<view>充值成功</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -52,28 +42,41 @@
|
||||
return {
|
||||
active: 1,
|
||||
list: [],
|
||||
form:{
|
||||
page:1,
|
||||
pageSize:10,
|
||||
memberId:''
|
||||
}
|
||||
form: {
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
memberId: null
|
||||
},
|
||||
info: null
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(e) {
|
||||
this.info = e
|
||||
this.form.memberId = e.memberId
|
||||
this.getlist()
|
||||
},
|
||||
onReachBottom() {
|
||||
this.getlist()
|
||||
},
|
||||
methods: {
|
||||
getlist() {
|
||||
// member/queryMemberAccount
|
||||
// get
|
||||
|
||||
// memberId string 必需 示例值: 11
|
||||
// page string 必需 示例值: 1
|
||||
// pageSize string
|
||||
|
||||
async getlist() {
|
||||
if (this.active == 1) {
|
||||
let res = await this.api.queryMemberAccount(this.form)
|
||||
if (res.code == 0) {
|
||||
if (this.form.page == 1) {
|
||||
this.list = res.data.list
|
||||
} else {
|
||||
this.form.page++
|
||||
this.list.push(res.data.list)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.list = []
|
||||
}
|
||||
},
|
||||
clickEvent(i) {
|
||||
this.active = i
|
||||
this.getlist()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -95,7 +98,7 @@
|
||||
>view,
|
||||
>text {
|
||||
text-align: center;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
color: #333;
|
||||
}
|
||||
|
||||
>view {
|
||||
@@ -109,7 +112,7 @@
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
color: #333;
|
||||
margin-top: -50rpx;
|
||||
padding: 0 120rpx;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</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>
|
||||
@@ -55,7 +55,7 @@
|
||||
page: this.form.page,
|
||||
pageSize: this.form.size,
|
||||
userId: uni.cache.get('userInfo').id,
|
||||
shopId:''
|
||||
shopId: ''
|
||||
})
|
||||
|
||||
if (res.data.pages < this.form.page) {
|
||||
@@ -79,10 +79,10 @@
|
||||
}
|
||||
},
|
||||
eeInfo(item) {
|
||||
console.log(item,'调试123123')
|
||||
uni.pro.navigateTo('member/memberdetails',{
|
||||
shopId_id:item.shopId,
|
||||
type:'list'
|
||||
|
||||
uni.pro.navigateTo('member/memberdetails', {
|
||||
shopId_id: item.shopId,
|
||||
type: 'list'
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
@@ -133,13 +133,9 @@
|
||||
this.amount = a.minNum
|
||||
},
|
||||
goUrl(url){
|
||||
uni.pro.navigateTo(url,this.info)
|
||||
},
|
||||
eeInfo(e) {
|
||||
uni.pro.navigateTo('my/member/memberinfo', {
|
||||
id: e,
|
||||
})
|
||||
uni.pro.navigateTo(url,this.userInfo)
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user