From 2d43a1df3f5ba42710e6d21c27d1e13bdb8dfd56 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 24 三月 2025 09:23:08 +0800
Subject: [PATCH] -
---
src/pages/worker/worker.vue | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 103 insertions(+), 3 deletions(-)
diff --git a/src/pages/worker/worker.vue b/src/pages/worker/worker.vue
index 7bf0cc8..0f0a07c 100644
--- a/src/pages/worker/worker.vue
+++ b/src/pages/worker/worker.vue
@@ -1,6 +1,70 @@
<template>
- <view>
+ <view class="">
+ <view class="coreshop-ff">
+ <up-list>
+ <up-list-item>
+ <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>
+ </template>
+ </up-cell>
+ </up-list-item>
+ <up-list-item>
+ <up-cell title="鏄电О" :value="workerInfo.nickname" :border="false">
+ </up-cell>
+ </up-list-item>
+ <up-list-item>
+ <up-cell title="鑱旂郴鐢佃瘽" :value="workerInfo.phone" :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="鍦板潃" :value="workerInfo.userWorker.address" :border="false">
+ </up-cell>
+ </up-list-item> -->
+ <up-list-item>
+ <up-cell title="绠�鍘嗘弿杩�" :border="false">
+ </up-cell>
+ <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' text="褰曠敤" :loading='isLoading' loadingText="褰曠敤涓�"
+ @click="selectBtn"></up-button>
+ </view>
+ </view>
</view>
</template>
@@ -9,15 +73,22 @@
data() {
return {
workerId: '',
- workerInfo: null
+ workerInfo: {
+ userWorker: {}
+ },
+ detailItem: {},
+ isLoading: false
}
},
onLoad(option) {
+ console.log(option, 'zzzzzzzzzzzzzzzzzz');
let {
workerid
} = option
this.workerId = workerid
- console.log(this.workerId,workerid,option);
+ console.log(this.workerId, workerid, option);
+ this.detailItem = this.$db.get('toudiItem') || {}
+ console.log(this.detailItem, 'this.detailItem');
this.getWorkerInfo(this.workerId)
},
methods: {
@@ -26,10 +97,39 @@
this.workerInfo = res.data
})
},
+
+ selectBtn() {
+ this.isLoading = true
+ this.$api.saveQueRen({
+ orderBiddingId: detailItem.id
+ }).then(res => {
+ if (res.code == 1) {
+ this.$util.showToast({
+ title: "纭鎴愬姛锛�",
+ icon: "success"
+ })
+ } else {
+ this.$util.showToast({
+ title: res.msg ? res.msg : '澶辫触锛�'
+ })
+ }
+ this.isLoading = false
+ })
+ }
}
}
</script>
<style>
+ .u-cell__body {
+ padding: 6px 15px !important;
+ }
+ .jianli {
+ margin: 3px 15px;
+ padding: 8px;
+ background-color: #f6f7f9;
+ border-radius: 5px;
+ min-height: 180rpx;
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.1