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
0757ec43
Commit
0757ec43
authored
Sep 15, 2023
by
geruidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改load
parent
f3fd7c86
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
20 deletions
+32
-20
env.js
env.js
+3
-4
manifest.json
manifest.json
+2
-2
pages/index/defalutScreen.vue
pages/index/defalutScreen.vue
+3
-4
shopro/store/modules/privacy.js
shopro/store/modules/privacy.js
+24
-10
No files found.
env.js
View file @
0757ec43
...
...
@@ -10,9 +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
59339311100563
"
;
export
const
COMPANY_ID
=
"
000007
30
"
;
export
const
APP_ID
=
"
wx
a8257c2ee2213e3
e
"
;
//小程序APPID
export
const
MALL_ID
=
"
1
79480211100680
"
;
export
const
COMPANY_ID
=
"
000007
75
"
;
export
const
APP_ID
=
"
wx
ebbbc2cc63e9d74
e
"
;
//小程序APPID
export
const
APP_KEY
=
"
a20511dcfd6b07114afacbb482b2e7e0
"
;
//勿改
\ No newline at end of file
manifest.json
View file @
0757ec43
...
...
@@ -54,9 +54,9 @@
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx
a8257c2ee2213e3
e"
,
"appid"
:
"wx
ebbbc2cc63e9d74
e"
,
"setting"
:
{
"urlCheck"
:
fals
e
,
"urlCheck"
:
tru
e
,
"minified"
:
true
,
"es6"
:
true
,
"postcss"
:
false
...
...
pages/index/defalutScreen.vue
View file @
0757ec43
...
...
@@ -3,14 +3,13 @@
<view
class=
"load"
>
<u-loading-page
loading-color=
"#61b077"
color=
"#61b077"
:loading=
"loading"
></u-loading-page>
</view>
<view
class=
"screen-container"
v-show=
"!loading"
>
<view
class=
"screen-container"
>
<!-- 康喜日鲜 -->
<image
class=
"bg"
:src=
"defalutBg"
mode=
"scaleToFill"
/>
<!-- 康喜生鲜 -->
<!--
<image
class=
"bg"
src=
"https://img.zhonghuihaotai.com/file_20230711101151AaeuQ.png"
mode=
"scaleToFill"
/>
-->
<!-- :disabled="loading" -->
<button
@
click=
"enter"
:disabled=
"butDis"
class=
"btn"
>
{{
butTips
}}
<button
@
click=
"enter"
:disabled=
"loading"
class=
"btn"
>
{{
loading
?
'
请稍等...
'
:
'
马上进入
'
}}
</button>
</view>
<sh-privacy></sh-privacy>
...
...
shopro/store/modules/privacy.js
View file @
0757ec43
...
...
@@ -27,23 +27,37 @@ const mutations = {
getPrivacySetting
(
state
)
{
wx
.
getPrivacySetting
({
success
(
res
)
{
console
.
log
(
'
是否需要授权:
'
,
res
.
needAuthorization
,
'
隐私协议的名称为:
'
,
res
.
privacyContractName
);
if
(
res
.
needAuthorization
)
{
state
.
showPrivacy
=
true
}
else
{
state
.
showPrivacy
=
false
console
.
log
(
wx
.
getPrivacySetting
)
if
(
wx
.
getPrivacySetting
){
wx
.
getPrivacySetting
({
success
(
res
)
{
console
.
log
(
'
是否需要授权:
'
,
res
.
needAuthorization
,
'
隐私协议的名称为:
'
,
res
.
privacyContractName
);
if
(
res
.
needAuthorization
)
{
state
.
showPrivacy
=
true
}
else
{
state
.
showPrivacy
=
false
}
}
}
})
})
}
else
{
uni
.
showToast
({
title
:
"
当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。
"
,
duration
:
2000
,
icon
:
'
none
'
});
}
},
// 打开协议文章
openPrivacyContract
()
{
wx
.
openPrivacyContract
({
success
:
()
=>
{},
// 打开成功
fail
:
()
=>
{
this
.
$u
.
toast
(
"
遇到错误
"
);
uni
.
showToast
({
title
:
"
遇到错误
"
,
duration
:
2000
,
icon
:
'
none
'
});
}
})
},
...
...
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