chore(组件): 组件尽量使用异步导入模式
This commit is contained in:
@@ -43,9 +43,6 @@
|
||||
|
||||
<!-- 旧版支付组件 订单表不为order表 的订单支付时使用该组件 -->
|
||||
<script>
|
||||
import uniPopup from '@/components/uni-popup/uni-popup.vue';
|
||||
import nsSwitch from '@/components/ns-switch/ns-switch.vue';
|
||||
|
||||
// #ifdef H5
|
||||
import { Weixin } from 'common/js/wx-jssdk.js';
|
||||
// #endif
|
||||
@@ -53,8 +50,8 @@
|
||||
export default {
|
||||
name: 'ns-payment',
|
||||
components: {
|
||||
uniPopup,
|
||||
nsSwitch
|
||||
uniPopup: () => import('@/components/uni-popup/uni-popup.vue'),
|
||||
nsSwitch: () => import('@/components/ns-switch/ns-switch.vue'),
|
||||
},
|
||||
props: {
|
||||
balanceDeduct: {
|
||||
@@ -112,11 +109,12 @@
|
||||
};
|
||||
},
|
||||
created(e) {
|
||||
let url = '';
|
||||
// #ifdef H5
|
||||
let url = window.location.href
|
||||
url = window.location.href
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
let url = getCurrentPages()[getCurrentPages().length - 1].route
|
||||
url = getCurrentPages()[getCurrentPages().length - 1].route
|
||||
// #endif
|
||||
let list = url.match('presale/order_list/order_list')
|
||||
let detail = url.match('presale/order_detail/order_detail')
|
||||
|
||||
Reference in New Issue
Block a user