[新增]企业店铺模块配置
This commit is contained in:
47
pages/config/config.js
Normal file
47
pages/config/config.js
Normal 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
3
pages/config/config.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
5
pages/config/config.wxml
Normal file
5
pages/config/config.wxml
Normal 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
1
pages/config/config.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/config/config.wxss */
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
短视频
|
||||
|
||||
<view class="videos-content">
|
||||
<swiperViode
|
||||
wx:if="{{videoList.length > 0}}"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
.videos-content{
|
||||
position: relative;
|
||||
height: 100vh;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 视频信息 */
|
||||
|
||||
Reference in New Issue
Block a user