Parcourir la source

fix: 修复bug

huangziyang il y a 1 semaine
Parent
commit
4f1a3d7241

+ 1 - 1
pages/challenge/addContant.vue

@@ -8,7 +8,7 @@
     <view class="bg">
       <view class="bg-1">
         <image
-          src="https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/05/mBkOXhmyeJMMfONavrEVHj1ZIPBRc00jXbG8O2jT.png"
+          src="https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/05/S8CkzXdkVdToQYvRmfs9u9hbFpx3jaiBsfIor51m.png"
           show-menu-by-longpress
           class="qrcode"
         ></image>

+ 1 - 0
pages/real/exam.vue

@@ -155,6 +155,7 @@ onMounted(async () => {
     :empty="!data.length"
     border
     v-if="!showReport && !showShare"
+    text="加载中···"
   />
   <Container
     bgColor="url('https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/05/7i6ROn34tZGe8QR4gaWDP1ZzyPYjqlvPgLLFRmIe.png')"

+ 35 - 9
pages/recharge/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <Container title="VIP充值">
+  <Container title="VIP充值" bgColor="#f8f8f8" headerColor="#fff">
     <view class="recharge-main">
       <!-- 内容区 -->
       <view class="content">
@@ -25,10 +25,13 @@
         <div class="title">权益展示</div>
         <view class="benefit">
           <view
-            v-for="item in data[activeCurrent]?.binding_rights_info"
+            v-for="(item, i) in data[activeCurrent]?.binding_rights_info"
             :key="item.id"
-            >{{ item.authority_title }}</view
+            class="benefit-item"
           >
+            <view class="t">权益{{ i + 1 }}</view>
+            {{ item.authority_title }}
+          </view>
         </view>
       </view>
       <!-- 底部按钮 -->
@@ -141,7 +144,6 @@ onMounted(async () => {
 .recharge-main {
   display: flex;
   flex-direction: column;
-  background: #fff;
   position: relative;
   padding-bottom: 120rpx; // 预留底部按钮高度
 }
@@ -233,10 +235,34 @@ onMounted(async () => {
 }
 
 .benefit {
-  border: 2rpx solid $default;
+  display: flex;
+  flex-direction: column;
+  gap: 12rpx;
+}
+
+.benefit-item {
   border-radius: 12rpx;
-  padding: 24rpx;
+  padding: 32rpx 24rpx;
   font-weight: bold;
+  background: #ffffff;
+  border-radius: 16rpx;
+  display: flex;
+  align-items: center;
+  gap: 24rpx;
+
+  .t {
+    width: 105rpx;
+    height: 56rpx;
+    background: linear-gradient(90deg, #f0dfcd 0%, #e7c8ac 100%);
+    border-radius: 8rpx 8rpx 8rpx 8rpx;
+    font-family: PingFang SC, PingFang SC;
+    font-weight: 500;
+    font-size: 28rpx;
+    color: #000000;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+  }
   view {
     font-size: 28rpx;
     color: #333;
@@ -282,8 +308,8 @@ onMounted(async () => {
 
 .open-btn {
   width: 100%;
-  background: linear-gradient( 90deg, #F0DFCD 0%, #E7C8AC 100%);
-  color: #fff;
+  background: linear-gradient(90deg, #f0dfcd 0%, #e7c8ac 100%);
+  color: #000;
   font-size: 32rpx;
   border-radius: 12rpx;
   height: 88rpx;
@@ -293,7 +319,7 @@ onMounted(async () => {
   border: none;
   margin-top: 0;
   &:active {
-    background: linear-gradient( 90deg, #F0DFCD 0%, #E7C8AC 100%);
+    background: linear-gradient(90deg, #f0dfcd 0%, #e7c8ac 100%);
   }
 }
 </style>

+ 6 - 1
pages/regulations/learing.vue

@@ -94,7 +94,7 @@ onShow(() => {
     <view>
       <view :key="item.id" v-for="(item, index) in context">
         <view class="title">考 点{{ index + 1 }} {{ item.name }}</view>
-        <uv-parse :content="item.context" selectable />
+        <uv-parse class="text" :content="item.context" selectable />
       </view>
       <text class="button" @click="onSubmit">已学完, 开启练习模式</text>
     </view>
@@ -106,5 +106,10 @@ onShow(() => {
   color: #703060;
   font-weight: bold;
   text-align: center;
+  margin: 10rpx 0;
+}
+
+.text {
+  line-height: 1.7;
 }
 </style>

+ 1 - 0
pages/regulations/practice.vue

@@ -170,6 +170,7 @@ onMounted(() => {
     @lookReport="lookReport"
     :onStar="onStar"
     :empty="!data.length"
+    text="加载中···"
     border
     v-if="!showReport && !showShare"
   />