修复切换购买类型优惠券异常问题
This commit is contained in:
@@ -119,7 +119,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent,computed,reactive,toRefs ,onMounted} from "vue";
|
import { defineComponent,computed,reactive,toRefs ,watch} from "vue";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import payMethod from "@/component/Pay/payMethod.vue";
|
import payMethod from "@/component/Pay/payMethod.vue";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
@@ -314,10 +314,14 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const clearPromotionCode = ()=>{
|
watch(()=>renewData.current.type,(newVal,oldVal)=>{
|
||||||
|
clearPromotionCode(oldVal)
|
||||||
|
})
|
||||||
|
const clearPromotionCode = (str:any)=>{
|
||||||
|
let type = str || renewData.current.type
|
||||||
renewData.promotionData.error = '';
|
renewData.promotionData.error = '';
|
||||||
renewData.promotionData.code = ''
|
renewData.promotionData.code = ''
|
||||||
renewData.current.price[renewData.current.type] = renewData.promotionData.oldPrice
|
if(renewData.promotionData.oldPrice)renewData.current.price[str] = renewData.promotionData.oldPrice
|
||||||
renewData.promotionData.oldPrice = ''
|
renewData.promotionData.oldPrice = ''
|
||||||
}
|
}
|
||||||
return{
|
return{
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
<!-- <i @click="Assignment" class="fi fi-rr-gift" title="Assignment"></i> -->
|
<!-- <i @click="Assignment" class="fi fi-rr-gift" title="Assignment"></i> -->
|
||||||
<i @click="UpgradePlan" title="Purchase" class="fi fi-rr-shop"></i>
|
<i @click="UpgradePlan" title="Purchase" class="fi fi-rr-shop"></i>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="gallery_btn" style="margin-left: 3rem;" @click="subscribe">{{$t('Header.SubscribeNow')}}</div> -->
|
<div class="gallery_btn" style="margin-left: 3rem;" @click="subscribe">{{$t('Header.SubscribeNow')}}</div>
|
||||||
|
|
||||||
<div v-if="userDetail.systemUser == 0 || userDetail.systemUser == 3" class="gallery_btn" style="margin-left: 3rem;" @click="subscribe">{{$t('Header.SubscribeNow')}}</div>
|
<div v-if="userDetail.systemUser == 0 || userDetail.systemUser == 3" class="gallery_btn" style="margin-left: 3rem;" @click="subscribe">{{$t('Header.SubscribeNow')}}</div>
|
||||||
<div v-else style="width: 30rem;"></div>
|
<div v-else style="width: 30rem;"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user