|
@@ -34,12 +34,6 @@
|
|
|
<text class="ghs-notice-arrow">›</text>
|
|
<text class="ghs-notice-arrow">›</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <block v-if="buyNotice == 1">
|
|
|
|
|
- <image v-if="ghsInfo.buyNoticeText == '' || ghsInfo.buyNoticeText == null" :src="`${constant.hostUrl}/image/cg/buy_look2.png?v=1`" @click.stop="getReadMe(ghsInfo.shopId)" style="border-radius:10upx;margin-top:9upx;" mode="widthFix"></image>
|
|
|
|
|
- <view class="notice-banner" @click.stop="getReadMe(ghsInfo.shopId)" v-else>
|
|
|
|
|
- <text class="notice-text">{{ ghsInfo.buyNoticeText }}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </block> -->
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="input-wrap" >
|
|
<view class="input-wrap" >
|
|
@@ -480,22 +474,20 @@ export default {
|
|
|
if (!item || !item.id) return
|
|
if (!item || !item.id) return
|
|
|
this.$util.pageTo({ url: `/pagesPurchase/ghsNoticeDetail?id=${item.id}` })
|
|
this.$util.pageTo({ url: `/pagesPurchase/ghsNoticeDetail?id=${item.id}` })
|
|
|
},
|
|
},
|
|
|
|
|
+ /** 根据分类菜单公告数量同步头部展开高度,避免无公告时仍保留占位 */
|
|
|
|
|
+ syncHeaderNoticeClass() {
|
|
|
|
|
+ this.myClass = this.ghsNoticeList.length > 0 ? 'fadeIn' : 'fadeInSmall'
|
|
|
|
|
+ },
|
|
|
fetchGhsNoticeList() {
|
|
fetchGhsNoticeList() {
|
|
|
- const params = {}
|
|
|
|
|
- if (this.ghsId > 0) {
|
|
|
|
|
- params.ghsId = this.ghsId
|
|
|
|
|
- } else if (this.shopId > 0) {
|
|
|
|
|
- params.shopId = this.shopId
|
|
|
|
|
- } else {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- ghsCommonInfo(params).then(res => {
|
|
|
|
|
|
|
+ ghsCommonInfo({ghsId:this.ghsId}).then(res => {
|
|
|
const allList = (res.data && res.data.ghsNoticeList) ? res.data.ghsNoticeList : []
|
|
const allList = (res.data && res.data.ghsNoticeList) ? res.data.ghsNoticeList : []
|
|
|
// 分类菜单:positions 含 1
|
|
// 分类菜单:positions 含 1
|
|
|
this.ghsNoticeList = allList.filter(item => (item.positions || []).includes(1))
|
|
this.ghsNoticeList = allList.filter(item => (item.positions || []).includes(1))
|
|
|
this.currentNoticeIndex = 0
|
|
this.currentNoticeIndex = 0
|
|
|
|
|
+ this.syncHeaderNoticeClass()
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
this.ghsNoticeList = []
|
|
this.ghsNoticeList = []
|
|
|
|
|
+ this.syncHeaderNoticeClass()
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
//颜色选择
|
|
//颜色选择
|
|
@@ -553,9 +545,6 @@ export default {
|
|
|
this.shareImgUrl = data.shareLogo ? data.shareLogo : ''
|
|
this.shareImgUrl = data.shareLogo ? data.shareLogo : ''
|
|
|
this.superWx = data.superWx ? data.superWx : ''
|
|
this.superWx = data.superWx ? data.superWx : ''
|
|
|
this.telephone = data.telephone ? data.telephone : ''
|
|
this.telephone = data.telephone ? data.telephone : ''
|
|
|
- if(this.buyNotice == 1){
|
|
|
|
|
- this.myClass = 'fadeIn'
|
|
|
|
|
- }
|
|
|
|
|
this.isNewCustom = !(data.hasCg == 1 || data.new == 0 || data.xrFl == 0 || data.sendNewGift == 1)
|
|
this.isNewCustom = !(data.hasCg == 1 || data.new == 0 || data.xrFl == 0 || data.sendNewGift == 1)
|
|
|
this.newCustomGift.xrFlAmount = data.xrFlAmount
|
|
this.newCustomGift.xrFlAmount = data.xrFlAmount
|
|
|
uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
uni.setNavigationBarTitle({title: this.ghsInfo.name})
|