This commit is contained in:
yanran200730
2022-11-08 18:51:19 +08:00
parent e1be3f75fb
commit 9b92d7ac4c
4 changed files with 10 additions and 6 deletions

View File

@@ -173,8 +173,8 @@
title: '温馨提示',
content: '提交申请成功,请等待后台审核!'
}).then(() => {
wx.navigateBack()
})
uni.navigateBack()
}).catch(() => {})
}
})
},

View File

@@ -27,7 +27,7 @@
<span>文明榜单</span>
</div>
</div>
<swiper class="banner" indicatorDots circular :autoplay="true" :interval="5000">
<swiper class="banner" indicatorDots circular :autoplay="true" :interval="5000" v-if="bannerList.length">
<swiper-item v-for="(item, index) in bannerList" :key="index">
<image :src="item.imgUrl" mode="aspectFill" />
</swiper-item>
@@ -99,6 +99,11 @@
...mapState(['user', 'token'])
},
onShow () {
this.isMore = false
this.getList()
},
onLoad () {
if (!this.token) {
this.autoLogin()
@@ -106,7 +111,6 @@
this.getUserInfo()
}
this.getList()
this.getBannerList()
},

View File

@@ -10,7 +10,7 @@
<div class="back-wrapper" @click="back" v-show="!isFixed" :style="{marginTop : statusBarHeight + 'px'}">
<image src="/static/img/left.png"/>
</div>
<image class="banner" :src="info.merchantPhoto || 'https://jisheng-xiaochengxu.oss-cn-hangzhou.aliyuncs.com/admin/5bad9165-fa6e-4c81-894d-2beae426260b.png'" />
<image class="banner" :src="info.merchantInfo.merchantPhoto" />
<div class="wrapper">
<div class="top">
<image :src="info.merchantInfo.photoUrl" />

View File

@@ -2,7 +2,7 @@
<div class="AddDiscounts">
<div class="form">
<input placeholder="输入优惠内容标题" v-model="title" placeholder-style="color: #999; font-size: 15px;" />
<textarea placeholder="输入优惠内容详情" v-model="content" placeholder-class="input-placeholder" placeholder-style="color: #999; font-size: 15px;" />
<textarea placeholder="输入优惠内容详情" :maxlength="1000" v-model="content" placeholder-class="input-placeholder" placeholder-style="color: #999; font-size: 15px;" />
</div>
<div class="btn-wrapper">
<div class="btn" hover-class="text-hover" @click="save">发布</div>