suppliers.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <!-- 经销商基本信息 -->
  3. <view class="whole">
  4. <view class="head">
  5. <view class="behind"></view>
  6. <view class="below">
  7. <view class="content" v-for="(item, index) in supplier_s" :key="index">
  8. <view class="content_s">
  9. <view class="title">
  10. <view></view>
  11. <h3>{{item.agentName}}的经营品牌</h3>
  12. </view>
  13. <view class="information_E">
  14. <image v-for="(item2, index) in item.brandList" :key="index" :src="item2" mode=""></image>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import {
  24. request
  25. } from '../../common/request/request'
  26. require("promise.prototype.finally").shim()
  27. export default {
  28. data() {
  29. return {
  30. mobile: '经销商名称',
  31. code: '张三',
  32. code_s: '13412336446',
  33. supplier_s: [] //经销商信息
  34. }
  35. },
  36. created(){
  37. this.supplier()
  38. },
  39. methods: {
  40. supplier(){
  41. request({
  42. url: '/myapp/storeSelectAgent',
  43. method: 'Post',
  44. data: {
  45. storeId: '3000',
  46. userId: '123'
  47. }
  48. }).then(res => {
  49. console.log(res.data.data)
  50. console.log(res)
  51. this.supplier_s = res.data.data
  52. console.log(res.data.data[1].brandList[1])
  53. }).catch(err => {
  54. console.log(err)
  55. }).finally(() => {
  56. // Loading.close()
  57. })
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .behind {
  64. width: 750rpx;
  65. height: 462rpx;
  66. background: url(../../static/sailun/behind.png) no-repeat;
  67. background-size: 100% 100%;
  68. background-repeat: no-repeat;
  69. margin-top:-150rpx;
  70. padding-top: 100px;
  71. }
  72. .below{
  73. margin-top: -270rpx;
  74. }
  75. .content {
  76. width: 667rpx;
  77. height: auto;
  78. background: #FFFFFF;
  79. box-shadow: 0px 10px 40px 0px rgba(223, 223, 223, 0.51);
  80. border-radius: 18px;
  81. margin: 0 auto;
  82. padding-top: 30rpx;
  83. margin-top: 20rpx;
  84. padding-bottom: 40rpx;
  85. .content_s {
  86. width: 92%;
  87. // height: 330rpx;
  88. height: auto;
  89. margin: 0 auto;
  90. margin-top: 10rpx;
  91. .information{
  92. margin-top: 10rpx;
  93. }
  94. .information_E{
  95. image{
  96. width: 48%;
  97. height: 100rpx;
  98. margin-top: 20rpx;
  99. }
  100. }
  101. .title {
  102. border-bottom: 1rpx solid #EBEBEB;
  103. padding-bottom: 15rpx;
  104. view {
  105. width: 6px;
  106. height: 20px;
  107. background: #0292FD;
  108. float: left;
  109. margin-right: 10rpx;
  110. margin-top: 5rpx;
  111. }
  112. }
  113. }
  114. }
  115. </style>