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
f0273694
Commit
f0273694
authored
Dec 20, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sj-dev-dev' of git.server:wangxuelai/wechatapp.shangjiadao.com into leave_lvtz
parents
a97a0f09
a5b97c9a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
42 additions
and
12 deletions
+42
-12
.gitignore
.gitignore
+1
-0
index.js
components/tab/index.js
+4
-0
index.wxml
components/tab/index.wxml
+1
-1
index.wxss
components/tab/index.wxss
+8
-0
constants.js
constants/constants.js
+4
-4
index.js
constants/index.js
+15
-0
influencelist.wxss
src/pages/myinfluence/influencelist.wxss
+1
-0
onlineclassroomindex.js
src/pages/websiteindex/onlineclassroomindex.js
+6
-5
onlineclassroomindex.wxml
src/pages/websiteindex/onlineclassroomindex.wxml
+1
-1
onlineclassroomindex.wxss
src/pages/websiteindex/onlineclassroomindex.wxss
+1
-1
No files found.
.gitignore
View file @
f0273694
project.config.json
local
.history
\ No newline at end of file
components/tab/index.js
View file @
f0273694
...
...
@@ -12,6 +12,10 @@ Component({
value
:
0
,
observer
:
'setCurrentIndex'
,
},
floatTab
:
{
type
:
Boolean
,
value
:
false
}
},
/**
...
...
components/tab/index.wxml
View file @
f0273694
<!--components/tab/index.wxml-->
<view class="wrapper">
<view class="tab-header">
<view class="tab-header
{{floatTab ? 'float-tab' : ''}}
">
<view class="tab-item" data-index="{{0}}" bindtap="handleTab">
<slot name="tab-left"></slot>
</view>
...
...
components/tab/index.wxss
View file @
f0273694
...
...
@@ -6,6 +6,14 @@
flex: 1;
text-align: center;
}
.float-tab{
width: 100%;
position: fixed;
left: 0;
top: 0;
z-index: 999;
background: #ffffff;
}
.tab-content{
width: 100%;
overflow: hidden;
...
...
constants/constants.js
View file @
f0273694
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
:
'20191104'
,
//
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'
...
...
constants/index.js
View file @
f0273694
import
constants
from
'./constants.js'
;
let
NODE_ENV
=
'pro'
;
const
fileManager
=
wx
.
getFileSystemManager
();
try
{
fileManager
.
accessSync
(
'/local'
)
NODE_ENV
=
'dev'
;
}
catch
(
e
){}
if
(
NODE_ENV
===
'pro'
){
constants
.
host
=
'https://qxapi.qingxiao.online/daka'
;
constants
.
host2
=
'https://wx.m.shangjiadao.cn'
;
}
else
{
constants
.
host
=
'https://clock.wp53.cn'
;
constants
.
host2
=
'https://test.wp53.cn'
;
}
console
.
log
(
constants
,
'dasssssssssdadsa'
)
export
{
constants
}
\ No newline at end of file
src/pages/myinfluence/influencelist.wxss
View file @
f0273694
...
...
@@ -399,6 +399,7 @@ page{
.clue-box .leave-phone{
display: flex;
align-items: center;
}
.clue-box .leave-phone .phone-icon{
width:32rpx;
...
...
src/pages/websiteindex/onlineclassroomindex.js
View file @
f0273694
...
...
@@ -56,6 +56,7 @@ Page({
sortDailogShow
:
false
,
showSeachBtn
:
false
,
searchInnerShow
:
0
,
floatTab
:
false
},
/**
...
...
@@ -138,10 +139,11 @@ Page({
},
onPageScroll
:
function
(
e
){
if
(
this
.
data
.
curTabIndex
==
0
){
return
;
}
const
scrollTop
=
e
.
scrollTop
;
// if(this.data.curTabIndex == 0){
// return;
// }
if
(
scrollTop
>
400
){
this
.
setData
({
searchInnerShow
:
0
...
...
@@ -149,6 +151,7 @@ Page({
}
this
.
setData
({
showSeachBtn
:
scrollTop
>
400
?
true
:
false
,
floatTab
:
scrollTop
>
290
?
true
:
false
,
})
},
/**
...
...
@@ -177,7 +180,6 @@ Page({
try
{
content
=
JSON
.
parse
(
data
.
intro
)
||
[];
data
.
intro
=
content
;
console
.
log
(
data
.
intro
,
'data.intro'
)
}
catch
(
error
)
{
}
Object
.
assign
(
data
,
{
...
...
@@ -290,7 +292,6 @@ Page({
// 倍数
quickenOptionHandle
(
e
){
const
{
index
}
=
e
.
currentTarget
.
dataset
;
console
.
log
(
index
);
switch
(
index
)
{
case
0
:
this
.
videoContext
.
playbackRate
(
0.8
)
...
...
src/pages/websiteindex/onlineclassroomindex.wxml
View file @
f0273694
...
...
@@ -19,7 +19,7 @@
</view>
<view class="line-16"></view>
<view class="content-box">
<tab bind:onChange="tabChange" currentIndex="{{curTabIndex}}">
<tab bind:onChange="tabChange" currentIndex="{{curTabIndex}}"
floatTab="{{floatTab}}"
>
<view slot="tab-left">
<view class="tab-item {{curTabIndex == 0 ? 'act-tab' : ''}}" data-index="{{0}}">简介</view>
</view>
...
...
src/pages/websiteindex/onlineclassroomindex.wxss
View file @
f0273694
...
...
@@ -239,7 +239,7 @@
padding-left: 40rpx;
position: fixed;
right: 32rpx;
top: 1
6
rpx;
top: 1
20
rpx;
}
.content-box .search-Show{
animation: seachWidthShow .3s forwards;
...
...
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