[新增]新增企获客介绍欢迎页面,检查是否有上次登录的店铺id,欢迎页面导航重定向
This commit is contained in:
4
app.json
4
app.json
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
|
"pages/welcome/index",
|
||||||
"pages/company/index",
|
"pages/company/index",
|
||||||
"pages/shortVideo/index",
|
"pages/shortVideo/index",
|
||||||
"pages/richText/richText",
|
"pages/richText/richText",
|
||||||
@@ -10,8 +11,7 @@
|
|||||||
"pages/mall/index",
|
"pages/mall/index",
|
||||||
"pages/live/index",
|
"pages/live/index",
|
||||||
"pages/ticket/index",
|
"pages/ticket/index",
|
||||||
"pages/company/search/search",
|
"pages/company/search/search"
|
||||||
"pages/welcome/index"
|
|
||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
"backgroundTextStyle": "light",
|
"backgroundTextStyle": "light",
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ Page({
|
|||||||
* 生命周期函数--监听页面显示
|
* 生命周期函数--监听页面显示
|
||||||
*/
|
*/
|
||||||
onShow() {
|
onShow() {
|
||||||
|
wx.hideHomeButton()
|
||||||
wx.getStorage({
|
wx.getStorage({
|
||||||
key : "companyRecord",
|
key : "companyRecord",
|
||||||
success : res=>{
|
success : res=>{
|
||||||
|
|||||||
@@ -6,18 +6,55 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 页面的初始数据
|
* 页面的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
|
loding : true,
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad(options) {
|
onLoad() {
|
||||||
|
wx.getStorage({
|
||||||
|
key : 'newUser',
|
||||||
|
success : ()=>{
|
||||||
|
wx.getStorage({
|
||||||
|
key : "storeId",
|
||||||
|
success : ()=>{
|
||||||
|
wx.reLaunch({
|
||||||
|
url: "/pages/shortVideo/index",
|
||||||
|
})
|
||||||
|
},
|
||||||
|
fail : ()=>{
|
||||||
|
wx.reLaunch({
|
||||||
|
url: "/pages/company/index",
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
fail: ()=>{
|
||||||
|
this.setData({
|
||||||
|
loding: false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 进入企获客
|
||||||
|
*/
|
||||||
|
onNav(){
|
||||||
|
wx.setStorage({
|
||||||
|
key : "newUser",
|
||||||
|
data : true,
|
||||||
|
success : res=>{
|
||||||
|
wx.redirectTo({
|
||||||
|
url: "/pages/company/index"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {},
|
"usingComponents": {},
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom",
|
||||||
|
"navigationBarTextStyle": "white"
|
||||||
}
|
}
|
||||||
@@ -1,2 +1,15 @@
|
|||||||
<!--pages/welcome/index.wxml-->
|
|
||||||
<text>pages/welcome/index.wxml</text>
|
|
||||||
|
<block wx:if="{{!loding}}">
|
||||||
|
<image class="welcome-img" src="https://nws-cdn.cnskl.com/assets/2020/12/25/c77267e903311988daa41988e1150d2d.png" mode="widthFix"></image>
|
||||||
|
|
||||||
|
<view class="footer-btn">
|
||||||
|
<button size="default" bindtap="onNav">进入企获客</button>
|
||||||
|
</view>
|
||||||
|
</block>
|
||||||
|
|
||||||
|
<block wx:else>
|
||||||
|
<view class="pack-center pages-loding">
|
||||||
|
<image src="/static/icons/loding.gif" mode="widthFix"></image>
|
||||||
|
</view>
|
||||||
|
</block>
|
||||||
|
|||||||
@@ -5,4 +5,29 @@
|
|||||||
* 碌碌无为枉半生,一朝惊醒万事空。
|
* 碌碌无为枉半生,一朝惊醒万事空。
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.welcome-img{
|
||||||
|
width: 100%;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-btn{
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 50rpx 50rpx 80rpx;
|
||||||
|
background: linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.5));
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-btn button[size="default"]{
|
||||||
|
width: 100%;
|
||||||
|
height: 90rpx;
|
||||||
|
line-height: 90rpx;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
background: white;
|
||||||
|
color: #0b0041;
|
||||||
|
font-size: 32rpx;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user