|
@@ -116,6 +116,7 @@ import { getProductList } from '@/api/product'
|
|
|
import { getUserInfo } from '@/api/user'
|
|
|
import { wechatPayCoin, wxPay } from '@/api/pay'
|
|
|
import { ahtuCodeApi } from '@/api/pay'
|
|
|
+import { getDevicePayWayId } from '@/utils/config'
|
|
|
|
|
|
export default {
|
|
|
name: 'RechargePage',
|
|
@@ -211,7 +212,8 @@ export default {
|
|
|
// 获取产品列表
|
|
|
async fetchProductList() {
|
|
|
try {
|
|
|
- const res = await getProductList()
|
|
|
+ const payWayId = getDevicePayWayId()
|
|
|
+ const res = await getProductList(payWayId)
|
|
|
this.rechargeOptions = res.data || []
|
|
|
} catch (error) {
|
|
|
console.error('获取产品列表失败:', error)
|