|
@@ -1,4 +1,5 @@
|
|
<template>
|
|
<template>
|
|
|
|
+ <view class="container">
|
|
<view class="order-row" @click="goToOrderDetail()">
|
|
<view class="order-row" @click="goToOrderDetail()">
|
|
<view class="shop-info" v-if="orderData">
|
|
<view class="shop-info" v-if="orderData">
|
|
<text class="iconfont iconwode"></text>
|
|
<text class="iconfont iconwode"></text>
|
|
@@ -34,6 +35,23 @@
|
|
</view>
|
|
</view>
|
|
<u-top-tips ref="uTips"></u-top-tips>
|
|
<u-top-tips ref="uTips"></u-top-tips>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="uni-popup-dialog" :hidden="show_qx">
|
|
|
|
+ <view class="uni-dialog-title">
|
|
|
|
+ <text class="uni-dialog-title-text">提示</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="uni-dialog-content">
|
|
|
|
+ <text class="uni-dialog-content-text">请在设置中开启摄像头权限和麦克风权限</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="uni-dialog-button-group">
|
|
|
|
+ <button class="uni-dialog-button uni-border-left" open-type="openSetting" @click="closeSetting">
|
|
|
|
+ 设置权限
|
|
|
|
+ </button>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <view class="qx_bg" :hidden="show_qx">
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -75,10 +93,15 @@
|
|
},
|
|
},
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
- return {}
|
|
|
|
|
|
+ return {
|
|
|
|
+ show_qx:true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onLoad() {},
|
|
onLoad() {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ closeSetting:function(){
|
|
|
|
+ this.show_qx=true;
|
|
|
|
+ },
|
|
// 获取订单总价
|
|
// 获取订单总价
|
|
getAllPrice() {
|
|
getAllPrice() {
|
|
let price = this.orderData.products.reduce((total, site) => {
|
|
let price = this.orderData.products.reduce((total, site) => {
|
|
@@ -141,9 +164,21 @@
|
|
});
|
|
});
|
|
} else if (type == 6) {
|
|
} else if (type == 6) {
|
|
// 自助采摘
|
|
// 自助采摘
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pagesMedia/pickVideo?tenantCode=' + this.orderData.tenantCode + '&orderId=' + this.orderData.orderId
|
|
|
|
- });
|
|
|
|
|
|
+ var that=this;
|
|
|
|
+ wx.getSetting({
|
|
|
|
+ success(res) {
|
|
|
|
+ if (!res.authSetting['scope.camera']){
|
|
|
|
+ that.show_qx=false;
|
|
|
|
+ }else if (!res.authSetting['scope.record']){
|
|
|
|
+ that.show_qx=false;
|
|
|
|
+ }else{
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 跳转订单详情
|
|
// 跳转订单详情
|
|
@@ -154,9 +189,21 @@
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
// 自助采摘
|
|
// 自助采摘
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pagesMedia/pickVideo?tenantCode=' + this.orderData.tenantCode + '&orderId=' + this.orderData.orderId
|
|
|
|
- });
|
|
|
|
|
|
+ var that=this;
|
|
|
|
+ wx.getSetting({
|
|
|
|
+ success(res) {
|
|
|
|
+ if (!res.authSetting['scope.camera']){
|
|
|
|
+ that.show_qx=false;
|
|
|
|
+ }else if (!res.authSetting['scope.record']){
|
|
|
|
+ that.show_qx=false;
|
|
|
|
+ }else{
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -325,4 +372,111 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .uni-popup-dialog {
|
|
|
|
+ width: 80vw;
|
|
|
|
+ border-radius: 15px;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ position: fixed;
|
|
|
|
+ margin-left: 10vw;
|
|
|
|
+ top: 34vh;
|
|
|
|
+ z-index: 11;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-dialog-title {
|
|
|
|
+ /* #ifndef APP-NVUE */
|
|
|
|
+ display: flex;
|
|
|
|
+ /* #endif */
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ padding-top: 15px;
|
|
|
|
+ padding-bottom: 5px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-dialog-title-text {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-dialog-content {
|
|
|
|
+ /* #ifndef APP-NVUE */
|
|
|
|
+ display: flex;
|
|
|
|
+ /* #endif */
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ padding: 5px 15px 15px 15px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-dialog-content-text {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ color: #6e6e6e;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-dialog-button-group {
|
|
|
|
+ /* #ifndef APP-NVUE */
|
|
|
|
+ display: flex;
|
|
|
|
+ /* #endif */
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ border-top-color: #f5f5f5;
|
|
|
|
+ border-top-style: solid;
|
|
|
|
+ border-top-width: 1px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-dialog-button {
|
|
|
|
+ /* #ifndef APP-NVUE */
|
|
|
|
+ display: flex;
|
|
|
|
+ /* #endif */
|
|
|
|
+ background: rgba(0, 0, 0, 0);
|
|
|
|
+ border: none;
|
|
|
|
+ flex: 1;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ height: 45px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-border-left {
|
|
|
|
+ border-left-color: #f0f0f0;
|
|
|
|
+ border-left-style: solid;
|
|
|
|
+ border-left-width: 0px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-dialog-button-text {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-button-color {
|
|
|
|
+ color: #007aff;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-dialog-input {
|
|
|
|
+ flex: 1;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-popup__success {
|
|
|
|
+ color: #4cd964;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-popup__warn {
|
|
|
|
+ color: #f0ad4e;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-popup__error {
|
|
|
|
+ color: #dd524d;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .uni-popup__info {
|
|
|
|
+ color: #909399;
|
|
|
|
+ }
|
|
|
|
+ .qx_bg{
|
|
|
|
+ width: 100vw;
|
|
|
|
+ height: 100vh;
|
|
|
|
+ background: rgba(0, 0, 0, 0.25);
|
|
|
|
+ position: fixed;
|
|
|
|
+ top: 0px;
|
|
|
|
+ left: 0px;
|
|
|
|
+ z-index: 10;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|