wangdong 6 months ago
parent e29f8355e8
commit 4cc771f0e0
  1. 3
      pages/index/index.vue
  2. 37
      pages/shopList/shopPage.vue
  3. BIN
      static/tabbar/shop-active.png
  4. BIN
      static/tabbar/shop.png

@ -668,7 +668,7 @@
if (data.select_mechant && uni.getStorageSync('storeVersion') == 1) {
this.gridList.splice(5, 1,
{
image: '/static/tabbar/shop-active.png',
image: `${this.$picUrl}/static/index/shop-active.png`,
text: "精选商户",
path: '/pages/shopList/index',
type: 2
@ -1065,6 +1065,7 @@
if (res.status == 200) {
this.logoImage = res.data.storeInfo.logoImage ? res.data.storeInfo.logoImage
.preview_url : "";
uni.setStorageSync('storeInfo', JSON.stringify(res.data.storeInfo));
uni.setStorageSync('storeVersion', res.data.storeInfo.store_version || 0);
}
})

@ -12,7 +12,8 @@
</view>
<view class="page">
<view class="shop-tip">
<image src="/static/logo.png" mode="aspectFill" class="logo"></image>
<image :src="storeInfo.logoImage ? storeInfo.logoImage.preview_url : ''" mode="aspectFill" class="logo"></image>
<text>{{ storeInfo.store_name }}</text>
<view class="tip">
<image src="/static/shop/t1.png" mode="aspectFill"></image>
100%正品
@ -141,15 +142,18 @@
goods: []
};
},
// computed: {
// styleIndex() {
// const index = uni.getStorageSync('styleIndex') || '';
// return index;
// },
// navBgColor() {
// return this.styleIndex ? (styleColor.shopNavBgColor[this.styleIndex - 1] || '#FFA3B2') : '#FFA3B2'
// }
// },
computed: {
storeInfo() {
return JSON.parse(uni.getStorageSync('storeInfo') || '{}');
},
// styleIndex() {
// const index = uni.getStorageSync('styleIndex') || '';
// return index;
// },
// navBgColor() {
// return this.styleIndex ? (styleColor.shopNavBgColor[this.styleIndex - 1] || '#FFA3B2') : '#FFA3B2'
// }
},
watch: {
firstCate() {
this.goods = [];
@ -358,15 +362,22 @@
padding: 0 24rpx;
display: flex;
align-items: center;
.logo {
width: 92rpx;
height: 34rpx;
>text {
font-size: 24rpx;
color: #fff;
margin-right: auto;
}
.logo {
width: 50rpx;
height: 50rpx;
margin-right: 10rpx;
}
.tip {
font-size: 22rpx;
color: #fff;
margin-left: 20rpx;
display: flex;
align-items: center;
image {
width: 26rpx;
height: 26rpx;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Loading…
Cancel
Save