Przeglądaj źródła

拍照新增人脸框

xuqiaoying 3 lat temu
rodzic
commit
0f4597a2cb
2 zmienionych plików z 23 dodań i 7 usunięć
  1. 6 6
      common/request.js
  2. 17 1
      pages3/polyv/detail.vue

+ 6 - 6
common/request.js

@@ -4,22 +4,22 @@ import store from '@/store/index.js'
 import api from './api.js'
 var num = 1
 //接口api   
-export const BASE_URL = 'https://api.xyyxt.net'   //release
+// export const BASE_URL = 'https://api.xyyxt.net'   //release
 // export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-// export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
+export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test(后端本地)
 // export const BASE_URL = 'http://192.168.1.222:5055'    //后端本地更新到222
 // export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地
 // export const BASE_URL = 'http://192.168.1.7:5055'    //后端本地
 
  //图片上传api
-export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
-// export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
+// export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
+export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
 
 // web_view的
-export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release
+// export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release
 // export const WEBVIEW_URL = 'https://testm.xyyxt.net/'  //预发布
-// export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境
+export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境
 // export const WEBVIEW_URL = 'http://api.xyyxt.net:6066/'  //预发布(弃用了)
 
 // export const socket_url = 'ws://42.192.164.187:19005/webSocket/'  //test

+ 17 - 1
pages3/polyv/detail.vue

@@ -500,7 +500,11 @@
                 flash="off"
                 @error="error"
                 style="width: 100%; height: 100%"
-              ></camera>
+              >
+                <cover-view class="head_take">
+                  <cover-view class="head_img"></cover-view>
+                </cover-view>
+              </camera>
             </view>
             <view class="custom" v-if="!isTaking"
               ><image :src="avatarUrl" mode=""></image
@@ -3196,6 +3200,18 @@ export default {
         height: 100%;
       }
     }
+    .head_take {
+      width: 100%;
+      display: flex;
+      justify-content: center;
+      margin-top: 100rpx;
+      .head_img {
+        width: 500rpx;
+        height: 500rpx;
+        // background-color: #A4A4A6;
+        border: 2rpx solid #666;
+      }
+    }
   }
 
   .btns {