zhangwei
2024-09-06 b172667f354f7f00fe14809e66cbf12362fbc646
src/pages/detail/detail.vue
@@ -1,7 +1,7 @@
<template>
   <view class="list full-page">
      <view class="content c-p-b-18">
         <view class="bgcolor c-p-24 chuany-flex chuany-justify-between chuany-font28 chuany-text-bold">
         <!-- <view class="bgcolor c-p-24 chuany-flex chuany-justify-between chuany-font28 chuany-text-bold">
            报名
            <up-icon name="arrow-right-double" color='#faa93f'></up-icon>
            确认接单
@@ -9,7 +9,7 @@
            上下班打卡
            <up-icon name="arrow-right-double" color='#faa93f'></up-icon>
            结算提现
         </view>
         </view> -->
         <view class="chuany-flex chuany-justify-between">
            <view class="chuany-width100">
               <view class="chuany-flex chuany-justify-between chuany-align-center chuany-width100 chuany-box c-p-18">
@@ -110,6 +110,10 @@
         } = option
         this.getOrder(orderid)
      },
      onShow(){
         console.log('执行-----’');
         this.userInfo = this.$db.get('userInfo') ? JSON.parse(this.$db.get('userInfo')) : {}
      },
      data() {
         return {
            orderObj: {},
@@ -126,6 +130,15 @@
            })
         },
         enroll() {
            if (!this.userInfo.userWorker) {
               uni.navigateTo({
                  url: '/pages/mine/apply'
               });
               this.$util.showToast({
                  title: '请先完善资料!'
               })
               return
            }
            this.isLoading = true
            this.$api.saveBaoMing({
               orderId: this.orderObj.id