mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化注册协议设置
This commit is contained in:
parent
c177fa1d45
commit
054d2b94ee
42
public/pages/frame/registerProtocol/registerProtocol.html
Normal file
42
public/pages/frame/registerProtocol/registerProtocol.html
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="ibox ">
|
||||||
|
<div class="ibox-title">
|
||||||
|
<h5>
|
||||||
|
<span>注册协议</span>
|
||||||
|
</h5>
|
||||||
|
<div class="ibox-tools" style="top:10px;">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="ibox-content">
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="col-sm-2 col-form-label text-right"><span><vc:i18n name='用户协议' namespace='registerProtocol'></vc:i18n></span></label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<!-- <textarea v-model="registerProtocolInfo.userProtocol" :placeholder="vc.i18n('必填,请填写用户协议','registerProtocol')" class="form-control"></textarea> -->
|
||||||
|
<div class="no-padding">
|
||||||
|
<div class="userProtocolSummernote"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="col-sm-2 col-form-label text-right"><span><vc:i18n name='商家协议' namespace='registerProtocol'></vc:i18n></span></label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<!-- <textarea v-model="registerProtocolInfo.merchantProtocol" :placeholder="vc.i18n('必填,请填写商家协议','registerProtocol')" class="form-control"></textarea> -->
|
||||||
|
<div class="no-padding">
|
||||||
|
<div class="merchantProtocolSummernote"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row ">
|
||||||
|
<div class="col-sm-12 text-right">
|
||||||
|
<button class="btn btn-primary float-right" type="button" v-on:click="_updateRegisterProtocol()">
|
||||||
|
修改
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
99
public/pages/frame/registerProtocol/registerProtocol.js
Normal file
99
public/pages/frame/registerProtocol/registerProtocol.js
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
/**
|
||||||
|
系统配置 组件
|
||||||
|
**/
|
||||||
|
(function (vc) {
|
||||||
|
vc.extends({
|
||||||
|
data: {
|
||||||
|
registerProtocolInfo: {
|
||||||
|
userProtocol:'',
|
||||||
|
merchantProtocol:'',
|
||||||
|
protolcolId:'',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
_initMethod: function () {
|
||||||
|
//根据请求参数查询 查询 业主信息
|
||||||
|
$that.initTextArea();
|
||||||
|
vc.component._listRegisterProtocols();
|
||||||
|
},
|
||||||
|
_initEvent: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initTextArea:function(){
|
||||||
|
$that._initSummernote('userProtocolSummernote',function(content){
|
||||||
|
$that.registerProtocolInfo.userProtocol = content;
|
||||||
|
});
|
||||||
|
$that._initSummernote('merchantProtocolSummernote',function(content){
|
||||||
|
$that.registerProtocolInfo.merchantProtocol = content;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
_initSummernote:function(_textClass,_callFunc){
|
||||||
|
let $summernote = $('.'+_textClass).summernote({
|
||||||
|
lang: 'zh-CN',
|
||||||
|
height: 300,
|
||||||
|
placeholder: '必填,请输入公告内容',
|
||||||
|
callbacks: {
|
||||||
|
onChange: function (contents, $editable) {
|
||||||
|
_callFunc(contents);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toolbar: [
|
||||||
|
['style', ['style']],
|
||||||
|
['font', ['bold', 'italic', 'underline', 'clear']],
|
||||||
|
['fontname', ['fontname']],
|
||||||
|
['color', ['color']],
|
||||||
|
['para', ['ul', 'ol', 'paragraph']],
|
||||||
|
['height', ['height']],
|
||||||
|
['table', ['table']],
|
||||||
|
['insert', ['link']],
|
||||||
|
['help', ['help']]
|
||||||
|
],
|
||||||
|
});
|
||||||
|
},
|
||||||
|
_listRegisterProtocols: function () {
|
||||||
|
let param = {
|
||||||
|
params: {
|
||||||
|
page: 1,
|
||||||
|
row: 1
|
||||||
|
}
|
||||||
|
};
|
||||||
|
//发送get请求
|
||||||
|
vc.http.apiGet('/system.listRegisterProtocol',
|
||||||
|
param,
|
||||||
|
function (json, res) {
|
||||||
|
let _systemInfoManageInfo = JSON.parse(json);
|
||||||
|
vc.copyObject(_systemInfoManageInfo.data[0], $that.registerProtocolInfo);
|
||||||
|
$(".userProtocolSummernote").summernote('code', $that.registerProtocolInfo.userProtocol);
|
||||||
|
$(".merchantProtocolSummernote").summernote('code', $that.registerProtocolInfo.merchantProtocol);
|
||||||
|
|
||||||
|
},
|
||||||
|
function (errInfo, error) {
|
||||||
|
console.log('请求失败处理');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
_updateRegisterProtocol:function(){
|
||||||
|
vc.http.apiPost(
|
||||||
|
'/system.updateRegisterProtocol',
|
||||||
|
JSON.stringify($that.registerProtocolInfo), {
|
||||||
|
emulateJSON: true
|
||||||
|
},
|
||||||
|
function(json, res) {
|
||||||
|
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||||
|
let _json = JSON.parse(json)
|
||||||
|
if (_json.code == 0) {
|
||||||
|
//关闭model
|
||||||
|
$that._listRegisterProtocols();
|
||||||
|
vc.toast("修改成功");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
vc.toast(_json.msg);
|
||||||
|
},
|
||||||
|
function(errInfo, error) {
|
||||||
|
console.log('请求失败处理');
|
||||||
|
vc.toast(errInfo);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})(window.vc);
|
||||||
@ -57,3 +57,21 @@
|
|||||||
|
|
||||||
此功能主要为了解决维修师傅年龄大不会使用手机操作,需要客服人员确认维修完后强制回单场景
|
此功能主要为了解决维修师傅年龄大不会使用手机操作,需要客服人员确认维修完后强制回单场景
|
||||||
|
|
||||||
|
### 微信消息推送配置流程
|
||||||
|
|
||||||
|
当工单提交或者派单后将会给相应员工推送微信消息,这个只有公众号才能推送,目前小程序无法推送;</br>
|
||||||
|
|
||||||
|
#### a、维修师傅消息推送
|
||||||
|
|
||||||
|
1、在设置-> 系统->公众号 公众号信息页面配置相应模板消息,配置文档找管理员获取</br>
|
||||||
|
|
||||||
|
2、员工登录自己的账号,进入设置->组织->员工认证 中认证 用微信扫一扫,会跳转至业主端页面</br>
|
||||||
|
|
||||||
|
#### b、工单提交给客服推送消息
|
||||||
|
|
||||||
|
1、在设置-> 系统->公众号 公众号信息页面配置相应模板消息,配置文档找管理员获取</br>
|
||||||
|
|
||||||
|
2、员工登录自己的账号,进入设置->组织->员工认证 中认证 用微信扫一扫,会跳转至业主端页面</br>
|
||||||
|
|
||||||
|
3、管理员登录后,进入 设置->组织->角色权限 下的功能权限,给报修登记通知权限(在组织->员工认证->报修登记通知)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user