|
@@ -37,27 +37,39 @@ export default {
|
|
|
if (this.value) {
|
|
if (this.value) {
|
|
|
this.checked = this.value;
|
|
this.checked = this.value;
|
|
|
}
|
|
}
|
|
|
- this.$http.get('/sysConfig/get/pay_config').then(res => {
|
|
|
|
|
- let configs = JSON.parse(res.value).filter(item => {
|
|
|
|
|
- if (item.key === 'BALANCE') {
|
|
|
|
|
- return this.userInfo && this.userInfo.walletEnabled;
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ (this.$store.state.review && window.cordova && window.cordova.platformId === 'ios') ||
|
|
|
|
|
+ navigator.userAgent.includes('#review#')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.payConfig = [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '绿洲石',
|
|
|
|
|
+ key: 'BALANCE',
|
|
|
|
|
+ icon: 'https://cdn.raex.vip/image/2022-05-18-17-46-19eDglIIAy.png',
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ enabled: true
|
|
|
}
|
|
}
|
|
|
- return true;
|
|
|
|
|
- });
|
|
|
|
|
- if (this.inWeixin) {
|
|
|
|
|
- configs.forEach(item => {
|
|
|
|
|
- if (item.key === 'ALIPAY') {
|
|
|
|
|
- item.key = 'ALIPAY_BRIDGE';
|
|
|
|
|
|
|
+ ];
|
|
|
|
|
+ this.checked = 'BALANCE';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$http.get('/sysConfig/get/pay_config').then(res => {
|
|
|
|
|
+ let configs = JSON.parse(res.value).filter(item => {
|
|
|
|
|
+ if (item.key === 'BALANCE') {
|
|
|
|
|
+ return this.userInfo && this.userInfo.walletEnabled;
|
|
|
}
|
|
}
|
|
|
|
|
+ return true;
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
- this.payConfig = configs.sort((a, b) => a.sort - b.sort);
|
|
|
|
|
- if (window.cordova && window.cordova.platformId === 'ios' && this.$store.state.review) {
|
|
|
|
|
- this.checked = 'IAP';
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ if (this.inWeixin) {
|
|
|
|
|
+ configs.forEach(item => {
|
|
|
|
|
+ if (item.key === 'ALIPAY') {
|
|
|
|
|
+ item.key = 'ALIPAY_BRIDGE';
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ this.payConfig = configs.sort((a, b) => a.sort - b.sort);
|
|
|
this.checked = (configs.find(i => i.show && i.enabled) || {}).key;
|
|
this.checked = (configs.find(i => i.show && i.enabled) || {}).key;
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|