Browse Source

赠送页面添加选中样式

2662043119@qq.com 1 year ago
parent
commit
0186244bee
2 changed files with 5 additions and 1 deletions
  1. 4 1
      src/pages/account/giveAsPresent.vue
  2. 1 0
      src/pages/szw-order-list/index.vue

+ 4 - 1
src/pages/account/giveAsPresent.vue

@@ -6,7 +6,7 @@
         <div class="option-i" @click="value = s" v-for="(i,s) in list" :key="s">
           <img src="@/static/img/xuanzhong_icon.png" v-if="value == s" class="ico" alt="" />
           <img src="@/static/img/weixuanzhong_icon.png" v-else class="ico" alt="" />
-          <span class="txt">{{ i.name }}</span>
+          <span class="txt" :class="value == s?'txt_active':''">{{ i.name }}</span>
         </div>
       </view>
     </view>
@@ -180,6 +180,9 @@ page {
   .ico {
     vertical-align: middle;
   }
+  .txt_active{
+    color: #17bb87;
+  }
 }
 
 .list_name {

+ 1 - 0
src/pages/szw-order-list/index.vue

@@ -88,6 +88,7 @@ export default {
         this.currentType = options.status ? options.status : 0;
     },
     onShow() {
+        page = 1
         if (!this.token) this.login()
         else this.loadData();
     },