| | |
| | | <view class="order-header" @click="jumpOrderDetails(item.id)"> |
| | | <view style="display: flex; align-items: center;"> |
| | | <view class="order-tag">{{item.type===1?'同城配送':'就地寄存'}}</view> |
| | | <text class="order-user">{{item.takeUser || ''}} {{item.takePhone||''}}</text> |
| | | <text class="order-user">{{formatName(item.takeUser)}} {{formatPhoneStar(item.takePhone)||''}}</text> |
| | | </view> |
| | | <view style="display: flex;flex-direction: column;"> |
| | | <text v-if="item.status ===5 && item.overdueStatus ===1 " class="order-status" style="color: red;">超时未取件</text> |
| | |
| | | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | import { formatPhoneStar } from '@/utils/utils.js' |
| | | import CustomTabbar from '@/components/custom-tabbar/custom-tabbar.vue' |
| | | export default { |
| | | components: { |
| | |
| | | this.getFirstPageData() |
| | | }, |
| | | methods: { |
| | | formatPhoneStar(phone){ |
| | | return formatPhoneStar(phone) |
| | | }, |
| | | formatName(name) { |
| | | if (!name) return '' |
| | | return name.length > 7 ? name.substring(0, 7) + '...' : name |
| | | }, |
| | | changeActive(index){ |
| | | this.getCountData(index) |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | goToStore() { |
| | | this.$store.commit('setUserType', 0) |
| | | uni.switchTab({ |
| | | url: '/pages/index/index' |
| | | url: '/pages/index/index' |
| | | }) |
| | | }, |
| | | jumpShopLogin() { |