登录后路径重置

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 -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;