mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 13:09:38 +08:00
1
This commit is contained in:
parent
4a0909bb7f
commit
f2de81dfdb
@ -67,12 +67,6 @@
|
|||||||
"selectedIconPath": "/images/tabbar/home-select.png",
|
"selectedIconPath": "/images/tabbar/home-select.png",
|
||||||
"text": "首页"
|
"text": "首页"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"pagePath": "pages/parkRepair/parkRepair",
|
|
||||||
"iconPath": "/images/tabbar/openDoor.png",
|
|
||||||
"selectedIconPath": "/images/tabbar/openDoor.png",
|
|
||||||
"text": "开门"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"pagePath": "pages/my/my",
|
"pagePath": "pages/my/my",
|
||||||
"iconPath": "/images/tabbar/my.png",
|
"iconPath": "/images/tabbar/my.png",
|
||||||
|
@ -12,6 +12,10 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
// 页面初始化 options为页面跳转所带来的参数
|
||||||
|
wx.setNavigationBarTitle({
|
||||||
|
title: options.name
|
||||||
|
})
|
||||||
switch (options.name) {
|
switch (options.name) {
|
||||||
case "项目入孵":
|
case "项目入孵":
|
||||||
this.setData({
|
this.setData({
|
||||||
|
@ -10,6 +10,12 @@ Page({
|
|||||||
homelist: [],
|
homelist: [],
|
||||||
IMG_NAME: app.IMG_NAME
|
IMG_NAME: app.IMG_NAME
|
||||||
},
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
// 页面初始化 options为页面跳转所带来的参数
|
||||||
|
wx.setNavigationBarTitle({
|
||||||
|
title: options.name
|
||||||
|
})
|
||||||
|
},
|
||||||
onShow(e) {
|
onShow(e) {
|
||||||
let that = this
|
let that = this
|
||||||
// wx.setStorageSync('token', '535e73059d2f4301b78d05326e1a55d8')
|
// wx.setStorageSync('token', '535e73059d2f4301b78d05326e1a55d8')
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {},
|
"usingComponents": {}
|
||||||
"navigationBarTitleText": "活动"
|
|
||||||
}
|
}
|
@ -4,6 +4,13 @@ Page({
|
|||||||
currentTab: 0
|
currentTab: 0
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onLoad(options) {
|
||||||
|
// 页面初始化 options为页面跳转所带来的参数
|
||||||
|
wx.setNavigationBarTitle({
|
||||||
|
title: options.name
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
@ -33,7 +40,7 @@ Page({
|
|||||||
},
|
},
|
||||||
|
|
||||||
//滑动切换
|
//滑动切换
|
||||||
swiperTab (e) {
|
swiperTab(e) {
|
||||||
var that = this
|
var that = this
|
||||||
that.setData({
|
that.setData({
|
||||||
currentTab: e.detail.current
|
currentTab: e.detail.current
|
||||||
@ -42,7 +49,7 @@ Page({
|
|||||||
},
|
},
|
||||||
|
|
||||||
//点击切换
|
//点击切换
|
||||||
clickTab (e) {
|
clickTab(e) {
|
||||||
var that = this
|
var that = this
|
||||||
if (this.data.currentTab === e.target.dataset.current) {
|
if (this.data.currentTab === e.target.dataset.current) {
|
||||||
return false
|
return false
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {},
|
"usingComponents": {}
|
||||||
"navigationBarTitleText": "园区建议"
|
|
||||||
}
|
}
|
@ -39,52 +39,52 @@ Page({
|
|||||||
bannerList: [{
|
bannerList: [{
|
||||||
bannerImg: ''
|
bannerImg: ''
|
||||||
}],
|
}],
|
||||||
menuList: [{
|
menuList: [
|
||||||
name: "创业活动",
|
// {
|
||||||
img: "/images/hicon/chuangyehuodong.png",
|
// name: "创业活动",
|
||||||
path: "/pages/community/community"
|
// img: "/images/hicon/chuangyehuodong.png",
|
||||||
},
|
// path: "/pages/community/community"
|
||||||
{
|
// },
|
||||||
name: "政策信息",
|
// {
|
||||||
img: "/images/hicon/zhengcexinxi.png",
|
// name: "政策信息",
|
||||||
path: "/pages/notice/notice"
|
// img: "/images/hicon/zhengcexinxi.png",
|
||||||
},
|
// path: "/pages/notice/notice"
|
||||||
{
|
// },
|
||||||
name: "党建园地",
|
// {
|
||||||
img: "/images/hicon/zhaozhengce.png",
|
// name: "党建园地",
|
||||||
//img: "/images/hicon/yuanqugonggao.png",
|
// img: "/images/hicon/zhaozhengce.png",
|
||||||
path: "/pages/party/party"
|
// path: "/pages/party/party"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "租办公室",
|
// name: "租办公室",
|
||||||
img: "/images/hicon/zubangongshi.png",
|
// img: "/images/hicon/zubangongshi.png",
|
||||||
path: "/pages/office/office"
|
// path: "/pages/office/office"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "项目入孵",
|
// name: "项目入孵",
|
||||||
img: "/images/hicon/xiangmurufu.png",
|
// img: "/images/hicon/xiangmurufu.png",
|
||||||
path: "/pages/applyType/applyType"
|
// path: "/pages/applyType/applyType"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "企业入驻",
|
// name: "企业入驻",
|
||||||
img: "/images/hicon/qiyeruzhu.png",
|
// img: "/images/hicon/qiyeruzhu.png",
|
||||||
path: "/pages/applyType/applyType"
|
// path: "/pages/applyType/applyType"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "厂房申请",
|
// name: "厂房申请",
|
||||||
img: "/images/hicon/qianrushenqing.png",
|
// img: "/images/hicon/qianrushenqing.png",
|
||||||
path: "/pages/applyType/applyType"
|
// path: "/pages/applyType/applyType"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "园区建议",
|
// name: "园区建议",
|
||||||
img: "/images/hicon/yuanqujianyi.png",
|
// img: "/images/hicon/yuanqujianyi.png",
|
||||||
path: "/pages/complaint/complaint"
|
// path: "/pages/complaint/complaint"
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "商业计划书",
|
// name: "商业计划书",
|
||||||
img: "/images/hicon/wenjuandiaocha.png",
|
// img: "/images/hicon/wenjuandiaocha.png",
|
||||||
path: "/pages/outer/outer"
|
// path: "/pages/outer/outer"
|
||||||
},
|
// },
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
name: "园区报修",
|
name: "园区报修",
|
||||||
@ -97,6 +97,51 @@ Page({
|
|||||||
img: "/profile/static/index/menu-hyyy.png",
|
img: "/profile/static/index/menu-hyyy.png",
|
||||||
path: ""
|
path: ""
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "预约记录",
|
||||||
|
img: "/profile/static/index/menu-yyjl.png",
|
||||||
|
path: ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "访客邀约",
|
||||||
|
img: "/profile/static/index/menu-fkyy.png",
|
||||||
|
path: ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "远程门禁",
|
||||||
|
img: "/profile/static/index/menu-ycmj.png",
|
||||||
|
path: ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "报修服务",
|
||||||
|
img: "/profile/static/index/menu-bxfw.png",
|
||||||
|
path: "/pages/parkRepair/parkRepair"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "投诉建议",
|
||||||
|
img: "/profile/static/index/menu-tsjy.png",
|
||||||
|
path: "/pages/complaint/complaint"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "社区活动",
|
||||||
|
img: "/profile/static/index/menu-sqhd.png",
|
||||||
|
path: "/pages/community/community"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "政策中心",
|
||||||
|
img: "/profile/static/index/menu-zczx.png",
|
||||||
|
path: "/pages/notice/notice"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "入住申请",
|
||||||
|
img: "/profile/static/index/menu-rzsq.png",
|
||||||
|
path: "/pages/applyType/applyType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "展厅预约",
|
||||||
|
img: "/profile/static/index/menu-ztyy.png",
|
||||||
|
path: ""
|
||||||
|
},
|
||||||
],
|
],
|
||||||
homelist: [],
|
homelist: [],
|
||||||
background: [{
|
background: [{
|
||||||
@ -171,15 +216,9 @@ Page({
|
|||||||
navapply(e) {
|
navapply(e) {
|
||||||
if (wx.getStorageSync('token')) {
|
if (wx.getStorageSync('token')) {
|
||||||
if (e.currentTarget.dataset.path) {
|
if (e.currentTarget.dataset.path) {
|
||||||
if (e.currentTarget.dataset.path == '/pages/parkRepair/parkRepair') {
|
|
||||||
wx.switchTab({
|
|
||||||
url: e.currentTarget.dataset.path,
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: e.currentTarget.dataset.path + '?name=' + e.currentTarget.dataset.name,
|
url: e.currentTarget.dataset.path + '?name=' + e.currentTarget.dataset.name,
|
||||||
})
|
})
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
content: '模块暂未开放,敬请期待',
|
content: '模块暂未开放,敬请期待',
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<view class="fixed">
|
<view class="fixed">
|
||||||
<view class="fixedbox" wx:for='{{menuList}}' wx:key='index' data-path="{{item.path}}" data-name="{{item.name}}" bindtap="navapply">
|
<view class="fixedbox" wx:for='{{menuList}}' wx:key='index' data-path="{{item.path}}" data-name="{{item.name}}" bindtap="navapply">
|
||||||
<image class="menuImg" src="{{IMG_NAME + item.img}}"></image>
|
<image class="menuImg" src="{{IMG_NAME + item.img}}"></image>
|
||||||
<view style="font-size:26rpx;margin-top:18rpx;">{{item.name}}</view>
|
<view class="menuTitle">{{item.name}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ page {
|
|||||||
|
|
||||||
.fixed {
|
.fixed {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 0 30rpx 40rpx 30rpx;
|
padding: 0 30rpx 240rpx 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
/* border-radius: 20rpx; */
|
/* border-radius: 20rpx; */
|
||||||
@ -130,4 +130,10 @@ page {
|
|||||||
.menuImg{
|
.menuImg{
|
||||||
width: 132rpx;
|
width: 132rpx;
|
||||||
height: 134rpx;
|
height: 134rpx;
|
||||||
|
margin-left: 15rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuTitle{
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #646466;
|
||||||
}
|
}
|
@ -9,7 +9,11 @@ Page({
|
|||||||
interval: 3000,
|
interval: 3000,
|
||||||
duration: 1000,
|
duration: 1000,
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
|
// 页面初始化 options为页面跳转所带来的参数
|
||||||
|
wx.setNavigationBarTitle({
|
||||||
|
title: options.name
|
||||||
|
})
|
||||||
let that = this
|
let that = this
|
||||||
app.AjaxRequest('get', {
|
app.AjaxRequest('get', {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {},
|
"usingComponents": {}
|
||||||
"navigationBarTitleText": "园区公告"
|
|
||||||
}
|
}
|
@ -5,9 +5,11 @@ Page({
|
|||||||
repairList: []
|
repairList: []
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad: function (options) {
|
onLoad(options) {
|
||||||
// 页面初始化 options为页面跳转所带来的参数
|
// 页面初始化 options为页面跳转所带来的参数
|
||||||
|
wx.setNavigationBarTitle({
|
||||||
|
title: options.name
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {},
|
"usingComponents": {}
|
||||||
"navigationBarTitleText": "园区报修"
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user