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
7397cfa9
Commit
7397cfa9
authored
Apr 02, 2020
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4b9eaafa
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
36 deletions
+58
-36
themetemplate.js
business/pages/deskcenter/themetemplate.js
+2
-2
index.js
business/pages/morethemeindex/index.js
+3
-0
index.json
business/pages/morethemeindex/index.json
+1
-1
index.wxml
business/pages/morethemeindex/index.wxml
+3
-3
newinfo.js
business/pages/organizationalmgt/newinfo.js
+1
-1
index.js
business/pages/themeeditor/index.js
+37
-18
landpage.js
src/pages/calendarthemeindex/landpage.js
+5
-5
landpage.js
src/pages/themeindex/landpage.js
+6
-6
No files found.
business/pages/deskcenter/themetemplate.js
View file @
7397cfa9
...
...
@@ -129,12 +129,12 @@ Page({
bindTemplateSelected
(
e
)
{
const
{
id
}
=
e
.
currentTarget
.
dataset
;
wx
.
navigateTo
({
url
:
`/business/pages/themeeditor/index?tid=0&sid=
${
this
.
data
.
sid
}
&editType=1&tempid=
${
id
}
`
url
:
`/business/pages/themeeditor/index?tid=0&sid=
${
this
.
data
.
sid
}
&editType=1&tempid=
${
id
}
&fromLogin=1
`
})
},
createCustom
()
{
wx
.
navigateTo
({
url
:
`/business/pages/themeeditor/index?tid=0&sid=
${
this
.
data
.
sid
}
&editType=1`
url
:
`/business/pages/themeeditor/index?tid=0&sid=
${
this
.
data
.
sid
}
&editType=1
&fromLogin=1
`
})
}
});
business/pages/morethemeindex/index.js
View file @
7397cfa9
...
...
@@ -321,6 +321,9 @@ Page({
hadCommentTotal
:
Number
(
data
.
review_count
||
0
),
noCommentTotal
:
Number
(
data
.
not_review_count
||
0
),
})
wx
.
setNavigationBarTitle
({
title
:
data
.
title
})
}
}).
catch
((
err
)
=>
{
wx
.
hideLoading
()
...
...
business/pages/morethemeindex/index.json
View file @
7397cfa9
{
"navigationBarTitleText"
:
"
闯关打
卡"
,
"navigationBarTitleText"
:
"
关
卡"
,
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{
"sjd-media-show"
:
"../../../components/sjdmediashow"
,
...
...
business/pages/morethemeindex/index.wxml
View file @
7397cfa9
...
...
@@ -8,10 +8,10 @@
<view class="theme-index-container">
<view class="page-topbg">
<view class="top-title">{{params.title}}</view>
<view class="top-publish">{{params.
subject_creator && params
.subject_creator.nickname || ''}} {{filter.formatDateWithChinese(params.created_at)}}发布</view>
<view class="top-publish">{{params.
unlock_mode && params.unlock_mode.subject_creator && params.unlock_mode
.subject_creator.nickname || ''}} {{filter.formatDateWithChinese(params.created_at)}}发布</view>
<view class="top-content" wx:if="{{params.content.length > 0}}">
<view class="top-ask">
<text style="vertical-align: middle;">
今日作业要求
:</text>
<text style="vertical-align: middle;">
关卡内容详情
:</text>
<block wx:for='{{params.content}}' wx:key='content'>
<text class="text-block" wx:if='{{item.type=="text"}}'>{{item.value}}</text>
<text class="text-type" wx:if='{{item.type=="img"}}'>[图片]</text>
...
...
@@ -95,7 +95,7 @@
<view class="mask" bindtap="closeDetailModal"></view>
<view class="modal-content">
<view class="modal-title">
打
卡内容详情
关
卡内容详情
<image class="icon-close" src="{{imageRoot}}2b/themeindex/close_icon.png" bindtap="closeDetailModal"></image>
</view>
<view class="modal-detail-wrap" wx:if="{{params.content.length > 0}}">
...
...
business/pages/organizationalmgt/newinfo.js
View file @
7397cfa9
...
...
@@ -526,7 +526,7 @@ Page({
if
(
res
.
code
==
200
)
{
// 成功的操作
if
(
this
.
data
.
sid
==
0
)
{
// 新增的操作
wx
.
redirectTo
({
url
:
`/business/pages/deskcenter/themetemplate?sid=
${
this
.
data
.
s
id
}
`
url
:
`/business/pages/deskcenter/themetemplate?sid=
${
res
.
data
.
id
}
`
// url: `/business/pages/organizationalmgt/qxknow?sid=${res.data.id}`
});
}
else
{
...
...
business/pages/themeeditor/index.js
View file @
7397cfa9
...
...
@@ -244,6 +244,7 @@ Page({
// has_subjects_count: 0,
tempid
:
0
,
//作业模板id,
fromLogin
:
0
,
//是否来源新注册创建 1是0不是
},
onLoad
:
function
(
options
)
{
// Do some initialize when page load.
const
that
=
this
;
...
...
@@ -254,7 +255,8 @@ Page({
my
,
classes
,
editType
,
tempid
tempid
,
fromLogin
}
=
options
;
this
.
setData
({
tid
,
...
...
@@ -262,7 +264,8 @@ Page({
sid
:
sid
||
''
,
my
:
my
||
0
,
editType
,
tempid
:
tempid
||
0
tempid
:
tempid
||
0
,
fromLogin
:
fromLogin
||
0
});
if
(
tid
==
0
)
{
const
currentclasses
=
classes
?
JSON
.
parse
(
decodeURIComponent
(
classes
))
:
[];
...
...
@@ -891,12 +894,17 @@ Page({
if
(
code
==
200
)
{
wx
.
hideLoading
();
if
(
this
.
data
.
tid
==
0
||
this
.
data
.
clone
==
1
)
{
// 生成新闯关打卡
this
.
setData
({
confirmId
:
data
.
id
,
successDailogShow
:
true
},
()
=>
{
if
(
this
.
data
.
fromLogin
){
wx
.
reLaunch
({
url
:
`/business/pages/deskcenter/index?sid=
${
this
.
data
.
sid
}
`
,
})
}
else
{
this
.
setData
({
confirmId
:
data
.
id
,
successDailogShow
:
true
})
this
.
data
.
publishing
=
false
;
}
)
}
}
else
{
const
pages
=
getCurrentPages
();
let
curPage
=
null
;
...
...
@@ -1025,12 +1033,18 @@ Page({
wx
.
hideLoading
();
if
(
code
==
200
)
{
if
(
this
.
data
.
tid
==
0
||
this
.
data
.
clone
==
1
)
{
// 生成新闯关打卡
this
.
setData
({
confirmId
:
data
.
id
,
successDailogShow
:
true
},
()
=>
{
this
.
data
.
publishing
=
false
;
})
if
(
this
.
data
.
fromLogin
){
LocalStorage
.
setItem
(
'dakarole'
,
1
);
wx
.
reLaunch
({
url
:
`/business/pages/deskcenter/index?sid=
${
this
.
data
.
sid
}
`
,
})
}
else
{
this
.
setData
({
confirmId
:
data
.
id
,
successDailogShow
:
true
})
}
this
.
data
.
publishing
=
false
;
}
else
{
const
pages
=
getCurrentPages
();
let
curPage
=
null
;
...
...
@@ -2336,12 +2350,17 @@ Page({
const
{
code
,
data
}
=
res
;
if
(
res
.
code
==
200
)
{
if
(
this
.
data
.
tid
==
0
||
this
.
data
.
clone
==
1
)
{
// 生成新闯关打卡
this
.
setData
({
confirmId
:
data
.
id
,
successDailogShow
:
true
},
()
=>
{
if
(
this
.
data
.
fromLogin
){
wx
.
reLaunch
({
url
:
`/business/pages/deskcenter/index?sid=
${
this
.
data
.
sid
}
`
,
})
}
else
{
this
.
setData
({
confirmId
:
data
.
id
,
successDailogShow
:
true
})
this
.
data
.
publishing
=
false
;
}
)
}
}
else
{
const
pages
=
getCurrentPages
();
let
curPage
=
null
;
...
...
src/pages/calendarthemeindex/landpage.js
View file @
7397cfa9
...
...
@@ -412,11 +412,11 @@ Page({
this
.
setData
({
themeSelect
:
data
});
// if(this.data.themeSelect.is_clock
){
//
wx.redirectTo({
//
url: `/src/pages/calendarthemeindex/index?tid=${this.data.themeSelect.id}&sid=${this.data.sid}`
//
})
//
}
if
(
this
.
data
.
themeSelect
.
is_join
){
wx
.
redirectTo
({
url
:
`/src/pages/calendarthemeindex/index?tid=
${
this
.
data
.
themeSelect
.
id
}
&sid=
${
this
.
data
.
sid
}
`
})
}
}
});
},
...
...
src/pages/themeindex/landpage.js
View file @
7397cfa9
...
...
@@ -383,12 +383,12 @@ Page({
themeSelect
:
data
,
sid
:
data
.
school_id
});
// 已
打卡
直接跳转
// if(this.data.themeSelect.is_clock
){
//
wx.redirectTo({
//
url: `/src/pages/themeindex/index?tid=${this.data.themeSelect.id}&sid=${this.data.sid}`
//
})
//
}
// 已
加入
直接跳转
if
(
this
.
data
.
themeSelect
.
is_join
){
wx
.
redirectTo
({
url
:
`/src/pages/themeindex/index?tid=
${
this
.
data
.
themeSelect
.
id
}
&sid=
${
this
.
data
.
sid
}
`
})
}
}
});
},
...
...
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