Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
b2a220f1
Commit
b2a220f1
authored
Feb 21, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e99829d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
api.js
plugin/api.js
+16
-8
No files found.
plugin/api.js
View file @
b2a220f1
...
@@ -4,7 +4,7 @@ export default {
...
@@ -4,7 +4,7 @@ export default {
// Vue.prototype.host2 = "http://192.168.0.110:8200"
// Vue.prototype.host2 = "http://192.168.0.110:8200"
// Vue.prototype.host2 = "https://mallApi.oytour.com"
// Vue.prototype.host2 = "https://mallApi.oytour.com"
// Vue.prototype.host2 = "http://192.168.1.5:8088"
// Vue.prototype.host2 = "http://192.168.1.5:8088"
Vue
.
prototype
.
host2
=
"http://192.168.1.
48:8014
"
Vue
.
prototype
.
host2
=
"http://192.168.1.
27:8200
"
// Vue.prototype.host2 = "http://testmall.oytour.com/"
// Vue.prototype.host2 = "http://testmall.oytour.com/"
Vue
.
prototype
.
request
=
function
(
param
,
success
,
failed
)
{
Vue
.
prototype
.
request
=
function
(
param
,
success
,
failed
)
{
...
@@ -80,7 +80,8 @@ export default {
...
@@ -80,7 +80,8 @@ export default {
let
pid
=
uni
.
getStorageSync
(
"pid"
)
?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
;
let
pid
=
uni
.
getStorageSync
(
"pid"
)
?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
;
let
Up
=
uni
.
getStorageSync
(
"Up"
)
?
uni
.
getStorageSync
(
"Up"
).
Up
:
0
;
let
Up
=
uni
.
getStorageSync
(
"Up"
)
?
uni
.
getStorageSync
(
"Up"
).
Up
:
0
;
let
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)
?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
let
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)
?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
let
CounponPassword
=
uni
.
getStorageSync
(
"CounponPassword"
)
?
uni
.
getStorageSync
(
"CounponPassword"
).
CounponPassword
:
0
;
let
CounponPassword
=
uni
.
getStorageSync
(
"CounponPassword"
)
?
uni
.
getStorageSync
(
"CounponPassword"
).
CounponPassword
:
0
;
let
KeyWord
=
uni
.
getStorageSync
(
"KeyWord"
)
?
uni
.
getStorageSync
(
"KeyWord"
).
KeyWord
:
''
;
let
KeyWord
=
uni
.
getStorageSync
(
"KeyWord"
)
?
uni
.
getStorageSync
(
"KeyWord"
).
KeyWord
:
''
;
this
.
request2
({
this
.
request2
({
url
:
'/api/AppletLogin/Login'
,
url
:
'/api/AppletLogin/Login'
,
...
@@ -93,8 +94,8 @@ export default {
...
@@ -93,8 +94,8 @@ export default {
SuperiorId
:
pid
,
SuperiorId
:
pid
,
SmallShopId
:
SmallShopId
,
SmallShopId
:
SmallShopId
,
UserPageType
:
Up
,
UserPageType
:
Up
,
CounponPassword
:
CounponPassword
,
CounponPassword
:
CounponPassword
,
KeyWord
:
KeyWord
,
KeyWord
:
KeyWord
,
}
}
},
},
res
=>
{
res
=>
{
...
@@ -112,7 +113,7 @@ export default {
...
@@ -112,7 +113,7 @@ export default {
// 获取小程序APPID
// 获取小程序APPID
Vue
.
prototype
.
GetMiniAppId
=
function
()
{
Vue
.
prototype
.
GetMiniAppId
=
function
()
{
let
appObj
=
{};
let
appObj
=
{};
let
appType
=
6
;
let
appType
=
1
;
switch
(
appType
)
{
switch
(
appType
)
{
case
1
:
//赞羊
case
1
:
//赞羊
appObj
=
{
appObj
=
{
...
@@ -136,26 +137,33 @@ export default {
...
@@ -136,26 +137,33 @@ export default {
};
};
break
;
break
;
case
4
:
case
4
:
appObj
=
{
//郍田
appObj
=
{
//郍田
AppId
:
'wx1bf3a7c76b10bb6d'
,
AppId
:
'wx1bf3a7c76b10bb6d'
,
TenantId
:
16
,
TenantId
:
16
,
MallBaseId
:
6
,
MallBaseId
:
6
,
};
};
break
;
break
;
case
5
:
case
5
:
appObj
=
{
//惠爱
appObj
=
{
//惠爱
AppId
:
'wxcab2515c608644b9'
,
AppId
:
'wxcab2515c608644b9'
,
TenantId
:
17
,
TenantId
:
17
,
MallBaseId
:
7
,
MallBaseId
:
7
,
};
};
break
;
break
;
case
6
:
case
6
:
appObj
=
{
//甲鹤
appObj
=
{
//甲鹤
AppId
:
'wx38e054ee42b054f4'
,
AppId
:
'wx38e054ee42b054f4'
,
TenantId
:
15
,
TenantId
:
15
,
MallBaseId
:
5
,
MallBaseId
:
5
,
};
};
break
;
break
;
case
7
:
appObj
=
{
//韩国馆
AppId
:
'HK20210221'
,
TenantId
:
18
,
MallBaseId
:
8
,
};
break
;
}
}
return
appObj
;
return
appObj
;
}
}
...
...
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