|
|
@@ -1,69 +1,36 @@ |
|
|
|
<template> |
|
|
|
<view class="page"> |
|
|
|
<image src="@/static/login-banner.png" mode="widthFix" style="width:100%;margin-bottom: 12px;"></image> |
|
|
|
<!-- <image src="@/static/login-banner.png" mode="widthFix" style="width:100%;margin-bottom: 12px;"></image> |
|
|
|
<view class="content" style="padding-bottom:60px"> |
|
|
|
<view style="padding: 0 38px;"> |
|
|
|
<view class="head-banner"> |
|
|
|
<!-- 标题文字 --> |
|
|
|
<view class="main-title"> |
|
|
|
数字化智慧校园 |
|
|
|
<!-- <text v-if="DEV" class="margin-left-sm text-red">(开发模式)</text> --> |
|
|
|
<text class="text-gray margin-left-sm" style="font-size: 0.7em;">{{ APP_VERSION }}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 首页 Logo --> |
|
|
|
<view mode="aspectFit" class="logo"> |
|
|
|
<image src="~@/static/logo.dc7ee5a9.png" mode="widthFix" class="logoImg"></image> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 【仅生产环境】使用账号的原因,无此项则微信审核通不过 --> |
|
|
|
<!-- <view v-if="!DEV" class="intro"> |
|
|
|
<view class="intro">注册登录智慧校园账号后,您将可以体验力软框架产品中的所有功能与业务</view> |
|
|
|
<view class="intro">OA · 进销存 · 工作流审批 · 数据可视化</view> |
|
|
|
<view class="intro text-gray" style="font-size: 0.9em;"> |
|
|
|
如果您之前已在智慧校园 PC 端中注册过体验账号,可以直接使用原账号登录,无需另行注册 |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 账户密码表单 --> |
|
|
|
<l-input v-if="ready" v-model="username" placeholder="账号" left> |
|
|
|
<l-icon slot="title" type="people" /> |
|
|
|
</l-input> |
|
|
|
<l-input v-if="ready" v-model="password" placeholder="请输入密码" password left> |
|
|
|
<l-icon slot="title" type="lock" /> |
|
|
|
</l-input> |
|
|
|
<l-button @click="login(null)" size="lg" color="blue" class="margin-top-sm block" block>登 录</l-button> |
|
|
|
<view class="otherLogin"> |
|
|
|
<navigator url="/pages/weixinLogin" class="textBtn">微信登录</text></navigator> |
|
|
|
</view> |
|
|
|
<!-- <l-button v-if="enableSignUp" @click="signUp" size="lg" line="blue" class="margin-top-sm block" block> |
|
|
|
教师注册 |
|
|
|
</l-button> --> |
|
|
|
|
|
|
|
<!-- 【仅小程序】一键登录按钮 --> |
|
|
|
<!-- #ifdef MP --> |
|
|
|
<l-button v-if="MPLogin" @click="login(PLATFORM)" size="lg" line="green" class="margin-top-sm block" |
|
|
|
block> |
|
|
|
{{ PLATFORM_TEXT }}一键登录 |
|
|
|
</l-button> |
|
|
|
<!-- #endif --> |
|
|
|
|
|
|
|
<!-- 【仅开发模式】显示,后台地址切换 --> |
|
|
|
<!-- <view v-if="DEV" class="more"> |
|
|
|
<view @click="showApiRootSelector = true" class="morebtn">后台地址(点击切换):</view> |
|
|
|
<view class="morebtn">{{ currentApiRoot }}</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- 【仅开发模式】选择 API 地址的弹层 --> |
|
|
|
<l-modal v-if="DEV && ready" v-model="showApiRootSelector" @radioIndex="changeApiRoot" |
|
|
|
:radio="currentApiRoot" :range="apiRootList" type="radio" /> |
|
|
|
</view> |
|
|
|
|
|
|
|
<l-input v-if="ready" v-model="username" placeholder="账号" left> |
|
|
|
<l-icon slot="title" type="people" /> |
|
|
|
</l-input> |
|
|
|
<l-input v-if="ready" v-model="password" placeholder="请输入密码" password left> |
|
|
|
<l-icon slot="title" type="lock" /> |
|
|
|
</l-input> |
|
|
|
<l-button @click="login(null)" size="lg" color="blue" class="margin-top-sm block" block>登 录</l-button> |
|
|
|
<view class="otherLogin"> |
|
|
|
<navigator url="/pages/weixinLogin" class="textBtn">微信登录</text></navigator> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 页面底部版权文字 --> |
|
|
|
<view class="footer" v-show="hideshow">{{ copyRightDisplay }}</view> |
|
|
|
<l-modal v-if="DEV && ready" v-model="showApiRootSelector" @radioIndex="changeApiRoot" |
|
|
|
:radio="currentApiRoot" :range="apiRootList" type="radio" /> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
<!-- <view class="footer" v-show="hideshow">{{ copyRightDisplay }}</view> |
|
|
|
</view> --> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|