diff --git a/components/UserInfoCard.vue b/components/UserInfoCard.vue
index 5822aa7..04bf72d 100644
--- a/components/UserInfoCard.vue
+++ b/components/UserInfoCard.vue
@@ -5,16 +5,6 @@
{{ currentCardNo || '-' }}
-
- ICCID: {{ deviceInfo.iccid || '-' }}
-
-
套餐名称:{{ deviceInfo.packageName || '-' }}
套餐到期时间:{{ deviceInfo.expireDate || '-' }}
@@ -37,7 +27,6 @@
isDevice: { type: Boolean, default: true }
});
- defineEmits(['copy']);
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 0bf8161..591ae13 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,7 +1,7 @@
+ :isDevice="userInfo.isDevice" :networkStatus="deviceInfo.network_status" />
diff --git a/pages/my-wallet/my-wallet.vue b/pages/my-wallet/my-wallet.vue
index f09f281..26eb74a 100644
--- a/pages/my-wallet/my-wallet.vue
+++ b/pages/my-wallet/my-wallet.vue
@@ -155,15 +155,7 @@
-
-
-
- 微信支付
-
-
-
-
-
+
支
支付宝支付
@@ -226,15 +218,13 @@
const selectedAmount = ref(null);
const isCustomAmount = ref(false);
const customAmount = ref('');
- const rechargePaymentMethod = ref('wechat');
+ const rechargePaymentMethod = ref('alipay');
const rechargeSubmitting = ref(false);
const rechargeOrderSubmittingKey = ref(null);
const isDeviceAsset = ref(true);
let assetTypePromise = null;
const paymentMethodOptions = computed(() => [
- isDeviceAsset.value
- ? { label: '微信支付', value: 'wechat' }
- : { label: '支付宝支付', value: 'alipay' }
+ { label: '支付宝支付', value: 'alipay' }
]);
const rechargeAmounts = [
{ value: 1000, label: '10' },
@@ -308,7 +298,7 @@
return rechargeOrderSubmittingKey.value === getRechargeOrderSubmitKey(rechargeOrder);
};
- const getDefaultRechargePaymentMethod = () => isDeviceAsset.value ? 'wechat' : 'alipay';
+ const getDefaultRechargePaymentMethod = () => 'alipay';
const normalizeRechargePaymentMethod = () => {
const defaultMethod = getDefaultRechargePaymentMethod();
diff --git a/pages/order-list/order-list.vue b/pages/order-list/order-list.vue
index 29ec4c4..b45fbfe 100644
--- a/pages/order-list/order-list.vue
+++ b/pages/order-list/order-list.vue
@@ -100,9 +100,7 @@
const isDeviceAsset = ref(true);
let assetTypePromise = null;
const paymentMethodOptions = computed(() => [
- isDeviceAsset.value
- ? { label: '微信支付', value: 'wechat' }
- : { label: '支付宝支付', value: 'alipay' },
+ { label: '支付宝支付', value: 'alipay' },
{ label: '钱包支付', value: 'wallet' }
]);
const filterOptions = [
diff --git a/pages/package-order/package-order.vue b/pages/package-order/package-order.vue
index 5f118be..7b33acf 100644
--- a/pages/package-order/package-order.vue
+++ b/pages/package-order/package-order.vue
@@ -59,15 +59,7 @@
-
-
-
- 微信支付
-
-
-
-
-
+
支
支付宝支付
@@ -117,7 +109,7 @@
const currentPackage = ref(null);
const packageList = reactive([]);
const loading = ref(false);
- const paymentMethod = ref('wechat');
+ const paymentMethod = ref('alipay');
const walletBalance = ref(0);
const paySubmitting = ref(false);
const isDeviceAsset = ref(true);
@@ -135,12 +127,12 @@
return `${allowance} ${unit}`;
};
- const getDefaultPaymentMethod = () => isDeviceAsset.value ? 'wechat' : 'alipay';
+ const getDefaultPaymentMethod = () => 'alipay';
const isPaymentMethodAvailable = (method) => {
if (method === 'wallet') return true;
- if (method === 'wechat') return isDeviceAsset.value;
- if (method === 'alipay') return !isDeviceAsset.value;
+ if (method === 'wechat') return false;
+ if (method === 'alipay') return true;
return false;
};
@@ -243,7 +235,7 @@
const getCreateOrderPaymentMethod = () => {
if (paymentMethod.value === 'alipay') return 'alipay';
- if (paymentMethod.value === 'wallet' && !isDeviceAsset.value) return 'alipay';
+ if (paymentMethod.value === 'wallet') return 'alipay';
return undefined;
};