更改分享链接首页返回
This commit is contained in:
@@ -14,13 +14,7 @@
|
||||
<span>已有{{data.sales || 0}}人参与</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="temple-info">
|
||||
<img class="temple-img" :src="data.cover_url" alt="">
|
||||
<div class="temple-name">
|
||||
<h4 class="name">铜梁古佛寺</h4>
|
||||
<p class="visitor">已有 <span>1525</span> 人到访过</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
<div class="panel">
|
||||
<div class="panel-head">
|
||||
@@ -33,7 +27,7 @@
|
||||
<div class="support-head">
|
||||
<span class="label">感恩功德</span>
|
||||
<ul class="external">
|
||||
<li :class="[listType === lType.id && 'active']" v-for="lType in listTypes" :key="lType.id" @click="getPayRecords(lType.id, 1)">{{lType.name}}</li>
|
||||
<li :class="[lTypeId === lType.id && 'active']" v-for="lType in listTypes" :key="lType.id" @click="getPayRecords(lType.id, 1)">{{lType.name}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
@@ -44,6 +38,7 @@
|
||||
</div>
|
||||
|
||||
<fixed-bottom ref="fixedBottom">
|
||||
<button class="iconfont icon-home" v-if="query.no_login === '1'" @click="backHome"></button>
|
||||
<button class="merit-button" @click="onHasLoginToNext">{{data.pay_name}}</button>
|
||||
</fixed-bottom>
|
||||
|
||||
@@ -121,6 +116,7 @@ export default {
|
||||
{ id: 2, name: '月榜', },
|
||||
{ id: 3, name: '总榜', },
|
||||
],
|
||||
lTypeId: 1,
|
||||
payList: [],
|
||||
page: 1,
|
||||
noMore: false,
|
||||
@@ -149,6 +145,11 @@ export default {
|
||||
this.getGoodsDetail('common');
|
||||
},
|
||||
methods: {
|
||||
backHome(){
|
||||
const { query } = this.$router.currentRoute;
|
||||
const name = query.temple_id === '1' ? 'home': 'temple-home'
|
||||
this.$router.replace({ name, query: { temple_id: query.temple_id }})
|
||||
},
|
||||
async onHasLoginToNext(){
|
||||
await hasLogin();
|
||||
this.showSpec = true
|
||||
|
||||
Reference in New Issue
Block a user