Commit 78aec110 authored by sujie@126.com's avatar sujie@126.com

dd

parent 81a7190a
......@@ -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
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!--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 */
.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
......@@ -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
{
"usingComponents": {},
"navigationBarTitleText": "切换校区"
"usingComponents": {
"expiredTip": "../../components/expiredTip"
},
"navigationBarTitleText": "选择校区"
}
\ No newline at end of file
......@@ -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 */
.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
......@@ -54,7 +54,6 @@ function classEditor(data) {
errorresolve: 1,
})
}
}
function classDelate(data) {
let url = apis.business.common.classApi + '/' + data.id;
......
......@@ -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>
......
......@@ -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% {
......
......@@ -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) { // 请求得到数据但是异常的情况
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment