XuanJiangYuan.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="box">
  3. <u-navbar title="文物宣讲员列表" autoBack :placeholder="true" bgColor="#fee1b9"></u-navbar>
  4. <view class="ban">
  5. <view style="margin-top: 20rpx">
  6. <u-search placeholder="搜索讲员" shape="square" :showAction="false" v-model="keyword"></u-search>
  7. </view>
  8. <!-- tab -->
  9. <view class="tab_box">
  10. <view @click="TabBtn(index)" class="tab_item" v-for="(item, index) in tabList" :key="index" :class="{ tab_item_active: index == tabIndex }">
  11. {{ item.name }}
  12. </view>
  13. </view>
  14. <!-- -->
  15. <view class="xjy_box" @click="xqBtn">
  16. <img src="https://img2.baidu.com/it/u=443975182,626431415&fm=253&fmt=auto&app=120&f=JPEG?w=627&h=418" class="img" />
  17. <view style="margin-left: 60rpx">
  18. <view class="xjy_name">徐有群</view>
  19. <view class="xjy_addres">故宫博物院</view>
  20. <view class="ckxq">查看详情</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. tabIndex: 0,
  31. keyword: '',
  32. tabList: [
  33. {
  34. name: '区域'
  35. },
  36. {
  37. name: '等级'
  38. },
  39. {
  40. name: '评分'
  41. }
  42. ]
  43. };
  44. },
  45. methods: {
  46. TabBtn(i) {
  47. this.tabIndex = i;
  48. },
  49. xqBtn() {
  50. uni.navigateTo({
  51. url: '/index_fenbao/XuanJiangYuan/xjy_XiangQing'
  52. });
  53. }
  54. }
  55. };
  56. </script>
  57. <style>
  58. .box {
  59. height: auto;
  60. width: 100%;
  61. padding-bottom: 50rpx;
  62. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/gj_bg.png');
  63. background-repeat: repeat-y;
  64. background-size: 100%;
  65. }
  66. .ban {
  67. width: 92%;
  68. margin: auto;
  69. }
  70. .tab_box {
  71. display: flex;
  72. align-items: center;
  73. margin-top: 20rpx;
  74. }
  75. .tab_item {
  76. width: 90rpx;
  77. height: 60rpx;
  78. line-height: 60rpx;
  79. text-align: center;
  80. color: black;
  81. border-radius: 10rpx;
  82. background-color: #ffffff;
  83. }
  84. .tab_item_active {
  85. color: #794923 !important;
  86. background-color: #faefe6 !important;
  87. }
  88. .tab_item:nth-child(2) {
  89. margin-left: 10rpx;
  90. }
  91. .tab_item:nth-child(3) {
  92. margin-left: 10rpx;
  93. }
  94. .xjy_box {
  95. display: flex;
  96. align-items: center;
  97. width: 100%;
  98. height: 220rpx;
  99. border-radius: 10rpx;
  100. padding: 20rpx 20rpx 20rpx 50rpx;
  101. margin-top: 20rpx;
  102. background-color: #fff0e3;
  103. }
  104. .img {
  105. width: 100rpx;
  106. height: 100rpx;
  107. border-radius: 50%;
  108. }
  109. .xjy_name {
  110. color: black;
  111. font-size: 30rpx;
  112. }
  113. .xjy_addres {
  114. font-size: 26rpx;
  115. color: #6b5e49;
  116. /* margin-top: 10rpx; */
  117. }
  118. .ckxq {
  119. width: 140rpx;
  120. height: 60rpx;
  121. line-height: 60rpx;
  122. text-align: center;
  123. color: #ffffff;
  124. margin-top: 20rpx;
  125. border-radius: 10rpx;
  126. background-color: #e55d45;
  127. }
  128. </style>