Commit 38363d46 by 刘奕

会员信息卡片

parent 968efd00
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
...@@ -102,6 +102,9 @@ ...@@ -102,6 +102,9 @@
<div v-if="item.componentCode == 'rich-text' && item.componentInfo.visible == 1"> <div v-if="item.componentCode == 'rich-text' && item.componentInfo.visible == 1">
<rich-text :datas="item"></rich-text> <rich-text :datas="item"></rich-text>
</div> </div>
<div v-if="item.componentCode == 'member-info' && item.componentInfo.visible == 1">
<member-info :datas="item"></member-info>
</div>
</div> </div>
<bottomCont></bottomCont> <bottomCont></bottomCont>
...@@ -156,6 +159,7 @@ import NewUser from "../../components/newCustomer/newUser"; ...@@ -156,6 +159,7 @@ import NewUser from "../../components/newCustomer/newUser";
import NewPolite from "../../components/newCustomer/newPolite"; import NewPolite from "../../components/newCustomer/newPolite";
import customList from "../../components/custom-list"; import customList from "../../components/custom-list";
import richText from "../../components/basicTool/rich-text"; import richText from "../../components/basicTool/rich-text";
import memberInfo from "../../components/basicTool/member-info";
import { setTabBarActive, checkTabbarPage,themeColor, checkShowConditionIds } from "../../utils/mayi.js"; import { setTabBarActive, checkTabbarPage,themeColor, checkShowConditionIds } from "../../utils/mayi.js";
import indexApi from "@/api/index.js"; import indexApi from "@/api/index.js";
import { throttle, concatUrl } from "../../utils/index.js" import { throttle, concatUrl } from "../../utils/index.js"
...@@ -215,6 +219,7 @@ export default { ...@@ -215,6 +219,7 @@ export default {
woTimeout, woTimeout,
'custom-list':customList, 'custom-list':customList,
'rich-text':richText, 'rich-text':richText,
'member-info':memberInfo
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
let {shopCode} = app.globalData.shopInfo; let {shopCode} = app.globalData.shopInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment