-
zhangwei
2025-03-14 6e961fafc0f921d575772a3c89f2c5cad28c270d
src/pages/worker/worker.vue
@@ -22,16 +22,46 @@
               <up-cell title="地址" :value="workerInfo.userWorker.address" :border="false">
               </up-cell>
            </up-list-item>
            <!-- <up-list-item>
               <up-cell title="地址" :value="workerInfo.userWorker.address" :border="false">
               </up-cell>
            </up-list-item>
            <up-list-item>
               <up-cell title="地址" :value="workerInfo.userWorker.address" :border="false">
               </up-cell>
            </up-list-item> -->
            <up-list-item>
               <up-cell title="简历描述" :border="false">
               </up-cell>
               <view class="jianli">
               <view class="jianli chuany-font28 text-69">
                  {{workerInfo.userWorker.resume}}
               </view>
            </up-list-item>
            <up-list-item v-if="detailItem.isSelected">
               <up-cell title="工价详情" :border="false">
               </up-cell>
               <view class="coreshop-bg-white c-p-l-30 c-p-r-30 chuany-font28 text-69">
                  <view>
                     当前工价:{{detailItem.workPrice}} {{detailItem.workerType==0?'元/小时':'元/件'}}
                  </view>
                  <view class="c-p-t-10">
                     历史工价:
                     <view class="chuany-flex chuany-justify-between c-p-t-10"
                        v-for="item in detailItem.orderBiddingWorkPrices" :key='item.id'>
                        <view class="">
                           {{$util.formatDate(item.effectTime)}}
                        </view>
                        <view class="">
                           {{item.workPrice}} {{detailItem.workerType==0?'元/小时':'元/件'}}
                        </view>
                     </view>
                  </view>
               </view>
            </up-list-item>
         </up-list>
         <view class="tabbtns" v-if="!detailItem.isSelected">
            <up-button color='#fece01' class="text-69" text="确认" :loading='isLoading' loadingText="确认中"
            <up-button color='#fece01'  text="录用" :loading='isLoading' loadingText="录用中"
               @click="selectBtn"></up-button>
         </view>
      </view>
@@ -51,14 +81,14 @@
         }
      },
      onLoad(option) {
         console.log(option,'zzzzzzzzzzzzzzzzzz');
         console.log(option, 'zzzzzzzzzzzzzzzzzz');
         let {
            workerid
         } = option
         this.workerId = workerid
         console.log(this.workerId, workerid, option);
         this.detailItem = this.$db.get('toudiItem') ? JSON.parse(this.$db.get('toudiItem')) : {},
            console.log(this.detailItem, 'this.detailItem');
         this.detailItem = this.$db.get('toudiItem') || {}
         console.log(this.detailItem, 'this.detailItem');
         this.getWorkerInfo(this.workerId)
      },
      methods: {
@@ -67,7 +97,7 @@
               this.workerInfo = res.data
            })
         },
         selectBtn() {
            this.isLoading = true
            this.$api.saveQueRen({
@@ -100,6 +130,6 @@
      padding: 8px;
      background-color: #f6f7f9;
      border-radius: 5px;
      min-height: 400rpx;
      min-height: 180rpx;
   }
</style>