| | |
| | | 预约送货 |
| | | </view> |
| | | </view> |
| | | <view class="tool_item" @click="toDelivergoods('reservation')" v-if="isDriver"> |
| | | <view class="tool_item" @click="toDelivergoods('PFeedback')" v-if="isWorker"> |
| | | <image src="@/static/image/PFeedback.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 问题反馈 |
| | | </view> |
| | | </view> |
| | | <view class="tool_item" @click="toDelivergoods('reservation')" v-if="isDeliverManage"> |
| | | <image src="@/static/image/drivershouli.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 送货受理 |
| | |
| | | <image src="@/static/image/feedback.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 送货反馈 |
| | | </view> |
| | | </view> |
| | | <view class="tool_item" @click="toDelivergoods('clockIn')" v-if="isDriver"> |
| | | <image src="@/static/image/daka.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 司机打卡 |
| | | </view> |
| | | </view> |
| | | <view class="tool_item" @click="toDelivergoods('clockInRecord')" v-if="isDeliverManage"> |
| | | <image src="@/static/image/dakarecord.png" mode="aspectFit" class="item_img"></image> |
| | | <view class="tool_label"> |
| | | 打卡记录 |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | }, |
| | | ], |
| | | token: this.$db.get('userToken') || '' |
| | | token: this.$db.get('userToken') || '', |
| | | identity:this.$db.get('identity') || 'worker' |
| | | }; |
| | | }, |
| | | onLoad: function() { |
| | |
| | | }, |
| | | onShow: function() { |
| | | this.getUserInfo() |
| | | console.log(this.$store.state.identity,this.identity,'????????'); |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['userInfo', 'identity']), |
| | | ...mapGetters(['userInfo']), |
| | | isAdmin() { |
| | | return this.userInfo.userCompany ? this.userInfo.userCompany.isAdmin : false |
| | | }, |
| | |
| | | }, |
| | | changRole() { |
| | | this.$store.commit('setIdentity', this.identity === 'enterprise' ? 'worker' : 'enterprise') |
| | | // this.$db.set('identity', this.identity === 'enterprise' ? 'worker' : 'enterprise') |
| | | // this.identity = this.identity === 'enterprise' ? 'worker' : 'enterprise' |
| | | this.$db.set('identity', this.identity === 'enterprise' ? 'worker' : 'enterprise') |
| | | this.identity = this.identity === 'enterprise' ? 'worker' : 'enterprise' |
| | | console.log(this.identity, this.$db.get('identity'), 'this.identity'); |
| | | // uni.setStorage({ |
| | | // key: 'identity', |
| | |
| | | .money_bag { |
| | | background: #fff; |
| | | border-radius: 16rpx; |
| | | margin: 20rpx 30rpx; |
| | | padding: 20rpx 30rpx; |
| | | margin: 18rpx 26rpx; |
| | | padding: 16rpx 26rpx; |
| | | position: relative; |
| | | // top: 25rpx; |
| | | z-index: 2; |
| | |
| | | color: #333; |
| | | font-size: 32rpx; |
| | | font-weight: 700; |
| | | padding: 30rpx 0; |
| | | padding: 20rpx 0; |
| | | border-bottom: 2rpx solid #eee; |
| | | } |
| | | |
| | | .tool_content { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 30rpx 0; |
| | | // justify-content: space-between; |
| | | padding: 20rpx 0; |
| | | flex-wrap: wrap; |
| | | |
| | | .tool_item { |
| | | align-items: center; |
| | | display: flex; |
| | | flex-direction: column; |
| | | height: 120rpx; |
| | | height: 128rpx; |
| | | justify-content: center; |
| | | // margin: 0 50rpx 0 0; |
| | | width: 120rpx; |
| | | width: 128rpx; |
| | | |
| | | &:nth-child(4n) { |
| | | margin-right: 0; |