This commit is contained in:
zdx
2020-12-30 15:58:05 +08:00
9 changed files with 46 additions and 8 deletions

View File

@@ -9,6 +9,7 @@
"pages/richText/richText", "pages/richText/richText",
"pages/login/login", "pages/login/login",
"pages/card/index", "pages/card/index",
"pages/user/index",
"pages/user/companyMine/myActives/myActives", "pages/user/companyMine/myActives/myActives",
"pages/user/companyMine/focusedProject/focusedProject", "pages/user/companyMine/focusedProject/focusedProject",
"pages/user/companyMine/focusedCompany/focusedCompany", "pages/user/companyMine/focusedCompany/focusedCompany",

View File

@@ -7,6 +7,9 @@
import { mall, video, ticket, user } from "../../lib/tabBarData" import { mall, video, ticket, user } from "../../lib/tabBarData"
Page({ Page({
data: {
loding: true
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
@@ -49,6 +52,10 @@ Page({
url: newTabBar[0].pagePath, url: newTabBar[0].pagePath,
}) })
} }
}).catch(()=>{
this.setData({
loding: false
})
}) })
} }
}) })
@@ -58,5 +65,14 @@ Page({
*/ */
onShow(){ onShow(){
wx.hideHomeButton() wx.hideHomeButton()
},
/**
* 打开企业广场
*/
openIndex(){
wx.reLaunch({
url: "/pages/company/index"
})
} }
}) })

View File

@@ -1,5 +1,11 @@
<view class="pack-center pages-loding"> <view class="pack-center pages-loding" wx:if="{{loding}}">
<image src="/static/icons/loding.gif" mode="widthFix"></image> <image src="/static/icons/loding.gif" mode="widthFix"></image>
<view>加载企业信息</view> <view>加载企业信息</view>
</view> </view>
<view class="pack-center pages-hint" wx:else>
<image src="/static/images/404.png" mode="widthFix"></image>
<view>加载企业信息失败~</view>
<button class="pages-hint-btn" size="mini" bindtap="openIndex">返回首页</button>
</view>

View File

@@ -1 +1,16 @@
/* pages/config/config.wxss */
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
*/
.pages-hint-btn[size="mini"]{
background: #0b0041;
color: white;
width: 50vw;
height: 90rpx;
line-height: 90rpx;
padding: 0;
margin: 100rpx 0;
}

View File

@@ -1,7 +1,8 @@
/** /**
* Web唐明明 * Web唐明明
* 一个梦想做木雕手艺人的程序员 * 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
*/ */
page{ page{

View File

@@ -7,5 +7,6 @@
"mallIndex_video" : "/components/mallIndex_video/mallIndex_video" "mallIndex_video" : "/components/mallIndex_video/mallIndex_video"
}, },
"navigationBarTitleText": "商城", "navigationBarTitleText": "商城",
"enablePullDownRefresh" : true "enablePullDownRefresh" : true,
"navigationBarBackgroundColor": "#ea4e2f"
} }

View File

@@ -21,9 +21,8 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad() {
wx.$api.video.videos().then(res => { wx.$api.video.videos().then(res => {
console.log(res)
this.setData({ this.setData({
videoList: res, videoList: res,
videoId: res[0].video_id videoId: res[0].video_id
@@ -41,7 +40,6 @@ Page({
rooms : res.list, rooms : res.list,
sysInfo : wx.getSystemInfoSync().safeArea sysInfo : wx.getSystemInfoSync().safeArea
}) })
console.log(this.data.sysInfo)
}) })
}, },

View File

@@ -22,7 +22,7 @@ Page({
key : 'newUser', key : 'newUser',
success : ()=>{ success : ()=>{
wx.getStorage({ wx.getStorage({
key : "storeId", key : "compayId",
success : ()=>{ success : ()=>{
wx.reLaunch({ wx.reLaunch({
url: "/pages/config/config", url: "/pages/config/config",

BIN
static/images/404.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB