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
0b795cb9
Commit
0b795cb9
authored
Sep 24, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录的处理
parent
c8d5c290
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
index.vue
components/auth/index.vue
+2
-0
index.vue
pages/index/index.vue
+2
-0
user-center.vue
pages/user-center/user-center.vue
+2
-0
api.js
plugin/api.js
+5
-2
No files found.
components/auth/index.vue
View file @
0b795cb9
...
@@ -118,6 +118,7 @@ export default {
...
@@ -118,6 +118,7 @@ export default {
getLogin
(
obj
)
{
getLogin
(
obj
)
{
var
that
=
this
;
var
that
=
this
;
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
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
let
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
that
.
request2
(
that
.
request2
(
{
{
...
@@ -130,6 +131,7 @@ export default {
...
@@ -130,6 +131,7 @@ export default {
Moblie
:
''
,
Moblie
:
''
,
SuperiorId
:
pid
,
SuperiorId
:
pid
,
SmallShopId
:
SmallShopId
,
SmallShopId
:
SmallShopId
,
UserPageType
:
Up
,
}
}
},
},
res
=>
{
res
=>
{
...
...
pages/index/index.vue
View file @
0b795cb9
...
@@ -448,6 +448,7 @@ export default {
...
@@ -448,6 +448,7 @@ export default {
getLogin
(
obj
)
{
getLogin
(
obj
)
{
var
that
=
this
;
var
that
=
this
;
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
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)
let
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)
?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
:
0
;
...
@@ -462,6 +463,7 @@ export default {
...
@@ -462,6 +463,7 @@ export default {
Moblie
:
""
,
Moblie
:
""
,
SuperiorId
:
pid
,
SuperiorId
:
pid
,
SmallShopId
:
SmallShopId
,
SmallShopId
:
SmallShopId
,
UserPageType
:
Up
,
},
},
},
},
(
res
)
=>
{
(
res
)
=>
{
...
...
pages/user-center/user-center.vue
View file @
0b795cb9
...
@@ -340,6 +340,7 @@ export default {
...
@@ -340,6 +340,7 @@ export default {
getLogin
()
{
getLogin
()
{
var
that
=
this
;
var
that
=
this
;
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
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
let
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
that
.
request2
(
that
.
request2
(
{
{
...
@@ -352,6 +353,7 @@ export default {
...
@@ -352,6 +353,7 @@ export default {
Moblie
:
''
,
Moblie
:
''
,
SuperiorId
:
pid
,
SuperiorId
:
pid
,
SmallShopId
:
SmallShopId
,
SmallShopId
:
SmallShopId
,
UserPageType
:
Up
,
}
}
},
},
res
=>
{
res
=>
{
...
...
plugin/api.js
View file @
0b795cb9
...
@@ -3,8 +3,9 @@ export default {
...
@@ -3,8 +3,9 @@ export default {
Vue
.
prototype
.
host
=
"https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
Vue
.
prototype
.
host
=
"https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
// 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
=
"https://mallApi.oytour.com"
Vue
.
prototype
.
host2
=
"http://192.168.1.9:8088"
//Vue.prototype.host2 = "http://192.168.2.16:8088"
// Vue.prototype.host2 = "http://192.168.1.21"
// Vue.prototype.host2 = "http://192.168.1.27:8200"
Vue
.
prototype
.
request
=
function
(
param
,
success
,
failed
)
{
Vue
.
prototype
.
request
=
function
(
param
,
success
,
failed
)
{
//网络请求
//网络请求
uni
.
request
({
uni
.
request
({
...
@@ -86,6 +87,7 @@ export default {
...
@@ -86,6 +87,7 @@ export default {
// token失效再次登录接口
// token失效再次登录接口
Vue
.
prototype
.
getLogin_t
=
function
(
obj
)
{
Vue
.
prototype
.
getLogin_t
=
function
(
obj
)
{
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
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)
?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
let
SmallShopId
=
uni
.
getStorageSync
(
"SmallShopId"
)
?
uni
.
getStorageSync
(
"SmallShopId"
).
SmallShopId
:
0
;
this
.
request2
({
this
.
request2
({
url
:
'/api/AppletLogin/Login'
,
url
:
'/api/AppletLogin/Login'
,
...
@@ -97,6 +99,7 @@ export default {
...
@@ -97,6 +99,7 @@ export default {
Moblie
:
''
,
Moblie
:
''
,
SuperiorId
:
pid
,
SuperiorId
:
pid
,
SmallShopId
:
SmallShopId
,
SmallShopId
:
SmallShopId
,
UserPageType
:
Up
,
}
}
},
},
res
=>
{
res
=>
{
...
...
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