This commit is contained in:
2025-04-18 16:32:32 +08:00
parent 09c087508f
commit 8e44473164
74 changed files with 24833 additions and 10335 deletions

View File

@@ -247,10 +247,10 @@
<template slot="rightSlot" slot-scope="slotProps">
<text
class="fdButtonBox aui-text-success"
style="line-height: 40rpx"
>{{ slotProps.row.content }}</text
v-if="slotProps.row.contentType&&slotProps.row.contentType == 'hufen'&&hufenNumber>0"
style="line-height: 40rpx; font-size: 40rpx;color: #3AB3AE;float: right;"
>{{ hufenNumber }}<text style="font-size: 30rpx;margin-left: 4rpx;">湖分</text></text
>
<view> </view>
</template>
</common-list>
@@ -316,7 +316,7 @@ import $http from "@/config/requestConfig.js";
import { mapState, mapMutations } from "vuex";
export default {
data() {
return {
return {hufenNumber: 0,
userCouponNum: 0,
come: "1",
orderList: [
@@ -384,7 +384,11 @@ export default {
url: "/pages/bookShop/orderList?type=mine",
type: "switchTab",
},
},{
name: "我的湖分",
url: "/pages/hufen/hufen",
type: "pageJump", contentType: "hufen",
},
{
name: "个人资料",
url: "/pages/mine/userInfo/persData",
@@ -430,6 +434,7 @@ export default {
onShow() {
this.getBookList();
this.getData();
this.gethufenData();
//获取vip身份
this.textList = [];
this.getUserVipType();
@@ -443,7 +448,20 @@ export default {
},
//方法
methods: {
...mapMutations(["setUserInfo"]),
...mapMutations(["setUserInfo"]), async gethufenData() {
await this.$http
.post("common/userContribution/getUserContribution")
.then((res) => {
console.log("res at line 296:", res);
if (res.code == 0) {
this.hufenNumber = res.total;
} else {
}
})
.catch((e) => {
console.log(e, "报错");
});
},
async getUserCouponList() {
await this.$http
.request({
@@ -1432,7 +1450,7 @@ uni-page-body {
align-items: center;
justify-content: center;
padding: 0 10rpx;
background: linear-gradient(90deg, #258feb 0%, #00e1ec 100%);
background: linear-gradient(90deg, #3AB3AE 0%, #00e1ec 100%);
border-radius: 20rpx;
font-size: 18rpx;
line-height: 40rpx;