Commit c0e14121 authored by wangxuelai's avatar wangxuelai

'aa'

parent 77e66fbf
......@@ -169,6 +169,48 @@ Page({
})
return;
}
if (this.data.has_subject) {
wx.showModal({
title: '修改后的模板将覆盖之前的内容',
confirmText: '确定',
// showCancel: false,
success(res) {
if (res.confirm) {
that.saveLockPost();
}
}
})
return;
}
this.saveLockPost();
},
saveLockPost() {
const that = this;
const { params } = this.data
// if (params.title.trim() == '') {
// wx.showToast({
// title: '请输入模板名称',
// duration: 1500,
// icon: 'none',
// })
// return;
// }
// if (params.name.trim() == '') {
// wx.showToast({
// title: '请输入老师姓名',
// duration: 1500,
// icon: 'none',
// })
// return;
// }
// if (params.mobile == '' && params.img=='') {
// wx.showToast({
// title: '请添加手机号码或者上传微信二维码',
// duration: 1500,
// icon: 'none',
// })
// return;
// }
if (this.data.publishing) {
return
}
......
......@@ -404,6 +404,14 @@ Page({
})
},
sureChangePsd () {
const reg = /^[\d]{6,12}$/;
if (!reg.test(this.data.copy_join_secret)) {
wx.showToast({
title: '请输入6-12位的数字密码',
icon: 'none'
})
return;
}
this.setData({
psdshow: false,
join_secret: this.data.copy_join_secret,
......
......@@ -201,8 +201,8 @@
<view class="modal-dialog" wx:if="{{psdshow}}">
<view class="modal-mask"></view>
<view class="modal-box">
<input type="number" placeholder="请输入密码" value="{{join_secret}}" bindinput="inputPsd" />
<view>
<input type="number" placeholder="请输入密码" class="inputPsd" value="{{join_secret}}" bindinput="inputPsd" />
<view class="modal-btn-box">
<view class="modal-btn" bindtap="hideChangePsd">关闭</view>
<view class="modal-btn" bindtap="sureChangePsd">确定</view>
</view>
......
......@@ -177,10 +177,15 @@ picker .icon-arr{
font-size: 28rpx;
color: #000;
}
.modal-btn-box {
display: flex;
align-items: center;
}
.modal-dialog .modal-box .modal-btn{
width: 100%;
height: 100rpx;
display: flex;
flex: 1;
align-items: center;
justify-content: center;
border-top: 1px solid rgba(0,0,0,.05);
......@@ -188,6 +193,22 @@ picker .icon-arr{
color: #434343;
font-weight: bold;
}
.modal-dialog .modal-box .inputPsd {
width: 420rpx;
height: 78rpx;
border-radius: 38rpx;
background:rgba(238,238,237,1);
display: block;
margin: 80rpx auto;
text-align: center;
padding: 0 30rpx;
}
.modal-dialog .modal-box .modal-btn:first-child {
border-right: 1px solid rgba(0,0,0,.05);
}
.modal-dialog .modal-box .modal-btn:last-child {
color: #65B8F4;
}
.borderbottom1px {
border-bottom: 1px solid #F1F2F3;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment