Commit c684bdb2 by 李伟康

commit 提交

1 parent 619f682d
......@@ -9,7 +9,6 @@
<view class="image-container">
<image
:src="item.detailUrl"
mode="widthFix"
class="item-image"
/>
<view class="item-text">{{item.name}}</view>
......@@ -269,6 +268,8 @@ export default {
border-radius: 24rpx;
.image-container {
font-size: 0;
width: 100%;
height: 100%;
}
&::after{
content: "";
......@@ -281,6 +282,8 @@ export default {
}
.item-image {
width: 100%;
height: 100%;
vertical-align: top;
}
.item-text {
position: absolute;
......
......@@ -113,6 +113,16 @@ export default {
});
this.$store.dispatch("setCarBrandsList", carBrandList);
uni.$storage.set('carBrandList', carBrandList)
if (carBrandList.length) {
let [defaultItem] = carBrandList
uni.$api.commonApi.getCarBrandsList({
brandId: defaultItem.brandId,
childBrandId: defaultItem.id
}).then(_res => {
uni.setStorageSync(`${defaultItem.id}_${defaultItem.brandId}_carlist`, _res)
})
}
})
/**获取销售人员 */
uni.$api.commonApi
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!