Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
c0e14121
Commit
c0e14121
authored
Mar 28, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'aa'
parent
77e66fbf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
2 deletions
+73
-2
index.js
business/pages/themead/index.js
+42
-0
setting.js
business/pages/themeeditor/setting.js
+8
-0
setting.wxml
business/pages/themeeditor/setting.wxml
+2
-2
setting.wxss
business/pages/themeeditor/setting.wxss
+21
-0
No files found.
business/pages/themead/index.js
View file @
c0e14121
...
...
@@ -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
}
...
...
business/pages/themeeditor/setting.js
View file @
c0e14121
...
...
@@ -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
,
...
...
business/pages/themeeditor/setting.wxml
View file @
c0e14121
...
...
@@ -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>
...
...
business/pages/themeeditor/setting.wxss
View file @
c0e14121
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment