Commit 77e66fbf authored by wangxuelai's avatar wangxuelai

'串联优化'

parent bb83c5be
...@@ -1558,5 +1558,10 @@ Page({ ...@@ -1558,5 +1558,10 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/themeeditor/index?tid=${this.data.tid}&sid=${this.data.sid}&editType=2` url: `/business/pages/themeeditor/index?tid=${this.data.tid}&sid=${this.data.sid}&editType=2`
}); });
},
goEditLandcontent () {
wx.navigateTo({
url: `/business/pages/themead/index?id=${this.data.params.content_id}&sid=${this.data.sid}&editType=2`
})
} }
}); });
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
<image class="icon-arr" src="{{imageRoot}}2b/themeindex/setting_right.png"></image> <image class="icon-arr" src="{{imageRoot}}2b/themeindex/setting_right.png"></image>
</view> </view>
</view> </view>
<view class="setting-item"> <view class="setting-item" bindtap="goEditLandcontent">
<view class="left"> <view class="left">
<view class="item-label">打卡营销页设置</view> <view class="item-label">打卡营销页设置</view>
<view class="item-desc">配置此页面后可在学生加入打卡前展示,此功能可收集有意向学生的联系方式。 <text class="more-tip">了解更多</text></view> <view class="item-desc">配置此页面后可在学生加入打卡前展示,此功能可收集有意向学生的联系方式。 <text class="more-tip">了解更多</text></view>
......
...@@ -173,17 +173,8 @@ Page({ ...@@ -173,17 +173,8 @@ Page({
return return
} }
this.data.publishing = true; this.data.publishing = true;
const sjdMediaEditor = this.selectComponent('#sjd-media-editor');
let content = JSON.parse(JSON.stringify(sjdMediaEditor.data.content));
let _content = content.filter((ele) => ele.value.trim() != '');
_content.forEach((ele) => {
if (ele.type == 'video' && ele.poster) {
delete ele.poster;
}
})
params.content = JSON.stringify(_content);
const { introduceContent } = this.data; const { introduceContent } = this.data;
const sjdMediaEditorList = [] const sjdMediaEditorList = [];
for(let i = 0; i<introduceContent.length; i++){ for(let i = 0; i<introduceContent.length; i++){
const sjdMediaEditor = this.selectComponent(`#sjd-media-editor${i}`); const sjdMediaEditor = this.selectComponent(`#sjd-media-editor${i}`);
let content = JSON.parse(JSON.stringify(sjdMediaEditor.data.content)); let content = JSON.parse(JSON.stringify(sjdMediaEditor.data.content));
...@@ -200,7 +191,6 @@ Page({ ...@@ -200,7 +191,6 @@ Page({
} catch (error) { } catch (error) {
} }
wx.showLoading({ wx.showLoading({
title: '保存中...' title: '保存中...'
}); });
......
{ {
"navigationBarTitleText": "打卡营销页设置", "navigationBarTitleText": "营销页设置",
"usingComponents": { "usingComponents": {
"sjd-media-editor": "../../../components/sjdmediaeditor", "sjd-media-editor": "../../../components/sjdmediaeditor",
"w-switch": "/dist/w-switch/index", "w-switch": "/dist/w-switch/index",
......
...@@ -30,8 +30,10 @@ ...@@ -30,8 +30,10 @@
<view class="tips">点击修改标题,最多15个字</view> <view class="tips">点击修改标题,最多15个字</view>
</view> --> </view> -->
<view> <view>
<sjd-media-editor content="{{item.content}}" <sjd-media-editor
id="sjd-media-editor{{index}}" sid="{{sid}}" content="{{item.content}}"
id="sjd-media-editor{{index}}"
sid="{{sid}}"
haveAddVoice="{{true}}" haveAddVoice="{{true}}"
haveAddWxfile="{{true}}" haveAddWxfile="{{true}}"
bind:addVoice="addVoice" bind:addVoice="addVoice"
......
...@@ -293,7 +293,7 @@ Page({ ...@@ -293,7 +293,7 @@ Page({
}); });
} else if (editType == 2) { } else if (editType == 2) {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: '编辑作业打卡' title: '编辑日历打卡'
}) })
this.loadCalendarThemeData({ this.loadCalendarThemeData({
tid, tid,
...@@ -301,7 +301,7 @@ Page({ ...@@ -301,7 +301,7 @@ Page({
}); });
} else if (editType == 3) { } else if (editType == 3) {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: '编辑作业打卡' title: '编辑闯关打卡'
}) })
this.unlockSubjectShow(); this.unlockSubjectShow();
} }
...@@ -878,7 +878,8 @@ Page({ ...@@ -878,7 +878,8 @@ Page({
prevPage = pages[pages.length - 2]; //上一个页面 prevPage = pages[pages.length - 2]; //上一个页面
} }
prevPage.setData({ prevPage.setData({
showRefresh: true showRefresh: true,
needRefresh: true,
}); });
wx.navigateBack({ wx.navigateBack({
delta: 1, // 回退前 delta(默认为1) 页面 delta: 1, // 回退前 delta(默认为1) 页面
......
...@@ -150,7 +150,7 @@ Page({ ...@@ -150,7 +150,7 @@ Page({
toEdit () { toEdit () {
const that = this; const that = this;
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/themeeditor/index?id=0&tid=${this.data.tid}&sid=tid=${this.data.sid}&classes=[]&editType=3`, url: `/business/pages/themeeditor/index?id=0&tid=${this.data.tid}&sid=${this.data.sid}&classes=[]&editType=3`,
success() { success() {
that.closeSettingModal() that.closeSettingModal()
} }
......
...@@ -254,6 +254,7 @@ Page({ ...@@ -254,6 +254,7 @@ Page({
themeDetail({ themeDetail({
id: this.data.tid, id: this.data.tid,
school_id:this.data.sid, school_id:this.data.sid,
extra: 'land_content'
}).then((res) => { }).then((res) => {
const {code, data} = res; const {code, data} = res;
if (code == 200) { if (code == 200) {
...@@ -302,7 +303,6 @@ Page({ ...@@ -302,7 +303,6 @@ Page({
path: `/src/pages/themeindex/index?tid=${this.data.tid}&id=${data.class_id}` path: `/src/pages/themeindex/index?tid=${this.data.tid}&id=${data.class_id}`
} }
}) })
this.setData({ this.setData({
id: data.class_id, id: data.class_id,
params: Object.assign(data, { params: Object.assign(data, {
...@@ -1305,5 +1305,10 @@ Page({ ...@@ -1305,5 +1305,10 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/themeeditor/index?tid=${this.data.tid}&sid=${this.data.sid}&editType=1` url: `/business/pages/themeeditor/index?tid=${this.data.tid}&sid=${this.data.sid}&editType=1`
}) })
},
goEditLandcontent () {
wx.navigateTo({
url: `/business/pages/themead/index?id=${this.data.params.content_id}&sid=${this.data.sid}&editType=1`
})
} }
}) })
\ No newline at end of file
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
<image class="icon-arr" src="{{imageRoot}}2b/themeindex/setting_right.png"></image> <image class="icon-arr" src="{{imageRoot}}2b/themeindex/setting_right.png"></image>
</view> </view>
</view> </view>
<view class="setting-item"> <view class="setting-item" bindtap="goEditLandcontent">
<view class="left"> <view class="left">
<view class="item-label">打卡营销页设置</view> <view class="item-label">打卡营销页设置</view>
<view class="item-desc">配置此页面后可在学生加入打卡前展示,此功能可收集有意向学生的联系方式。 <text class="more-tip">了解更多</text></view> <view class="item-desc">配置此页面后可在学生加入打卡前展示,此功能可收集有意向学生的联系方式。 <text class="more-tip">了解更多</text></view>
......
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