From 376ac09a54e8c95190d06bf39f295c890829c103 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期二, 03 九月 2024 15:43:25 +0800 Subject: [PATCH] 查看工人详情 --- src/pages/worker/worker.vue | 68 ++++++++++++++++++++++++++++++++-- 1 files changed, 64 insertions(+), 4 deletions(-) diff --git a/src/pages/worker/worker.vue b/src/pages/worker/worker.vue index 7bf0cc8..0e57375 100644 --- a/src/pages/worker/worker.vue +++ b/src/pages/worker/worker.vue @@ -1,6 +1,39 @@ <template> - <view> - + <view class=""> + <view class="coreshop-ff"> + <up-list> + <up-list-item> + <up-cell :title="workerInfo.nickname" :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.userWorker.name" :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="绠�鍘嗘弿杩�" :border="false"> + </up-cell> + <view class="jianli"> + {{workerInfo.userWorker.resume}} + </view> + </up-list-item> + </up-list> + <view class="tabbtns" v-if="!detailItem.isSelected"> + <up-button color='#fece01' class="text-69" text="纭" @click="selectBtn"></up-button> + </view> + </view> </view> </template> @@ -9,7 +42,10 @@ data() { return { workerId: '', - workerInfo: null + workerInfo: { + userWorker: {} + }, + detailItem: {} } }, onLoad(option) { @@ -17,7 +53,9 @@ workerid } = option this.workerId = workerid - console.log(this.workerId,workerid,option); + 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.getWorkerInfo(this.workerId) }, methods: { @@ -26,10 +64,32 @@ this.workerInfo = res.data }) }, + selectBtn() { + this.$api.saveQueRen({ + orderBiddingId: detailItem.id + }).then(res => { + if (res.code == 1) { + this.$util.showToast({ + title: "纭鎴愬姛锛�", + icon: "success" + }) + } + }) + } } } </script> <style> + .u-cell__body { + padding: 6px 15px !important; + } + .jianli { + margin: 3px 15px; + padding: 8px; + background-color: #f6f7f9; + border-radius: 5px; + min-height: 400rpx; + } </style> \ No newline at end of file -- Gitblit v1.9.1