| | |
| | | <view class='chuany-flex chuany-justify-between c-p-l-18 c-p-r-18 c-p-t-6 chuany-align-center'> |
| | | <view class="redcla"> |
| | | <text class="chuany-font40"> |
| | | {{detailItem.workPrice}} |
| | | {{detailItem.workPrice}}<template |
| | | v-if="detailItem.workPriceMax">~{{detailItem.workPriceMax}}</template> |
| | | </text> |
| | | <text class='chuany-font20'> |
| | | {{detailItem.workerType==0?'元/小时':'元/件'}} |
| | | </text> |
| | | <!-- <text class="chuany-font40"> |
| | | {{detailItem.workPrice}} |
| | | </text> |
| | | <text class='chuany-font20'> |
| | | {{detailItem.workerType==0?'元/小时':'元/件'}} |
| | | </text> --> |
| | | </view> |
| | | <view class=""> |
| | | <!-- <up-tag class='c-m-r-10' text="下架" shape="circle" type="error" size='mini' |
| | |
| | | title: "工价保存成功!", |
| | | icon: "success" |
| | | }) |
| | | getOrder(orderIdVal) |
| | | getOrder(orderIdVal, item.id) |
| | | item.showEdit = false |
| | | } else { |
| | | $util.showToast({ |
| | |
| | | }) |
| | | } |
| | | const toWorkerDetail = (item) => { |
| | | $db.set('toudiItem',item) |
| | | $db.set('toudiItem', item) |
| | | uni.navigateTo({ |
| | | url: `/pages/worker/worker?workerid=${item.workerUserId}` |
| | | }) |
| | |
| | | modalShow.value = false |
| | | workerItem.value = {} |
| | | } |
| | | const getOrder = (orderid) => { |
| | | const getOrder = (orderid, id) => { |
| | | $api.getOrder(orderid).then(res => { |
| | | if (res.code == 1) { |
| | | res.data.orderBidding.forEach(item => { |
| | | item.showEdit = false |
| | | if (id == item.id) { |
| | | toWorkerDetail(item) |
| | | } |
| | | }) |
| | | detailItem.value = res.data |
| | | } |