猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.5 KiB

  1. <template>
  2. <view class="bind-user">
  3. <view class="bind-user-header">
  4. <view class="flex mb28">
  5. <up-image width="139rpx" height="139rpx" :src="userInfo?.userImage" shape="circle"></up-image>
  6. <view class="header-name">
  7. <view class="font32 mb20" :style="{color:'#000'}">{{ userInfo?.userName}}</view>
  8. <view class="label1">
  9. 初级合伙人
  10. </view>
  11. <view class="flex font24">
  12. <view :style="{color:'#A55822'}">当前分成比例
  13. <text :style="{color:'#C12525'}">25%</text>
  14. </view>
  15. <view :style="{color:'#A55822'}">晋级后分成比例
  16. <text :style="{color:'#C12525'}">30%</text>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="flex flex-evenly mt60">
  22. <view class="header-card card-left box-size">
  23. <view class="flex-between flex">
  24. <view class="mr20">
  25. <view class="mb20 ml20" :style="{color:'#A55822',fontWeight:'bold',fontSize:'30rpx'}">推广攻略
  26. </view>
  27. <view :style="{color:'#A55822',fontSize:'22rpx'}">快速定位宠友群体</view>
  28. </view>
  29. <up-image :show-loading="true" src="https://cdn.catmdogd.com/Work/image/work/icon1.png"
  30. width="71rpx" height="85rpx"></up-image>
  31. </view>
  32. </view>
  33. <view class="header-card card-right box-size">
  34. <view class="flex flex-between">
  35. <view class="mr20">
  36. <view class="mb20 ml20" :style="{color:'#A55822',fontWeight:'bold',fontSize:'30rpx'}">推广教程
  37. </view>
  38. <view :style="{color:'#A55822',fontSize:'22rpx'}">推广问题一目了然</view>
  39. </view>
  40. <up-image :show-loading="true" src="https://cdn.catmdogd.com/Work/image/work/icon2.png"
  41. width="71rpx" height="85rpx"></up-image>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="bind-main">
  47. <view class="bind-main-one mb10">
  48. <view class="mb20 font32">邀请码邀请</view>
  49. <view class="mb20">用户输入邀请码直接完成绑定</view>
  50. <up-input disabled v-model="userInfo.invitationCode">
  51. <template #suffix>
  52. <up-button @click="copyMessage(code)" text="复制" type="success" size="small" shape="circle"></up-button>
  53. </template>
  54. </up-input>
  55. </view>
  56. <view class="bind-main-two mb10">
  57. <view class="mb20 font32">分享海报邀请</view>
  58. <view class="mb20">扫码进入猫妈狗爸完成绑定</view>
  59. <up-button text="保存海报" type="primary" shape="circle" plain style="background: transparent;"></up-button>
  60. </view>
  61. <view class="bind-main-three">
  62. <view class="mb20 font32">分享链接邀请</view>
  63. <view class="mb20">复制链接给好友进入直接绑定</view>
  64. <up-input disabled v-model="url">
  65. <template #suffix>
  66. <up-button @click="copyMessage(url)" text="复制" type="success" size="small" shape="circle"></up-button>
  67. </template>
  68. </up-input>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <script setup>
  74. import {
  75. computed,
  76. ref
  77. } from "vue";
  78. import {
  79. useStore
  80. } from "vuex"
  81. const store = useStore();
  82. const userInfo = computed(() => {
  83. return store.getters.userInfo
  84. })
  85. const code = ref('asdasaadsdsa')
  86. const url = ref('https://uview-plus.jiangruyi.com/components/button.html');
  87. //复制
  88. const copyMessage = (value) => {
  89. uni.setClipboardData({
  90. data: value,
  91. success: function(res) {
  92. uni.getClipboardData({
  93. success: function(res) {
  94. uni.showToast({
  95. icon: 'none',
  96. title: "复制成功",
  97. });
  98. },
  99. });
  100. },
  101. });
  102. }
  103. </script>
  104. <style scoped lang="scss">
  105. @import "index";
  106. </style>