|
@@ -165,20 +165,29 @@
|
|
|
} else if (type == 6) {
|
|
|
// 自助采摘
|
|
|
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
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
+ if(uni.getStorageSync("firstTimeLive")==""){
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'firstTimeLive',
|
|
|
+ data: 1
|
|
|
+ })
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ 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
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 跳转订单详情
|
|
@@ -190,20 +199,29 @@
|
|
|
} else {
|
|
|
// 自助采摘
|
|
|
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
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
+ if(uni.getStorageSync("firstTimeLive")==""){
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'firstTimeLive',
|
|
|
+ data: 1
|
|
|
+ })
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ 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
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
}
|