noadopt.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view>
  3. <view class="display" v-for="(item,index) in list">
  4. <view class="store-content" @click="handleClick(item)">
  5. <image :src="image(item.shopsPic)" mode="" class="store-image"></image>
  6. <view class="text-content">
  7. <view class="font-thirty-two font-color2">
  8. {{item.shopsName}}
  9. </view>
  10. <view class="font-twenty font-color5" style="margin-top: 20rpx;">
  11. 类别:店铺未通过审核
  12. </view>
  13. </view>
  14. </view>
  15. <!-- <view class="button-dis">
  16. <button type="default" class="btn">通过</button>
  17. <button type="default" class="btn color">不通过</button>
  18. </view> -->
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import server from "@/api/index";
  24. import http from '@/common/http.js'
  25. export default {
  26. data() {
  27. return {
  28. list:[],
  29. userInfo: {}
  30. }
  31. },
  32. mounted() {
  33. this.userInfo = uni.getStorageSync('userInfo');
  34. this.getListFn()
  35. },
  36. methods: {
  37. showModel(){
  38. this.userInfo = uni.getStorageSync('userInfo');
  39. this.getListFn()
  40. },
  41. image(e) {
  42. return http.webUrl + e
  43. },
  44. handleClick(item){
  45. // if(item.type === '店铺'){
  46. uni.navigateTo({
  47. url: '/pages/manage/modifyInfo/modifyInfo?id=' + item.shopsId + '&flag="false"'
  48. })
  49. // }else if(item.type === '商品'){
  50. // uni.navigateTo({
  51. // url: '/pages/manage/modifyInfo/addToOrder?id=' + item.id + '&flag="false"'
  52. // })
  53. // }
  54. },
  55. getListFn(){
  56. server.getManageShopList({shopsStatus :'3', shopsId: this.userInfo.nickName}).then(res =>{
  57. this.list = [];
  58. if(res){
  59. this.list = res
  60. }
  61. })
  62. }
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. .display {
  68. margin: 30rpx 30rpx 0;
  69. padding: 30rpx;
  70. background: #FFFFFF;
  71. opacity: 1;
  72. border-radius: 8rpx;
  73. .store-content {
  74. display: flex;
  75. align-items: center;
  76. padding-bottom: 30rpx;
  77. border-bottom: 2rpx solid #DEDEDE;
  78. .store-image {
  79. width: 220rpx;
  80. height: 150rpx;
  81. }
  82. .text-content{
  83. margin-left: 30rpx;
  84. }
  85. }
  86. .button-dis {
  87. display: flex;
  88. margin-top: 30rpx;
  89. .btn {
  90. width: 300rpx;
  91. background: #2E4F1C;
  92. color: #FFFFFF;
  93. border-radius: 48rpx;
  94. }
  95. .color{
  96. background: #CC1019;
  97. }
  98. }
  99. }
  100. </style>