酷炫直播运营系统小程序版本

account-screen.vue 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="dialog_mask" @touchmove.stop.prevent="moveStop" @click="clearMask">
  3. <scroll-view class="mask_container" scroll-y="true" @click.stop="moveStop">
  4. <view class="screen_li" :class="accountInfo.seller_id==item.seller_id?'active':''" v-for="(item,index) in accountList" :key="index+'accountList'" @click.stop="selectEvent(index)">
  5. <view class="screen_li_con flex">
  6. <image v-if="item.platform==2" src="../static/img/dou.png" mode="widthFix" class="icon"></image>
  7. <image v-if="item.platform==1" src="../static/img/kuai.png" mode="widthFix" class="icon"></image>
  8. <image :src="item.head" mode="widthFix" class="sellerImg"></image>
  9. <text>{{item.name}}</text>
  10. </view>
  11. <view class="iconfont icon-queren_icon"></view>
  12. </view>
  13. </scroll-view>
  14. </view>
  15. </template>
  16. <script>
  17. // 账号筛选 弹框
  18. export default {
  19. name:"account-screen",
  20. props:['accountInfo','accountList'],
  21. data() {
  22. return {
  23. };
  24. },
  25. methods:{
  26. clearMask(){
  27. this.$emit('clearMask')
  28. },
  29. moveStop(){},
  30. selectEvent(index){
  31. this.$emit('changeAccount',this.accountList[index])
  32. }
  33. }
  34. }
  35. </script>
  36. <style scoped lang="scss">
  37. .dialog_mask{
  38. width: 100%;
  39. height: 100%;
  40. position: absolute;
  41. background: rgba(0,0,0,0.5);
  42. z-index: 2;
  43. }
  44. .mask_container{
  45. width: 100%;
  46. max-height: 60vh;
  47. background: #FFFFFF;
  48. overflow-y: auto;
  49. position: absolute;
  50. left: 0;
  51. z-index: 11;
  52. .screen_li{
  53. display: flex;
  54. align-items: center;
  55. justify-content: space-between;
  56. padding: 20rpx;
  57. border-bottom: 2rpx solid #E8E8E8;
  58. font-size: 28rpx;
  59. color: #555555;
  60. line-height: 40rpx;
  61. padding-right: 40rpx;
  62. .iconfont{
  63. color: transparent;
  64. font-size: 20rpx;
  65. }
  66. &.active{
  67. .iconfont{
  68. color: #446EF6;
  69. }
  70. }
  71. .sellerImg{
  72. width:60rpx;
  73. height: 60rpx;
  74. border-radius: 4px;
  75. margin: 0 20rpx;
  76. }
  77. .icon{
  78. width: 40rpx;
  79. height: 40rpx;
  80. }
  81. }
  82. }
  83. </style>