Browse Source

fix: 修改环境配置为开发环境并启用初始化数据

将默认环境从生产环境改为开发环境,并更新开发环境的baseUrl。同时取消注释human.vue中的初始化数据调用,确保页面加载时数据正确初始化。移除拍照打卡按钮的冗余代码。
master
主管理员 5 days ago
parent
commit
e4541e6a2b
2 changed files with 14 additions and 6 deletions
  1. +3
    -2
      config.js
  2. +11
    -4
      pages/subPack/human/human.vue

+ 3
- 2
config.js View File

@ -6,13 +6,14 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
const type = 'prod'
const type = 'dev'
// 环境配置
const config = {
dev: {
baseUrl: 'http://127.0.0.1:8083/clockin-api',
baseUrl: 'http://h5.xzaiyp.top/clockin-api',
// baseUrl: 'http://127.0.0.1:8083/clockin-api',
},
test: {
baseUrl: 'https://clockin.java996.icu/clockin-api',


+ 11
- 4
pages/subPack/human/human.vue View File

@ -72,7 +72,7 @@
立即核验
</view>
<view class="btn">
<!-- <view class="btn">
<uv-upload
multiple
:maxCount="1"
@ -84,7 +84,7 @@
拍照打卡
</view>
</uv-upload>
</view>
</view> -->
<uv-popup ref="successPopup" :round="30"
@ -156,7 +156,7 @@
if(args.type){
this.type = args.type
}
// this.initData()
this.initData()
},
onShow() {
let self = this
@ -307,9 +307,16 @@
// && this.tipsText != this.successTextthis.tipsText != ""
handleTakePhotoClick() {
if (!this.tempImg) {
console.log('handleTakePhotoClick');
if (this.tempImg) {
console.log('handleTakePhotoClick return', this.tempImg);
return;
}
uni.showLoading({
title: '打卡中...'
})
uni.getSetting({
success: (res) => {


Loading…
Cancel
Save