Browse Source

app2.0 微信登录

临城职教中职
杨晓琪 2 years ago
parent
commit
56ec930d60
4 changed files with 34 additions and 11 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/App.vue
  2. +7
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json
  3. +15
    -10
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue
  4. +11
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/login.vue

+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/App.vue View File

@@ -10,7 +10,7 @@
// H5 刷新时获取当前页面路径
const pagePath = "/" + param.path;
// 如果 H5 刷新后访问的不是首页/登录页/注册页,直接跳转回首页
if (!["/pages/login", "/pages/home", "/pages/signup"].includes(pagePath)) {
if (!["/pages/login", "/pages/home","/pages/weixinLogin", "/pages/signup"].includes(pagePath)) {
this.$nextTick(() => {
this.TAB_TO("/pages/home");
return;


+ 7
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json View File

@@ -47,6 +47,13 @@
"disableScroll": true
}
},
{ "path": "pages/weixinLogin",
"style": {
"navigationStyle": "custom",
"disableScroll": true
}
},
{
"path": "pages/signup",
"style": {


+ 15
- 10
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue View File

@@ -163,6 +163,11 @@ export default {
onUnload() {
this.OFF('EducationalAdministrationSys_ReceiveFile-list-change')
},
onShow() {
if(this.list.length){
this.refreshList()
}
},
methods: {
// 页面初始化
@@ -184,13 +189,13 @@ export default {
// 拉取列表
async fetchList() {
if (this.page > this.total) { return }
this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId;
this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId;
const result = await this.HTTP_GET(
'learun/adms/EducationalAdministration/Sys_ReceiveFile/pagelist',
{
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序)
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序
pagination: { rows: 10, page: this.page, sidx: 'RFileId', sord: 'DESC' },
pagination: { rows: 10, page: this.page, sidx: 'SendTime desc,SendStatus asc', sord: 'DESC' },
queryJson: JSON.stringify(this.searchData)
},
'加载数据时出错'
@@ -307,14 +312,14 @@ this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId;
default: return value === null || value === undefined ? '' : value
}
},
showStatus(item){
console.log(item);
if(item.SendStatus==true){
return "已查阅";
}else{
return "未查阅"
}
}
showStatus(item){
console.log(item);
if(item.SendStatus==true){
return "已查阅";
}else{
return "未查阅"
}
}
}
}


+ 11
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/login.vue View File

@@ -32,6 +32,9 @@
<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> -->
@@ -274,6 +277,14 @@ page {
color: #555;
}
}
.otherLogin{
display: flex;
justify-content: flex-end;
.textBtn{
width: 100px;
color: #606266;
}
}

.footer {
position: absolute;


Loading…
Cancel
Save