Commit 02cb75aa authored by 郭晓清's avatar 郭晓清

拍照组件接口修改

parent 9ebfd832
......@@ -103,20 +103,25 @@
</view>
<!-- 异常预约 ,现场拍照 这里是调用拍照的两个组件-->
<view class="right">
<view v-show="allowRight" @click="allowRightClick" class="button"></view>
<view v-if="errorSignIn" @click="take" class="button">
<text>异常签到</text>
</view>
<view v-if="scenePhoto" @click="scenePhotoClick" class="button">
<text>现场拍照</text>
</view>
</view>
</view>
<take-photo type="test" v-if="takeStatus" @close="closeTake"></take-photo>
</view>
</template>
<script>
import appointTime from '@/components/appoint/appoint-time.vue'
import {
getQueryString
} from '@/common/util.js'
import takePhoto from '@/components/take/index.vue'
export default {
components: {
appointTime
appointTime,
'take-photo': takePhoto
},
data() {
return {
......@@ -141,7 +146,10 @@
showTimeSelect: false,
submitType: '',
nextUrl:'',
btnClass:'appoint-btn'
btnClass:'appoint-btn',
takeStatus:false,
errorSignIn:false,
scenePhoto: false
}
},
onLoad(option) {
......@@ -155,9 +163,6 @@
this.loadOrderDetail()
this.loadOrderRecord()
this.getLocation()
},
created() {
},
computed: {
phoneIcon() {
......@@ -172,6 +177,21 @@
}
},
methods: {
scenePhotoClick() { // 跳转拍照小程序
uni.navigateTo({
url: 'pages/photo/list?orderId='+this.order.orderId+'&brandId='+this.order.lianbaoBrandId+'&brand='+this.order.brandName
+'&systemId='+this.order.partnerCompanyId+'&classifyId='+this.order.categoryId
})
},
take() {
uni.hideTabBar()
this.takeStatus = true
},
closeTake() {
this.takeStatus = false
// 获取返回的图片 ,如果返回的图片存在则直接异常签约,成功后跳转到去完工页面,
},
loadOrderDetail() { // 获取工单详情
let self = this
let timestamp = new Date().getTime();
......@@ -265,12 +285,14 @@
this.allowFeedback = true
this.showCenterBtn = true
this.submitType = "maintainWorkerCheckin"
this.errorSignIn = true
} else if (orderStatus > 31 && orderStatus < 80) {
// 完工
this.centerButton = "filish"
this.centerButtonText = "去完工"
this.allowFeedback = true
this.showCenterBtn = true
this.scenePhoto = true
} else {}
},
handleBtn() {
......
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