xuqiaoying 2 vuotta sitten
vanhempi
commit
9f298310e6
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      pages3/polyv/detail.vue

+ 5 - 2
pages3/polyv/detail.vue

@@ -518,6 +518,7 @@
               class="center_camera"
               v-if="photoPopup && isTaking"
             >
+              <!-- #ifdef MP-WEIXIN -->
               <camera
                 device-position="front"
                 flash="off"
@@ -535,6 +536,10 @@
                   <cover-view class="headTake_down color"></cover-view>
                 </cover-view>
               </camera>
+              <!-- #endif -->
+              <!-- #ifdef H5 -->
+              <video id="video" width="100" height="100"></video>
+              <!-- #endif -->
             </view>
             <view class="custom" v-if="!isTaking"
               ><image :src="avatarUrl" mode=""></image
@@ -2880,7 +2885,6 @@ export default {
         }
         // #endif
       }
-      // #ifdef MP-WEIXIN
       this.enableAutoRotation = false;
       this.photoPopup = true;
       this.isTaking = true;
@@ -2893,7 +2897,6 @@ export default {
         scope: "scope.camera",
         success() {},
       });
-      // #endif
       // #ifdef H5
       uni.chooseImage({
         count: 1,