card.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <view>
  3. <block v-for="(item,index) in cardData" :key="index">
  4. <view class="card">
  5. <view class="dis j-s card-title">
  6. <view>
  7. <text style="font-size: 16px;">{{item.userName}}</text>
  8. <image v-if="item.level==1 " style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie1.png" mode=""></image>
  9. <image v-if="item.level==2 " style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie.png" mode=""></image>
  10. <image v-if="item.level==3 " style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie3.png" mode=""></image>
  11. <image v-if="item.level==4" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie4.png" mode=""></image>
  12. <image v-if="item.level==5" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie5.png" mode=""></image>
  13. <image v-if="item.level==6" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie6.png" mode=""></image>
  14. </view>
  15. <text v-if="isStudio" @click="detail(item)">详情
  16. <image style="display: inline-block; width: 9px;height:9px;vertical-align: -1px;" src="/static/icon/right.png" mode=""></image></text>
  17. </view>
  18. <view class="card-con dis j-c a-c">
  19. <view >
  20. <text>{{item.suggestName || '无'}}</text>
  21. <text>推荐人</text>
  22. </view>
  23. <view >
  24. <text>{{item.teamManNum}}</text>
  25. <text>总人数</text>
  26. </view>
  27. <view>
  28. <text>{{item.sumPremium}}</text>
  29. <text>总保费</text>
  30. </view>
  31. <view style="border-right:none">
  32. <text>{{item.extractFee}}</text>
  33. <text>总佣金</text>
  34. </view>
  35. </view>
  36. <view class="card-footer dis" v-if="!isStudio">
  37. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(item)">
  38. <image src="/static/icon/hehuoren.png" mode=""></image>
  39. 合伙人({{item.partnerNumber}})
  40. </text>
  41. <text @click="closeInstitution(item)">
  42. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  43. 工作室({{item.workNumber}})
  44. </text>
  45. </view>
  46. </view>
  47. </block>
  48. <!-- <u-loadmore style="margin-top: 5px;" v-if="data.length!=0" :status="status" />
  49. <o-empty v-if="data.length==0" /> -->
  50. </view>
  51. </template>
  52. <script>
  53. export default{
  54. props: {
  55. cardData: {
  56. type: Array,
  57. default() {
  58. return [];
  59. }
  60. },
  61. isStudio: {
  62. type: Boolean,
  63. default() {
  64. return false;
  65. }
  66. },
  67. },
  68. data(){
  69. return{
  70. chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
  71. }
  72. },
  73. methods:{
  74. partnerDetail(item){
  75. if(item.partnerIds.length>0){
  76. uni.navigateTo({
  77. url: "/pages/institutional/partnerDetail?key="+encodeURIComponent(JSON.stringify(item))
  78. })
  79. }
  80. },
  81. detail(item){
  82. uni.navigateTo({
  83. url: "/pages/institutional/institutionalDetail?key="+encodeURIComponent(JSON.stringify(item))
  84. })
  85. },
  86. closeInstitution(item){
  87. if(item.leaderIds.length>0){
  88. uni.navigateTo({
  89. url: "/pages/institutional/institutionalTeam?key="+encodeURIComponent(JSON.stringify(item))
  90. })
  91. }
  92. },
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. .card{
  98. background: #FFFFFF;
  99. border-radius: 5px 5px 5px 5px;
  100. margin: 10px;
  101. background-image: url("/static/card.png");
  102. background-size: 100% 100%;
  103. border-top: 1px solid;
  104. border-image: linear-gradient(270deg, rgba(45, 217, 255, 0), rgba(45, 217, 255, 1), rgba(45, 217, 255, 0)) 1 1;
  105. .card-title{
  106. padding:10px 15px;
  107. text:first-child{
  108. font-weight: 600;
  109. font-size: 16px;
  110. color: #333333;
  111. }
  112. text:last-child{
  113. font-size: 12px;
  114. color: #666666;
  115. }
  116. }
  117. .card-con{
  118. padding: 10px 0;
  119. view{
  120. text-align: center;
  121. width: 25%;
  122. border-right: 1px solid #EEEEEE;
  123. text{
  124. display: block;
  125. }
  126. text:first-child{
  127. font-weight: 600;
  128. font-size: 16px;
  129. color: #333333;
  130. line-height: 18px;
  131. }
  132. text:last-child{
  133. font-size: 10px;
  134. color: #999999;
  135. }
  136. }
  137. }
  138. .card-footer{
  139. border-top: 1px solid #EEEEEE;
  140. line-height: 42px;
  141. image{
  142. display: inline-block;
  143. width: 17px;
  144. height:17px;
  145. vertical-align: middle;
  146. margin-right: 8px;
  147. }
  148. text{
  149. width: 49%;
  150. text-align: center;
  151. line-height: 40px;
  152. font-size: 16px;
  153. color: #333333;
  154. }
  155. }
  156. }
  157. .sum-insurance{
  158. padding: 10px 0;
  159. view{
  160. text-align: center;
  161. width: 33.33%;
  162. border-right: 1px solid #EEEEEE;
  163. text{
  164. display: block;
  165. }
  166. text:first-child{
  167. font-weight: 600;
  168. font-size: 18px;
  169. color: #333333;
  170. }
  171. text:last-child{
  172. font-size: 10px;
  173. color: #999999;
  174. }
  175. }
  176. }
  177. </style>