Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mini_own
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
geruidan
mini_own
Commits
fec32546
Commit
fec32546
authored
Jul 14, 2023
by
geruidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择企业
parent
11eba3ac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
11 deletions
+17
-11
env.js
env.js
+2
-2
manifest.json
manifest.json
+2
-2
pages.json
pages.json
+5
-5
pages/index/defalutScreen.vue
pages/index/defalutScreen.vue
+8
-2
No files found.
env.js
View file @
fec32546
...
...
@@ -10,8 +10,8 @@ export const IMG_URL = 'http://file.shopro.top' //全局网络图片地址变量
export
const
MAP_KEY
=
'
426ebc3f1bbaced***89ee6061a98
'
;
//高德地图开发者Web服务key,逆坐标解析
export
const
HAS_LIVE
=
false
//后台是否开通直播权限,根据情况在manifest.json中,开启注释相应组件的引入,pages.json中打开直播
// http://172.18.1.66:9001/api/a1/mall/homePage/mp?code={前端传入的code}
export
const
MALL_ID
=
"
1
33507311100590
"
;
export
const
COMPANY_ID
=
""
;
export
const
MALL_ID
=
"
1
50076611100683
"
;
export
const
COMPANY_ID
=
"
2023053101
"
;
...
...
manifest.json
View file @
fec32546
...
...
@@ -54,9 +54,9 @@
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx
60c6530c49c52ff7
"
,
"appid"
:
"wx
b46902f9572bfa50
"
,
"setting"
:
{
"urlCheck"
:
fals
e
,
"urlCheck"
:
tru
e
,
"minified"
:
false
,
"es6"
:
false
,
"postcss"
:
true
...
...
pages.json
View file @
fec32546
...
...
@@ -152,11 +152,11 @@
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[
{
"name"
:
"defalutScreen"
,
//模式名称
"path"
:
"pages/index/defalutScreen"
,
//启动页面,必选
"query"
:
"companyId=999999998"
}
//
{
//
"name"
:
"defalutScreen"
,
//模式名称
//
"path"
:
"pages/index/defalutScreen"
,
//启动页面,必选
//
"query"
:
"companyId=999999998"
//
}
//
{
//
"name"
:
"register"
,
//模式名称
//
"path"
:
"pages/user/register/index"
,
//启动页面,必选
...
...
pages/index/defalutScreen.vue
View file @
fec32546
...
...
@@ -27,6 +27,9 @@
import
{
defalutBg
}
from
"
@/shopro/utils/config.js
"
;
import
{
COMPANY_ID
}
from
"
@/env
"
;
import
{
mapActions
,
mapGetters
...
...
@@ -169,12 +172,15 @@
},
onReady
()
{
wx
.
clearStorage
();
if
(
COMPANY_ID
){
//配置了COMPANY_ID用COMPANY_ID 。否则用router上的COMPANY_ID
this
.
companyId
=
COMPANY_ID
}
if
(
this
.
$Route
.
query
.
companyId
){
this
.
companyId
=
this
.
$Route
.
query
.
companyId
}
else
{
}
if
(
!
COMPANY_ID
&&
!
this
.
$Route
.
query
.
companyId
){
this
.
companyId
=
""
}
console
.
log
(
this
.
companyId
);
uni
.
setStorageSync
(
"
companyId
"
,
this
.
companyId
)
this
.
getAuth
();
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment