detail.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view>
  3. <view class="card">
  4. <view class="center" >
  5. <image style="width: 140rpx;height: 140rpx;margin-top: -80rpx;border-radius: 50%;" :src="detail.cover" mode=""></image>
  6. </view>
  7. <view class="content">
  8. <view class="item" >
  9. <text >商户名称</text>
  10. <text>{{detail.fullName}}</text>
  11. </view>
  12. <view class="item" >
  13. <text >手机号码</text>
  14. <text>{{detail.personTel}}</text>
  15. </view>
  16. <view class="item" >
  17. <text >联系人</text>
  18. <text>{{detail.personName}}</text>
  19. </view>
  20. <view class="item" >
  21. <text >地址</text>
  22. <text>{{detail.address || '暂无数据'}}</text>
  23. </view>
  24. <view class="item" >
  25. <text >行业</text>
  26. <text>{{detail.labelNames}}</text>
  27. </view>
  28. </view>
  29. </view>
  30. <view style="padding:40rpx 30rpx 10rpx;font-weight: 800;font-size: 32rpx;">
  31. <text>数据看板</text>
  32. </view>
  33. <view class="data-board">
  34. <view class="content">
  35. <view class="item">
  36. <text>{{detail.memberCount}}</text>
  37. <text>会员数量</text>
  38. </view>
  39. <view class="item">
  40. <text>{{detail.totalPointValue}}</text>
  41. <text>积分总价值</text>
  42. </view>
  43. <view class="item">
  44. <text>1660</text>
  45. <text>累计收入</text>
  46. </view>
  47. <view class="item">
  48. <text>166</text>
  49. <text>累计交易笔数</text>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. data() {
  58. return {
  59. detail:{}
  60. }
  61. },
  62. onLoad(options) {
  63. this.getDtail(options.id)
  64. },
  65. methods: {
  66. getDtail(id){
  67. this.$api.shop.detail({id}).then(res=>{
  68. this.detail=res.data
  69. })
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .card{
  76. background-color: #FFFFFF;
  77. margin-top: 120rpx;
  78. position: relative;
  79. .content{
  80. padding: 10rpx 50rpx 0;
  81. .item{
  82. padding: 30rpx 0;
  83. border-bottom: 1rpx solid #EBEBEB;
  84. display: flex;
  85. justify-content: space-between;
  86. text:first-child{
  87. color: #888888;
  88. }
  89. text:last-child{
  90. color: #303030;
  91. }
  92. }
  93. .item:last-child{
  94. border: none;
  95. }
  96. }
  97. }
  98. .data-board{
  99. margin: 20rpx;
  100. border-radius: 20rpx;
  101. background-image: linear-gradient(to right,#FF8D32,#FBA33D);
  102. .content{
  103. display: flex;
  104. flex-wrap: wrap;
  105. justify-content: space-around;
  106. .item{
  107. padding: 40rpx;
  108. width: 40%;
  109. display: flex;
  110. flex-direction: column;
  111. justify-content: center;
  112. align-items: center;
  113. text:first-child{
  114. font-weight: 800;
  115. font-size: 38rpx;
  116. color: #FFFFFF;
  117. }
  118. text:last-child{
  119. font-size: 26rpx;
  120. color: #FFF6EE;
  121. }
  122. }
  123. }
  124. }
  125. </style>