Commit c684bdb2 by 李伟康

commit 提交

1 parent 619f682d
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<view class="image-container"> <view class="image-container">
<image <image
:src="item.detailUrl" :src="item.detailUrl"
mode="widthFix"
class="item-image" class="item-image"
/> />
<view class="item-text">{{item.name}}</view> <view class="item-text">{{item.name}}</view>
...@@ -269,6 +268,8 @@ export default { ...@@ -269,6 +268,8 @@ export default {
border-radius: 24rpx; border-radius: 24rpx;
.image-container { .image-container {
font-size: 0; font-size: 0;
width: 100%;
height: 100%;
} }
&::after{ &::after{
content: ""; content: "";
...@@ -281,6 +282,8 @@ export default { ...@@ -281,6 +282,8 @@ export default {
} }
.item-image { .item-image {
width: 100%; width: 100%;
height: 100%;
vertical-align: top;
} }
.item-text { .item-text {
position: absolute; position: absolute;
......
...@@ -113,6 +113,16 @@ export default { ...@@ -113,6 +113,16 @@ export default {
}); });
this.$store.dispatch("setCarBrandsList", carBrandList); this.$store.dispatch("setCarBrandsList", carBrandList);
uni.$storage.set('carBrandList', 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 uni.$api.commonApi
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!