|
|
@ -606,18 +606,6 @@ |
|
|
|
path: '/pages/news/recycling/index', |
|
|
|
path: '/pages/news/recycling/index', |
|
|
|
type: 2 |
|
|
|
type: 2 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
image: '/static/tabbar/serve-active.png', |
|
|
|
|
|
|
|
text: "服务", |
|
|
|
|
|
|
|
path: '/pages/serve/index', |
|
|
|
|
|
|
|
type: 2 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
image: `${this.$picUrl}/static/index/g6.png?n=` + new Date().getTime(), |
|
|
|
|
|
|
|
text: "广场动态", |
|
|
|
|
|
|
|
path: '/pages/squareDynamic/index', |
|
|
|
|
|
|
|
type: 2 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
catagoryList: [], |
|
|
|
catagoryList: [], |
|
|
|
paihangList: [], |
|
|
|
paihangList: [], |
|
|
@ -667,13 +655,34 @@ |
|
|
|
} = await GoodsApi.wxAppSetting({}); |
|
|
|
} = await GoodsApi.wxAppSetting({}); |
|
|
|
if (status == 200) { |
|
|
|
if (status == 200) { |
|
|
|
this.wxAppSetting = data; |
|
|
|
this.wxAppSetting = data; |
|
|
|
this.list = data.same_city ? [{ |
|
|
|
const arr = [{ name: '首页' }]; |
|
|
|
name: '首页' |
|
|
|
if (data.same_city) { |
|
|
|
}, { |
|
|
|
arr.push({ |
|
|
|
name: '同城送' |
|
|
|
name: '同城送' |
|
|
|
}] : [{ |
|
|
|
}); |
|
|
|
name: '首页' |
|
|
|
} |
|
|
|
}] |
|
|
|
if (data.square_dynamic) { |
|
|
|
|
|
|
|
arr.push({ |
|
|
|
|
|
|
|
name: '广场' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.list = [...arr]; |
|
|
|
|
|
|
|
if (data.select_mechant) { |
|
|
|
|
|
|
|
this.gridList.splice(5, 1, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
image: '/static/tabbar/shop-active.png', |
|
|
|
|
|
|
|
text: "精选商户", |
|
|
|
|
|
|
|
path: '/pages/shopList/index', |
|
|
|
|
|
|
|
type: 2 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// this.list = data.same_city ? [{ |
|
|
|
|
|
|
|
// name: '首页' |
|
|
|
|
|
|
|
// }, { |
|
|
|
|
|
|
|
// name: '同城送' |
|
|
|
|
|
|
|
// }] : [{ |
|
|
|
|
|
|
|
// name: '首页' |
|
|
|
|
|
|
|
// }] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async getWxAppStyle() { |
|
|
|
async getWxAppStyle() { |
|
|
@ -1042,7 +1051,13 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeHome(val) { |
|
|
|
changeHome(val) { |
|
|
|
this.current = val; |
|
|
|
this.current = val; |
|
|
|
this.getTypeList() |
|
|
|
if (this.current < 2) { |
|
|
|
|
|
|
|
this.getTypeList() |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '/pages/squareDynamic/index' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
getCityInfo() { |
|
|
|
getCityInfo() { |
|
|
|
const that = this |
|
|
|
const that = this |
|
|
@ -1058,7 +1073,8 @@ |
|
|
|
newFunApi.storeData().then(res => { |
|
|
|
newFunApi.storeData().then(res => { |
|
|
|
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('storeVersion', res.data.storeInfo.store_version || 0); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.finally(() => {}) |
|
|
|
.finally(() => {}) |
|
|
@ -1163,6 +1179,9 @@ |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
this.getWxAppStyle(); |
|
|
|
this.getWxAppStyle(); |
|
|
|
this.isLogin = uni.getStorageSync("AccessToken") ? true : false |
|
|
|
this.isLogin = uni.getStorageSync("AccessToken") ? true : false |
|
|
|
|
|
|
|
if (this.current == 2) { |
|
|
|
|
|
|
|
this.current = 0; |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onPageScroll(e) { |
|
|
|
onPageScroll(e) { |
|
|
|
if (e.scrollTop <= 200) { // 当滚动到顶部且向下滑动时为true |
|
|
|
if (e.scrollTop <= 200) { // 当滚动到顶部且向下滑动时为true |
|
|
@ -1230,11 +1249,11 @@ |
|
|
|
padding: 0 !important; |
|
|
|
padding: 0 !important; |
|
|
|
|
|
|
|
|
|
|
|
.u-item { |
|
|
|
.u-item { |
|
|
|
width: 130rpx; |
|
|
|
width: 110rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.u-item-bg { |
|
|
|
.u-item-bg { |
|
|
|
width: 130rpx !important; |
|
|
|
width: 110rpx !important; |
|
|
|
bottom: 0 !important; |
|
|
|
bottom: 0 !important; |
|
|
|
height: 100% !important; |
|
|
|
height: 100% !important; |
|
|
|
border-radius: 17px !important; |
|
|
|
border-radius: 17px !important; |
|
|
|