mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
代码优化 联系客服调整
This commit is contained in:
parent
2b3ee8f6d3
commit
031a6782b4
@ -61,6 +61,7 @@
|
||||
<script>
|
||||
// pages/enterCommunity/enterCommunity.js
|
||||
import * as TanslateImage from '../../utils/translate-image.js';
|
||||
import {checkPhoneNumber} from '../../utils/StringUtil.js'
|
||||
const context = require("../../context/Java110Context.js");
|
||||
const constant = context.constant;
|
||||
const factory = context.factory;
|
||||
@ -236,6 +237,8 @@
|
||||
msg = "请填写投诉人";
|
||||
} else if (obj.tel == "") {
|
||||
msg = "请填写手机号";
|
||||
} else if (!checkPhoneNumber(obj.tel)) {
|
||||
msg = "手机号有误";
|
||||
} else if (obj.context == "") {
|
||||
msg = "请填写投诉内容";
|
||||
}
|
||||
|
||||
@ -173,7 +173,11 @@
|
||||
*/
|
||||
_loadCompaint: function(_active) {
|
||||
let that = this;
|
||||
|
||||
|
||||
if(!that.communityId || !that.roomId){
|
||||
return;
|
||||
}
|
||||
|
||||
let _state = '';
|
||||
if (_active == 0) {
|
||||
_state = '10001';
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="padding-xl">
|
||||
您确认拨打{{property.name}}-{{property.tel}}
|
||||
您确认拨打,{{property.communityName}}物业客服电话<br />{{property.sCommunityTel}}
|
||||
</view>
|
||||
<view class="cu-bar bg-white justify-end">
|
||||
<view class="action margin-0 flex-sub solid-left" @tap="_cancleCall()">取消</view>
|
||||
@ -261,24 +261,32 @@
|
||||
return;
|
||||
}
|
||||
//查询物业信息
|
||||
getProperty()
|
||||
.then(function(_propertyInfo){
|
||||
_that.property = _propertyInfo;
|
||||
_that.callPropertyModal = true;
|
||||
})
|
||||
.then(function(res){
|
||||
uni.showToast({
|
||||
title: res,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
// getProperty()
|
||||
// .then(function(_propertyInfo){
|
||||
// _that.property = _propertyInfo;
|
||||
// _that.callPropertyModal = true;
|
||||
// })
|
||||
uni.getStorage({
|
||||
key: 'ownerInfo',
|
||||
success: function (res) {
|
||||
console.log(res.data);
|
||||
_that.property = res.data;
|
||||
_that.callPropertyModal = true;
|
||||
}
|
||||
});
|
||||
// .then(function(res){
|
||||
// uni.showToast({
|
||||
// title: res,
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// });
|
||||
// })
|
||||
},
|
||||
_doCall: function() {
|
||||
let _that = this;
|
||||
uni.makePhoneCall({
|
||||
// 手机号
|
||||
phoneNumber: _that.property.tel,
|
||||
phoneNumber: _that.property.sCommunityTel,
|
||||
// 成功回调
|
||||
success: (res) => {
|
||||
console.log('调用成功!')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user