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

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