Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
9cc1b989
Commit
9cc1b989
authored
Dec 26, 2019
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jj test
parent
f056857c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
config/dev.env.js
+1
-1
src/pages/address/index.vue
+6
-1
src/pages/index/index.vue
+2
-1
No files found.
config/dev.env.js
View file @
9cc1b989
...
@@ -2,7 +2,7 @@ var merge = require('webpack-merge')
...
@@ -2,7 +2,7 @@ var merge = require('webpack-merge')
var
prodEnv
=
require
(
'./prod.env'
)
var
prodEnv
=
require
(
'./prod.env'
)
module
.
exports
=
merge
(
prodEnv
,
{
module
.
exports
=
merge
(
prodEnv
,
{
//zjgyl
SHOP_MIXID
:
"'zjgyl'"
,
SHOP_MIXID
:
"'zjgyl'"
,
NODE_ENV
:
'"development"'
,
NODE_ENV
:
'"development"'
,
BASE_URL
:
"'https://shop.mayi888.com'"
,
BASE_URL
:
"'https://shop.mayi888.com'"
,
...
...
src/pages/address/index.vue
View file @
9cc1b989
<
template
>
<
template
>
<div
class=
"domain"
>
<div
class=
"domain"
>
获取微信地址
获取微信地址
{{
address
}}
--111
</div>
</div>
</
template
>
</
template
>
...
@@ -10,6 +10,7 @@ import addres from "@/api/userAddress";
...
@@ -10,6 +10,7 @@ import addres from "@/api/userAddress";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
address
:
wx
.
getStorageSync
(
'sessionid'
),
options
:
""
,
options
:
""
,
weChatInfo
:
""
,
weChatInfo
:
""
,
userAddressReq
:
{
userAddressReq
:
{
...
@@ -36,6 +37,7 @@ export default {
...
@@ -36,6 +37,7 @@ export default {
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
console
.
log
(
'token'
,
this
.
address
);
this
.
options
=
options
;
this
.
options
=
options
;
let
that
=
this
;
let
that
=
this
;
wx
.
chooseAddress
({
wx
.
chooseAddress
({
...
@@ -110,8 +112,11 @@ export default {
...
@@ -110,8 +112,11 @@ export default {
});
});
},
200
);
},
200
);
}
else
{
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
}
}
});
});
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
}
}
});
});
}
}
...
...
src/pages/index/index.vue
View file @
9cc1b989
...
@@ -17,6 +17,7 @@ export default {
...
@@ -17,6 +17,7 @@ export default {
link
:
this
.
baseUrl
,
link
:
this
.
baseUrl
,
page
:
"/"
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
shopId
,
params
:
"?mixid="
+
this
.
shopId
,
userInfo
:
{
userInfo
:
{
nickName
:
"mpvue"
,
nickName
:
"mpvue"
,
avatarUrl
:
"http://mpvue.com/assets/logo.png"
avatarUrl
:
"http://mpvue.com/assets/logo.png"
...
@@ -96,7 +97,7 @@ export default {
...
@@ -96,7 +97,7 @@ export default {
console
.
log
(
"url"
,
this
.
link
+
this
.
page
+
this
.
params
);
console
.
log
(
"url"
,
this
.
link
+
this
.
page
+
this
.
params
);
this
.
getSpokesman
();
this
.
getSpokesman
();
},
},
components
:
{
components
:
{
// card
// card
},
},
methods
:
{
methods
:
{
...
...
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