| | |
| | | </view> |
| | | <view slot="confirmButton" style="display: flex; justify-content: space-between; align-items: center; width: 100%;"> |
| | | <view class="btn1" @click="show = false">我再想想</view> |
| | | <view class="btn2" @click="show = false">确认取消</view> |
| | | <view class="btn2" @click="cancelDo">确认取消</view> |
| | | </view> |
| | | </u-modal> |
| | | |
| | |
| | | </view> |
| | | <view class="zhifu-textarea"> |
| | | <image src="/static/icon/ic_pingjia@2x.png" mode="widthFix"></image> |
| | | <u--textarea placeholder="请说说您对本次交易的感受" border="none" count></u--textarea> |
| | | <u--textarea placeholder="请说说您对本次交易的感受" border="none" v-model="commentInfo" count></u--textarea> |
| | | </view> |
| | | <view class="zhifu-botton" style="margin-top: 60rpx;">立即评价</view> |
| | | <view class="zhifu-botton" style="margin-top: 60rpx;" @click="commentDo">立即评价</view> |
| | | </view> |
| | | </u-popup> |
| | | </view> |
| | |
| | | bgImg: require('@/static/image/bg_green@2x.png'), |
| | | id: null, |
| | | loading:false, |
| | | commentInfo:'', |
| | | info: {}, |
| | | }; |
| | | }, |
| | |
| | | this.getOrderData() |
| | | }, |
| | | methods:{ |
| | | commentDo(){ |
| | | var that = this |
| | | var param = { info: that.commentInfo,level:that.value,orderId: this.id} |
| | | this.$u.api.comment(param).then(res =>{ |
| | | if(res.code ===200){ |
| | | that.show=false |
| | | uni.showToast({ title: '评价成功', icon: 'error', duration: 2000 }); |
| | | that.getOrderData() |
| | | } |
| | | }) |
| | | }, |
| | | beginDo(){ |
| | | var that = this |
| | | var param = { info: that.commentInfo,level:that.value,orderId: this.id} |
| | | this.$u.api.begin(param).then(res =>{ |
| | | if(res.code ===200){ |
| | | that.show=false |
| | | uni.showToast({ title: '操作成功', icon: 'error', duration: 2000 }); |
| | | that.getOrderData() |
| | | } |
| | | }) |
| | | }, |
| | | confirmUpdDo(){ |
| | | var that = this |
| | | var param = { info: that.commentInfo,level:that.value,orderId: this.id} |
| | | this.$u.api.confirmUpdDo(param).then(res =>{ |
| | | if(res.code ===200){ |
| | | that.show=false |
| | | uni.showToast({ title: '操作成功', icon: 'error', duration: 2000 }); |
| | | that.getOrderData() |
| | | } |
| | | }) |
| | | }, |
| | | acceptDo(){ |
| | | var that = this |
| | | var param = { info: that.commentInfo,level:that.value,orderId: this.id} |
| | | this.$u.api.accept(param).then(res =>{ |
| | | if(res.code ===200){ |
| | | that.show=false |
| | | uni.showToast({ title: '抢单成功', icon: 'error', duration: 2000 }); |
| | | that.getOrderData() |
| | | } |
| | | }) |
| | | }, |
| | | cancelDo(){ |
| | | var that = this |
| | | var param ={ orderId:that.id} |
| | | this.$u.api.cancelOrder(param).then(res =>{ |
| | | if(res.code ===200){ |
| | | that.show=false |
| | | uni.showToast({ title: '订单取消成功', icon: 'error', duration: 2000 }); |
| | | that.getOrderData() |
| | | } |
| | | }) |
| | | }, |
| | | previemImg(src){ |
| | | uni.previewImage({ |
| | | current: src, // 当前显示图片的http链接 |