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
3e88aaf9
Commit
3e88aaf9
authored
Mar 28, 2020
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9e9c162f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
15 deletions
+23
-15
index.js
business/pages/themead/index.js
+10
-2
index.wxml
business/pages/themead/index.wxml
+1
-1
index.js
business/pages/themeeditor/index.js
+1
-1
index.wxml
business/pages/themeeditor/index.wxml
+5
-5
index.wxss
business/pages/themeeditor/index.wxss
+1
-1
index.js
business/pages/themeindex/index.js
+5
-5
No files found.
business/pages/themead/index.js
View file @
3e88aaf9
...
...
@@ -169,11 +169,19 @@ Page({
})
return
;
}
if
(
params
.
mobile
!=
''
&&
!
regexp
.
mobile
.
test
(
params
.
mobile
))
{
wx
.
showToast
({
title
:
'请输入正确格式的手机号'
,
duration
:
1500
,
icon
:
'none'
,
})
return
;
}
if
(
this
.
data
.
has_subject
)
{
wx
.
showModal
({
title
:
'修改后的模板将覆盖之前的内容'
,
title
:
'提示'
,
content
:
'修改后的模板将覆盖之前的内容'
,
confirmText
:
'确定'
,
// showCancel: false,
success
(
res
)
{
if
(
res
.
confirm
)
{
that
.
saveLockPost
();
...
...
business/pages/themead/index.wxml
View file @
3e88aaf9
...
...
@@ -63,7 +63,7 @@
</view>
<view class="contact-item">
<view class="label">手机号码</view>
<input type="number" class="teacher-nameinput" value="{{params.mobile}}" max
L
ength="11" bindinput="mobileInput" placeholder="请输入手机号码(可选)"/>
<input type="number" class="teacher-nameinput" value="{{params.mobile}}" max
l
ength="11" bindinput="mobileInput" placeholder="请输入手机号码(可选)"/>
</view>
<view class="contact-item">
<view class="label">微信号</view>
...
...
business/pages/themeeditor/index.js
View file @
3e88aaf9
...
...
@@ -72,7 +72,7 @@ Page({
title
:
''
,
content
:
[{
type
:
'text'
,
value
:
'
闯关
打卡的描述'
value
:
'
日历
打卡的描述'
}],
is_cheat
:
0
,
is_encrypt
:
0
,
...
...
business/pages/themeeditor/index.wxml
View file @
3e88aaf9
...
...
@@ -21,9 +21,9 @@
<view class="section-wrap pdlpdr24" style="margin-bottom: 0;">
<view class="section-item borderbottom1px">
<view class="form-item title" >
<view class="item-l">作业标题</view>
<view class="item-l">作业
打卡
标题</view>
<view class="item-r">
<textarea class="title-input" bindinput="titleInput" value="{{params.title}}" placeholder="请输入此次作业标题" auto-height="true"></textarea>
<textarea class="title-input" bindinput="titleInput" value="{{params.title}}" placeholder="请输入此次作业
打卡
标题" auto-height="true"></textarea>
</view>
</view>
</view>
...
...
@@ -120,7 +120,7 @@
<view class="section-wrap pdlpdr24" style="margin-bottom: 0;">
<view class="section-item borderbottom1px">
<view class="form-item title" >
<view class="item-l">
作业
标题</view>
<view class="item-l">
日历打卡
标题</view>
<view class="item-r">
<textarea class="title-input" bindinput="titleInput" value="{{calendarparams.title}}" placeholder="请输入此次日历打卡标题" auto-height="true"></textarea>
</view>
...
...
@@ -243,9 +243,9 @@
<view class="section-wrap pdlpdr24" style="margin-bottom: 0;">
<view class="section-item borderbottom1px">
<view class="form-item title" >
<view class="item-l">闯关
关
打卡标题</view>
<view class="item-l">闯关打卡标题</view>
<view class="item-r">
<textarea
style="width: 430rpx" class="title-input" bindinput="titleInput" value="{{lockparams.title}}" placeholder="请输入此次作业
标题" auto-height="true"></textarea>
<textarea
class="title-input" bindinput="titleInput" value="{{lockparams.title}}" placeholder="请输入此次闯关打卡
标题" auto-height="true"></textarea>
</view>
</view>
</view>
...
...
business/pages/themeeditor/index.wxss
View file @
3e88aaf9
...
...
@@ -234,7 +234,6 @@ page{
padding: 0 15rpx;
width: 100%; */
width: 500rpx;
margin-left: 76rpx;
}
.section-item .form-item:last-of-type{
margin-bottom: 0;
...
...
@@ -245,6 +244,7 @@ page{
font-weight: bold;
display: flex;
align-items: center;
width: 180rpx;
}
.form-item .item-l .tip{
font-size: 24rpx;
...
...
business/pages/themeindex/index.js
View file @
3e88aaf9
...
...
@@ -209,7 +209,7 @@ Page({
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
{
title
:
`邀请您提交「
${
this
.
data
.
params
.
title
}
」作业`
,
path
:
`/src/pages/themeindex/
index?tid=
${
this
.
data
.
tid
}
&id=
${
this
.
data
.
id
}
&sid=
${
this
.
data
.
sid
}
`
path
:
`/src/pages/themeindex/
landpage?tid=
${
this
.
data
.
t
id
}
&sid=
${
this
.
data
.
sid
}
`
}
}
else
{
const
{
...
...
@@ -283,11 +283,11 @@ Page({
hadClockTotal
:
Number
(
data
.
record_count
||
0
),
initShareObj
:
{
title
:
`邀请您提交「
${
data
.
title
}
」作业`
,
path
:
`/src/pages/themeindex/
index?tid=
${
this
.
data
.
tid
}
&id=
${
data
.
class_
id
}
`
path
:
`/src/pages/themeindex/
landpage?tid=
${
this
.
data
.
t
id
}
`
},
shareObj
:
{
title
:
`邀请您提交「
${
data
.
title
}
」作业`
,
path
:
`/src/pages/themeindex/
index?tid=
${
this
.
data
.
tid
}
&id=
${
data
.
class_
id
}
`
path
:
`/src/pages/themeindex/
landpage?tid=
${
this
.
data
.
t
id
}
`
}
})
this
.
setData
({
...
...
@@ -601,7 +601,7 @@ Page({
},
openThemeIndex
()
{
wxNavigateToMiniProgram
({
path
:
`/src/pages/themeindex/
index?id=
${
this
.
data
.
id
}
&
tid=
${
this
.
data
.
tid
}
&pagefrom=businesstheme`
,
path
:
`/src/pages/themeindex/
landpage?
tid=
${
this
.
data
.
tid
}
&pagefrom=businesstheme`
,
})
},
// 跟打卡卡片上面关联的操作
...
...
@@ -1163,7 +1163,7 @@ Page({
},
toMoreStudent
(){
wx
.
navigateTo
({
url
:
`/business/pages/themeindex/unlockstudent?
id=
${
this
.
data
.
id
}
&
tid=
${
this
.
data
.
tid
}
&sid=
${
this
.
data
.
sid
}
&type=1`
url
:
`/business/pages/themeindex/unlockstudent?tid=
${
this
.
data
.
tid
}
&sid=
${
this
.
data
.
sid
}
&type=1`
})
},
...
...
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