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
b70bb63f
Commit
b70bb63f
authored
Apr 08, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'校区切换省份'
parent
6a66ec5a
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
617 additions
and
211 deletions
+617
-211
app.js
app.js
+2
-1
index.js
business/pages/circleeditor/index.js
+1
-1
index.wxss
business/pages/circleindex/index.wxss
+3
-1
index.js
business/pages/exchangebusiness/index.js
+210
-11
index.json
business/pages/exchangebusiness/index.json
+6
-2
index.wxml
business/pages/exchangebusiness/index.wxml
+94
-22
index.wxss
business/pages/exchangebusiness/index.wxss
+137
-103
index.wxml
business/pages/helpcenter/index.wxml
+1
-1
index.js
business/pages/organizationalmgt/index.js
+12
-1
index.wxml
business/pages/organizationalmgt/index.wxml
+19
-19
index.wxss
business/pages/organizationalmgt/index.wxss
+40
-10
setting.js
business/pages/organizationalmgt/setting.js
+37
-18
setting.wxml
business/pages/organizationalmgt/setting.wxml
+9
-2
setting.wxss
business/pages/organizationalmgt/setting.wxss
+13
-7
api.js
constants/api.js
+3
-1
constants.js
constants/constants.js
+6
-6
schoolindex.js
service/customer/schoolindex.js
+20
-1
index.js
ucenter/index.js
+4
-4
No files found.
app.js
View file @
b70bb63f
...
...
@@ -29,7 +29,8 @@ App({
this
.
globalData
.
query
=
query
;
this
.
versionCheck
();
this
.
getSystemInfo
();
this
.
globalData
.
myDevice
=
wx
.
getSystemInfoSync
()
this
.
globalData
.
myDevice
=
wx
.
getSystemInfoSync
();
console
.
log
(
this
.
globalData
.
myDevice
,
'myDevice'
);
if
(
wx
.
setInnerAudioOption
){
wx
.
setInnerAudioOption
({
obeyMuteSwitch
:
false
...
...
business/pages/circleeditor/index.js
View file @
b70bb63f
...
...
@@ -185,7 +185,7 @@ Page({
titleinput
(
e
)
{
const
{
value
}
=
e
.
detail
;
this
.
setData
({
'params.title'
:
value
.
length
>
20
?
value
.
substr
(
0
,
2
0
)
:
value
'params.title'
:
value
.
length
>
30
?
value
.
substr
(
0
,
3
0
)
:
value
})
},
numberInput
(
e
){
...
...
business/pages/circleindex/index.wxss
View file @
b70bb63f
...
...
@@ -44,7 +44,9 @@ page{
font-size: 30rpx;
color:#545454;
font-weight: bold;
padding-top: 43rpx;
/* padding-top: 43rpx; */
line-height: 1.4;
padding: 43rpx 30rpx 0;
}
.header-box .plan-box{
display: flex;
...
...
business/pages/exchangebusiness/index.js
View file @
b70bb63f
...
...
@@ -9,6 +9,11 @@ import {
schoolList
,
loginTime
}
from
'../../../service/business/ucenter.js'
;
import
{
getClassInfo
,
studentSchoolList
,
historySchoolList
}
from
'../../../service/customer/schoolindex.js'
;
import
{
LocalStorage
,
}
from
'../../../utilities/index.js'
;
...
...
@@ -25,44 +30,111 @@ Page({
* 页面的初始数据
*/
data
:
{
tab
:
1
,
imageRoot
:
app
.
globalData
.
imageRoot
,
imageVersion
:
app
.
globalData
.
imageVersion
,
localImageRoot
:
'../../../images/'
,
schoolList
:
[],
schoolTotal
:
0
,
sid
:
0
,
nowDate
:
new
Date
()
nowDate
:
new
Date
(),
studentSchoolList
:
[],
teacherSchoolList
:
[],
masterSchoolList
:
[],
historySchoolList
:
[],
historySchoolTotal
:
0
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
titleBarHeight
:
app
.
globalData
.
titleBarHeight
,
hasmore
:
true
,
listLoading
:
false
,
emptyPage
:
false
,
page
:
1
,
perPage
:
10
,
currole
:
1
,
// 1从个人中心进入 标记学生身份 2从工作台切换身份 标记老师身份
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
const
{
sid
,
from
}
=
options
;
const
{
sid
,
from
,
currole
}
=
options
;
this
.
setData
({
sid
:
sid
||
0
,
from
:
from
||
2
from
:
from
||
2
,
currole
:
currole
||
1
})
console
.
log
(
this
.
data
.
currole
)
let
user
=
LocalStorage
.
getItem
(
'user'
);
let
dakarole
=
LocalStorage
.
getItem
(
'dakarole'
);
let
that
=
this
;
wx
.
showLoading
({
title
:
'数据加载中'
})
this
.
getStudentSchoolList
();
this
.
getTeacherSchoolList
();
this
.
getMasterSchoolList
();
},
tabShift
(
e
)
{
const
{
tab
}
=
e
.
currentTarget
.
dataset
;
if
(
this
.
data
.
tab
==
tab
)
{
return
;
}
this
.
setData
({
tab
,
})
if
(
this
.
data
.
historySchoolList
.
length
==
0
)
{
this
.
getHistorySchoolList
(
'init'
);
}
},
onPullDownRefresh
()
{
if
(
this
.
data
.
tab
==
2
)
{
this
.
setData
({
hasmore
:
true
,
listLoading
:
false
,
emptyPage
:
false
,
page
:
1
,
perPage
:
10
,
})
this
.
getHistorySchoolList
(
'down'
);
}
else
{
this
.
getStudentSchoolList
();
this
.
getTeacherSchoolList
();
this
.
getMasterSchoolList
();
}
},
onReachBottom
()
{
if
(
this
.
data
.
tab
==
2
)
{
this
.
getHistorySchoolList
(
'up'
);
}
},
getTeacherSchoolList
()
{
getAccountList
({
page
:
1
,
perPage
:
100
perPage
:
100
,
type
:
1
,
}).
then
((
res
)
=>
{
wx
.
hideLoading
();
if
(
res
.
code
==
200
)
{
wx
.
stopPullDownRefresh
();
this
.
setData
({
schoolList
:
res
.
data
.
list
,
schoolTotal
:
res
.
data
.
list
.
length
,
nowDate
:
res
.
datetime
teacherSchoolList
:
res
.
data
.
list
,
})
}
}).
catch
(()
=>
{
})
},
getMasterSchoolList
()
{
getAccountList
({
page
:
1
,
perPage
:
100
,
type
:
2
,
}).
then
((
res
)
=>
{
wx
.
hideLoading
();
if
(
res
.
code
==
200
)
{
this
.
setData
({
masterSchoolList
:
res
.
data
.
list
,
})
}
}).
catch
(()
=>
{
})
},
godeskcenter
(
e
)
{
...
...
@@ -94,13 +166,11 @@ Page({
url
:
`/business/pages/classservice/teacherindex?sid=
${
item
.
id
}
`
,
})
}
loginTime
({
id
:
item
.
id
,
type
:
1
})
},
getMemberMeInfo
(
sid
){
let
that
=
this
;
getMemberMe
({
...
...
@@ -130,5 +200,134 @@ Page({
wx
.
navigateTo
({
url
:
`/business/pages/organizationalmgt/newinfo?school_id=
${
this
.
data
.
sid
}
&sid=0`
})
}
},
getStudentSchoolList
()
{
studentSchoolList
({
page
:
1
,
perPage
:
100
}).
then
((
res
)
=>
{
wx
.
hideLoading
();
if
(
res
.
code
==
200
)
{
this
.
setData
({
studentSchoolList
:
res
.
data
.
list
})
}
}).
catch
(()
=>
{
wx
.
hideLoading
();
})
},
goback
()
{
const
curPages
=
getCurrentPages
();
if
(
curPages
.
length
>
1
)
{
wx
.
navigateBack
();
}
else
{
wx
.
reLaunch
({
url
:
'/ucenter/index'
,
})
}
},
caculateArrLength
(
array
)
{
let
_length
=
0
;
array
.
forEach
(
ele
=>
{
_length
=
_length
+
ele
.
length
;
});
return
_length
;
},
getHistorySchoolList
(
type
)
{
if
(
!
this
.
data
.
hasmore
)
{
return
;
}
if
(
this
.
data
.
listLoading
)
{
return
;
}
this
.
setData
({
listLoading
:
true
});
historySchoolList
({
page
:
1
,
perPage
:
10
}).
then
(
res
=>
{
const
{
code
,
data
}
=
res
;
this
.
setData
({
listLoading
:
false
});
if
(
code
!=
200
)
{
// 失败的处理
}
else
{
if
(
data
.
total
)
{
this
.
setData
({
historySchoolTotal
:
data
.
total
});
}
switch
(
type
)
{
case
"init"
:
//页面进来第一次加载
this
.
setData
({
historySchoolList
:
[
data
.
list
]
});
if
(
this
.
data
.
historySchoolTotal
>
this
.
caculateArrLength
(
this
.
data
.
historySchoolList
))
{
this
.
data
.
page
=
this
.
data
.
page
+
1
;
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
});
}
break
;
case
"down"
:
// 页面下拉刷新
this
.
setData
({
historySchoolList
:
[
data
.
list
]
},
()
=>
{
if
(
this
.
data
.
historySchoolTotal
>
this
.
caculateArrLength
(
this
.
data
.
historySchoolList
))
{
this
.
data
.
page
=
this
.
data
.
page
+
1
;
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
});
}
}
);
wx
.
stopPullDownRefresh
();
break
;
case
"up"
:
// 页面上拉刷新
let
list
=
this
.
data
.
historySchoolList
;
this
.
setData
(
{
[
`historySchoolList[
${
this
.
data
.
page
-
1
}
]`
]:
data
.
list
},
()
=>
{
if
(
this
.
data
.
historySchoolTotal
>
this
.
caculateArrLength
(
this
.
data
.
historySchoolList
)
)
{
this
.
data
.
page
=
this
.
data
.
page
+
1
;
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
});
}
}
);
break
;
default
:
break
;
}
if
(
this
.
caculateArrLength
(
this
.
data
.
historySchoolList
)
==
0
)
{
this
.
setData
({
emptyPage
:
true
});
}
else
{
this
.
setData
({
emptyPage
:
false
});
}
}
})
.
catch
(
e
=>
{
this
.
setData
({
listLoading
:
false
});
});
},
})
\ No newline at end of file
business/pages/exchangebusiness/index.json
View file @
b70bb63f
{
"usingComponents"
:
{
"expiredTip"
:
"../../components/expiredTip"
"expiredTip"
:
"../../components/expiredTip"
,
"list-loading"
:
"../../../components/listloading"
,
"empty-content"
:
"../../../components/emptycontent"
},
"navigationBarTitleText"
:
"选择校区"
"navigationBarTitleText"
:
"选择校区"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
business/pages/exchangebusiness/index.wxml
View file @
b70bb63f
<!--business/pages/exchangebusiness/index.wxml-->
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="container">
<view class="exchangebusiness-container clearfix">
<view class="content-item" wx:for="{{schoolList}}" wx:key="index" >
<view bindtap='godeskcenter' data-item="{{item}}">
<view class="title">
<view class="title-text">{{item.title}}</view>
<view class="title-flag1 " wx:if="{{item.school_teacher.type==2}}">管理员身份</view>
<view class="title-flag2 " wx:if="{{item.school_teacher.type==1}}">老师身份</view>
<view class="container" style="padding-top: {{statusBarHeight + titleBarHeight}}px;">
<view class="headerbox" hover-class="none" hover-stop-propagation="false" style="padding-top: {{statusBarHeight}}px;">
<view class="tabsboxwrap" style="height: {{titleBarHeight}}px;">
<view class="backbtnbox" style="height: {{titleBarHeight}}px;" hover-class="none" hover-stop-propagation="false" bindtap="goback">
<image class="backbtn" src="{{imageRoot}}2b/common/arrowblack.png?{{imageVersion}}" />
</view>
<view class="tabsbox" style="top: {{statusBarHeight}}px;">
<view class="tabitem {{tab==1 ? 'active' : ''}}" data-tab="1" bindtap="tabShift">
身份切换
</view>
<view class="time" wx:if="{{item.school_teacher.last_login_time}}">上次登录时间:{{item.school_teacher.last_login_time}}</view>
<view class="deadline-time" wx:if="{{!item.expire_time}}">终身包</view>
<view class="deadline-time" wx:if="{{item.expire_time && filter.dateTimeCompare(nowDate,item.expire_time)}}">
<image class="icon" src="{{imageRoot}}2b/common/exprie-time.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
{{item.trial_status == 2 ? '账号' :'试用'}}已到期
</view>
<view class="deadline-time" wx:if="{{item.expire_time && !filter.dateTimeCompare(nowDate,item.expire_time)}}">
<image class="icon" src="{{imageRoot}}2b/common/ex-clock.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
账号到期时间:{{ filter.matchTime(item.expire_time ,'year')}}
<view class="tabitem {{tab==2 ? 'active' : ''}}" data-tab="2" bindtap="" bindtap="tabShift">
历史访问
</view>
</view>
</view>
<view class="add-school" bindtap="goShopedit"><image class="" src="{{imageRoot}}2b/organizationalmgt/icon_add.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />创建新校区</view>
</view>
<view class="footer">
<view class="left" bindtap="go2cindex">切换到学员界面</view>
<view class="right" bindtap="goLogin">退出当前账号</view>
</view>
<view class="usedesc">{{tab==1 ? '轻触头像以切换身份' : '轻触头像进入'}}</view>
<block wx:if="{{tab==1}}">
<view class="boxwrap" wx:if="{{masterSchoolList.length > 0}}">
<view class="sortname">
校长
</view>
<view class="rolebox" wx:for="{{masterSchoolList}}" wx:key="id" wx:for-item="masterschool" bindtap='godeskcenter' data-item="{{masterschool}}">
<view class="leftbox">
<image class="schoolavatar" src="{{filter.imagify(masterschool.school_teacher.avatar)}}" />
<view class="schoolname {{currole == 2 && sid == masterschool.id ? 'short' : ''}}">{{masterschool.title}}</view>
</view>
<view class="currenttag" wx:if="{{currole == 2 && sid == masterschool.id}}">您当前身份</view>
</view>
</view>
<view class="boxwrap" wx:if="{{teacherSchoolList.length > 0}}">
<view class="sortname">
老师
</view>
<view class="rolebox" wx:for="{{teacherSchoolList}}" wx:key="id" wx:for-item="teacherschool" bindtap='godeskcenter' data-item="{{teacherschool}}">
<view class="leftbox">
<image class="schoolavatar" src="{{filter.imagify(teacherschool.school_teacher.avatar)}}" />
<view class="schoolname {{currole == 2 && sid == teacherschool.id ? 'short' : ''}}">{{teacherschool.title}}</view>
</view>
<view class="currenttag" wx:if="{{currole == 2 && sid == teacherschool.id}}">您当前身份</view>
</view>
</view>
<view class="boxwrap studentbox" wx:if="{{studentSchoolList.length > 0}}">
<view class="sortname">
学生
</view>
<view class="rolebox" wx:for="{{studentSchoolList}}" wx:key="id" wx:for-item="studentschool">
<view class="leftbox">
<image class="schoolavatar" src="{{filter.imagify(studentschool.avatar)}}" />
<view class="schoolname {{currole == 1 && sid == studentschool.school_id ? 'short' : ''}}">
<view class="schoolnametext">
{{studentschool.school.title}}
</view>
<view class="studentname">
{{studentschool.nickname}}
</view>
</view>
</view>
<view class="currenttag" wx:if="{{currole == 1 && sid == studentschool.school_id}}">您当前身份</view>
<!-- <view class="currenttag">您当前身份</view> -->
</view>
</view>
<view class="boxwrap operatebox" bindtap="goLogin">
<view class="operateiconbox">
<image class="operateicon shiftaccount" src="{{imageRoot}}2b/common/exchange2.png"></image>
</view>
<view class="operatename">切换其他账号</view>
</view>
<view class="boxwrap operatebox" bindtap="goShopedit">
<view class="operateiconbox">
<image class="operateicon addschool" src="{{imageRoot}}2b/common/add.png"></image>
</view>
<view class="operatename">创建新校区</view>
</view>
</block>
<block wx:if="{{tab==2}}">
<block wx:if="{{!emptyPage}}">
<block wx:if="{{historySchoolList.length > 0}}" wx:for="{{historySchoolList}}" wx:key="index" wx:for-item="historyschool">
<view class="boxwrap studentbox" wx:if="{{historySchoolList.length > 0}}" wx:for="{{historyschool}}" wx:key="id">
<view class="leftbox">
<image class="schoolavatar" wx:if="{{item.logo}}" src="{{filter.imagify(item.logo)}}" />
<image class="schoolavatar" wx:else src="{{imageRoot}}2c/common/logologo.png?{{imageVersion}}"></image>
<view class="schoolname">
<view class="schoolnametext">
{{item.title}}
</view>
<view class="studentname">
最后访问:{{item.last_visited_at}}
</view>
</view>
</view>
</view>
</block>
<list-loading loading="{{listLoading}}"></list-loading>
</block>
<view wx:else>
<empty-content></empty-content>
</view>
</block>
<expiredTip changebusiness="{{1}}"/>
</view>
\ No newline at end of file
business/pages/exchangebusiness/index.wxss
View file @
b70bb63f
/* business/pages/exchangebusiness/index.wxss */
page{
background:#f5f5f5;
}
.container{
background:#f5f5f5;
padding-bottom: 100rpx;
min-height: 100vh;
}
.exchangebusiness-container{
padding: 35rpx 24rpx;
.headerbox {
position: fixed;
width: 100%;
z-index: 2;
top: 0;
left: 0;
background-color: #fff;
}
.exchangebusiness-container .content-item{
width:100%;
height:auto;
background:rgba(255,255,255,1);
border-radius:20rpx;
margin-bottom: 24rpx;
padding: 32rpx 37rpx ;
.tabsboxwrap {
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.exchangebusiness-container .content-item .title{
padding-bottom: 22rpx;
.backbtnbox {
position: absolute;
left: 26rpx;
top: 0;
display: flex;
justify-content: space-between;
align-items: center;
justify-content: center;
}
.exchangebusiness-container .content-item .title .title-text {
font-size:26rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(0,0,0,1);
line-height: 36rpx;
width: 410rpx;
word-break: break-all;
.backbtnbox .backbtn {
width: 24rpx;
height: 14rpx;
transform: rotate(-90deg);
}
.exchangebusiness-container .content-item .title .title-flag1{
width:127rpx;
height:43rpx;
background:rgba(101,184,244,0.05);
border:1px solid rgba(101,184,244,1);
border-radius:10rpx;
font-size:22rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(101,184,244,1);
line-height:1;
.tabsbox {
width: 350rpx;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(53,186,253,1);
border-radius: 6rpx;
overflow: hidden;
}
.exchangebusiness-container .content-item .title .title-flag2{
width:127rpx;
height:43rpx;
background:rgba(255,185,122,0.05);
border:1px solid rgba(255,185,122,1);
border-radius:10rpx;
font-size:22rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(255,159,73,1);
line-height:1;
.tabsbox .tabitem {
width: 175rpx;
height: 64rpx;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
color: #35BAFD;
font-size: 26rpx;
}
.tabsbox .tabitem.active {
color: #FFFFFF;
background-color: #35BAFD;
}
.usedesc {
color: #666666;
font-size: 26rpx;
text-align: center;
line-height: 1;
padding: 30rpx 0;
}
.boxwrap {
background-color: #fff;
width: 702rpx;
margin: 0 auto 20rpx;
border-radius: 20rpx;
padding: 24rpx;
}
.exchangebusiness-container .content-item .time{
.boxwrap .sortname {
color: 32rpx;
color: #222222;
font-weight: 600;
line-height: 1;
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(88,88,88,1);
padding-bottom: 56rpx;
margin-bottom: 20rpx;
}
.exchangebusiness-container .content-item .deadline-time{
.boxwrap .rolebox {
background-color: #F7F7F7;
border-radius: 20rpx;
padding: 21rpx 24rpx;
display: flex;
align-items: center;
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(159,159,159,1);
line-height: 1;
justify-content: space-between;
margin-bottom: 20rpx;
}
.exchangebusiness-container .content-item .deadline-time .icon{
width:29rpx;
height:29rpx;
margin-right: 14rpx;
border-radius: 50%;
.boxwrap .rolebox:last-child{
margin-bottom: 0;
}
.add-school{
width:100%;
height:180rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
.boxwrap .leftbox{
display: flex;
align-items: center;
justify-content: center;
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(151,151,151,1);
}
.add-school image{
width: 40rpx;
height: 40rpx;
margin-right: 18rpx;
}
.footer{
width:100%;
height:100rpx;
background:rgba(255,255,255,1);
display: flex;
position: fixed;
left: 0;
bottom: 0;
z-index: 9;
}
.footer .left{
flex: 1;
.boxwrap .leftbox .schoolavatar{
width: 88rpx;
height: 88rpx;
border-radius: 50%;
display: block;
margin-right: 16rpx;
}
.boxwrap .leftbox .schoolname{
width: 500rpx;
word-break: break-all;
color: #222222;
font-size: 26rpx;
}
.boxwrap .leftbox .schoolname.short{
width: 350rpx;
}
.boxwrap .currenttag {
background-color: #35BAFD;
color: #fff;
width: 138rpx;
height: 36rpx;
font-size: 22rpx;
text-align: center;
line-height: 36rpx;
border-radius: 6rpx;
}
.boxwrap .rolebox:last-child {
margin-bottom: 0;
}
.boxwrap.operatebox {
padding-top: 27rpx;
padding-bottom: 27rpx;
display: flex;
align-items: center;
justify-content: center;
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(72,68,68,1);
border-right: 1px solid rgba(0,0,0,.05);
}
.footer .right{
flex: 1;
}
.boxwrap.operatebox .operateiconbox {
width: 34rpx;
height: 34rpx;
display: flex;
align-items: center;
margin-right: 16rpx;
}
.boxwrap.operatebox .operatename {
color: #666666;
font-size: 26rpx;
}
.boxwrap.operatebox .operateiconbox .shiftaccount {
width: 26rpx;
height: 30rpx;
}
.boxwrap.operatebox .operateiconbox .addschool {
width: 34rpx;
height: 34rpx;
}
.boxwrap.studentbox .rolebox .leftbox .schoolname{
width: 500rpx;
height: 88rpx;
display: flex;
justify-content: center;
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(255,73,73,1);
flex-direction: column;
}
.boxwrap.studentbox .rolebox .leftbox .schoolname.short {
width: 350rpx;
}
.boxwrap.studentbox .leftbox .schoolname .schoolnametext {
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.boxwrap.studentbox .leftbox .schoolname .studentname {
color: #999999;
font-size: 22rpx;
padding-top: 8rpx;
}
\ No newline at end of file
business/pages/helpcenter/index.wxml
View file @
b70bb63f
...
...
@@ -34,7 +34,7 @@
</view>
</view>
<view class="footer-box">
<
view class="btn" bindtap="toPostFeedback"><image class="icon" src="{{imageRoot}}2b/helpcenter/adviceicon.png?{{imageVersion}}"/>建议反馈</view
>
<
!-- <view class="btn" bindtap="toPostFeedback"><image class="icon" src="{{imageRoot}}2b/helpcenter/adviceicon.png?{{imageVersion}}"/>建议反馈</view> --
>
<view class="btn"><image class="icon" src="{{imageRoot}}2b/helpcenter/wechaticon.png?{{imageVersion}}"/>在线咨询
<button class="contact" open-type="contact"></button>
</view>
...
...
business/pages/organizationalmgt/index.js
View file @
b70bb63f
...
...
@@ -39,6 +39,7 @@ Page({
feedbackAppId
:
'wx8abaf00ee8c3202e'
,
allSubject
:[],
waitJob
:
0
,
type
:
1
,
extraData
:
{
id
:
"65621"
,
customData
:
{
...
...
@@ -102,6 +103,7 @@ Page({
this
.
setData
({
nickName
:
data
.
schoolTeacher
.
nickname
?
data
.
schoolTeacher
.
nickname
:
visitor
&&
visitor
.
userInfo
&&
visitor
.
userInfo
.
nickName
,
avatarUrl
:
data
.
schoolTeacher
.
avatar
?
data
.
schoolTeacher
.
avatar
:
visitor
&&
visitor
.
userInfo
&&
visitor
.
userInfo
.
avatarUrl
,
type
:
data
.
schoolTeacher
.
type
})
}
else
{
this
.
setData
({
...
...
@@ -111,7 +113,11 @@ Page({
}
})
},
exchangeBusinessSchool
()
{
wx
.
reLaunch
({
url
:
`/business/pages/exchangebusiness/index?from=2&sid=
${
this
.
data
.
sid
}
&currole=2`
})
},
schoolDetailGet
(){
schoolDetailGet
({
id
:
this
.
data
.
sid
...
...
@@ -194,6 +200,11 @@ Page({
})
this
.
log
(
'gotodotasks'
);
},
goAdvice
()
{
wx
.
navigateTo
({
url
:
`/business/pages/helpcenter/feedbacksubmit?sid=
${
this
.
data
.
sid
}
`
})
},
log
(
btnName
){
const
{
originParams
,
...
...
business/pages/organizationalmgt/index.wxml
View file @
b70bb63f
...
...
@@ -5,57 +5,57 @@
<view class="header-box">
<view class="top-box" bindtap="gobusinessinfo">
<view class="logo-box">
<image class="organizational-logo" wx:if="{{
schoolInfo.logo}}" src="{{filter.imagify(schoolInfo.logo, 'image/resize,w_64
0/format,jpg/quality,q_50')}}"></image>
<image class="organizational-logo" wx:if="{{
avatarUrl}}" src="{{filter.imagify(avatarUrl, 'image/resize,w_32
0/format,jpg/quality,q_50')}}"></image>
<image class="organizational-logo" wx:else src="{{imageRoot}}2c/common/logologo.png?{{imageVersion}}"></image>
</view>
<view class="info-box">
<view class="name">{{schoolInfo && schoolInfo.title}}</view>
<view class="list-box">
<view class="item" wx:for="{{schoolInfo.categoryName}}" wx:key="index">{{item.name}}
{{ index+1 == schoolInfo.categoryName.length? '' : '|'}} </view>
</view>
<view class="name">{{nickName}}</view>
<view class="roletag" wx:if="{{type == 1}}">老师</view>
<view class="roletag" wx:if="{{type == 2}}">校长</view>
</view>
<view class="right">
<image class="right-icon" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
</view>
<view class="nick-name">
<image class="icon" src="{{filter.imagify(avatarUrl, 'image/resize,w_640/format,jpg/quality,q_50')}}"></image>
{{nickName}}
<view class="schoolname">{{schoolInfo.title}}</view>
<view class="rolechangebox" bindtap="exchangeBusinessSchool">
<view class="rolechange">身份切换</view>
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/exchange2.png?{{imageVersion}}"></image>
</view>
</view>
</view>
<view class="line-box">
<view class="line" bindtap="gotodotasks">
<view class="left">
<image class="icon
message-icon" src="{{imageRoot}}2b/classservice/message-icon
.png?{{imageVersion}}"/>消息
<image class="icon
" src="{{imageRoot}}2b/organizationalmgt/message
.png?{{imageVersion}}"/>消息
</view>
<view class="right">
<view class="red-dot" wx:if="{{waitJob>0}}">
{{waitJob}}
</view>
<view class="red-dot" wx:if="{{waitJob>0}}"></view>
<image class="right-icon" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
</view>
<view class="line" bindtap="go
Pcwebsite
">
<view class="line" bindtap="go
Helpcenter
">
<view class="left">
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/
pc-icon.png?{{imageVersion}}"/>登录PC管理
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/
help.png?{{imageVersion}}" />帮助中心
</view>
<image class="right-icon" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
<!-- <navigator class="line" target="miniProgram" open-type="navigate" app-id="{{feedbackAppId}}"
extra-data="{{ extraData }}" version="release">
<view class="line" bindtap="goAdvice">
<view class="left">
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/a
nswer-icon.png?{{imageVersion}}"/>问题
反馈
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/a
dvice.png?{{imageVersion}}" />建议
反馈
</view>
<image class="right-icon" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</
navigator> --
>
</
view
>
<view class="line" bindtap="goSetting">
<view class="left">
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/set
-icon
.png?{{imageVersion}}" />设置
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/set
ting
.png?{{imageVersion}}" />设置
</view>
<image class="right-icon" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
<view class="line" bindtap="go
Helpcenter
">
<view class="line" bindtap="go
Pcwebsite
">
<view class="left">
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/
helpcenter.png?{{imageVersion}}" />意见反馈
<image class="icon" src="{{imageRoot}}2b/organizationalmgt/
pc.png?{{imageVersion}}"/>登录电脑端管理
</view>
<image class="right-icon" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
...
...
business/pages/organizationalmgt/index.wxss
View file @
b70bb63f
...
...
@@ -44,6 +44,17 @@ page{
.header-box .top-box .info-box{
flex: 1;
}
.header-box .top-box .info-box .roletag {
line-height: 36rpx;
background: rgba(234,248,255,1);
border-radius: 6rpx;
border: 1px solid rgba(53,186,253,1);
color: #35BAFD;
font-size: 22rpx;
text-align: center;
display: inline-block;
padding: 0 7rpx;
}
.header-box .top-box .info-box .name{
font-size:28rpx;
font-family:PingFang SC;
...
...
@@ -83,10 +94,28 @@ page{
padding-top: 25rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.header-box .nick-name .schoolname {
color: #666666;
font-size: 22rpx;
max-width: 450rpx;
line-height: 1.5;
word-break: break-all;
}
.header-box .nick-name .rolechangebox {
display: flex;
align-items: center;
justify-content: space-between;
}
.header-box .nick-name .rolechangebox .rolechange {
color: #666666;
font-size: 22rpx;
padding-right: 14rpx;
}
.header-box .nick-name .icon{
width:
3
4rpx;
height:
3
4rpx;
width:
2
4rpx;
height:
2
4rpx;
margin-right: 14rpx;
border-radius: 50%;
}
...
...
@@ -126,17 +155,18 @@ page{
align-items: center;
}
.line-box .line .right .red-dot{
padding: 0 7rpx;
font-size: 20rpx;
/* padding: 0 7rpx; */
/* font-size: 20rpx; */
color: #fff;
background:#FF3030;
border-radius: 18rpx;
margin-right: 27rpx;
height: 36rpx;
min-width: 36rpx;
display: flex;
border-radius: 50%;
margin-right: 14rpx;
height: 14rpx;
width: 14rpx;
/* min-width: 36rpx; */
/* display: flex;
align-items: center;
justify-content: center;
justify-content: center;
*/
}
.line-box .line .right-icon{
width:11rpx;
...
...
business/pages/organizationalmgt/setting.js
View file @
b70bb63f
import
{
LocalStorage
schoolDetailGet
,
}
from
'../../../service/business/common.js'
;
import
{
LocalStorage
,
}
from
'../../../utilities/index.js'
;
var
app
=
getApp
();
Page
({
...
...
@@ -11,6 +14,7 @@ Page({
imageRoot
:
app
.
globalData
.
imageRoot
,
localImageRoot
:
'../../../images/'
,
imageVersion
:
app
.
globalData
.
imageVersion
,
schoolInfo
:
{}
},
onLoad
:
function
(
options
)
{
let
that
=
this
;
...
...
@@ -18,28 +22,40 @@ Page({
that
.
setData
({
sid
})
this
.
schoolDetailGet
();
},
onShow
:
function
()
{
},
schoolDetailGet
(){
schoolDetailGet
({
id
:
this
.
data
.
sid
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
;
if
(
code
==
200
){
this
.
setData
({
schoolInfo
:
data
,
})
}
})
},
// 账号安全
goAccountSecurity
(){
wx
.
navigateTo
({
url
:
`/business/pages/
organizationalmgt/accountsecurity?sid=
${
this
.
data
.
sid
}
`
url
:
`/business/pages/
loginregistermgt/findpsd?sid=
${
this
.
data
.
sid
}
&from=
${
this
.
data
.
from
}
`
})
},
// 关于我们
aboutUs
(){
wx
.
showModal
({
title
:
'提示'
,
content
:
'哪来的关于我们'
,
showCancel
:
false
,
confirmColor
:
'#16B0FD'
})
},
// 退出登录
//
//
关于我们
//
aboutUs(){
//
wx.showModal({
//
title: '提示',
//
content: '哪来的关于我们',
//
showCancel: false,
//
confirmColor:'#16B0FD'
//
})
//
},
//
//
退出登录
exitBusiness
(){
LocalStorage
.
removeItem
(
'user'
);
LocalStorage
.
removeItem
(
'dakarole'
);
...
...
@@ -49,10 +65,13 @@ Page({
url
:
'/business/pages/loginregistermgt/login'
})
},
exchangeBusiness
(){
wx
.
navigateTo
({
// url: `/business/pages/organizationalmgt/exchangebusiness?sid=${this.data.sid}`
url
:
`/business/pages/exchangebusiness/index?from=2`
})
// exchangeBusiness(){
// wx.navigateTo({
// // url: `/business/pages/organizationalmgt/exchangebusiness?sid=${this.data.sid}`
// url: `/business/pages/exchangebusiness/index?from=2`
// })
// },
goRecharge
()
{
console
.
log
(
'充值'
);
}
})
\ No newline at end of file
business/pages/organizationalmgt/setting.wxml
View file @
b70bb63f
<view class="container">
<view class="box">
<view class="line-item" bindtap='goRecharge'>
<view class="item-label">套餐续费</view>
<view class="right">
<view class="expiretime">{{schoolInfo.expire_time}}到期</view>
<image class="arrowsmall" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
</view>
<view class="line-item" bindtap='goAccountSecurity'>
<view class="item-label">
账号安全
</view>
<view class="item-label">
修改密码
</view>
<view class="right">
<image class="arrowsmall" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
</view>
...
...
@@ -13,6 +20,6 @@
</view>
</view> -->
</view>
<
view class="opt-item" bindtap="exchangeBusiness">切换机构校区</view
>
<
!-- <view class="opt-item" bindtap="exchangeBusiness">切换机构校区</view> --
>
<view class="opt-item opt-item-red" bindtap="exitBusiness">退出登录</view>
</view>
business/pages/organizationalmgt/setting.wxss
View file @
b70bb63f
page{
background: #F7F7F9;
}
.container{
background: #F7F7F9;
min-height: 100vh;
}
.box{
background: #fff;
...
...
@@ -42,6 +40,10 @@ page{
height: 20rpx;
margin-left: 20rpx;
}
.line-item .right .expiretime {
color: #FF3520;
font-size: 22rpx;
}
.opt-item{
width: 100%;
height: 100rpx;
...
...
@@ -51,11 +53,15 @@ page{
align-items: center;
justify-content: center;
color: #000;
margin-top: 20rpx;
position: relative;
/* margin-top: 20rpx; */
position: absolute;
left: 0;
bottom: 0;
}
.opt-item-red{
color: #FF4949;
color: #FF3520;
font-size: 26rpx;
font-weight: 600;
}
.box::before,.opt-item::before{
content: '';
...
...
constants/api.js
View file @
b70bb63f
...
...
@@ -170,8 +170,10 @@ const apis = {
},
schoolindex
:
{
classindex
:
`
${
api
}
student/class/index`
,
studentSchoolList
:
`
${
api
}
student/all/students`
,
schoolClassList
:
`
${
api
}
student/class/class_list`
,
schooldetail
:
`
${
api
}
student/school/detail`
schooldetail
:
`
${
api
}
student/school/detail`
,
historySchoolList
:
`
${
api
}
student/history/schools`
},
growthRecord
:
{
customerClass
:
`
${
api
}
student/class/grow_class_list`
,
...
...
constants/constants.js
View file @
b70bb63f
export
default
{
imageRoot
:
'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/'
,
host
:
'https://qxapi.qingxiao.online/daka'
,
host2
:
'https://wx.m.shangjiadao.cn'
,
imageRoot
:
'https://cdn.img.shangjiadao.cn/qingxiao/daka
v2
/images/'
,
//
host: 'https://qxapi.qingxiao.online/daka',
//
host2: 'https://wx.m.shangjiadao.cn',
storageVersion
:
'5.0'
,
imageVersion
:
'20200
326
'
,
//
host: 'https://clock.wp53.cn',
//
host2: 'https://test.wp53.cn',
imageVersion
:
'20200
408
'
,
host
:
'https://clock.wp53.cn'
,
host2
:
'https://test.wp53.cn'
,
appId
:
'wxc1246ea029394785'
,
miniProgram
:
{
clock
:
'wxdeee20e52a1fd7ee'
...
...
service/customer/schoolindex.js
View file @
b70bb63f
...
...
@@ -35,9 +35,28 @@ function getSchoolDetail(data) {
errorresolve
:
1
,
})
}
function
studentSchoolList
(
data
)
{
return
wxRequest
({
url
:
apis
.
customer
.
schoolindex
.
studentSchoolList
,
data
,
method
:
'GET'
,
errorresolve
:
1
,
})
}
function
historySchoolList
(
data
)
{
return
wxRequest
({
url
:
apis
.
customer
.
schoolindex
.
historySchoolList
,
data
,
method
:
'GET'
,
errorresolve
:
1
,
})
}
export
{
getClassInfo
,
getSchoolClassList
,
getSchoolDetail
,
CgetClassInfo
CgetClassInfo
,
studentSchoolList
,
historySchoolList
}
\ No newline at end of file
ucenter/index.js
View file @
b70bb63f
...
...
@@ -257,7 +257,7 @@ Page({
if
(
code
==
200
)
{
if
(
data
.
list
.
length
>
0
)
{
wx
.
navigateTo
({
url
:
`/business/pages/exchangebusiness/index?from=1`
url
:
`/business/pages/exchangebusiness/index?from=1
&sid=
${
this
.
data
.
sid
}
&currole=1
`
});
}
else
{
wx
.
navigateTo
({
...
...
@@ -330,7 +330,7 @@ Page({
let
user
=
LocalStorage
.
getItem
(
"user"
);
if
(
this
.
data
.
loginStatus
==
1
){
wx
.
navigateTo
({
url
:
`/business/pages/exchangebusiness/index?from=1`
url
:
`/business/pages/exchangebusiness/index?from=1
&sid=
${
this
.
data
.
sid
}
&currole=1
`
})
return
}
...
...
@@ -373,7 +373,7 @@ Page({
if
(
code
==
200
)
{
if
(
data
.
list
.
length
>
0
)
{
wx
.
navigateTo
({
url
:
`/business/pages/exchangebusiness/index?from=1`
url
:
`/business/pages/exchangebusiness/index?from=1
&currole=1&sid=
${
this
.
data
.
sid
}
`
});
}
else
{
wx
.
navigateTo
({
...
...
@@ -428,7 +428,7 @@ Page({
exchangeSchool
()
{
this
.
log
(
"exchangeSchool"
);
wx
.
navigateTo
({
url
:
`/src/pages/exchangebusiness/index?from=2&sid=
${
this
.
data
.
sid
}
`
url
:
`/src/pages/exchangebusiness/index?from=2&sid=
${
this
.
data
.
sid
}
&currole=1
`
});
},
goMyInfluence
()
{
...
...
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