benefits.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <template>
  2. <view class="page">
  3. <view class="header dis a-end j-s mb-2">
  4. <view class="dis a-c ">
  5. <image :src="backLogo" mode=""></image>
  6. <view class="dis f-c title ml-3">
  7. <text>创始人</text>
  8. <text>我的佣金比例</text>
  9. </view>
  10. </view>
  11. <view class="ratio dis a-end " @click="ratiodetail">
  12. <text class="mr-1">0.8%</text>
  13. <u-icon name="arrow-right" color="#999" size="28"></u-icon>
  14. </view>
  15. </view>
  16. <view class="wrap ">
  17. <view class="tabs dis a-end">
  18. <view v-for="(item, index) in tabList" :key="index" class="tab dis a-c j-c" :class="{
  19. active: activeTab === index,
  20. tab1: activeTab !== index,
  21. left: activeTab === 0,
  22. right: activeTab === 1
  23. }" @click="handleTab(index)">
  24. <view class="tabtitle">
  25. <image v-if="activeTab==index" src="/static/image/Vector 22.png" mode=""></image>
  26. <view class="">
  27. {{ item.label }}
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="content-container">
  33. <view class="content-wrap contentwrap1 dis f-c a-c" v-show="activeTab === 0">
  34. <text class="title">- 成为创始人已解锁的权益 -</text>
  35. <view class="benefits dis f-c ">
  36. <text>发展管理人</text>
  37. <text>邀请管理人加入,获得管理人车险订单0.1%的收益</text>
  38. </view>
  39. <view class="benefits dis f-c ">
  40. <text>成为管理人</text>
  41. <text>邀请合伙人,获得合伙人0.1-0.5的收益</text>
  42. </view>
  43. <view class="benefits dis f-c ">
  44. <text>成为合伙人</text>
  45. <text>邀请工作室,获得下辖团队出单业务的0.1-0.5的收益</text>
  46. </view>
  47. <view class="benefits dis f-c ">
  48. <text>成为工作室</text>
  49. <text>邀请团队,获得下辖团队出单业务的0.1-0.5的收益</text>
  50. </view>
  51. </view>
  52. <view class="content-wrap contentwrap2 dis f-c a-c" v-show="activeTab === 1">
  53. <text class="title">- 各类身份的佣金权益 -</text>
  54. <view class="ratio-benefits dis f-c ">
  55. <view class=" dis a-c j-s mb-5">
  56. <view class="item " v-for="(item,index) in ratioList" :class="{active:index==ratioindex}"
  57. :key="index" @click="itemclick(item,index)">
  58. <image :src="index==ratioindex?item.activeImg:item.img" mode=""></image>
  59. <text>{{item.title}}</text>
  60. </view>
  61. </view>
  62. <text class="content">{{content}}</text>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <u-popup v-model="ratiodetailshow" mode="bottom" border-radius="20" :closeable="true">
  68. <view class=" dis a-c j-c " style="border-bottom: 1rpx solid #eee;padding: 24rpx;box-sizing: border-box;">
  69. <text class="font-weight" style="font-size: 36rpx;color: #333;">我的佣金比例</text>
  70. </view>
  71. <view class="p-3">
  72. <view class="ratioitem dis a-c j-s">
  73. <text>创始人</text>
  74. <text>0.1%</text>
  75. </view>
  76. <view class="ratioitem dis a-c j-s">
  77. <text>管理人</text>
  78. <text>0.1%</text>
  79. </view>
  80. <view class="ratioitem dis a-c j-s">
  81. <text>合伙人</text>
  82. <text>0.1%</text>
  83. </view>
  84. <view class="ratioitem dis a-c j-s">
  85. <text>工作室</text>
  86. <text>0.1%</text>
  87. </view>
  88. </view>
  89. </u-popup>
  90. </view>
  91. </template>
  92. <script>
  93. import {
  94. mapState,
  95. mapMutations
  96. } from "vuex"
  97. export default {
  98. data() {
  99. return {
  100. ratiodetailshow: false, //佣金比例弹窗
  101. ratioindex: 0,
  102. content: "创始人身份可享受邀请的所有管理人发展的团队成员车险订单的0.1% \n例如:创始人邀请了管理人A,管理人A邀请了合伙人B,合伙人B邀请了工作室C,工作室C邀请了团队D,团队D内的成员出单保费1000元(除车船税),管理人即可获得1000*0.1% = 1元",
  103. activeTab: 1,
  104. backLogo: '', //等级标志
  105. tabList: [{
  106. label: "身份权益"
  107. },
  108. {
  109. label: "佣金权益"
  110. }
  111. ],
  112. ratioList: [{
  113. title: "创始人",
  114. img: "/static/image/my/benefits/1.png",
  115. activeImg: "/static/image/my/benefits/active1.png",
  116. Text: "创始人身份可享受邀请的所有管理人发展的团队成员车险订单的0.1% \n例如:创始人邀请了管理人A,管理人A邀请了合伙人B,合伙人B邀请了工作室C,工作室C邀请了团队D,团队D内的成员出单保费1000元(除车船税),管理人即可获得1000*0.1% = 1元"
  117. },
  118. {
  119. title: "管理人",
  120. img: "/static/image/my/benefits/2.png",
  121. activeImg: "/static/image/my/benefits/active2.png",
  122. Text: "管理人身份可享受邀请的所有合伙人发展的团队成员车险订单的0.15-0.5%;\n 邀请合伙人1-3人,为0.1%,\n 邀请合伙人4-6人,为0.3,\n 邀请合伙人7人以上,为0.5\n 例如:管理人邀请了合伙人A,B,C,达成了0.1%的奖励;合伙人A邀请了工作室B,工作室B邀请了团队C,团队C内的成员出单保费1000元(除车船税),管理人即可获得1000*0.1% = 1元"
  123. },
  124. {
  125. title: "合伙人",
  126. img: "/static/image/my/benefits/3.png",
  127. activeImg: "/static/image/my/benefits/active3.png",
  128. Text: "合伙人身份可享受邀请的所有工作室发展的团队成员车险订单的0.15-0.5%;\n 邀请工作室1-3人,为0.1%,\n 邀请工作室4-6人,为0.3,\n 邀请工作室7人以上,为0.5 \n例如:合伙人邀请了工作室A,B,C,达成了0.1%的奖励;合伙人A邀请了工作室B,工作室B邀请了团队C,团队C内的成员出单保费1000元(除车船税),管理人即可获得1000*0.1% = 1元"
  129. }, {
  130. title: "工作室",
  131. img: "/static/image/my/benefits/4.png",
  132. activeImg: "/static/image/my/benefits/active4.png",
  133. Text: "工作室身份可享受邀请的所有发展的团队成员 车险订单的0.15-0.5%;\n 邀请团队1-3人,为0.1%,\n 邀请团队4-6人,为0.3,\n 邀请团队7人以上,为0.5 \n例如:工作室请了团队A,B,C,达成了0.1%的奖励;工作室邀请了团队A,团队A内的成员出单保费1000元(除车船税),管理人即可获得1000*0.1% = 1元"
  134. }
  135. ]
  136. }
  137. },
  138. computed: {
  139. ...mapState(['userInfo', "userCheckInfo"]),
  140. },
  141. onShow() {
  142. this.backLogo = this.userInfo.sysUser.sysPartnerConfig ? this.userInfo.sysUser.sysPartnerConfig.logo : ''
  143. },
  144. onLoad() {
  145. },
  146. methods: {
  147. //切换事件
  148. itemclick(item, index) {
  149. this.ratioindex = index;
  150. this.content = item.Text;
  151. },
  152. handleTab(index) {
  153. this.activeTab = index
  154. },
  155. //比例弹窗
  156. ratiodetail() {
  157. this.ratiodetailshow = true;
  158. }
  159. }
  160. }
  161. </script>
  162. <style lang="scss" scoped>
  163. .page {
  164. background-color: #F7F7F7;
  165. padding: 20rpx 30rpx;
  166. box-sizing: border-box;
  167. }
  168. .header {
  169. height: 170rpx;
  170. background: #fff;
  171. border-radius: 10rpx 10rpx 10rpx 10rpx;
  172. padding: 30rpx 40rpx;
  173. box-sizing: border-box;
  174. background-image: url('/static/image/my/benefits/benefits-back1.png');
  175. background-size: 100% 100%;
  176. image {
  177. width: 110rpx;
  178. height: 110rpx;
  179. }
  180. .title {
  181. text:first-child {
  182. font-size: 36rpx;
  183. color: #333;
  184. font-weight: bold;
  185. }
  186. text:last-child {
  187. font-size: 28rpx;
  188. color: #666;
  189. }
  190. }
  191. .ratio {
  192. text {
  193. font-size: 50rpx;
  194. color: #333;
  195. font-weight: bold;
  196. line-height: 0.8;
  197. }
  198. }
  199. }
  200. .wrap {
  201. position: relative;
  202. width: 100%;
  203. margin: 0 auto;
  204. box-sizing: border-box;
  205. border-radius: 0px 10rpx 10rpx 10rpx;
  206. }
  207. .tabs {
  208. display: flex;
  209. position: relative;
  210. overflow: hidden;
  211. border-radius: 10rpx 10rpx 0 0;
  212. }
  213. .tab {
  214. flex: 1;
  215. height: 90rpx;
  216. color: #999;
  217. font-size: 30rpx;
  218. position: relative;
  219. border-top-right-radius: 10rpx;
  220. border-top-left-radius: 10rpx;
  221. &.active {
  222. background: #fff;
  223. color: #333;
  224. font-size: 30rpx;
  225. font-weight: bold;
  226. border-top-right-radius: 10rpx;
  227. border-top-left-radius: 10rpx;
  228. }
  229. &.left.active {
  230. border-top-right-radius: 0;
  231. &::after {
  232. content: "";
  233. position: absolute;
  234. top: 0;
  235. right: -50px;
  236. height: 100%;
  237. width: 50px;
  238. z-index: 2;
  239. background-color: #fff;
  240. clip-path: path("M0 0 C12.5 0 13.5 25 25 45 L0 50 Z");
  241. }
  242. }
  243. // 右侧标签的曲线
  244. &.right.active {
  245. border-top-left-radius: 0;
  246. &::before {
  247. content: "";
  248. position: absolute;
  249. top: 0;
  250. left: -49px;
  251. height: 100%;
  252. width: 50px;
  253. z-index: 2;
  254. background-color: #fff;
  255. clip-path: path("M50 0 C37.5 0 37.5 25 25 45 L50 50 Z");
  256. }
  257. }
  258. }
  259. .tab1 {
  260. flex: 1;
  261. height: 90rpx;
  262. position: relative;
  263. border-top-right-radius: 10rpx;
  264. border-top-left-radius: 10rpx;
  265. background-color: #FAFAFA;
  266. }
  267. .tabtext {
  268. margin-left: 50rpx;
  269. }
  270. .tabtext1 {
  271. margin-right: 50rpx;
  272. }
  273. .content-container {
  274. position: relative;
  275. height: auto;
  276. background: #fff;
  277. ;
  278. border-radius: 10rpx 10rpx 10rpx 10rpx;
  279. }
  280. .content-wrap {
  281. height: 100%;
  282. box-sizing: border-box;
  283. border: 4rpx solid #FFFFFF;
  284. border-top: none;
  285. .title {
  286. font-size: 26rpx;
  287. color: #333;
  288. margin-bottom: 30rpx;
  289. }
  290. .benefits {
  291. width: 100%;
  292. padding: 30rpx;
  293. box-sizing: border-box;
  294. border-radius: 10rpx;
  295. background-image: url('/static/image/my/benefits/benefits-back2.png');
  296. background-size: 100% 100%;
  297. margin-bottom: 30rpx;
  298. text:first-child {
  299. font-size: 30rpx;
  300. color: #333;
  301. }
  302. text:last-child {
  303. font-size: 22rpx;
  304. color: #666;
  305. }
  306. }
  307. .ratio-benefits {
  308. width: 100%;
  309. .item {
  310. font-size: 30rpx;
  311. color: #999;
  312. image {
  313. width: 82rpx;
  314. height: 82rpx;
  315. }
  316. }
  317. .active {
  318. font-size: 30rpx;
  319. color: #333;
  320. font-weight: bold;
  321. }
  322. }
  323. }
  324. .contentwrap1 {
  325. border-radius: 10rpx 10rpx 10rpx 10rpx;
  326. padding: 30rpx 35rpx;
  327. box-sizing: border-box;
  328. }
  329. .contentwrap2 {
  330. border-radius: 10rpx 10rpx 10rpx 10rpx;
  331. padding: 30rpx 35rpx;
  332. box-sizing: border-box;
  333. }
  334. .tabtitle {
  335. position: relative;
  336. z-index: 1; // 父级降低层级
  337. // 文字部分
  338. &__text {
  339. position: relative; // 必须定位元素才能生效z-index
  340. z-index: 3; // 高于装饰图片
  341. display: inline-block;
  342. }
  343. // 装饰图片
  344. image {
  345. position: absolute;
  346. bottom: -14rpx; // 根据实际图片高度调整
  347. left: 50%;
  348. transform: translateX(-50%);
  349. z-index: 2; // 介于父级和文字之间
  350. width: 100%;
  351. height: 20rpx;
  352. }
  353. }
  354. .ratioitem {
  355. font-size: 30rpx;
  356. color: #333;
  357. margin-bottom: 52rpx;
  358. }
  359. </style>