| | |
| | | <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> |
| | |
| | | </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> |
| | |
| | | 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 = [] |
| | |
| | | } else { |
| | | this.isLogin = false |
| | | console.log('未登陆') |
| | | } |
| | | if (this.userInfo && this.userInfo.useIdentity == 1) { |
| | | this.typeViewId = 1 |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | .active { |
| | | font-weight: 500 !important; |
| | | font-size: 32rpx !important; |
| | | color: #222222 !important; |
| | | color: #00BC12 !important; |
| | | } |
| | | .index-labs-row { |
| | | display: inline-block; |
| | |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | position: relative; |
| | | margin-right: 62rpx; |
| | | margin-right: 50rpx; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | |
| | | bottom: 0; |
| | | left: 50%; |
| | | width: 40rpx; |
| | | height: 2rpx; |
| | | height: 4rpx; |
| | | background-color: #00BC12; |
| | | transform: translate(-50%, 0); |
| | | } |