优化代码

This commit is contained in:
java110 2023-08-03 15:37:38 +08:00
parent 6220983b60
commit c6ce08d27f
3 changed files with 13 additions and 32 deletions

View File

@ -15,7 +15,7 @@ const baseUrl = '/';
// #ifndef H5
//服务器域名 小程序 或者 app 时 后端地址
const baseUrl = 'http://192.168.100.108:8008/';
const baseUrl = 'http://192.168.100.108:8088/';
// #endif
let commonBaseUrl = 'http://demo.homecommunity.cn/';

View File

@ -37,13 +37,13 @@
<view class="block__title">联系信息</view>
<view class="cu-form-group">
<view class="title">手机号</view>
<input v-model="link" placeholder="请输入手机号"></input>
<input v-model="link" placeholder="请输入手机号(没有手机号随便写一个)"></input>
</view>
<view class="cu-form-group">
<!-- <view class="cu-form-group">
<view class="title">验证码</view>
<input v-model="msgCode" placeholder="请输入短信验证码" name="input"></input>
<button class='cu-btn bg-green shadow' :disabled="btnDisabled" @click="sendMsgCode()">{{btnValue}}</button>
</view>
</view> -->
<view class="block__title">相关图片</view>
<uploadImageAsync ref="vcUploadRef" :communityId="communityId" :maxPhotoNum="uploadImage.maxPhotoNum" :canEdit="uploadImage.canEdit" :title="uploadImage.imgTitle" @sendImagesData="sendImagesData"></uploadImageAsync>
@ -127,27 +127,6 @@
_that.communityId = _owner.communityId;
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
@ -169,7 +148,7 @@
"memberId": this.memberId,
"communityId": this.communityId,
"idCard": this.idCard,
"msgCode":this.msgCode,
//"msgCode":this.msgCode,
"address": this.address,
"ownerPhoto": this.photos
}
@ -188,10 +167,12 @@
}else if (obj.link == "") {
msg = "请填写手机号";
} else if (!checkPhoneNumber(obj.link)){
msg = "手机号有误";
}else if (obj.msgCode == "") {
msg = "请填写验证码";
}
msg = "手机号有误";
}
// todo
//else if (obj.msgCode == "") {
// msg = "";
// }
if (msg != "") {
uni.showToast({
title: msg,

View File

@ -361,7 +361,7 @@
communityId: _communityInfo.communityId,
repairId: _repair.repairId,
staffId: this.userId,
state: '10001'
//state: '10001'
};
uni.request({
url: constant.url.listRepairStaffs,
@ -409,7 +409,7 @@
}
let _communityInfo = context.getCurrentCommunity();
let _data = {
staffId: this.preStaffId,
staffId: this.userId,
staffName: this.preStaffName,
context: this.context,
action: 'BACK',