Pass.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. // }
  47. // else if(item.type === '商品'){
  48. uni.navigateTo({
  49. url: '/pages/manage/modifyInfo/addToOrder?id=' + item.goodsId + '&flag="false"'
  50. })
  51. // }
  52. },
  53. getListFn(){
  54. server.getShenGoodsList({goodsStatus :'2'}).then(res =>{
  55. this.list = [];
  56. if(res){
  57. this.list = res
  58. }
  59. })
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .display {
  66. margin: 30rpx 30rpx 0;
  67. padding: 30rpx;
  68. background: #FFFFFF;
  69. opacity: 1;
  70. border-radius: 8rpx;
  71. .store-content {
  72. display: flex;
  73. align-items: center;
  74. padding-bottom: 30rpx;
  75. border-bottom: 2rpx solid #DEDEDE;
  76. .store-image {
  77. width: 220rpx;
  78. height: 150rpx;
  79. }
  80. .text-content{
  81. margin-left: 30rpx;
  82. }
  83. }
  84. .button-dis {
  85. display: flex;
  86. margin-top: 30rpx;
  87. .btn {
  88. width: 300rpx;
  89. background: #2E4F1C;
  90. color: #FFFFFF;
  91. border-radius: 48rpx;
  92. }
  93. .color{
  94. background: #CC1019;
  95. }
  96. }
  97. }
  98. </style>