Commit 3e88aaf9 authored by lvtz's avatar lvtz

fix

parent 9e9c162f
......@@ -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();
......
......@@ -63,7 +63,7 @@
</view>
<view class="contact-item">
<view class="label">手机号码</view>
<input type="number" class="teacher-nameinput" value="{{params.mobile}}" maxLength="11" bindinput="mobileInput" placeholder="请输入手机号码(可选)"/>
<input type="number" class="teacher-nameinput" value="{{params.mobile}}" maxlength="11" bindinput="mobileInput" placeholder="请输入手机号码(可选)"/>
</view>
<view class="contact-item">
<view class="label">微信号</view>
......
......@@ -72,7 +72,7 @@ Page({
title: '',
content: [{
type: 'text',
value: '闯关打卡的描述'
value: '日历打卡的描述'
}],
is_cheat: 0,
is_encrypt: 0,
......
......@@ -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>
......
......@@ -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;
......
......@@ -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.tid}&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.tid}`
},
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.tid}`
}
})
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`
})
},
......
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