noPass.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.goodsPic)" mode="" class="store-image"></image>
  6. <view class="text-content">
  7. <view class="font-thirty-two font-color2">
  8. {{item.goodsName}}
  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. }
  30. },
  31. mounted() {
  32. this.getListFn()
  33. },
  34. methods: {
  35. showMOdel(){
  36. this.getListFn()
  37. },
  38. image(e) {
  39. return http.webUrl + e
  40. },
  41. handleClick(item){
  42. // if(item.type === '店铺'){
  43. // uni.navigateTo({
  44. // url: '/pages/manage/modifyInfo/modifyInfo?id=' + item.shopsId + '&flag="false"'
  45. // })
  46. // }else if(item.type === '商品'){
  47. uni.navigateTo({
  48. url: '/pages/manage/modifyInfo/addToOrder?id=' + item.goodsId + '&flag="false"'
  49. })
  50. // }
  51. },
  52. getListFn(){
  53. server.getShenGoodsList({goodsStatus :'3'}).then(res =>{
  54. this.list = [];
  55. if(res){
  56. this.list = res
  57. }
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .display {
  65. margin: 30rpx 30rpx 0;
  66. padding: 30rpx;
  67. background: #FFFFFF;
  68. opacity: 1;
  69. border-radius: 8rpx;
  70. .store-content {
  71. display: flex;
  72. align-items: center;
  73. padding-bottom: 30rpx;
  74. border-bottom: 2rpx solid #DEDEDE;
  75. .store-image {
  76. width: 220rpx;
  77. height: 150rpx;
  78. }
  79. .text-content{
  80. margin-left: 30rpx;
  81. }
  82. }
  83. .button-dis {
  84. display: flex;
  85. margin-top: 30rpx;
  86. .btn {
  87. width: 300rpx;
  88. background: #2E4F1C;
  89. color: #FFFFFF;
  90. border-radius: 48rpx;
  91. }
  92. .color{
  93. background: #CC1019;
  94. }
  95. }
  96. }
  97. </style>