-
zhangwei
2024-09-12 f7aa204aa8d20b090d7943969ddeb9871a1fad76
src/pages/worker/worker.vue
@@ -3,7 +3,7 @@
      <view class="coreshop-ff">
         <up-list>
            <up-list-item>
               <up-cell :title="workerInfo.nickname" :border="false">
               <up-cell :title="workerInfo.userWorker.name" :border="false">
                  <template #icon v-if="workerInfo.avatar">
                     <up-avatar shape="square" size="35" :src="workerInfo.avatar"
                        customStyle="margin: -3px 5px -3px 0"></up-avatar>
@@ -11,7 +11,7 @@
               </up-cell>
            </up-list-item>
            <up-list-item>
               <up-cell title="姓名" :value="workerInfo.userWorker.name" :border="false">
               <up-cell title="昵称" :value="workerInfo.nickname" :border="false">
               </up-cell>
            </up-list-item>
            <up-list-item>
@@ -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
            })
         }
      }