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
c90ddb01
Commit
c90ddb01
authored
May 09, 2025
by
geruidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.h5有一个友好提示正在授权,请稍候...2.康喜生鲜首页图更改去掉康喜生鲜
parent
77dd46a3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
18 deletions
+43
-18
env.js
env.js
+9
-6
manifest.json
manifest.json
+4
-4
md.md
md.md
+1
-1
pages/h5/auth.vue
pages/h5/auth.vue
+28
-6
shopro/utils/config.js
shopro/utils/config.js
+1
-1
No files found.
env.js
View file @
c90ddb01
...
...
@@ -11,16 +11,19 @@ export const MAP_KEY = '426ebc3f1bbaced***89ee6061a98'; //高德地图开发者W
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
=
"
120939311101327
"
;
//中会汇豪泰
export
const
COMPANY_ID
=
"
2025030401
"
;
export
const
APP_ID
=
"
wx60c6530c49c52ff7
"
;
//小程序APPID
export
const
APP_KEY
=
"
a20511dcfd6b07114afacbb482b2e7e0
"
;
//勿改
//
export const MALL_ID ="120939311101327"; //中会汇豪泰
//
export const COMPANY_ID ="2025030401";
//
export const APP_ID = "wx60c6530c49c52ff7"; //小程序APPID
//
export const APP_KEY = "a20511dcfd6b07114afacbb482b2e7e0"; //勿改
// export const MALL_ID ="189099911100589";
// export const COMPANY_ID ="2023062901";
// export const APP_ID = "wx91fa336def077983"; //小程序APPID
// export const APP_ID = "wx91fa336def077983"; //
zhonghui
小程序APPID
// export const APP_KEY = "a20511dcfd6b07114afacbb482b2e7e0"; //勿改
export
const
MALL_ID
=
"
150076611100683
"
;
export
const
COMPANY_ID
=
"
2023071003
"
;
export
const
APP_ID
=
"
wxb46902f9572bfa50
"
;
//zhonghui小程序APPID
export
const
APP_KEY
=
"
a20511dcfd6b07114afacbb482b2e7e0
"
;
//勿改
\ No newline at end of file
manifest.json
View file @
c90ddb01
...
...
@@ -54,12 +54,12 @@
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx
60c6530c49c52ff7
"
,
"appid"
:
"wx
b46902f9572bfa50
"
,
"setting"
:
{
"urlCheck"
:
tru
e
,
"minified"
:
fals
e
,
"urlCheck"
:
fals
e
,
"minified"
:
tru
e
,
"es6"
:
true
,
"postcss"
:
tru
e
,
"postcss"
:
fals
e
,
"ignoreDevUnusedFiles"
:
false
,
"ignoreUploadUnusedFiles"
:
false
},
...
...
md.md
View file @
c90ddb01
...
...
@@ -31,7 +31,7 @@ APPID: wx60c6530c49c52ff7
### 无步数商城小程序 :正式 中汇豪泰小程序
```
商城:189099911100589
企业:20230
328
企业:20230
62901
AppID:wx91fa336def077983
AppSecret: 7f2855a8ff743f1f295ecb9af07f5998
```
...
...
pages/h5/auth.vue
View file @
c90ddb01
<
template
>
<view
class=
""
>
<view
class=
"auth-container"
>
<view
class=
"auth-centered"
>
{{
tips
}}
</view>
</view>
</
template
>
...
...
@@ -31,7 +34,8 @@
appointPage
:
'
personalCenter
'
,
authCode
:
''
,
//authCode
h5Url
:
'
https://wx.zhonghuihaotai.com/webpage/wxdist/index.html#/
'
,
//传递参数1
backMiniProgram
:
''
//回退到小程序的参数
backMiniProgram
:
''
,
//回退到小程序的参数
tips
:
'
正在授权,请稍候...
'
,
}
},
...
...
@@ -45,13 +49,13 @@
this
.
butTips
=
"
请稍候...
"
this
.
butDis
=
true
if
(
this
.
unregistered
&&
!
this
.
loading
)
{
let
h5url
=
encodeURIComponent
(
this
.
h5Url
)
;
let
h5url
=
this
.
h5Url
;
uni
.
redirectTo
({
url
:
`
${
this
.
path
}
?h5Url=
${
h5url
}
&backMiniProgram=
${
this
.
backMiniProgram
}
`
})
}
else
{
this
.
tips
=
'
授权失败
'
uni
.
showToast
({
title
:
"
不允许
"
,
duration
:
2000
,
...
...
@@ -219,10 +223,14 @@
// uni.hideTabBar();
},
onReady
()
{
// this.authCode = this.$Route.query.authCode;
this
.
authCode
=
this
.
$Route
.
query
.
authCode
;
// this.backMiniProgram = this.$Route.query.backMiniProgram;
this
.
backMiniProgram
=
this
.
$Route
.
query
.
backMiniProgram
this
.
backMiniProgram
=
this
.
$Route
.
query
.
backMiniProgram
;
this
.
h5Url
=
this
.
$Route
.
query
.
h5Url
?
encodeURIComponent
(
this
.
$Route
.
query
.
h5Url
):
encodeURIComponent
(
"
https://wx.zhonghuihaotai.com/webpage/wxdist/index.html#/
"
);
//传递了h5url用传递的。否则默认
wx
.
clearStorage
();
if
(
COMPANY_ID
)
{
//配置了COMPANY_ID用COMPANY_ID 。否则用router上的COMPANY_ID
this
.
companyId
=
COMPANY_ID
...
...
@@ -254,6 +262,20 @@
</
script
>
<
style
lang=
"scss"
scoped
>
.auth-container
{
position
:
relative
;
height
:
100vh
;
}
.auth-centered
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
/* 使用 transform 调整 */
width
:
100%
;
text-align
:
center
;
color
:
#606266
;
}
.screen-container
{
// position: fixed;
position
:
absolute
;
...
...
shopro/utils/config.js
View file @
c90ddb01
...
...
@@ -5,7 +5,7 @@ let bgUrl = ""
if
(
MALL_ID
==
'
133309911100709
'
){
//康喜日鲜
bgUrl
=
"
https://img.zhonghuihaotai.com/file_20230711101314F7CCY.png
"
}
else
if
(
MALL_ID
==
'
150076611100683
'
){
//康喜生鲜
bgUrl
=
"
https://img.zhonghuihaotai.com/file_202
30711101151AaeuQ
.png
"
bgUrl
=
"
https://img.zhonghuihaotai.com/file_202
50509151333D8ZRJ
.png
"
}
else
{
//默认
bgUrl
=
"
https://img.zhonghuihaotai.com/file_2023071110404202WHI.png
"
}
...
...
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