diff --git a/components.d.ts b/components.d.ts index 86eb65c..2ab82a2 100644 --- a/components.d.ts +++ b/components.d.ts @@ -14,15 +14,27 @@ declare module '@vue/runtime-core' { UserHeader: typeof import('./src/components/UserHeader.vue')['default'] VanButton: typeof import('vant/es')['Button'] VanCellGroup: typeof import('vant/es')['CellGroup'] + VanCollapse: typeof import('vant/es')['Collapse'] + VanCollapseItem: typeof import('vant/es')['CollapseItem'] + VanDatePicker: typeof import('vant/es')['DatePicker'] VanDialog: typeof import('vant/es')['Dialog'] VanField: typeof import('vant/es')['Field'] + VanForm: typeof import('vant/es')['Form'] VanGrid: typeof import('vant/es')['Grid'] VanGridItem: typeof import('vant/es')['GridItem'] VanIcon: typeof import('vant/es')['Icon'] + VanList: typeof import('vant/es')['List'] + VanNavBar: typeof import('vant/es')['NavBar'] VanOverlay: typeof import('vant/es')['Overlay'] + VanPicker: typeof import('vant/es')['Picker'] VanPopover: typeof import('vant/es')['Popover'] + VanPopup: typeof import('vant/es')['Popup'] + VanPullRefresh: typeof import('vant/es')['PullRefresh'] + VanRadio: typeof import('vant/es')['Radio'] + VanRadioGroup: typeof import('vant/es')['RadioGroup'] VanSwipe: typeof import('vant/es')['Swipe'] VanSwipeItem: typeof import('vant/es')['SwipeItem'] + VanSwitch: typeof import('vant/es')['Switch'] VanTab: typeof import('vant/es')['Tab'] VanTabs: typeof import('vant/es')['Tabs'] VanUploader: typeof import('vant/es')['Uploader'] diff --git a/src/pages/My/Index.vue b/src/pages/My/Index.vue index edb7679..721d527 100644 --- a/src/pages/My/Index.vue +++ b/src/pages/My/Index.vue @@ -1,29 +1,29 @@ - - - - - - - + + + + + + + + + + + {{ userInfo.line_name }} + {{ userInfo.is_validated ? 'Slash會員[可分銷]' : '一般會員[不可分銷]' }} - - - {{ userInfo.line_name }} - {{ userInfo.is_validated?'Slash會員[可分銷]':'一般會員[不可分銷]' }} - - - - - - + + + + + 餘額 - ${{ userInfo.user_money }} + ${{ userInfo.user_money }} @@ -39,7 +39,7 @@ 推薦人數 - {{ userInfo.refer_num}}人 + {{ userInfo.refer_num }}人 @@ -47,52 +47,51 @@ 分潤金額 - $0 + $0 - + - - - - - - 推薦人 - - - {{ userInfo.parent_name || '沒有推薦人'}} - - - - - - 推薦連結 - - 複制 - - - - - 收貨地址 - - - - - - - - - 我的訂單 - - - - - + + + + + + 推薦人 + + + {{ userInfo.parent_name || '沒有推薦人' }} + + + + + + 推薦連結 + + 複制 + + + + + 收貨地址 + + + + + + + + + 我的訂單 + + + + + + @@ -103,7 +102,7 @@ - + 我的推薦 @@ -112,7 +111,7 @@ - + 提領帳戶 @@ -120,31 +119,47 @@ - - - - - 登出 - - - - + + + + + + 成為經銷商 + + + + + + + + + + + 登出 + + + + diff --git a/src/services/user.js b/src/services/user.js index f8bc306..e14cf5e 100644 --- a/src/services/user.js +++ b/src/services/user.js @@ -59,3 +59,7 @@ export function updateUserBank(params) { export function getRecommandList(page) { return request('/user/getRecommandList', 'get', {page}) } + +export function updateUserResale() { + return request('/user/updateUserResale', 'get') +} \ No newline at end of file