diff --git a/package-lock.json b/package-lock.json index 8a536dc..c0264e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "ali-oss": "^6.17.1", "axios": "^1.2.2", "cropperjs": "^1.5.13", + "dayjs": "^1.11.7", "driver.js": "^0.9.8", "file-saver": "^2.0.5", "gsap": "^3.11.4", @@ -3115,6 +3116,11 @@ "node": "*" } }, + "node_modules/dayjs": { + "version": "1.11.7", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.7.tgz", + "integrity": "sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==" + }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", @@ -11981,6 +11987,11 @@ "resolved": "https://registry.npmmirror.com/dateformat/-/dateformat-2.2.0.tgz", "integrity": "sha512-GODcnWq3YGoTnygPfi02ygEiRxqUxpJwuRHjdhJYuxpcZmDq4rjBiXYmbCCzStxo176ixfLT6i4NPwQooRySnw==" }, + "dayjs": { + "version": "1.11.7", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.7.tgz", + "integrity": "sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==" + }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", diff --git a/package.json b/package.json index 3afc9fb..01d8560 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "ali-oss": "^6.17.1", "axios": "^1.2.2", "cropperjs": "^1.5.13", + "dayjs": "^1.11.7", "driver.js": "^0.9.8", "file-saver": "^2.0.5", "gsap": "^3.11.4", diff --git a/src/api/pay.js b/src/api/pay.js new file mode 100644 index 0000000..e9ee5e8 --- /dev/null +++ b/src/api/pay.js @@ -0,0 +1,9 @@ +import Request from '@/utils/request'; + +const request = new Request(); + +export const getVipPayList = () => { + return request({ + url: '/user/vip/pay/list', + }); +}; diff --git a/src/assets/images/alipay.png b/src/assets/images/alipay.png new file mode 100644 index 0000000..2f0a945 Binary files /dev/null and b/src/assets/images/alipay.png differ diff --git a/src/libs/Countdown/index.vue b/src/libs/Countdown/index.vue new file mode 100644 index 0000000..dc423db --- /dev/null +++ b/src/libs/Countdown/index.vue @@ -0,0 +1,89 @@ + + + + + + diff --git a/src/libs/Countdown/utils.js b/src/libs/Countdown/utils.js new file mode 100644 index 0000000..508be6c --- /dev/null +++ b/src/libs/Countdown/utils.js @@ -0,0 +1,9 @@ +import dayjs from 'dayjs'; +import 'dayjs/locale/zh-cn'; +import duration from 'dayjs/plugin/duration'; + +dayjs.locale('zh'); + +dayjs.extend(duration); + +export default dayjs; diff --git a/src/libs/TransitionRouterView/index.vue b/src/libs/TransitionRouterView/index.vue index 65c31de..baa2364 100644 --- a/src/libs/TransitionRouterView/index.vue +++ b/src/libs/TransitionRouterView/index.vue @@ -11,7 +11,10 @@ @@ -22,6 +25,7 @@ + + + + diff --git a/src/views/member/components/Payment/MobilePayment/MobilePaymentSelect.vue b/src/views/member/components/Payment/MobilePayment/MobilePaymentSelect.vue new file mode 100644 index 0000000..36c9ec7 --- /dev/null +++ b/src/views/member/components/Payment/MobilePayment/MobilePaymentSelect.vue @@ -0,0 +1,32 @@ + + + diff --git a/src/views/member/components/Payment/MobilePayment/index.vue b/src/views/member/components/Payment/MobilePayment/index.vue new file mode 100644 index 0000000..88c218a --- /dev/null +++ b/src/views/member/components/Payment/MobilePayment/index.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/src/views/member/components/Payment/PcPayment/index.vue b/src/views/member/components/Payment/PcPayment/index.vue new file mode 100644 index 0000000..4c3e00b --- /dev/null +++ b/src/views/member/components/Payment/PcPayment/index.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/src/views/member/components/Payment/discounts.vue b/src/views/member/components/Payment/discounts.vue new file mode 100644 index 0000000..4f4f5a9 --- /dev/null +++ b/src/views/member/components/Payment/discounts.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/views/member/components/Payment/index.vue b/src/views/member/components/Payment/index.vue new file mode 100644 index 0000000..e0d130e --- /dev/null +++ b/src/views/member/components/Payment/index.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/src/views/member/index.vue b/src/views/member/index.vue new file mode 100644 index 0000000..df3a106 --- /dev/null +++ b/src/views/member/index.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/vite.config.js b/vite.config.js index 35c9656..16fe349 100644 --- a/vite.config.js +++ b/vite.config.js @@ -34,7 +34,7 @@ export default defineConfig({ rewrite: (path) => path.replace(/^\/api/, ''), }, '/mapi': { - target: 'https://imooc-front.lgdsunday.club/api/', + target: 'https://api.imooc-front.lgdsunday.club/api/', //跨域 changeOrigin: true, rewrite: (path) => path.replace(/^\/mapi/, ''),