doum
2025-09-01 65f8691ebf4f5de4a7fe2cef4fd9345b26372e55
small-program/pages/demand-hall/demand-hall.vue
@@ -18,8 +18,8 @@
      <template v-else>
         <!-- 发单方 -->
         <view class="index-labs" v-if="typeViewId === 0" :style="{ top: statusbarHeight + navHeight + 'px' }">
            <scroll-view scroll-x class="scroll-view_H">
               <view :class="item.id === status ? 'index-labs-row active' : 'index-labs-row'" v-for="(item, index) in list1" :key="index" @click="clickOrderType(item.id)">
            <scroll-view scroll-x class="scroll-view_H" :scroll-into-view="'view'+status">
               <view :class="item.id === status ? 'index-labs-row active' : 'index-labs-row'" v-for="(item, index) in list1" :id="'view'+item.id" :key="item.id" @click="clickOrderType(item.id)">
                  {{item.name}}
                  <view class="index-labs-row-x" v-if="item.id === status"></view>
               </view>
@@ -27,8 +27,8 @@
         </view>
         <!-- 接单方 -->
         <view class="index-labs" v-if="typeViewId === 1" :style="{ top: statusbarHeight + navHeight + 'px' }">
            <scroll-view scroll-x class="scroll-view_H">
               <view :class="item.id === status ? 'index-labs-row active' : 'index-labs-row'" v-for="(item, index) in list" :key="index" @click="clickOrderType(item.id)">
            <scroll-view scroll-x class="scroll-view_H" :scroll-into-view="'view'+status">
               <view :class="item.id === status ? 'index-labs-row active' : 'index-labs-row'" v-for="(item, index) in list" :id="'view'+item.id" :key="item.id" @click="clickOrderType(item.id)">
                  {{item.name}}
                  <view class="index-labs-row-x" v-if="item.id === status"></view>
               </view>
@@ -210,11 +210,33 @@
      computed: {
         ...mapState(['navHeight', 'statusbarHeight','userInfo','token','openid', 'latitude', 'longitude'])
      },
      onShow(options) {
      async onShow(options) {
         var flag = getApp().globalData.orderStatus
            console.log(getApp().globalData,"=====================================")
         this.status = ''
         this.commentStatus=''
         // status: this.status === 5 ? 4 : this.status,
         // commentStatus: this.status === 5 ? 0 : '',
         if(flag =='1'){//发单方待接单
            this.status = 1
         }else if(flag =='2'){//发单方进行中
            this.status = 3
         }else if(flag =='3'){//发单方待评价
            this.status = 5
         }else if(flag =='4'){//接单方已接单
            this.status =2
         }else if(flag =='5'){//接单方进行中
            this.status =3
         }else if(flag =='6'){//接单方已完成
            this.status =4
         }
         this.typeViewId = 0
         if(this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}'){
            console.log('已登陆')
            this.isLogin = true
            if (this.userInfo && this.userInfo.useIdentity == 1) {
               this.typeViewId = 1
            }
            if (!this.isOnce) {
               this.commentStatus = ''
               this.orderList = []
@@ -225,9 +247,6 @@
         } else {
            this.isLogin = false
            console.log('未登陆')
         }
         if (this.userInfo && this.userInfo.useIdentity == 1) {
            this.typeViewId = 1
         }
      },
      data() {
@@ -707,7 +726,7 @@
            .active {
               font-weight: 500 !important;
               font-size: 32rpx !important;
               color: #222222 !important;
               color: #00BC12 !important;
            }
            .index-labs-row {
               display: inline-block;
@@ -717,7 +736,7 @@
               font-size: 30rpx;
               color: #666666;
               position: relative;
               margin-right: 62rpx;
               margin-right: 50rpx;
               &:last-child {
                  margin: 0 !important;
               }
@@ -726,7 +745,7 @@
                  bottom: 0;
                  left: 50%;
                  width: 40rpx;
                  height: 2rpx;
                  height: 4rpx;
                  background-color: #00BC12;
                  transform: translate(-50%, 0);
               }