he2802 3 жил өмнө
parent
commit
910f1593e3
1 өөрчлөгдсөн 16 нэмэгдсэн , 3 устгасан
  1. 16 3
      pages2/class/detail.vue

+ 16 - 3
pages2/class/detail.vue

@@ -128,6 +128,9 @@
 				</view>
 			</view>
 		</view>
+		<!-- 播放前拍照end -->
+		<button open-type="openSetting" @bindopensetting="openSetting" class="btnSet">设置授权</button>
+		<u-mask :show="photoPopup" >
 		<!-- 播放前拍照start -->
 		<view v-if="photoPopup"  :mask-close-able="false" style="bottom: 0;position: fixed;width: 100%;z-index: 999;">
 			<view class="photoBox">
@@ -145,8 +148,8 @@
 				<view class="btnResult" @click="takePhoto">拍照</view>
 			</view>
 		</view>
-		<!-- 播放前拍照end -->
-		
+
+		</u-mask>
 	</view>
 	
 </template>
@@ -340,6 +343,9 @@ export default {
 		});
 	},
 	methods: {
+		openSetting(res){
+			console.log(res,98)
+		},
 		getCameraSetting () {
 		    const _this = this
 		    wx.getSetting({
@@ -386,7 +392,8 @@ export default {
 		    })
 		  },
 		openJY(){
-		//	this.openPhoto();
+		//	this.getCameraSetting()
+	//		this.openPhoto();
 	//		this.getCameraSetting()
 			/* wx.openSetting({
 			      success (res) {
@@ -837,6 +844,12 @@ export default {
 </script>
 
 <style lang="scss" scope>
+	.btnSet{
+		width: 100px;
+		height: 100px;
+		position: fixed;
+		bottom: 0;
+	}
 .btnReply {
 	width: 80rpx;
 	height: 40rpx;