培训班修改+充值支付方式

This commit is contained in:
liuyuan
2025-04-18 09:07:37 +08:00
parent 8c83683966
commit 06f8fcc1a0
15 changed files with 1133 additions and 900 deletions

View File

@@ -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

View File

@@ -72,7 +72,8 @@
<template slot="labelSlot" slot-scope="slotProps">
<view class="label_content AC_List">
<view class="left">
<view class="title">{{ slotProps.row.orderType }}</view>
<view class="title" v-if="slotProps.row.productName">{{ slotProps.row.productName }}</view>
<view class="title" v-else>{{ slotProps.row.orderType }}</view>
</view>
<view
:class="`right ${
@@ -292,7 +293,7 @@ export default {
if(data.relationId){
uni.navigateTo({
url: "/pages/bookShop/orderLCont?orderId=" +
id
data.relationId
});
}
@@ -433,26 +434,23 @@ export default {
.AC_List {
overflow: hidden;
.left {
width: calc(100% - 220rpx) !important;
width: calc(100% - 120rpx) !important;
font-weight: 700;
float: left;
color: #333;
font-size: 32rpx;
line-height: 60rpx;
line-height: 44rpx;
}
.right {
display: block;
width: 200rpx !important;
width: 120rpx !important;
float: right;
text-align: right;
font-size: 32rpx;
font-weight: 700;
color: #333;
}
// border-bottom: 1px solid #eee;
// padding: 40rpx 10rpx;
}
.AC_title {
font-size: 32rpx;
margin-bottom: 20rpx;
@@ -469,14 +467,14 @@ export default {
font-size: 28rpx;
margin-top: 20rpx;
margin-bottom: 15rpx;
// white-space: nowrap;
color: #888;
float: left;
display: inline-block;
}
.AC_time {
color: #bababa;
font-size: 28rpx;
display: inline-block;
}
}
}

View File

@@ -182,7 +182,11 @@
// 隐藏原生的tabbar
uni.hideTabBar();
this.chargeOrderSn = options.orderSn;
// console.log(e.orderSn,'orderSn')
if (this.$platform == "ios") {
this.payType = 3;
} else {
this.payType = 1;
}
},
//页面显示
onShow() {