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
f4a363b6
Commit
f4a363b6
authored
Mar 29, 2023
by
小耗子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享
parent
3d78f3e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
7 deletions
+27
-7
env.js
env.js
+4
-2
pages/h5/index.vue
pages/h5/index.vue
+8
-2
pages/index/defalutScreen.vue
pages/index/defalutScreen.vue
+7
-0
shopro/store/modules/user.js
shopro/store/modules/user.js
+8
-3
No files found.
env.js
View file @
f4a363b6
...
...
@@ -3,10 +3,12 @@
*/
// export const BASE_URL = 'http://172.18.0.229:9001' //后台根域名 https://demo.shopro.top
export
const
BASE_URL
=
'
https://wx
cs
.zhonghuihaotai.com
'
//后台根域名 https://demo.shopro.top
export
const
BASE_URL
=
'
https://wx.zhonghuihaotai.com
'
//后台根域名 https://demo.shopro.top
// export const BASE_URL = 'https://wxcs.zhonghuihaotai.com' //后台根域名 https://demo.shopro.top
export
const
API_URL
=
`
${
BASE_URL
}
/api/a1/`
//后台接口域名
export
const
IMG_URL
=
'
http://file.shopro.top
'
//全局网络图片地址变量,css背景图片地址变量在uni.scss
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}
\ No newline at end of file
// http://172.18.1.66:9001/api/a1/mall/homePage/mp?code={前端传入的code}
export
const
MALL_ID
=
"
189099911100589
"
;
export
const
COMPANY_ID
=
"
20230328
"
;
pages/h5/index.vue
View file @
f4a363b6
...
...
@@ -6,6 +6,12 @@
<
script
>
import
http
from
'
@/shopro/request/index
'
;
import
{
BASE_URL
,
MALL_ID
,
COMPANY_ID
}
from
"
@/env
"
;
export
default
{
data
()
{
return
{
...
...
@@ -28,8 +34,8 @@
if
(
!
res
.
code
&&
res
.
data
)
{
let
code
=
res
.
data
.
sfCode
;
let
time
=
new
Date
().
getTime
();
this
.
webUrl
=
`
https://wxcs.zhonghuihaotai.com/webpage/wxdist/index.html#/
${
this
.
appointPage
?
this
.
appointPage
:
""
}
?mallId=119583623123146&companyId=625
&time=
${
time
}
&sfCode=
${
code
}
&authMode=force`
// this.webUrl = `https://wxcs.zhonghuihaotai.com/webpage/wxdist/index.html#/?mallId=106975910000477&companyId=999999998&time=${time}&sfCode=${code}`
this
.
webUrl
=
`
${
BASE_URL
}
/webpage/wxdist/index.html#/
${
this
.
appointPage
?
this
.
appointPage
:
""
}
?mallId=
${
MALL_ID
}
&companyId=
${
COMPANY_ID
}
&time=
${
time
}
&sfCode=
${
code
}
&authMode=force`
console
.
log
(
this
.
webUrl
)
console
.
log
(
this
.
webUrl
)
}
})
...
...
pages/index/defalutScreen.vue
View file @
f4a363b6
...
...
@@ -135,7 +135,14 @@
},
onReady
()
{
this
.
getAuth
();
},
onShareAppMessage
(
res
){
return
{
// title: '微信步数',
path
:
'
pages/index/defalutScreen
'
}
}
}
</
script
>
...
...
shopro/store/modules/user.js
View file @
f4a363b6
// 用户数据模块
import
http
from
'
@/shopro/request/index
'
import
api
from
"
@/shopro/request/index
"
;
import
{
MALL_ID
,
COMPANY_ID
}
from
"
@/env
"
;
const
state
=
{
mallId
:
'
119583623123146
'
,
mallId
:
MALL_ID
,
sessionkey
:
uni
.
getStorageSync
(
"
sessionkey
"
)
||
""
,
userInfo
:
{},
registerInfo
:
{
//注册信息
companyId
:
'
625
'
,
//开放式传
companyId
:
COMPANY_ID
,
//开放式传
mobile
:
''
,
//封闭式传
empcardno
:
''
,
//封闭式传
registerType
:
'
register
'
//注册时的类型为普通注册
...
...
@@ -104,7 +109,7 @@ const actions = {
duration
:
2000
,
icon
:
'
none
'
});
re
solve
(
res
.
code
)
re
ject
(
res
.
code
)
}
});
})
...
...
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