培训班修改+充值支付方式
This commit is contained in:
@@ -128,9 +128,13 @@
|
||||
<view class="xiugai boxShadow box_fillet">
|
||||
<common-list :dataList="pageList" @hancleClick="handleClickTab" label="name">
|
||||
<template slot="rightSlot" slot-scope="slotProps">
|
||||
<text class="fdButtonBox aui-text-success"
|
||||
style="line-height: 40rpx; font-size: 50rpx;">{{ slotProps.row.content }}</text>
|
||||
</template>
|
||||
<text
|
||||
class="fdButtonBox aui-text-success"
|
||||
v-if="slotProps.row.contentType&&slotProps.row.contentType == 'hufen'&&hufenNumber>0"
|
||||
style="line-height: 40rpx; font-size: 40rpx;color: #258feb;float: right;"
|
||||
>{{ hufenNumber }}<text style="font-size: 30rpx;margin-left: 4rpx;">湖分</text></text
|
||||
>
|
||||
</template>
|
||||
</common-list>
|
||||
</view>
|
||||
</view>
|
||||
@@ -182,7 +186,7 @@
|
||||
} from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
return {hufenNumber: 0,
|
||||
roleObj: {},
|
||||
infoShow: false, // 显示电子书相关
|
||||
showEbook: false, // 显示电子书相关
|
||||
@@ -211,7 +215,7 @@
|
||||
{
|
||||
name: "我的湖分",
|
||||
url: "/pages/hufen/hufen",
|
||||
type: "pageJump",
|
||||
type: "pageJump", contentType: "hufen",
|
||||
},
|
||||
{
|
||||
name: "个人资料",
|
||||
@@ -253,6 +257,7 @@
|
||||
async onShow() {
|
||||
this.getData();
|
||||
this.getUserRole()
|
||||
this.gethufenData();
|
||||
await this.getUserCouponList()
|
||||
//获取vip身份
|
||||
this.textList = [];
|
||||
@@ -264,6 +269,20 @@
|
||||
//方法
|
||||
methods: {
|
||||
...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
|
||||
|
||||
Reference in New Issue
Block a user