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
f30a5876
Commit
f30a5876
authored
Mar 27, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'闯关打卡主题'
parent
5bb86674
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
9 deletions
+20
-9
index.js
business/pages/morethemeindex/index.js
+8
-1
index.wxml
business/pages/morethemeindex/index.wxml
+6
-6
lockthemelist.js
business/pages/themeeditor/lockthemelist.js
+1
-1
subjecteditor.js
business/pages/themeeditor/subjecteditor.js
+5
-1
No files found.
business/pages/morethemeindex/index.js
View file @
f30a5876
...
...
@@ -54,6 +54,7 @@ Page({
imageRoot
:
app
.
globalData
.
imageRoot
,
imageVersion
:
app
.
globalData
.
imageVersion
,
localImageRoot
:
'../../../images/'
,
mid
:
0
,
id
:
0
,
tid
:
0
,
sid
:
''
,
...
...
@@ -138,11 +139,12 @@ Page({
},
onLoad
:
function
(
options
)
{
// Do some initialize when page load.
const
that
=
this
;
const
{
id
,
tid
,
sid
}
=
options
;
const
{
id
,
mid
,
tid
,
sid
}
=
options
;
this
.
setData
({
id
,
tid
,
sid
,
mid
,
page
:
1
,
hasmore
:
true
,
})
...
...
@@ -1271,5 +1273,10 @@ Page({
wx
.
navigateTo
({
url
:
`/business/pages/themeeditor/index?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
tid
}
&sid=
${
this
.
data
.
sid
}
&editType=1`
})
},
settingSubject
()
{
wx
.
navigateTo
({
url
:
`/business/pages/themeeditor/subjecteditor?tid=
${
this
.
data
.
mid
}
&sid=
${
this
.
data
.
sid
}
&addSort=0&sort=
${
this
.
data
.
params
.
sort
}
&id=
${
this
.
data
.
tid
}
&index=0¤tSortIndex=0&from=detail`
,
})
}
})
\ No newline at end of file
business/pages/morethemeindex/index.wxml
View file @
f30a5876
...
...
@@ -95,17 +95,17 @@
<!-- 底部按钮 -->
<view class="fixed-tabbar" style="background-image: url('{{imageRoot}}2b/themeindex/bottomTabbar.png?{{imageVersion}}')">
<view class="tabbar-list">
<view class="tabbar-item" bindtap="
handleClickSetting
">
<view class="tabbar-item" bindtap="
settingSubject" style="margin-left: 0
">
<image class="tabbar-img" src="{{imageRoot}}2b/themeindex/tabbar_setting.png"></image>
<text class="tabbar-text">
高级设置
</text>
<text class="tabbar-text">
编辑关卡
</text>
</view>
<view class="tabbar-item">
<
!-- <
view class="tabbar-item">
<button class="tabbar-share" open-type="share">分享</button>
</view>
<view class="tabbar-item" bindtap="goClock">
<image class="tabbar-img" src="{{imageRoot}}2b/themeindex/tabbar_data.png"></image>
<text class="tabbar-text">打卡数据</text>
</view>
</view>
-->
</view>
</view>
<!-- 详情弹框 -->
...
...
@@ -139,7 +139,7 @@
</view>
</view>
<!-- 高级设置弹框 -->
<view class="modal modal-setup {{settingModalClass? 'hide': ''}}" hidden="{{!settingModalShow}}">
<
!-- <
view class="modal modal-setup {{settingModalClass? 'hide': ''}}" hidden="{{!settingModalShow}}">
<view class="mask" bindtap="closeSettingModal"></view>
<view class="modal-content">
<view class="modal-title">
...
...
@@ -176,5 +176,5 @@
</view>
</view>
</view>
</view>
</view>
-->
<commentClockItemShare id="shareClockItem" info="{{goShareClockItem.info}}" shareModalShow="{{goShareClockItem.shareModalShow}}" bind:closeShareModal="closeShareModal"shareModalClass="{{goShareClockItem.shareModalClass}}" />
\ No newline at end of file
business/pages/themeeditor/lockthemelist.js
View file @
f30a5876
...
...
@@ -128,7 +128,7 @@ Page({
const
{
index
,
item
}
=
e
.
currentTarget
.
dataset
;
if
(
item
.
id
>
0
)
{
wx
.
navigateTo
({
url
:
`/business/pages/morethemeindex/index?
id=0
&tid=
${
item
.
id
}
&sid=
${
this
.
data
.
sid
}
`
,
url
:
`/business/pages/morethemeindex/index?
mid=
${
this
.
data
.
tid
}
&tid=
${
item
.
id
}
&sid=
${
this
.
data
.
sid
}
`
,
})
}
else
{
const
{
item
,
index
,
}
=
e
.
currentTarget
.
dataset
;
...
...
business/pages/themeeditor/subjecteditor.js
View file @
f30a5876
...
...
@@ -30,7 +30,7 @@ Page({
sid
:
0
,
addSort
:
0
,
sort
:
0
,
from
:
'edit'
,
// 新建页面进来 编辑关卡 index 主题页面进来新建关卡
from
:
'edit'
,
// 新建页面进来 编辑关卡 index 主题页面进来新建关卡
detail 闯关打卡关卡详情
id
:
0
,
index
:
0
,
currentSortIndex
:
0
,
...
...
@@ -324,6 +324,10 @@ Page({
prevPage
.
setData
({
[
`lockSubjects[
${
this
.
data
.
sort
-
1
}
]`
]:
{...
paramsData
,
id
:
data
.
id
,
clock_people
:
0
,
review_clock_record_count
:
0
},
});
}
else
if
(
this
.
data
.
from
==
'detail'
)
{
prevPage
.
setData
({
needRefresh
:
true
,
});
}
wx
.
navigateBack
({
delta
:
1
,
// 回退前 delta(默认为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