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