Browse Source

红人服务管理调整

qymljy 1 year ago
parent
commit
560e3ae2e3
1 changed files with 5 additions and 5 deletions
  1. 5 5
      cloud/serviceAdmin/redskinsServiceAdmin.vue

+ 5 - 5
cloud/serviceAdmin/redskinsServiceAdmin.vue

@@ -1,6 +1,6 @@
 <template>
     <view>
-      <My_listbox ref="listRef" @getlist="getList" bottomHeight="30px">
+      <My_listbox ref="listRef" @getlist="getList" bottomHeight="30">
         <view class="border-style" v-for="item in list" :key="item.rowindex">
           <view style="padding: 10px">
             <view class="content-style">
@@ -17,7 +17,7 @@
               <span :style="{color: item.isonsale=='1'?'#E3041F':'#999999',fontSize: '14px'}">{{item.isonsale == '1'?'上架':'下架'}}</span>
             </view>
             <view style="width: 100px;height: 40px;line-height: 40px;margin-top:5px;vertical-align: middle">
-              <u-button :text="item.isonsale == '0'?'上架':'下架'" :color="item.isonsale == '0'?'#C30D23':'#999999'" @click="clickSale(item)" :loading="loading"></u-button>
+              <u-button :text="item.isonsale == '0'?'上架':'下架'" :color="item.isonsale == '0'?'#C30D23':'#999999'" @click="clickSale(item)" :loading="loading == item.linksid"></u-button>
             </view>
           </view>
         </view>
@@ -30,7 +30,7 @@ export default {
   data(){
     return {
       list:[],
-      loading:false,
+      loading:null,
       current: 0,
       "content": {
         "title":''
@@ -61,7 +61,7 @@ export default {
       })
     },
     clickSale(item){
-      this.loading = true
+      this.loading = item.linksid
       this.$Http.basic({
         "id": 20240511133302,
         "content": {
@@ -70,7 +70,7 @@ export default {
         },
       }).then(res =>{
         if (this.cutoff(res.msg)) return
-        this.loading = false
+        this.loading = null
         this.getList(true)
       })
     }