登录后路径重置

This commit is contained in:
2022-03-10 15:03:20 +08:00
parent 2a19da6cc0
commit 2b4bc67e22
2 changed files with 12 additions and 5 deletions
+6 -3
View File
@@ -53,7 +53,7 @@
</div>
</div>
<div class="merit-button-group border-top">
<button class="merit-button" @click="showSpec = true">去行善</button>
<button class="merit-button" @click="onHasLoginToNext">去行善</button>
</div>
<van-popup v-model="showSpec" position="bottom" closeable :style="{ height: 'auto' }" safe-area-inset-bottom :close-on-click-overlay="false" :close-on-popstate="true">
@@ -149,7 +149,7 @@
<script>
import 'swiper/css/swiper.css'
import { swiper, swiperSlide } from 'vue-awesome-swiper'
import { getDynamicData, getGoodsDetail } from '@/api';
import { getDynamicData, getGoodsDetail, hasLogin } from "@/api";
export default {
components: {
@@ -218,7 +218,10 @@ export default {
},
methods: {
async onHasLoginToNext(){
await hasLogin();
this.showSpec = true
},
isDisabled(spec){
const { id } = spec;
if(!this.onlySpecs) return false;
+6 -2
View File
@@ -42,7 +42,7 @@
</div>
<fixed-bottom ref="fixedBottom">
<button class="merit-button" @click="showSpec = true">{{data.pay_name}}</button>
<button class="merit-button" @click="onHasLoginToNext">{{data.pay_name}}</button>
</fixed-bottom>
<van-popup v-model="showSpec" position="bottom" closeable :style="{ height: 'auto' }" safe-area-inset-bottom :close-on-click-overlay="false" :close-on-popstate="true">
@@ -76,7 +76,7 @@
<script>
import 'swiper/css/swiper.css'
import { swiper, swiperSlide } from 'vue-awesome-swiper'
import { getGoodsDetail, getOrderCompare } from '@/api';
import { getGoodsDetail, getOrderCompare, hasLogin } from "@/api";
import SelectSpec from './components/select-spec.vue'
import FillInformation from './components/fill-information.vue';
@@ -145,6 +145,10 @@ export default {
this.getGoodsDetail('common');
},
methods: {
async onHasLoginToNext(){
await hasLogin();
this.showSpec = true
},
// 接收随喜金额
onReceiveAnyAmount(anyObj){
this.anyPrice = anyObj.money;