[新增]企业店铺模块配置

This commit is contained in:
唐明明
2020-12-29 16:34:10 +08:00
parent c34a1d6021
commit 67dd6e617a
12 changed files with 184 additions and 100 deletions

47
pages/config/config.js Normal file
View File

@@ -0,0 +1,47 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
*/
import { tabBar } from "../../lib/storeConfig"
import { mall, video, ticket, user } from "../../lib/tabBarData"
Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad(e) {
if (e.companyoid && e.companyoid == "") {
wx.showToast({
title: "参数错误缺少companyoId"
})
return
}
wx.$api.publics.storeConfig({
company_id: e.companyoid
}).then(res => {
let tabBarVal = res.concat({})
tabBarVal.forEach(res => {
switch (res.slug) {
case "video":
tabBar.push(video)
break;
case "mall":
tabBar.push(mall)
break;
case "ticket":
tabBar.push(ticket)
break;
default :
tabBar.push(user)
break;
}
})
wx.switchTab({
url: tabBar[0].pagePath
})
})
}
})

3
pages/config/config.json Normal file
View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

5
pages/config/config.wxml Normal file
View File

@@ -0,0 +1,5 @@
<view class="pack-center pages-loding">
<image src="/static/icons/loding.gif" mode="widthFix"></image>
<view>加载企业信息</view>
</view>

1
pages/config/config.wxss Normal file
View File

@@ -0,0 +1 @@
/* pages/config/config.wxss */

View File

@@ -1,3 +1,6 @@
短视频
<view class="videos-content">
<swiperViode
wx:if="{{videoList.length > 0}}"

View File

@@ -19,6 +19,7 @@
.videos-content{
position: relative;
height: 100vh;
display: none;
}
/* 视频信息 */