Commit 8f775219 by 李伟康

提交代码

1 parent de5a8995
...@@ -4,10 +4,7 @@ import '~/router/routerBefore.js' ...@@ -4,10 +4,7 @@ import '~/router/routerBefore.js'
import router from './router/index.js' import router from './router/index.js'
// 有问题 前后顺序不能随意调整 // 有问题 前后顺序不能随意调整
import { ssoApi, commonApi, shopmallApi } from './api/api'
import { filterUrlParam } from '~/utils/routerApi'
import { setUserInfo, setSessionId } from '~/utils/cache/userInfo'
import { setSystem_info } from '~/utils/cache/storageApi' import { setSystem_info } from '~/utils/cache/storageApi'
// console.log(setSystem_info) // console.log(setSystem_info)
// 判断小程序是否需要更新 // 判断小程序是否需要更新
......
{ {
"pages": ["pages/index/index","pages/tab/index/index", "pages/tab/output/output", "pages/tab/mine/mine", "pages/webView/webView"], "pages": ["login/loading/loading","pages/tab/index/index", "pages/tab/output/output", "pages/tab/mine/mine", "pages/webView/webView","login/index/index"],
"requiredPrivateInfos": ["getLocation"], "requiredPrivateInfos": ["getLocation"],
"lazyCodeLoading": "requiredComponents", "lazyCodeLoading": "requiredComponents",
"window": { "window": {
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
} }
.isFullSucreen { .isFullSucreen {
/* padding-bottom: 34px !important; */
padding-bottom: constant(safe-area-inset-bottom) !important; padding-bottom: constant(safe-area-inset-bottom) !important;
padding-bottom: env(safe-area-inset-bottom) !important; padding-bottom: env(safe-area-inset-bottom) !important;
} }
......
// components/navigationBar/navigationBar.js // components/navigationBar/navigationBar.js
import {
componentsMixin
} from '../../mixins/index'
Component({ Component({
behaviors: [componentsMixin],
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
......
// pages/index/index.js // pages/login/index/index.js
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
navStyle: 'background-color: rgba(0,0,0,0);',
loginType: 1
}, },
/** /**
...@@ -26,7 +27,12 @@ Page({ ...@@ -26,7 +27,12 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
wx.$util.showLoading()
wx.hideHomeButton({
success: (res) => {
wx.hideLoading()
}
})
}, },
/** /**
......
{
"usingComponents": {
"navigation-bar":"/components/NavigationBar/NavigationBar"
},
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
.layout {
position: relative;
padding: 0 32rpx;
&::after {
content: '';
width: 100%;
height: 486rpx;
background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 0%, #DCF1FF 53%, #FFFFFF 100%);
position: absolute;
left: 0;
top: 0;
z-index: -1;
}
.box {
height: 800rpx;
}
.button {
width: 100%;
height: 88rpx;
background: #3666FE;
border-radius: 8rpx;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
line-height: 88rpx;
padding: 0;
}
.btn-hover{
opacity: .75;
}
}
\ No newline at end of file \ No newline at end of file
<navigation-bar navStyle="{{navStyle}}">生意助手</navigation-bar>
<view class="layout">
<view class="box"></view>
<button class="button" hover-class="btn-hover">{{loginType == 1?'微信登陆':'登陆'}}</button>
</view>
\ No newline at end of file \ No newline at end of file
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
const {
sessionId,
} = wx.$storage.get(), {
url,
path = decodeURIComponent(url)
} = this.options
console.log(path)
if (sessionId) {
} else {
wx.$router.reLaunch('login.index')
}
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
.layout{
width: 100vw;
height: 100vh;
display: grid;
place-items: center;
.icon{
width: 480rpx;
height: 480rpx;
}
}
<view class="layout">
<image class="icon" src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_LIVE.gif"></image>
</view>
\ No newline at end of file \ No newline at end of file
/* pages/index/index.wxss */
\ No newline at end of file \ No newline at end of file
<!--pages/index/index.wxml-->
<text>pages/index/index.wxml</text>
...@@ -4,7 +4,19 @@ ...@@ -4,7 +4,19 @@
"urlCheck": false, "urlCheck": false,
"lazyloadPlaceholderEnable": true "lazyloadPlaceholderEnable": true
}, },
"condition": {}, "condition": {
"miniprogram": {
"list": [
{
"name": "",
"pathName": "pages/index/index",
"query": "url=pages%2Ftab%2Findex%2Findex%3Fid%3D123",
"launchMode": "default",
"scene": null
}
]
}
},
"projectname": "miniprogram-template", "projectname": "miniprogram-template",
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"libVersion": "2.24.4" "libVersion": "2.24.4"
......
...@@ -70,6 +70,7 @@ class Router { ...@@ -70,6 +70,7 @@ class Router {
parent = _parent parent = _parent
} }
/**只传页面名 默认跳转当前包下的页面,相同名称默认第一个 */ /**只传页面名 默认跳转当前包下的页面,相同名称默认第一个 */
console.log(_parent, _name, last_name)
if (!_name && !last_name) name = _parent if (!_name && !last_name) name = _parent
const routerMapItem = this[_routerList].find(item => { const routerMapItem = this[_routerList].find(item => {
if (last_name) { if (last_name) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!