登录后路径重置
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="merit-button-group border-top">
|
<div class="merit-button-group border-top">
|
||||||
<button class="merit-button" @click="showSpec = true">去行善</button>
|
<button class="merit-button" @click="onHasLoginToNext">去行善</button>
|
||||||
</div>
|
</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">
|
<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>
|
<script>
|
||||||
import 'swiper/css/swiper.css'
|
import 'swiper/css/swiper.css'
|
||||||
import { swiper, swiperSlide } from 'vue-awesome-swiper'
|
import { swiper, swiperSlide } from 'vue-awesome-swiper'
|
||||||
import { getDynamicData, getGoodsDetail } from '@/api';
|
import { getDynamicData, getGoodsDetail, hasLogin } from "@/api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -218,7 +218,10 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async onHasLoginToNext(){
|
||||||
|
await hasLogin();
|
||||||
|
this.showSpec = true
|
||||||
|
},
|
||||||
isDisabled(spec){
|
isDisabled(spec){
|
||||||
const { id } = spec;
|
const { id } = spec;
|
||||||
if(!this.onlySpecs) return false;
|
if(!this.onlySpecs) return false;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<fixed-bottom ref="fixedBottom">
|
<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>
|
</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">
|
<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>
|
<script>
|
||||||
import 'swiper/css/swiper.css'
|
import 'swiper/css/swiper.css'
|
||||||
import { swiper, swiperSlide } from 'vue-awesome-swiper'
|
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 SelectSpec from './components/select-spec.vue'
|
||||||
import FillInformation from './components/fill-information.vue';
|
import FillInformation from './components/fill-information.vue';
|
||||||
|
|
||||||
@@ -145,6 +145,10 @@ export default {
|
|||||||
this.getGoodsDetail('common');
|
this.getGoodsDetail('common');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async onHasLoginToNext(){
|
||||||
|
await hasLogin();
|
||||||
|
this.showSpec = true
|
||||||
|
},
|
||||||
// 接收随喜金额
|
// 接收随喜金额
|
||||||
onReceiveAnyAmount(anyObj){
|
onReceiveAnyAmount(anyObj){
|
||||||
this.anyPrice = anyObj.money;
|
this.anyPrice = anyObj.money;
|
||||||
|
|||||||
Reference in New Issue
Block a user