From 30594d99a8ceae1ae8f2a168cdf8105d4e7deece Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Thu, 17 Apr 2025 11:09:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(workbenchManage):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E6=B5=B7=E6=8A=A5=E5=8A=9F=E8=83=BD=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=91=E5=AE=9A=E7=94=A8=E6=88=B7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在`bindUser`页面中新增分享海报功能,用户可保存海报到相册 - 优化绑定用户页面样式,添加背景图片和点击事件 - 新增`configPopup`组件用于展示配置信息 - 调整`myLevel`页面组件,添加`dataInfo`属性传递数据 --- components/configPopup.vue | 55 ++++++ otherPages/workbenchManage/bindUser/index.scss | 6 +- otherPages/workbenchManage/bindUser/index.vue | 80 ++++++-- .../workbenchManage/bindUser/sharing - 副本.vue | 193 +++++++++++++++++++ otherPages/workbenchManage/bindUser/sharing.vue | 209 +++++++++++++++++++++ .../myLevel/commponents/levelInfo.vue | 11 ++ .../workbenchManage/myLevel/commponents/myData.vue | 69 ++++--- otherPages/workbenchManage/myLevel/index.vue | 4 +- otherPages/workbenchManage/myUser/index.vue | 13 +- pages.json | 9 +- store/modules/system.js | 129 +++++++------ 11 files changed, 669 insertions(+), 109 deletions(-) create mode 100644 components/configPopup.vue create mode 100644 otherPages/workbenchManage/bindUser/sharing - 副本.vue create mode 100644 otherPages/workbenchManage/bindUser/sharing.vue diff --git a/components/configPopup.vue b/components/configPopup.vue new file mode 100644 index 0000000..7510f4d --- /dev/null +++ b/components/configPopup.vue @@ -0,0 +1,55 @@ + + + + + \ No newline at end of file diff --git a/otherPages/workbenchManage/bindUser/index.scss b/otherPages/workbenchManage/bindUser/index.scss index 9bb7953..b1f0f22 100644 --- a/otherPages/workbenchManage/bindUser/index.scss +++ b/otherPages/workbenchManage/bindUser/index.scss @@ -38,14 +38,17 @@ } .bind-main-one{ text-align: center; - background: #FAE7E3; + // background: #FAE7E3; border-radius: 20rpx; padding: 40rpx 60rpx; + background-size: 100% 100%; + // background-image: url('https://image.hhlm1688.com/2025/03/29d85e1fc00ba64d3496fdc5c79be35ff6组件 88 – 1.png'); } .bind-main-two{ text-align: center; background: #D0E5F9; border-radius: 20rpx; + background-size: 100% 100%; padding: 40rpx 50rpx; } .bind-main-three{ @@ -53,6 +56,7 @@ background: #FDE7C5; border-radius: 20rpx; padding: 40rpx 50rpx; + background-size: 100% 100%; } .label1 { width: 120rpx; diff --git a/otherPages/workbenchManage/bindUser/index.vue b/otherPages/workbenchManage/bindUser/index.vue index a464e1a..3467072 100644 --- a/otherPages/workbenchManage/bindUser/index.vue +++ b/otherPages/workbenchManage/bindUser/index.vue @@ -6,7 +6,7 @@ {{ userInfo?.userName}} - 初级合伙人 + {{ baseInfo.partner_level }} 当前分成比例: @@ -19,7 +19,8 @@ - + 推广攻略 @@ -30,7 +31,8 @@ width="71rpx" height="85rpx"> - + 推广教程 @@ -43,51 +45,77 @@ + + + - + 邀请码邀请 用户输入邀请码,直接完成绑定 - + - + 分享海报邀请 扫码进入猫妈狗爸完成绑定 - + - + 分享链接邀请 复制链接给好友,进入直接绑定 - + + + diff --git a/otherPages/workbenchManage/bindUser/sharing - 副本.vue b/otherPages/workbenchManage/bindUser/sharing - 副本.vue new file mode 100644 index 0000000..806d8da --- /dev/null +++ b/otherPages/workbenchManage/bindUser/sharing - 副本.vue @@ -0,0 +1,193 @@ + + + + + \ No newline at end of file diff --git a/otherPages/workbenchManage/bindUser/sharing.vue b/otherPages/workbenchManage/bindUser/sharing.vue new file mode 100644 index 0000000..7352221 --- /dev/null +++ b/otherPages/workbenchManage/bindUser/sharing.vue @@ -0,0 +1,209 @@ + + + + + \ No newline at end of file diff --git a/otherPages/workbenchManage/myLevel/commponents/levelInfo.vue b/otherPages/workbenchManage/myLevel/commponents/levelInfo.vue index 0d4b9c6..6a3e4c9 100644 --- a/otherPages/workbenchManage/myLevel/commponents/levelInfo.vue +++ b/otherPages/workbenchManage/myLevel/commponents/levelInfo.vue @@ -22,6 +22,17 @@ ref, reactive } from "vue" + + + const props = defineProps({ + dataInfo : { + default : () => { + return {} + } + } + }) + + const cardName = ref("距离下一等级要求") const baseList = ref([ { diff --git a/otherPages/workbenchManage/myLevel/commponents/myData.vue b/otherPages/workbenchManage/myLevel/commponents/myData.vue index 6ada2ac..900c7a7 100644 --- a/otherPages/workbenchManage/myLevel/commponents/myData.vue +++ b/otherPages/workbenchManage/myLevel/commponents/myData.vue @@ -37,40 +37,55 @@ import { useStore } from 'vuex' const store = useStore() + + const props = defineProps({ + dataInfo : { + default : () => { + return {} + } + } + }) const configList = computed(() => { return store.getters.configList }) + + const nounthData = computed(() => { + return [{ + title: '当月注册用户', + num: props.dataInfo.register_users + "个", + }, + { + title: '当月下单用户', + num: props.dataInfo.register_users + "个", + }, + { + title: '当月有效用户', + num: props.dataInfo.register_users + "个", + }, + ] + }) + + const totalData = computed(() => { + return [{ + title: '累计注册用户', + num: props.dataInfo.register_users + "个", + }, + { + title: '累计下单用户', + num: props.dataInfo.register_users + "个", + }, + { + title: '累计有效用户', + num: props.dataInfo.register_users + "个", + color:'red' + }, + ] + }) const nounthName = ref('当月数据') const totalName = ref('累计数据') - const nounthData = reactive([{ - title: '当月注册用户', - num: "0个" - }, - { - title: '当月下单用户', - num: "0个" - }, - { - title: '当月有效用户', - num: "0个" - }, - ]) - const totalData = reactive([{ - title: '累计注册用户', - num: "0个" - }, - { - title: '累计下单用户', - num: "0个" - }, - { - title: '累计有效用户', - num: "0个", - color:'red' - }, - ]) +