GoodsImages.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view>
  3. <view class="content4">
  4. <text class="detelText32" style="margin-top: 20rpx;margin-bottom: 20rpx;">{{obj.name}}</text>
  5. <view class="contentColumn" style="margin-top: 10rpx;margin-bottom: 10rpx;">
  6. <view class="item_list">
  7. <view class="item_content" v-for="(itemi,indexi) in annexList" @click="imagesel(itemi)">
  8. <netImage v-if="itemi!=''" width="220" height="220" bradius="4" :mysrc="itemi" mymode="scaleToFill" ></netImage>
  9. </view>
  10. <view v-if="annexList.length==0" class="contentColumnC" style="width: 100%;margin-top: 50rpx;">
  11. <text>{{$t('order.haimeiysj')}}</text>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import api from "@/pages/api/api.js"
  20. export default {
  21. data() {
  22. return {
  23. obj:'',
  24. annexList:[],
  25. state:0
  26. }
  27. },
  28. onLoad(option) {
  29. this.obj = JSON.parse(option.obj);
  30. console.log('this.annexList',this.obj)
  31. this.annexList = JSON.parse(this.obj.img);
  32. },
  33. methods: {
  34. imagesel(mysrc){
  35. uni.navigateTo({
  36. url:'/pages/index/BigimageView?mysrc='+mysrc
  37. })
  38. },
  39. },
  40. }
  41. </script>
  42. <style lang="scss">
  43. .item_list{
  44. // padding: 0 15rpx;
  45. display: flex;
  46. flex-wrap: wrap;
  47. justify-content: flex-start;
  48. .item_content{
  49. width:210rpx;
  50. height:210rpx;
  51. margin: 10rpx;
  52. box-sizing: border-box;
  53. }
  54. }
  55. .upimagV{
  56. width: 210rpx;
  57. height:210rpx;
  58. }
  59. </style>