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
78aec110
Commit
78aec110
authored
Sep 16, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
81a7190a
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
170 additions
and
34 deletions
+170
-34
app.js
app.js
+19
-1
index.js
business/components/expiredTip/index.js
+23
-0
index.json
business/components/expiredTip/index.json
+4
-0
index.wxml
business/components/expiredTip/index.wxml
+9
-0
index.wxss
business/components/expiredTip/index.wxss
+48
-0
index.js
business/pages/exchangebusiness/index.js
+7
-0
index.json
business/pages/exchangebusiness/index.json
+4
-2
index.wxml
business/pages/exchangebusiness/index.wxml
+6
-3
index.wxss
business/pages/exchangebusiness/index.wxss
+36
-23
ex-clock.png
images/2b/common/ex-clock.png
+0
-0
circleeditor.js
service/business/circleeditor.js
+0
-1
index.wxml
src/components/clockitemv2/index.wxml
+4
-4
index.wxss
src/components/clockitemv2/index.wxss
+8
-0
request.js
utilities/request.js
+2
-0
No files found.
app.js
View file @
78aec110
...
...
@@ -43,6 +43,23 @@ App({
},
onError
:
function
(
err
)
{
},
watch
:
function
(
method
){
console
.
log
(
0
)
var
obj
=
this
.
globalData
;
Object
.
defineProperty
(
this
.
globalData
,
"accountExpired"
,
{
configurable
:
true
,
enumerable
:
true
,
set
:
function
(
value
)
{
this
.
_name
=
value
;
console
.
log
(
12121
)
method
(
value
);
},
get
:
function
(){
console
.
log
(
'get'
)
return
this
.
_name
}
})
},
onPageNotFound
:
function
(
params
)
{
const
{
path
,
query
,
isEntryPage
}
=
params
;
wx
.
reLaunch
({
...
...
@@ -52,7 +69,8 @@ App({
globalData
:
{
imageRoot
:
constants
.
imageRoot
,
visitor
:
LocalStorage
.
getItem
(
'visitor'
)
||
null
,
imageVersion
:
constants
.
imageVersion
imageVersion
:
constants
.
imageVersion
,
accountExpired
:
false
,
},
needAuth
()
{
// 需要授权
...
...
business/components/expiredTip/index.js
0 → 100644
View file @
78aec110
// business/components/expiredTip/index.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
},
/**
* 组件的初始数据
*/
data
:
{
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
business/components/expiredTip/index.json
0 → 100644
View file @
78aec110
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
business/components/expiredTip/index.wxml
0 → 100644
View file @
78aec110
<!--business/components/expiredTip/index.wxml-->
<view class="expiredTip-box">
<view class="content">
<view class="title">您的账户已到期</view>
<view class="text">请联系客服充值</view>
<view class="footer">知道了</view>
</view>
</view>
\ No newline at end of file
business/components/expiredTip/index.wxss
0 → 100644
View file @
78aec110
/* business/components/expiredTip/index.wxss */
.expiredTip-box{
width: 100%;
height: 100%;
background:rgba(0,0,0,.5);
position: fixed;
left: 0;
bottom: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.expiredTip-box .content{
width:599rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
}
.expiredTip-box .content .title{
font-size:32rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(255,73,73,1);
line-height:1;
text-align: center;
padding: 60rpx 0;
}
.expiredTip-box .content .text{
font-size:32rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(0,0,0,1);
line-height:1;
text-align: center;
padding-bottom: 78rpx;
}
.expiredTip-box .content .footer{
height:97rpx;
background:rgba(101,184,244,1);
border-radius:0px 0px 20rpx 20rpx;
font-size:30rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(255,255,255,1);
line-height:97rpx;
text-align: center;
}
\ No newline at end of file
business/pages/exchangebusiness/index.js
View file @
78aec110
...
...
@@ -23,6 +23,7 @@ Page({
data
:
{
imageRoot
:
app
.
globalData
.
imageRoot
,
imageVersion
:
app
.
globalData
.
imageVersion
,
localImageRoot
:
'../../../images/'
,
schoolList
:
[],
schoolTotal
:
0
,
from
:
1
,
...
...
@@ -39,6 +40,7 @@ Page({
})
let
user
=
LocalStorage
.
getItem
(
'user'
);
let
dakarole
=
LocalStorage
.
getItem
(
'dakarole'
);
let
that
=
this
;
wx
.
showLoading
({
title
:
'数据加载中'
})
...
...
@@ -73,6 +75,7 @@ Page({
wx
.
hideLoading
();
})
}
app
.
watch
(
that
.
watchBack
)
},
/**
...
...
@@ -167,5 +170,9 @@ Page({
formIdCreate
({
formId
})
},
watchBack
:
function
(
name
){
console
.
log
(
22222
);
console
.
log
(
'this.name=='
+
name
)
}
})
\ No newline at end of file
business/pages/exchangebusiness/index.json
View file @
78aec110
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"切换校区"
"usingComponents"
:
{
"expiredTip"
:
"../../components/expiredTip"
},
"navigationBarTitleText"
:
"选择校区"
}
\ No newline at end of file
business/pages/exchangebusiness/index.wxml
View file @
78aec110
...
...
@@ -5,10 +5,13 @@
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton"></button>
</form>
<view class="item-left" >
{{item.title}}
<view class="title">{{item.title}}</view>
<view class="time">上次登录时间:2019-06-29 20:27</view>
<view class="deadline-time">
<image class="icon" src="../../../images/2b/common/ex-clock.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
账号到期时间:2019-06-29
</view>
<view class="current" wx:if="{{item.id == sid}}">当前</view>
</view>
</view>
<expiredTip/>
</view>
\ No newline at end of file
business/pages/exchangebusiness/index.wxss
View file @
78aec110
/* business/pages/exchangebusiness/index.wxss */
.exchangebusiness-container{
padding: 35rpx 24rpx;
background:rgba(243,244,246,1);
}
.exchangebusiness-container .content-item{
padding: 47rpx 24rpx;
width:100%;
height:auto;
background:rgba(255,255,255,1);
border-radius:20rpx;
margin-bottom: 24rpx;
padding: 32rpx 37rpx ;
}
.exchangebusiness-container .content-item .title{
font-size:26rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(0,0,0,1);
line-height: 1;
padding-bottom: 32rpx;
}
.exchangebusiness-container .content-item .time{
line-height: 1;
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(88,88,88,1);
padding-bottom: 56rpx;
}
.exchangebusiness-container .content-item .deadline-time{
display: flex;
align-items: center;
justify-content: space-between;
/* border-top: 1px solid rgba(0,0,0,.1); */
border-bottom: 1px solid rgba(0,0,0,.05);
position: relative;
}
.exchangebusiness-container .content-item .item-left{
font-size:28rpx;
font-family:PingFang-SC-Regular;
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(0,0,0,1);
color:rgba(159,159,159,1);
line-height: 1;
}
.exchangebusiness-container .content-item .current{
width: 90rpx;
height: 38rpx;
text-align: center;
line-height: 38rpx;
color: #fff;
font-size: 24rpx;
background-color: #61BEFF;
position: absolute;
right: 0;
top: 0;
font-weight: 700;
border-radius: 0px 0px 0px 20rpx;
.exchangebusiness-container .content-item .deadline-time .icon{
width:29rpx;
height:29rpx;
margin-right: 14rpx;
}
\ No newline at end of file
images/2b/common/ex-clock.png
0 → 100644
View file @
78aec110
964 Bytes
service/business/circleeditor.js
View file @
78aec110
...
...
@@ -54,7 +54,6 @@ function classEditor(data) {
errorresolve
:
1
,
})
}
}
function
classDelate
(
data
)
{
let
url
=
apis
.
business
.
common
.
classApi
+
'/'
+
data
.
id
;
...
...
src/components/clockitemv2/index.wxml
View file @
78aec110
...
...
@@ -39,7 +39,7 @@
</view>
<view class="imgbox" wx:if="{{video.type == 'video'}}" data-src="{{video.src}}" data-from="clockitem" bindtap="playvideo">
<image class="img" src="{{filter.videoPoster(video.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" lazy-load="true" binderror="" bindload=""></image>
<view class="video-play-icon-box">
<view class="video-play-icon-box
width80-box
">
<image class="video-play-icon" src="{{imageRoot}}2c/common/playicon.png?{{imageVersion}}" mode="widthFix" lazy-load="true" binderror="" bindload=""></image>
</view>
</view>
...
...
@@ -52,7 +52,7 @@
</view>
<view class="imgbox" wx:if="{{video.type == 'video'}}" data-src="{{video.src}}" data-from="clockitem" bindtap="playvideo">
<image class="img" src="{{filter.videoPoster(video.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" lazy-load="true" binderror="" bindload=""></image>
<view class="video-play-icon-box">
<view class="video-play-icon-box
width80-box
">
<image class="video-play-icon" src="{{imageRoot}}2c/common/playicon.png?{{imageVersion}}" mode="aspectFill" lazy-load="true" binderror="" bindload=""></image>
</view>
</view>
...
...
@@ -61,7 +61,7 @@
<view class="mediabox clearfix" wx:if="{{clock.imageCount == 2 && clock.videoCount == 1}}">
<view class="imgbox optiond videobox" data-src="{{clock.video_parse[0].src}}" data-from="clockitem" bindtap="playvideo">
<image class="img" src="{{filter.videoPoster(clock.video_parse[0].src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" lazy-load="true" binderror="" bindload=""></image>
<view class="video-play-icon-box">
<view class="video-play-icon-box
width80-box
">
<image class="video-play-icon" src="{{imageRoot}}2c/common/playicon.png?{{imageVersion}}" mode="aspectFill" lazy-load="true" binderror="" bindload=""></image>
</view>
</view>
...
...
@@ -73,7 +73,7 @@
<view class="mediabox clearfix" wx:if="{{clock.imageCount > 2 && clock.videoCount == 1}}">
<view class="imgbox optiond videobox" data-src="{{clock.video_parse[0].src}}" data-from="clockitem" bindtap="playvideo">
<image class="img" src="{{filter.videoPoster(clock.video_parse[0].src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" lazy-load="true" binderror="" bindload=""></image>
<view class="video-play-icon-box">
<view class="video-play-icon-box
width80-box
">
<image class="video-play-icon" src="{{imageRoot}}2c/common/playicon.png?{{imageVersion}}" mode="aspectFill" lazy-load="true" binderror="" bindload=""></image>
</view>
</view>
...
...
src/components/clockitemv2/index.wxss
View file @
78aec110
...
...
@@ -1336,6 +1336,14 @@
height:120rpx;
border-radius:9rpx;
}
.width80-box {
width: 80rpx;
height: 80rpx;
}
.width80-box .video-play-icon{
width: 20rpx;
height: 24rpx;
}
@import "../../style/radio.wxss";
@keyframes teacherradioaudioplay {
0% {
...
...
utilities/request.js
View file @
78aec110
...
...
@@ -2,6 +2,7 @@ import messages from '../constants/messages.js';
import
{
LocalStorage
}
from
'./index.js'
;
var
app
=
getApp
();
function
wxRequest
({
url
,
data
,
header
,
method
,
dataType
,
responseType
,
errorresolve
,
needToken
,
role
})
{
let
visitor
=
LocalStorage
.
getItem
(
'visitor'
)
||
{};
let
user
=
LocalStorage
.
getItem
(
'user'
)
||
{};
...
...
@@ -50,6 +51,7 @@ function wxRequest ({url, data, header, method, dataType, responseType, errorres
responseType
:
_responseType
,
success
(
res
)
{
const
{
statusCode
,
data
}
=
res
;
app
.
globalData
.
accountExpired
=
true
;
switch
(
_errorresolve
)
{
case
1
:
if
(
data
.
code
!=
200
)
{
// 请求得到数据但是异常的情况
...
...
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