Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 52ee4bd7
authored
Feb 16, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'dev_v4.16.0'
Develop See merge request
!16
2 parents
96d21fc8
ad035006
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
10 deletions
api/environment.js
app.json
tabIndex/pages/index/index.js
tabIndex/pages/index/index.wxss
api/environment.js
View file @
52ee4bd
...
...
@@ -14,7 +14,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
release
=
false
let
index
=
1
let
index
=
2
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
...
...
app.json
View file @
52ee4bd
...
...
@@ -45,12 +45,7 @@
"iconPath"
:
"images/tab-order.png"
,
"selectedIconPath"
:
"images/tab-order-active.png"
},
{
"pagePath"
:
"tabDate/pages/index/index"
,
"text"
:
"预约"
,
"iconPath"
:
"images/tab-date.png"
,
"selectedIconPath"
:
"images/tab-date-active.png"
},
{
"pagePath"
:
"tabMine/pages/index/index"
,
"text"
:
"我的"
,
...
...
tabIndex/pages/index/index.js
View file @
52ee4bd
...
...
@@ -440,7 +440,36 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{},
onReady
:
function
()
{
// debugger
const
accountInfo
=
wx
.
getAccountInfoSync
()
let
checklist
=
[]
switch
(
accountInfo
.
miniProgram
.
envVersion
)
{
case
'develop'
:
// checklist = ['15816539334']
checklist
=
[]
// this.globalData.url = 'http://192.168.0.252:3000/api'; //
break
case
'trial'
:
// index = manual ? index : 2
checklist
=
[
'15398879285'
,
'15816539334'
]
break
case
'release'
:
checklist
=
[
'18123663366'
,
'19557403672'
]
break
default
:
checklist
=
[
'18123663366'
,
'19557403672'
]
break
}
// 判断是不是特殊账号
let
{
menu
,
userInfo
}
=
this
.
data
if
(
checklist
.
includes
(
userInfo
?.
accountName
)
)
{
menu
=
menu
.
filter
(
e
=>
e
.
name
!=
'预约管理'
)
this
.
setData
({
menu
})
}
},
/**
* 生命周期函数--监听页面显示
...
...
tabIndex/pages/index/index.wxss
View file @
52ee4bd
...
...
@@ -46,9 +46,15 @@ page ::-webkit-scrollbar {
width: 100%;
height: 218rpx;
background-image: linear-gradient(166deg, #65b8f8 0%, #3582ee 100%);
display: grid;
display: flex;
align-items: center;
/* display: grid;
align-items: center;
grid-template-columns: repeat(4, 1fr);
grid-template-columns: repeat(4, 1fr); */
}
.menu .item {
flex: 1;
}
.menu .item {
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment