修复:修改init初始化失败提示

This commit is contained in:
2025-12-03 11:28:18 +08:00
parent 98738a494f
commit e61ceaf5f3
4 changed files with 13 additions and 2 deletions

View File

@@ -496,7 +496,9 @@
"valueAddedServices": "Value-added services",
"readAgree": "I have read and agreed",
"readAgreeServices": "Please read and agree to the value-added services first",
"orderDetails": "Order Details"
"orderDetails": "Order Details",
"pointsRecord": "Points consumption record",
"unusable": "The billing service cannot be used on the device"
},
"vip": {
"courseVip": "Course VIP",

View File

@@ -497,7 +497,8 @@
"readAgree": "我已阅读并同意",
"readAgreeServices": "请先阅读并同意增值服务",
"orderDetails": "订单详情",
"pointsRecord": "积分消费记录"
"pointsRecord": "积分消费记录",
"unusable": "设备上无法使用计费服务"
},
"vip": {
"courseVip": "课程VIP",

View File

@@ -224,6 +224,10 @@
// 初始化成功
} else {
console.log('init失败了');
uni.showToast({
title: '设备上无法使用计费服务',
icon: 'fail'
})
// 初始化失败
isConnected.value = false;
}

View File

@@ -5,6 +5,9 @@
<!-- 自定义导航栏 -->
<nav-bar :title="$t('user.consumptionRecord')"></nav-bar>
</template>
<view style="padding: 20rpx;background-color:#FFF3CD">
<text style="font-size: 26rpx; color: #FFA500;">{{goBuyTitle}}</text>
</view>
<view class="recharge-record" v-if="(bookList && bookList.length > 0)">
<view class="go-gecharge" @click="goRecharge">
<view>{{$t('order.recharge')}}</view>
@@ -40,6 +43,7 @@
const bookList = ref([])
const loading = ref(false)
const firstLoad = ref(true)
const goBuyTitle = ref('"【天医币】仅为我平台支付使用币种,仅为了方便用户支付使用。【天医币】可以用于在我平台支付书籍或课程使用。【天医币】这个名称是为适应我们平台的定位属性,所起名称。与区块链虚拟货币无任何关系。"')
// 充值记录列表
async function rechargeList(pageNo : number, pageSize : number) {