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
d385bc3e
Commit
d385bc3e
authored
Aug 17, 2023
by
hxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引导页文案优化,新用户登录弹窗
parent
25f8eedf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/components/common/SWQUserSelectTag.vue
+11
-3
No files found.
src/components/common/SWQUserSelectTag.vue
View file @
d385bc3e
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</div>
</div>
</div>
</div>
<div
class=
"confirm"
@
click=
"confirm"
>
<div
class=
"confirm"
@
click=
"confirm"
>
<p>
开启AI之旅
</p>
<p>
{{
tagId
!==
-
1
?
'开启AI之旅'
:
'请先选择您的身份'
}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -46,7 +46,7 @@ export default {
...
@@ -46,7 +46,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
show
:
false
,
show
:
false
,
tagId
:
""
,
tagId
:
-
1
,
list
:
[],
list
:
[],
}
}
},
},
...
@@ -62,7 +62,11 @@ export default {
...
@@ -62,7 +62,11 @@ export default {
}
}
this
.
getStatus
();
this
.
getStatus
();
},
},
mounted
()
{
},
onShow
()
{
if
(
wx
.
getStorageSync
(
'isThereALabelAgain'
))
{
this
.
getStatus
();
}
},
methods
:
{
methods
:
{
open
()
{
open
()
{
this
.
getTageList
();
this
.
getTageList
();
...
@@ -79,6 +83,8 @@ export default {
...
@@ -79,6 +83,8 @@ export default {
let
res
=
await
login
.
isThereALabel
();
let
res
=
await
login
.
isThereALabel
();
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
==
'false'
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
==
'false'
)
{
this
.
open
();
this
.
open
();
}
else
if
(
res
.
data
.
code
==
300
)
{
// 当前未登录
wx
.
setStorageSync
(
'isThereALabelAgain'
,
'true'
);
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -95,9 +101,11 @@ export default {
...
@@ -95,9 +101,11 @@ export default {
}
}
},
},
async
confirm
()
{
async
confirm
()
{
if
(
this
.
tagId
===
-
1
)
return
;
try
{
try
{
let
res
=
await
login
.
addCustomerRel
(
this
.
tagId
);
let
res
=
await
login
.
addCustomerRel
(
this
.
tagId
);
if
(
res
.
data
.
data
==
"true"
)
{
if
(
res
.
data
.
data
==
"true"
)
{
wx
.
removeStorageSync
(
'isThereALabelAgain'
);
this
.
close
();
this
.
close
();
}
else
{
}
else
{
wx
.
showToast
({
wx
.
showToast
({
...
...
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