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
38363d46
Commit
38363d46
authored
May 09, 2022
by
刘奕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员信息卡片
parent
968efd00
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
0 deletions
+25
-0
src/api/memberInfo.js
+20
-0
src/components/basicTool/member-info/index.vue
+0
-0
src/pages/home/index.vue
+5
-0
static/images/qrcode.png
+0
-0
static/images/vip.png
+0
-0
No files found.
src/api/memberInfo.js
0 → 100644
View file @
38363d46
import
{
requestPOST
}
from
"@/utils/request.js"
;
export
default
{
// 获取个人资料
getUserInfo
()
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/user/get_user_info`
)
},
getV3PortalShopCard
()
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/user/portal_card`
);
},
// 判断是否开启积分商城
QueryIsOpen
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/integralMallProductGoods/getIsOpen`
,
{
data
})
},
getUnUseElectronicCard
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/redeemCode/getUnUseElectronicCard`
,
{
data
})
},
}
\ No newline at end of file
src/components/basicTool/member-info/index.vue
0 → 100644
View file @
38363d46
This diff is collapsed.
Click to expand it.
src/pages/home/index.vue
View file @
38363d46
...
...
@@ -102,6 +102,9 @@
<div
v-if=
"item.componentCode == 'rich-text' && item.componentInfo.visible == 1"
>
<rich-text
:datas=
"item"
></rich-text>
</div>
<div
v-if=
"item.componentCode == 'member-info' && item.componentInfo.visible == 1"
>
<member-info
:datas=
"item"
></member-info>
</div>
</div>
<bottomCont></bottomCont>
...
...
@@ -156,6 +159,7 @@ import NewUser from "../../components/newCustomer/newUser";
import
NewPolite
from
"../../components/newCustomer/newPolite"
;
import
customList
from
"../../components/custom-list"
;
import
richText
from
"../../components/basicTool/rich-text"
;
import
memberInfo
from
"../../components/basicTool/member-info"
;
import
{
setTabBarActive
,
checkTabbarPage
,
themeColor
,
checkShowConditionIds
}
from
"../../utils/mayi.js"
;
import
indexApi
from
"@/api/index.js"
;
import
{
throttle
,
concatUrl
}
from
"../../utils/index.js"
...
...
@@ -215,6 +219,7 @@ export default {
woTimeout
,
'custom-list'
:
customList
,
'rich-text'
:
richText
,
'member-info'
:
memberInfo
},
onShareAppMessage
(
res
)
{
let
{
shopCode
}
=
app
.
globalData
.
shopInfo
;
...
...
static/images/qrcode.png
0 → 100644
View file @
38363d46
11 KB
static/images/vip.png
0 → 100644
View file @
38363d46
1.71 KB
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