From 0799a89b0e9bc3345b7620d532293e49463ba867 Mon Sep 17 00:00:00 2001
From: Jruome <2559028966@qq.com>
Date: Mon, 22 May 2023 13:29:42 +0800
Subject: [PATCH] =?UTF-8?q?uniapp=20=E6=94=AF=E4=BB=98=E5=AE=9D=E6=94=AF?=
=?UTF-8?q?=E4=BB=98=E5=A4=8D=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
yudao-ui-app/api/member.js | 9 ++-
.../components/paymentMember/index.vue | 44 ++++++++++---
yudao-ui-app/libs/login.js | 54 ++++++++--------
yudao-ui-app/manifest.json | 8 +--
.../pages/member_application/index.vue | 13 ++--
yudao-ui-app/pages/member_equity/index.vue | 58 +++++++++---------
yudao-ui-app/pages/users/login/index.vue | 8 ++-
yudao-ui-app/static/html/pc.html | 6 +-
yudao-ui-app/static/images/mall.png | Bin 0 -> 10273 bytes
yudao-ui-app/static/images/mallLogo.png | Bin 0 -> 34916 bytes
yudao-ui-app/static/images/member240.png | Bin 0 -> 21493 bytes
yudao-ui-app/static/images/member400.png | Bin 0 -> 22106 bytes
yudao-ui-app/static/images/member640.png | Bin 0 -> 21765 bytes
yudao-ui-app/static/images/memberLogo.png | Bin 0 -> 1297 bytes
yudao-ui-app/utils/cache.js | 10 ---
yudao-ui-app/utils/request.js | 1 +
16 files changed, 126 insertions(+), 85 deletions(-)
create mode 100644 yudao-ui-app/static/images/mall.png
create mode 100644 yudao-ui-app/static/images/mallLogo.png
create mode 100644 yudao-ui-app/static/images/member240.png
create mode 100644 yudao-ui-app/static/images/member400.png
create mode 100644 yudao-ui-app/static/images/member640.png
create mode 100644 yudao-ui-app/static/images/memberLogo.png
diff --git a/yudao-ui-app/api/member.js b/yudao-ui-app/api/member.js
index fc6b2af04..7783c4529 100644
--- a/yudao-ui-app/api/member.js
+++ b/yudao-ui-app/api/member.js
@@ -15,6 +15,13 @@ export function memberOrderInfo(){
return request.get('api/order/member/memberOrderInfo', {})
}
+/**
+ * 会员头部信息
+ */
+export function memberHeadInfo(){
+ return request.get('api/order/member/memberHeadInfo', {})
+}
+
/**
* 会员充值
*/
@@ -27,4 +34,4 @@ export function memberTopUp(data) {
*/
export function memberApplyRefund(data) {
return request.post('api/order/member/memberApplyRefund',data);
-}
\ No newline at end of file
+}
diff --git a/yudao-ui-app/components/paymentMember/index.vue b/yudao-ui-app/components/paymentMember/index.vue
index 68f1ae112..dea028671 100644
--- a/yudao-ui-app/components/paymentMember/index.vue
+++ b/yudao-ui-app/components/paymentMember/index.vue
@@ -21,8 +21,8 @@
-
-
+
+
@@ -65,11 +65,35 @@
data() {
return {
alipayShow: false,
- alipayForm: ''
+ alipayForm:`链接已复制,请到外部浏览器完成支付`
};
},
computed: mapGetters(['systemPlatform', 'openId']),
methods: {
+ handleConfirm(){
+ this.alipayShow = false
+ window.location.reload()
+ },
+ // 复制操作
+ _copy(context) {
+ // 创建输入框元素
+ let oInput = document.createElement('input');
+ // 将想要复制的值
+ oInput.value = context;
+ // 页面底部追加输入框
+ document.body.appendChild(oInput);
+ // 选中输入框
+ oInput.select();
+ // 执行浏览器复制命令
+ document.execCommand('Copy');
+ // 弹出复制成功信息
+ this.$util.Tips({
+ title: '复制链接成功'
+ })
+ this.alipayShow = true
+ // 复制后移除输入框
+ oInput.remove();
+ },
close: function() {
this.$emit('onChangeFun', {
action: 'payClose'
@@ -134,11 +158,13 @@
break;
case 'ALIPAY':
uni.hideLoading();
- const div = document.createElement('div')
- /* 下面的data.content就是后台返回接收到的数据 */
- div.innerHTML = jsConfig.body
- document.body.appendChild(div)
- document.forms[0].submit()
+ this._copy(jsConfig.body)
+ this.alipayShow = true
+ // const div = document.createElement('div')
+ // /* 下面的data.content就是后台返回接收到的数据 */
+ // div.innerHTML = jsConfig.body
+ // document.body.appendChild(div)
+ // document.forms[0].submit()
break;
case 'weixinh5':
uni.hideLoading();
@@ -172,7 +198,7 @@