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
38f0b348
Commit
38f0b348
authored
Mar 25, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打log
parent
6a02560f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
7 deletions
+31
-7
src/pages/contact/index.vue
+5
-5
src/pages/home/index.vue
+14
-0
src/pages/login/index.vue
+12
-2
No files found.
src/pages/contact/index.vue
View file @
38f0b348
<
template
>
<div
class=
"contact"
>
<div
class=
"contact-img"
>
<img
src=
"https://
mayi-newshop.oss-cn-shanghai.aliyuncs
.com/product/HCe2iRXHsP.png"
alt=
""
/>
<img
src=
"https://
cdn.mayi888
.com/product/HCe2iRXHsP.png"
alt=
""
/>
</div>
<div
class=
"btn-wrap"
v-if=
"defaultContact == true"
>
<button
open-type=
"contact"
@
contact=
"handleContact"
show-message-card
:send-message-title=
"wxConcatGoods.title"
:send-message-img=
"wxConcatGoods.img"
...
...
@@ -9,22 +9,22 @@
:session-from=
"sessionFrom"
>
<div
class=
"btn-main"
>
<div
class=
"main-img"
>
<img
src=
"
../../../static/images/wx
.png"
alt=
""
/>
<img
src=
"
http://cdn.mayi888.com/public/png/8782e194-b208-44d6-99c1-10935ce36e2f
.png"
alt=
""
/>
</div>
<div
class=
"main-text"
>
官方微信客服
</div>
</div>
<img
class=
"btn-next"
src=
"
../../../static/images/next
.png"
alt=
""
/>
<img
class=
"btn-next"
src=
"
http://cdn.mayi888.com/public/png/a054b29e-8929-415e-9017-dda875e25968
.png"
alt=
""
/>
</button>
</div>
<div
class=
"btn-wrap"
v-else-if=
"defaultContact == false"
@
click=
"myOpeChat"
>
<button>
<div
class=
"btn-main"
>
<div
class=
"main-img"
>
<img
src=
"
../../../static/images/wx
.png"
alt=
""
/>
<img
src=
"
http://cdn.mayi888.com/public/png/8782e194-b208-44d6-99c1-10935ce36e2f
.png"
alt=
""
/>
</div>
<div
class=
"main-text"
>
官方微信客服
</div>
</div>
<img
class=
"btn-next"
src=
"
../../../static/images/next
.png"
alt=
""
/>
<img
class=
"btn-next"
src=
"
http://cdn.mayi888.com/public/png/a054b29e-8929-415e-9017-dda875e25968
.png"
alt=
""
/>
</button>
</div>
</div>
...
...
src/pages/home/index.vue
View file @
38f0b348
...
...
@@ -355,6 +355,7 @@ export default {
that
.
showMyCard
=
res
;
})
//获取分销信息
log
.
info
(
wx
.
getStorageSync
(
"becomeInfo"
)?
JSON
.
parse
(
wx
.
getStorageSync
(
"becomeInfo"
)):
''
,
'becomeInfo--358'
)
this
.
getSpokesmanInit
(
wx
.
getStorageSync
(
"becomeInfo"
)?
JSON
.
parse
(
wx
.
getStorageSync
(
"becomeInfo"
)):
''
)
}
// 来源
...
...
@@ -622,6 +623,7 @@ export default {
log
.
info
(
extConfig
,
'getSpokesmanInit-extConfig'
);
//绑定上下级关系
app
.
fenxiaoModel
.
becomeRelation
(
extConfig
).
then
(
res
=>
{
log
.
info
(
'getSpokesmanInit调用becomeRelation'
)
log
.
info
(
res
,
'getSpokesmanInit-becomeRelation'
);
if
(
res
)
{
wx
.
removeStorage
({
...
...
@@ -630,6 +632,8 @@ export default {
}
//获取分销基本信息
this
.
getSpokesmanInfo
(
extConfig
)
}).
catch
(
res
=>
{
log
.
info
(
res
,
'becomeRelation-catch-636'
)
})
},
getSpokesmanInfo
(
extConfig
)
{
...
...
@@ -654,6 +658,7 @@ export default {
res
.
id
){
app
.
fenxiaoModel
.
getDistributorHomepage
(
res
).
then
(
ele
=>
{
log
.
info
(
ele
,
'getDistributorHomepage-661'
)
if
(
ele
.
id
)
{
this
.
getDistributorHomepageName
=
'我的小店'
;
}
else
{
...
...
@@ -908,10 +913,17 @@ export default {
// 不是冬奥会项目不调用此接口
if
(
wx
.
getStorageSync
(
"sessionid"
)
&&
this
.
$store
.
state
.
mixid
!=
'CL'
)
{
await
app
.
fenxiaoModel
.
getSpokesmanidByShare
().
then
(
data
=>
{
log
.
info
(
data
,
'onShareAppMessage-getSpokesmanidByShare'
)
log
.
info
(
'onShareAppMessage-getSpokesmanidByShare-917'
)
hasInvitationStatus
=
data
.
hasInvitationStatus
;
}).
catch
(
res
=>
{
log
.
info
(
res
,
'getSpokesmanidByShare-catch-920'
)
})
log
.
info
(
hasInvitationStatus
,
'onShareAppMessage-hasInvitationStatus'
)
await
app
.
fenxiaoModel
.
getSpokesmanInfo
().
then
(
data
=>
{
log
.
info
(
'onShareAppMessage调用getSpokesmanInfo'
)
let
newData
=
{}
log
.
info
(
data
,
'getSpokesmanInfo.data'
)
if
(
data
!=
null
)
{
if
(
hasInvitationStatus
==
1
)
{
newData
=
{
...
...
@@ -927,6 +939,8 @@ export default {
}
}
newHref
=
concatUrl
(
newHref
,
newData
)
}).
catch
(
res
=>
{
log
.
info
(
res
,
'getSpokesmanInfo-catch-943'
)
})
}
let
imageUrl
=
''
;
...
...
src/pages/login/index.vue
View file @
38f0b348
...
...
@@ -376,14 +376,18 @@ export default {
pushPageType
(){
//绑定上下级关系
log
.
info
(
this
.
scene
,
'this.scene===='
,
this
.
backPath
)
log
.
info
(
wx
.
getStorageSync
(
"becomeInfo"
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
"becomeInfo"
)):
''
,
'pushPageType-getStorageSync-becomeInfo'
)
log
.
info
(
wx
.
getStorageSync
(
"becomeInfo"
),
'pushPageType-getStorageSync-becomeInfo'
)
app
.
fenxiaoModel
.
becomeRelation
(
wx
.
getStorageSync
(
"becomeInfo"
)?
JSON
.
parse
(
wx
.
getStorageSync
(
"becomeInfo"
)):
''
).
then
(
res
=>
{
log
.
info
(
'pushPageType调用becomeRelation-381'
)
log
.
info
(
res
,
'pushPageType-becomeRelation'
)
if
(
res
)
{
wx
.
removeStorage
({
key
:
"becomeInfo"
});
}
}).
catch
(
res
=>
{
log
.
info
(
'becomeRelation-catch-389'
)
log
.
info
(
res
,
'becomeRelation-catch-390'
)
})
let
parseLink
=
decodeURIComponent
(
this
.
backPath
);
...
...
@@ -431,6 +435,7 @@ export default {
}
},
getPhoneNumber
(
e
)
{
log
.
info
(
'点击微信一键绑定手机号'
);
if
(
this
.
content
&&!
this
.
checked
)
{
wx
.
showToast
({
title
:
'您还未同意协议'
,
...
...
@@ -461,6 +466,7 @@ export default {
});
},
bindUser
()
{
log
.
info
(
'进入bindUser方法-469'
)
wx
.
showLoading
({
title
:
'绑定中...'
,
mask
:
true
...
...
@@ -482,12 +488,16 @@ export default {
customerSourceType
:
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
"articleId"
)?
8
:
''
,
customerSourceId
:
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
"articleId"
)
||
''
};
log
.
info
(
query
,
'bindUser-query-491'
)
log
.
info
(
this
.
$store
.
state
.
spokesmanGroupId
,
'bindUser-spokesmanGroupId'
)
log
.
info
(
this
.
$store
.
state
.
spokesmanRelId
,
'bindUser-spokesmanRelId'
)
log
.
info
(
this
.
$store
.
state
.
spokesmanShopId
,
'bindUser-spokesmanShopId'
)
if
(
this
.
$store
.
state
.
spokesmanGroupId
!=
""
)
{
query
.
spokesmanRelId
=
this
.
$store
.
state
.
spokesmanRelId
;
query
.
spokesmanGroupId
=
this
.
$store
.
state
.
spokesmanGroupId
;
query
.
spokesmanShopId
=
this
.
$store
.
state
.
spokesmanShopId
;
}
log
.
info
(
query
,
'bindUser-query-500'
)
login
.
bindUser
(
query
)
.
then
(
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