|
|
@ -6,7 +6,7 @@ |
|
|
<view class="header-name"> |
|
|
<view class="header-name"> |
|
|
<view class="font32 mb20" :style="{color:'#000'}">{{ userInfo?.userName}}</view> |
|
|
<view class="font32 mb20" :style="{color:'#000'}">{{ userInfo?.userName}}</view> |
|
|
<view class="label1"> |
|
|
<view class="label1"> |
|
|
初级合伙人 |
|
|
|
|
|
|
|
|
{{ baseInfo.partner_level }} |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex font24"> |
|
|
<view class="flex font24"> |
|
|
<view :style="{color:'#A55822'}">当前分成比例: |
|
|
<view :style="{color:'#A55822'}">当前分成比例: |
|
|
@ -19,7 +19,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex flex-evenly mt60"> |
|
|
<view class="flex flex-evenly mt60"> |
|
|
<view class="header-card card-left box-size"> |
|
|
|
|
|
|
|
|
<view class="header-card card-left box-size" |
|
|
|
|
|
@click="configPopupRef.open('pet_attention_details')"> |
|
|
<view class="flex-between flex"> |
|
|
<view class="flex-between flex"> |
|
|
<view class="mr20"> |
|
|
<view class="mr20"> |
|
|
<view class="mb20 ml20" :style="{color:'#A55822',fontWeight:'bold',fontSize:'30rpx'}">推广攻略 |
|
|
<view class="mb20 ml20" :style="{color:'#A55822',fontWeight:'bold',fontSize:'30rpx'}">推广攻略 |
|
|
@ -30,7 +31,8 @@ |
|
|
width="71rpx" height="85rpx"></up-image> |
|
|
width="71rpx" height="85rpx"></up-image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="header-card card-right box-size"> |
|
|
|
|
|
|
|
|
<view class="header-card card-right box-size" |
|
|
|
|
|
@click="configPopupRef.open('pet_attention_details')"> |
|
|
<view class="flex flex-between"> |
|
|
<view class="flex flex-between"> |
|
|
<view class="mr20"> |
|
|
<view class="mr20"> |
|
|
<view class="mb20 ml20" :style="{color:'#A55822',fontWeight:'bold',fontSize:'30rpx'}">推广教程 |
|
|
<view class="mb20 ml20" :style="{color:'#A55822',fontWeight:'bold',fontSize:'30rpx'}">推广教程 |
|
|
@ -43,51 +45,77 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
:style="{'background-image' : `url(${configList.background_popularize_one.paramValueImage})`}" --> |
|
|
|
|
|
|
|
|
<view class="bind-main"> |
|
|
<view class="bind-main"> |
|
|
<view class="bind-main-one mb10"> |
|
|
|
|
|
|
|
|
<view class="bind-main-one mb10" |
|
|
|
|
|
:style="{'background-image' : `url('${configList.background_popularize_one.paramValueImage}')`}"> |
|
|
<view class="mb20 font32">邀请码邀请</view> |
|
|
<view class="mb20 font32">邀请码邀请</view> |
|
|
<view class="mb20">用户输入邀请码,直接完成绑定</view> |
|
|
<view class="mb20">用户输入邀请码,直接完成绑定</view> |
|
|
<up-input disabled v-model="userInfo.invitationCode"> |
|
|
|
|
|
|
|
|
<up-input disabled v-model="dataF.code"> |
|
|
<template #suffix> |
|
|
<template #suffix> |
|
|
<up-button @click="copyMessage(code)" text="复制" type="success" size="small" shape="circle"></up-button> |
|
|
|
|
|
|
|
|
<up-button @click="copyMessage(dataF.code)" text="复制" type="success" size="small" shape="circle"></up-button> |
|
|
</template> |
|
|
</template> |
|
|
</up-input> |
|
|
</up-input> |
|
|
</view> |
|
|
</view> |
|
|
<view class="bind-main-two mb10"> |
|
|
|
|
|
|
|
|
<view class="bind-main-two mb10" |
|
|
|
|
|
:style="{'background-image' : `url('${configList.background_popularize_two.paramValueImage}')`}"> |
|
|
<view class="mb20 font32">分享海报邀请</view> |
|
|
<view class="mb20 font32">分享海报邀请</view> |
|
|
<view class="mb20">扫码进入猫妈狗爸完成绑定</view> |
|
|
<view class="mb20">扫码进入猫妈狗爸完成绑定</view> |
|
|
<up-button text="保存海报" type="primary" shape="circle" plain style="background: transparent;"></up-button> |
|
|
|
|
|
|
|
|
<up-button @click="toSharing" text="保存海报" type="primary" shape="circle" plain style="background: transparent;"></up-button> |
|
|
</view> |
|
|
</view> |
|
|
<view class="bind-main-three"> |
|
|
|
|
|
|
|
|
<view class="bind-main-three" |
|
|
|
|
|
:style="{'background-image' : `url('${configList.background_popularize_three.paramValueImage}')`}"> |
|
|
<view class="mb20 font32">分享链接邀请</view> |
|
|
<view class="mb20 font32">分享链接邀请</view> |
|
|
<view class="mb20">复制链接给好友,进入直接绑定</view> |
|
|
<view class="mb20">复制链接给好友,进入直接绑定</view> |
|
|
<up-input disabled v-model="url"> |
|
|
|
|
|
|
|
|
<up-input disabled v-model="dataF.code"> |
|
|
<template #suffix> |
|
|
<template #suffix> |
|
|
<up-button @click="copyMessage(url)" text="复制" type="success" size="small" shape="circle"></up-button> |
|
|
|
|
|
|
|
|
<up-button @click="copyMessage(dataF.code)" text="复制" type="success" size="small" shape="circle"></up-button> |
|
|
</template> |
|
|
</template> |
|
|
</up-input> |
|
|
</up-input> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<configPopup ref="configPopupRef" /> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { |
|
|
import { |
|
|
computed, |
|
|
computed, |
|
|
ref |
|
|
|
|
|
|
|
|
ref, |
|
|
|
|
|
onMounted, |
|
|
} from "vue"; |
|
|
} from "vue"; |
|
|
import { |
|
|
import { |
|
|
useStore |
|
|
useStore |
|
|
} from "vuex" |
|
|
} from "vuex" |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
binBaseInfo, |
|
|
|
|
|
bindCode, |
|
|
|
|
|
} from "@/api/home.js" |
|
|
|
|
|
|
|
|
|
|
|
import configPopup from '@/components/configPopup.vue' |
|
|
|
|
|
|
|
|
|
|
|
const store = useStore(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dataF = ref({}) |
|
|
|
|
|
const baseInfo = ref({}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const store = useStore(); |
|
|
|
|
|
|
|
|
const configPopupRef = ref(null) |
|
|
|
|
|
|
|
|
|
|
|
const configList = computed(() => { |
|
|
|
|
|
return store.getters.configList |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
const userInfo = computed(() => { |
|
|
const userInfo = computed(() => { |
|
|
return store.getters.userInfo |
|
|
return store.getters.userInfo |
|
|
}) |
|
|
}) |
|
|
const code = ref('asdasaadsdsa') |
|
|
|
|
|
const url = ref('https://uview-plus.jiangruyi.com/components/button.html'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//复制 |
|
|
//复制 |
|
|
const copyMessage = (value) => { |
|
|
const copyMessage = (value) => { |
|
|
uni.setClipboardData({ |
|
|
uni.setClipboardData({ |
|
|
@ -104,6 +132,26 @@ |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const getBaseInfo = () => { |
|
|
|
|
|
binBaseInfo(baseInfo.value.userId).then(res => { |
|
|
|
|
|
baseInfo.value = res.data |
|
|
|
|
|
}) |
|
|
|
|
|
bindCode(baseInfo.value.userId).then(res => { |
|
|
|
|
|
dataF.value = res.data |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function toSharing(){ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: `/otherPages/workbenchManage/bindUser/sharing` |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
|
baseInfo.value = JSON.parse(uni.getStorageSync("baseInfo")) |
|
|
|
|
|
getBaseInfo() |
|
|
|
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|