|
@@ -4,19 +4,14 @@
|
|
|
<view class="head">
|
|
|
<view class="behind"></view>
|
|
|
<view class="below">
|
|
|
- <view class="content">
|
|
|
+ <view class="content" v-for="(item, index) in supplier_s" :key="index">
|
|
|
<view class="content_s">
|
|
|
<view class="title">
|
|
|
<view></view>
|
|
|
- <h3>测试经销商的经营品牌</h3>
|
|
|
+ <h3>{{item.agentName}}的经营品牌</h3>
|
|
|
</view>
|
|
|
<view class="information_E">
|
|
|
- <image src="../../static/sailun/anyu.png" mode=""></image>
|
|
|
- <image src="../../static/sailun/heiqishi.png" mode=""></image>
|
|
|
- <image src="../../static/sailun/anyu.png" mode=""></image>
|
|
|
- <image src="../../static/sailun/heiqishi.png" mode=""></image>
|
|
|
- <image src="../../static/sailun/anyu.png" mode=""></image>
|
|
|
- <image src="../../static/sailun/heiqishi.png" mode=""></image>
|
|
|
+ <image v-for="(item2, index) in item.brandList" :key="index" :src="item2" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -35,7 +30,8 @@
|
|
|
return {
|
|
|
mobile: '经销商名称',
|
|
|
code: '张三',
|
|
|
- code_s: '13412336446'
|
|
|
+ code_s: '13412336446',
|
|
|
+ supplier_s: [] //经销商信息
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
@@ -44,14 +40,17 @@
|
|
|
methods: {
|
|
|
supplier(){
|
|
|
request({
|
|
|
- url: '/baseReq/getBrandList',
|
|
|
+ url: '/myapp/storeSelectAgent',
|
|
|
method: 'Post',
|
|
|
data: {
|
|
|
storeId: '3000',
|
|
|
userId: '123'
|
|
|
}
|
|
|
}).then(res => {
|
|
|
+ console.log(res.data.data)
|
|
|
console.log(res)
|
|
|
+ this.supplier_s = res.data.data
|
|
|
+ console.log(res.data.data[1].brandList[1])
|
|
|
}).catch(err => {
|
|
|
console.log(err)
|
|
|
}).finally(() => {
|
|
@@ -84,7 +83,7 @@
|
|
|
border-radius: 18px;
|
|
|
margin: 0 auto;
|
|
|
padding-top: 30rpx;
|
|
|
- margin-top: -10rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
padding-bottom: 40rpx;
|
|
|
|
|
|
.content_s {
|
|
@@ -100,6 +99,7 @@
|
|
|
image{
|
|
|
width: 48%;
|
|
|
height: 100rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
}
|
|
|
}
|
|
|
.title {
|