zhangwei
2024-09-05 0c9b00f333f9baaffa9140fd1808a26e0af8416b
src/pages/worker/worker.vue
@@ -31,7 +31,8 @@
            </up-list-item>
         </up-list>
         <view class="tabbtns" v-if="!detailItem.isSelected">
            <up-button color='#fece01' class="text-69" text="确认" @click="selectBtn"></up-button>
            <up-button color='#fece01' class="text-69" text="确认" :loading='isLoading' loadingText="确认中"
               @click="selectBtn"></up-button>
         </view>
      </view>
   </view>
@@ -45,7 +46,8 @@
            workerInfo: {
               userWorker: {}
            },
            detailItem: {}
            detailItem: {},
            isLoading: false
         }
      },
      onLoad(option) {
@@ -65,6 +67,7 @@
            })
         },
         selectBtn() {
            this.isLoading = true
            this.$api.saveQueRen({
               orderBiddingId: detailItem.id
            }).then(res => {
@@ -73,7 +76,12 @@
                     title: "确认成功!",
                     icon: "success"
                  })
               } else {
                  this.$util.showToast({
                     title: res.msg ? res.msg : '失败!'
                  })
               }
               this.isLoading = false
            })
         }
      }