Commit 51e585ca by songbingqi

修改首页分类图样式问题

parent 6fbb34ee
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="nav-left-item" v-for="(item,index) in classifyData" @click="categoryClickMain(item.id)" :key="item.id" <view class="nav-left-item" v-for="(item,index) in classifyData" @click="categoryClickMain(item.id)" :key="item.id"
:class="item.id == categoryId ? 'active' : ''"> :class="item.id == categoryId ? 'active' : ''">
<view class="imgbox" v-if="item.src"><image :style="{'height':sizeList[index].height+'rpx','width':sizeList[index].width+'rpx'}" :src="item.src"/></view> <view class="imgbox" v-if="item.src"><image :style="{'height':sizeList[index].height+'rpx','width':sizeList[index].width+'rpx'}" :src="item.src"/></view>
<view><span>{{ item.name }}</span></view> <view :style="{'margin-top':'10rpx'}"><span>{{ item.name }}</span></view>
<!-- <view :class="item.id == categoryId ? 'active-line' : ''"></view> --> <!-- <view :class="item.id == categoryId ? 'active-line' : ''"></view> -->
</view> </view>
</scroll-view> </scroll-view>
...@@ -115,9 +115,9 @@ export default { ...@@ -115,9 +115,9 @@ export default {
this.categoryPostion = data this.categoryPostion = data
}).exec(); }).exec();
}) })
categorys[0]?categorys[0].src = 'http://fakeimg.pl/70x50/':'' categorys[0]?categorys[0].src = 'http://fakeimg.pl/43x42/':''
categorys[1]?categorys[1].src = 'http://fakeimg.pl/80x60/':'' categorys[1]?categorys[1].src = 'http://fakeimg.pl/54x34/':''
categorys[2]?categorys[2].src = 'http://fakeimg.pl/90x50/':'' categorys[2]?categorys[2].src = 'http://fakeimg.pl/32x30/':''
categorys.map(item=>{ categorys.map(item=>{
this.imagesHeight(item.src) this.imagesHeight(item.src)
}) })
......
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
this.buied = true; this.buied = true;
this.orderInfo = data.data this.orderInfo = data.data
} else { } else {
this.buied = true this.buied = false
} }
}, },
openQrcode() { openQrcode() {
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
} }
new QRCode('myQrcode2', { new QRCode('myQrcode2', {
text: 111, text: this.orderInfo.pickCode,
width: 141, //canvas 画布的宽 width: 141, //canvas 画布的宽
height: 141, //canvas 画布的高 height: 141, //canvas 画布的高
padding: 0, // 生成二维码四周自动留边宽度,不传入默认为0 padding: 0, // 生成二维码四周自动留边宽度,不传入默认为0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment