mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
6220983b60
commit
c6ce08d27f
@ -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/';
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user