Commit ec522dfb authored by 和慭琛's avatar 和慭琛

分享问题

parent c867ae69
...@@ -164,7 +164,13 @@ ...@@ -164,7 +164,13 @@
} }
}, },
onLoad() { onLoad(e) {
//+ '?orderId=' + this.orderId + '&toWhere=detail'
if(e && e.toWhere){
this.toWhere(e)
}
this.icon_location = getApp().globalData.icon_location this.icon_location = getApp().globalData.icon_location
this.icon_notice = getApp().globalData.icon_index_notice this.icon_notice = getApp().globalData.icon_index_notice
this.icon_agree_yes = getApp().globalData.icon_agree_yes this.icon_agree_yes = getApp().globalData.icon_agree_yes
...@@ -225,7 +231,16 @@ ...@@ -225,7 +231,16 @@
doNothing:function(){}, doNothing:function(){},
toWhere: function(e){
if(e.toWhere == detail && e.orderId){
uni.navigateTo({
url: '/pages/take/detail'
+'?orderId='+e.orderId,
})
}
},
nameInput(e){ nameInput(e){
this.name = e.detail.value this.name = e.detail.value
......
<template> <template>
<view class="backView"> <view class="backView">
<view class="" v-if="isContentShow">
<view class="topView"> <view class="topView">
<view class="itemView u-m-t-30" v-if="orderInfo.contactName"> <view class="itemView u-m-t-30" v-if="orderInfo.contactName">
<view class="u-p-l-30 u-p-r-30"> <view class="u-p-l-30 u-p-r-30">
...@@ -124,10 +125,16 @@ ...@@ -124,10 +125,16 @@
@cancel="cancelReasonOnCancel" @cancel="cancelReasonOnCancel"
ref="selector" ref="selector"
></w-picker> ></w-picker>
</view>
<view class="noDataView" v-if="isContentShow == false">
<image class="noDataIcon" :src="icon_noData" mode=""></image>
<text class="noDataText">无查看权限</text>
</view>
</view> </view>
</template> </template>
<script> <script>
...@@ -148,6 +155,8 @@ ...@@ -148,6 +155,8 @@
type: '', type: '',
value: '', value: '',
TimeID:-1, TimeID:-1,
userType:'',
isContentShow:false,
//退单弹窗相关 //退单弹窗相关
isCancelShow:false, isCancelShow:false,
...@@ -270,7 +279,9 @@ ...@@ -270,7 +279,9 @@
if(res.data.code==200){ if(res.data.code==200){
this.orderInfo = res.data.data this.orderInfo = res.data.data
this.userType = res.data.data.userType
this.setBottomTitle(res) this.setBottomTitle(res)
this.checkUserType()
if(res.data.data.images){ if(res.data.data.images){
this.adjustPhotoList(res.data.data.images) this.adjustPhotoList(res.data.data.images)
} }
...@@ -298,6 +309,32 @@ ...@@ -298,6 +309,32 @@
}) })
}, },
//底部按钮标题
setBottomTitle: function(res){
if (res.data.data.statusText=='待接单'){
this.bottomTitle = '接单'
}else{
this.bottomTitle = '完工'
}
},
//检查用户状态
checkUserType: function (){
//下单用户/师傅用户/后台用户/非法用户
console.log('当前用户类型:'+ this.userType)
if(this.userType != '师傅用户'){
this.isBottomShow = false
}
if(this.userType == '非法用户'){
this.isContentShow = false
}
},
//照片 点击 //照片 点击
photoClick: function (item,ikey) { photoClick: function (item,ikey) {
// console.log('照片 点击') // console.log('照片 点击')
...@@ -324,16 +361,7 @@ ...@@ -324,16 +361,7 @@
}); });
}, },
//底部按钮标题
setBottomTitle: function(res){
if (res.data.data.statusText=='待接单'){
this.bottomTitle = '接单'
}else{
this.bottomTitle = '完工'
}
},
//https://system.banshouhui.com/wxh-sts-rest/rest/file/image/order/13767/1442887919988.jpg //https://system.banshouhui.com/wxh-sts-rest/rest/file/image/order/13767/1442887919988.jpg
adjustPhotoList: function (images) { adjustPhotoList: function (images) {
...@@ -869,6 +897,29 @@ ...@@ -869,6 +897,29 @@
align-items: center; align-items: center;
} }
.noDataView{
background-color: #FFFFFF;
width: 100%;
height: 1112rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.noDataIcon{
background-color: #FFFFFF;
margin-top: 280rpx;
width: 200rpx;
height: 160rpx;
}
.noDataText{
color:#999999;
margin-top: 32rpx;
font-size: 28rpx;
}
</style> </style>
...@@ -231,6 +231,16 @@ ...@@ -231,6 +231,16 @@
}, },
onShareAppMessage(res) {
let shareObj = {
title: '',
path: '/pages/take/index',
success(){},
fail(){}
}
return shareObj
},
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment