165 lines
11 KiB
Plaintext
165 lines
11 KiB
Plaintext
<!--pages/projectSchoolHomepage/projectSchoolHomepage.wxml-->
|
|
<header-nav class="header-nav" bgcolor="#fbfbfb" user="{{ user }}"></header-nav>
|
|
<view class="container">
|
|
<view class="header">
|
|
<view class="info flexflex">
|
|
<view class="avatar flexcenter">
|
|
<image class="img" src="{{ info.logo }}" mode="widthFix"></image>
|
|
</view>
|
|
<view class="right flex1 flexflex">
|
|
<view class="name">{{ info.name }}</view>
|
|
<view class="english">{{ info.enname }}</view>
|
|
<view wx:if="{{ info.ranks.length != 0 }}" class="world">
|
|
<view class="head flexcenter">
|
|
<view class="icon flexcenter">
|
|
<image class="img" src="https://app.gter.net/image/miniApp/offer/world-ranking-icon.png" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
<view class="list flexacenter">
|
|
<view class="item" wx:for="{{ info.ranks }}" wx:key="index" bind:tap="goProjectList" data-index="{{ index }}">
|
|
<view class="quantity">{{ item.ranktext }}</view>
|
|
<view class="ranking-name">
|
|
{{ item.mechanism }}
|
|
<image wx:if="{{ item.mechanism == 'QS' }}" class="ranking-icon" mode="widthFix" src="https://app.gter.net/image/miniApp/offer/triangle-QS.svg"></image>
|
|
<image wx:if="{{ item.mechanism == '泰晤士' }}" class="ranking-icon" mode="widthFix" src="https://app.gter.net/image/miniApp/offer/triangle-TIMES.svg"></image>
|
|
<image wx:if="{{ item.mechanism == 'USNEWS' }}" class="ranking-icon" mode="widthFix" src="https://app.gter.net/image/miniApp/offer/triangle-US-News.svg"></image>
|
|
<image wx:if="{{ item.mechanism == '软科' }}" class="ranking-icon" mode="widthFix" src="https://app.gter.net/image/miniApp/offer/triangle-Soft.svg"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<rich-text id="rich-text" class="brief" nodes="{{ info.message }}"></rich-text>
|
|
<rich-text class="brief {{ !briefShow ? 'twoLines' : '' }}" style="height: {{ briefShow ? briefHeight : '42' }}px;" nodes="{{ info.message }}"></rich-text>
|
|
<view class="brief-more flexcenter" bind:tap="cutBriefShow">
|
|
<image class="icon {{ briefShow ? 'spin' : '' }}" src="https://app.gter.net/image/miniApp/project/u1194.png"></image>
|
|
</view>
|
|
</view>
|
|
<block wx:if="{{ hotList.length !== 0}}">
|
|
<view class="item-header flexacenter">
|
|
<view class="greenDot"></view>
|
|
热门项目
|
|
</view>
|
|
<view class="hot">
|
|
<scroll-view class="hot-box" scroll-x="{{ true }}" bindscroll="hotscroll">
|
|
<view class="line" wx:for="{{ hotList }}" wx:key="index">
|
|
<view class="item flexacenter" wx:for="{{ item }}" wx:for-index="i" wx:key="i" bind:tap="goDetails" data-uniqid="{{ item.uniqid }}">
|
|
<view class="box">
|
|
<view class="name one-line-display">{{ item.name_zh }}</view>
|
|
<view class="english one-line-display">{{ item.name_en }}</view>
|
|
</view>
|
|
<view wx:if="{{ item.contraststatus == 0 }}" class="join flexflex" catch:tap="handleClick" data-type="hot" data-random="{{ item.random }}" data-id="{{ item.id }}" data-index="{{ index }}" data-i="{{ i }}" data-status="{{ item.contraststatus }}">
|
|
<view class="add flexcenter" id="add{{ item.random }}">
|
|
<image class="icon" src="https://app.gter.net/image/miniApp/offer/plus-icon.svg" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
<view wx:else class="cancel flexflex">
|
|
<view class="cross flexcenter">
|
|
<image class="icon" src="https://app.gter.net/image/miniApp/offer/tick-grey.svg" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="indication flexacenter">
|
|
<view class="item {{ current == index ? 'pitch' : '' }}" wx:for="{{ hotList.length }}" wx:key="index"></view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
|
|
<view class="item-header flexacenter">
|
|
<view class="greenDot"></view>
|
|
所有项目
|
|
</view>
|
|
|
|
<view class="screen flexacenter">
|
|
<view class="left flexacenter flex1">
|
|
<view class="item flex1 flexcenter {{ screen.pitch == 'all' ? 'pitch' : '' }}" bind:tap="selectScreen" data-type="all">全部项目</view>
|
|
<view class="item flex1 flexcenter {{ screen.pitch == 'subject' ? 'pitch' : '' }}" bind:tap="selectScreen" data-type="subject">按学科</view>
|
|
<view class="item flex1 flexcenter {{ screen.pitch == 'school' ? 'pitch' : '' }}" bind:tap="selectScreen" data-type="school">按学院</view>
|
|
</view>
|
|
<view class="tuition flexcenter" bind:tap="cutCondition">
|
|
{{ sortObj[sortIndex] }}
|
|
<image class="sort-icon" src="https://app.gter.net/image/miniApp/offer/sort-icon.png" mode="widthFix"></image>
|
|
<view wx:if="{{ selectState }}" class="select-mask"></view>
|
|
<view class="select-box {{ selectState ? 'show' : '' }}" catch:tap="return">
|
|
<view catch:tap="screenIncident" data-sort="0" wx:if="{{ screen.key == 'all' }}" class="item flexcenter {{ sortIndex == 0 ? 'pitch' : '' }}">排名由高到低</view>
|
|
<view catch:tap="screenIncident" data-sort="1" class="item flexcenter {{ sortIndex == 1 ? 'pitch' : '' }}">学费由低到高</view>
|
|
<view catch:tap="screenIncident" data-sort="2" class="item flexcenter {{ sortIndex == 2 ? 'pitch' : '' }}">学费由高到低</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="all-projects">
|
|
<view wx:if="{{ screen.pitch !== 'all' }}" class="pitch flexcenter" bind:tap="openselect">
|
|
<view class="text">
|
|
{{ screen.name }}
|
|
<image class="icon" src="https://app.gter.net/image/miniApp/offer/triangle-red.svg" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="total">共 {{ count }} 个项目</view>
|
|
|
|
<view class="item" wx:for="{{ list }}" wx:key="index" bind:tap="goDetails" data-uniqid="{{ item.uniqid }}">
|
|
<view class="title flexflex">
|
|
<view class="name flex1">{{ item.name_zh }}</view>
|
|
<view>
|
|
<view wx:if="{{ item.contraststatus.status == 1 && item.contraststatus.ismanage == 1 }}" class="cancel flexflex">
|
|
<view class="cross flexcenter">
|
|
<image class="icon" src="https://app.gter.net/image/miniApp/offer/tick-grey.svg"></image>
|
|
</view>
|
|
</view>
|
|
<view wx:elif="{{ item.contraststatus.status == 0 || item.contraststatus.ismanage == 0 }}" class="more flexcenter" catch:tap="openMoreSelect" data-index="{{ index }}">
|
|
<image class="icon" src="https://app.gter.net/image/miniApp/offer/dot-dot-dot-black.png"></image>
|
|
<view wx:if="{{ item.moreState }}" class="more-select-mask" catch:tap="closeMoreSelect"></view>
|
|
<view wx:if="{{ item.moreState }}" class="more-select" catch:tap="return">
|
|
<view class="more-select-title flexacenter">
|
|
<view class="dot"></view>
|
|
<block wx:if="{{ item.contraststatus.status == 1 }}">该项目已加入对比单,未加入项目管理</block>
|
|
<block wx:else>该项目已加入项目管理,未加入对比单</block>
|
|
</view>
|
|
<view class="more-select-btn flexcenter" catch:tap="addProject" data-index="{{ index }}" data-id="{{ item.id }}">
|
|
<image class="more-select-icon" src="https://app.gter.net/image/miniApp/offer/add-deep-blue.svg"></image>加入{{ item.contraststatus.status == 1 ? '项目管理' : '对比单' }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:else class="join flexflex" catch:tap="handleClick" data-type="list" data-random="{{ item.random }}" data-id="{{ item.id }}" data-index="{{ index }}" data-status="{{ item.contraststatus }}">
|
|
<view class="add flexcenter" id="add{{ item.random }}">
|
|
<image class="icon" src="https://app.gter.net/image/miniApp/offer/plus-icon.svg"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="english">{{ item.name_en }}</view>
|
|
<view class="introduce flexacenter" wx:if="{{ item.department || item.rank || item.tuition_fee_text }}">
|
|
{{ item.department }}
|
|
<view class="flexacenter" wx:if="{{ item.rank }}">
|
|
<view class="line">|</view> 专业排名 <vie class="quantity">{{ item.rank }}</vie>
|
|
</view>
|
|
<view class="flexacenter" wx:if="{{ item.tuition_fee }}">
|
|
<view class="line">|</view> 学费HK$ <vie class="quantity">{{ item.tuition_fee_text }}</vie>
|
|
</view>
|
|
</view>
|
|
<view class="word" wx:if="{{ item.distinctive }}">{{ item.distinctive }}</view>
|
|
<view class="tag flexflex">
|
|
<view class="tag-item admissions" wx:if="{{ item.admissionsproject }}">招生官项目</view>
|
|
<view class="tag-item gray {{ item.semesterState ? 'semester' : '' }}">{{ item.semester.text }}</view>
|
|
<view class="tag-item" wx:for="{{ item.tags }}" wx:key="index">{{ item }}</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="end" wx:if="{{ page == 0 && list.length != 0 }}">- End -</view>
|
|
</view>
|
|
|
|
<xg-bottom type="school" bezier="{{ bezier }}" amount="{{ contrastcount }}" bindopenLoginBtnState="openLoginBtnState" islogin="{{ islogin }}" sid="{{ id }}"></xg-bottom>
|
|
|
|
<!-- 学科领域 -->
|
|
<territory-select wx:if="{{ screen.state }}" type="{{ screen.key }}" list="{{ screen.list }}" bindcloseselect="closeselect"></territory-select>
|
|
|
|
<go-login wx:if="{{ isloginBtnState }}" islogin="{{ islogin }}" binduserClickLogin="userClickLogin" bindpopClose="popClose"></go-login>
|
|
|
|
<perfect-information wx:if="{{ informationState }}" bindrevampInformationState="revampInformationState"></perfect-information>
|
|
|
|
</view>
|
|
<index-sidebar id="index-sidebar" class="index-sidebar" sidebarType="xg" isInitFinish="{{ isInitFinish }}" bind:openLogin="openLoginBtnState" islogin="{{ islogin }}"></index-sidebar> |