积分代兑换

This commit is contained in:
liuye
2023-04-23 11:38:09 +08:00
parent 78da22962c
commit 87fcacf38c
5 changed files with 51 additions and 34 deletions

View File

@@ -5,15 +5,16 @@
search-icon-color="#999" color="#666" @search="getListInit"></u-search>
</AiTopFixed>
<div class="list-content">
<div class="item">
<div class="item" v-for="(item, index) in list" :key="index" @click="toGoodsList(item)">
<div class="name">
<img src="./img/user-img.png" alt="">张三
<img :src="item.avatarUrl" alt="" v-if="item.avatarUrl">
<img src="./img/user-img.png" alt="" v-else>{{item.name}}
</div>
<div class="total">
<span>积分总额2350</span>
<span>积分余额2350</span>
<span>积分总额{{item.allIntegral}}</span>
<span>积分余额{{item.integral}}</span>
</div>
<div class="bottom" @click="toGoodsList">
<div class="bottom">
<p>帮兑换</p>
<u-icon name="arrow-right" color="#CACACA" size="24" />
</div>
@@ -51,19 +52,19 @@ export default {
this.getList()
},
getList() {
// this.$http.post(`/app/appconvenientaddressbook/list`, null, {
// params: {
// current: this.current,
// name: this.keyword
// }
// }).then(res => {
// if (res.code == 0) {
// this.list = this.current == 1 ? res.data.records : [...this.list, ...res.data.records]
// }
// })
this.$http.post(`/app/appwechatuserqujing/listByFdAppletUserByGirdMember`, null, {
params: {
current: this.current,
con: this.keyword
}
}).then(res => {
if (res.code == 0) {
this.list = this.current == 1 ? res.data.records : [...this.list, ...res.data.records]
}
})
},
toGoodsList() {
uni.navigateTo({url: './goodsList'})
toGoodsList(item) {
uni.navigateTo({url: `./goodsList?openId=${item.openId}&userId=${item.id}&integralUserId=${item.integralUserId}`})
}
},
onReachBottom() {
@@ -100,6 +101,7 @@ export default {
width: 40px;
height: 40px;
margin-right: 12px;
vertical-align: bottom;
}
}
.total {