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
5d1eb6ff
Commit
5d1eb6ff
authored
Oct 18, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
94440793
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
constants.js
constants/constants.js
+4
-4
newindex.wxml
src/pages/clockdetail/newindex.wxml
+1
-1
index.js
src/pages/websiteindex/index.js
+4
-2
No files found.
constants/constants.js
View file @
5d1eb6ff
export
default
{
imageRoot
:
'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/'
,
//
host: 'https://qxapi.qingxiao.online/daka',
//
host2: 'https://wx.m.shangjiadao.cn',
host
:
'https://qxapi.qingxiao.online/daka'
,
host2
:
'https://wx.m.shangjiadao.cn'
,
storageVersion
:
'4.0'
,
imageVersion
:
'20191017'
,
host
:
'https://clock.wp53.cn'
,
host2
:
'https://test.wp53.cn'
,
//
host: 'https://clock.wp53.cn',
//
host2: 'https://test.wp53.cn',
appId
:
'wxc1246ea029394785'
,
miniProgram
:
{
clock
:
'wxdeee20e52a1fd7ee'
...
...
src/pages/clockdetail/newindex.wxml
View file @
5d1eb6ff
...
...
@@ -114,7 +114,7 @@
<!-- <view class="line-20" wx:if="{{noUserinfo}}">
</view> -->
<view class="introduce" wx:if="{{
noUserinfo &&
clockList.length>0}}">
<view class="introduce" wx:if="{{clockList.length>0}}">
<view class="title">为你推荐更多优秀作品</view>
<!-- <view class="line-16"></view> -->
<view class="content">
...
...
src/pages/websiteindex/index.js
View file @
5d1eb6ff
...
...
@@ -617,10 +617,12 @@ Page({
if
(
data
.
sort
){
dataSort
=
JSON
.
parse
(
data
.
sort
)
let
index
=
dataSort
.
findIndex
(
item
=>
item
.
name
==
"course"
);
if
(
index
!==
1
){
dataSort
.
splice
(
index
,
1
)
console
.
log
(
index
)
if
(
index
!==
2
){
dataSort
.
splice
(
index
,
2
)
dataSort
.
splice
(
1
,
0
,{
name
:
'course'
,
desc
:
'体验课'
})
}
console
.
log
(
dataSort
)
}
data
.
sort
=
data
.
sort
?
dataSort
:
[{
...
...
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