diff --git a/api/modules/user.ts b/api/modules/user.ts index 0b1fbd8..242e138 100644 --- a/api/modules/user.ts +++ b/api/modules/user.ts @@ -215,3 +215,31 @@ export async function verifyIAP(data: any) { }) return res } + +/** + * 获取充值列表 + * @param type 固定值 point + * @param qudao 支付类型 + */ +export async function getBookBuyConfigList(type: string, qudao: string) { + const res = await mainClient.request({ + url: 'common/bookBuyConfig/getBookBuyConfigList', + method: 'POST', + data: {type, qudao} + }) + return res +} + +/** + * 获取隐私协议 + * @param id 101众妙之门隐私政策 + */ +export async function getAgreement(id: string) { + console.log(id, 'id'); + const res = await mainClient.request({ + url: '/sys/agreement/getAgreement', + method: 'POST', + data: {id} + }) + return res +} \ No newline at end of file diff --git a/pages.json b/pages.json index 98b8be9..a4bdf8c 100644 --- a/pages.json +++ b/pages.json @@ -67,6 +67,18 @@ "navigationBarTitleText": "%user.feedback%", "navigationStyle": "custom" } + }, { + "path": "pages/user/recharge/index", + "style": { + "navigationBarTitleText": "%user.recharge%", + "navigationStyle": "custom" + } + },{ + "path": "pages/user/virtual/index", + "style": { + "navigationBarTitleText": "%user.virtual%", + "navigationStyle": "custom" + } }, { "path": "pages/user/myBook/index", "style": { diff --git a/pages/user/index.vue b/pages/user/index.vue index 5ecd0f6..7823570 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -1,34 +1,30 @@ + .email { + display: block; + font-size: 28rpx; + color: #333; + margin-bottom: 10rpx; + } + + .vip-time { + display: block; + font-size: 28rpx; + color: #333; + } + } + } + + .vip-card-section { + padding: 0 20rpx; + margin-bottom: 20rpx; + } + + .vip-card { + background: #fff; + border-radius: 15rpx; + padding: 40rpx; + display: flex; + align-items: center; + justify-content: space-between; + box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05); + + .vip-info { + text-align: center; + + .label { + display: block; + font-size: 32rpx; + color: #333; + margin-bottom: 10rpx; + } + + .value { + display: block; + font-size: 30rpx; + color: $theme-color; + } + } + } + + .menu-section { + padding: 20rpx 20rpx 0; + } + + .menu-list { + background: #fff; + border-radius: 15rpx; + overflow: hidden; + box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05); + } + + .menu-item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx; + border-bottom: 1px solid #e0e0e0; + + &:last-child { + border-bottom: none; + } + + &:active { + background-color: #f5f5f5; + } + + .menu-text { + font-size: 30rpx; + color: #333; + line-height: 40rpx; + } + } + + + + .chong_btn { + font-size: 26rpx; + display: block; + border-radius: 50rpx; + color: #fffbf6; + padding: 10rpx 32rpx; + background-image: linear-gradient(90deg, #3ab3ae 0%, #d5ecdd 200%); + } + + .assets { + display: flex; + flex: 1; + justify-content: space-around; + text-align: center; + transform:translateX(-20px); + + .assets_row { + margin-bottom: 20rpx; + } + } + \ No newline at end of file