修复:ios审核上传照片问题
This commit is contained in:
@@ -7,8 +7,8 @@ export const ENV = process.env.NODE_ENV || 'development';
|
|||||||
*/
|
*/
|
||||||
const BASE_URL_MAP = {
|
const BASE_URL_MAP = {
|
||||||
development: {
|
development: {
|
||||||
MAIN: 'http://192.168.110.100:9300/pb/', // 张川川
|
//MAIN: 'http://192.168.110.100:9300/pb/', // 张川川
|
||||||
//MAIN: 'https://global.nuttyreading.com/', // 线上
|
MAIN: 'https://global.nuttyreading.com/', // 线上
|
||||||
// PAYMENT: 'https://dev-pay.example.com', // 暂时用不到
|
// PAYMENT: 'https://dev-pay.example.com', // 暂时用不到
|
||||||
// CDN: 'https://cdn-dev.example.com', // 暂时用不到
|
// CDN: 'https://cdn-dev.example.com', // 暂时用不到
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -145,7 +145,7 @@
|
|||||||
"updateFailed": "Update Failed",
|
"updateFailed": "Update Failed",
|
||||||
"paymentMethod": "Payment Method",
|
"paymentMethod": "Payment Method",
|
||||||
"googlePay": "Google Pay",
|
"googlePay": "Google Pay",
|
||||||
"applePay": "Apple Pay",
|
"applePay": "In-App Purchase",
|
||||||
"agreeText": "I have agreed",
|
"agreeText": "I have agreed",
|
||||||
"agreement": "Recharge Agreement",
|
"agreement": "Recharge Agreement",
|
||||||
"agreeFirst": "Please agree to the recharge agreement first",
|
"agreeFirst": "Please agree to the recharge agreement first",
|
||||||
|
|||||||
@@ -146,7 +146,7 @@
|
|||||||
"updateFailed": "更新失败",
|
"updateFailed": "更新失败",
|
||||||
"paymentMethod": "支付方式",
|
"paymentMethod": "支付方式",
|
||||||
"googlePay": "Google Pay",
|
"googlePay": "Google Pay",
|
||||||
"applePay": "Apple Pay",
|
"applePay": "IAP 支付",
|
||||||
"agreeText": "我已同意",
|
"agreeText": "我已同意",
|
||||||
"agreement": "充值协议",
|
"agreement": "充值协议",
|
||||||
"agreeFirst": "请先同意充值协议",
|
"agreeFirst": "请先同意充值协议",
|
||||||
|
|||||||
@@ -278,10 +278,7 @@
|
|||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
console.log('支付错误', err);
|
console.log('支付错误', err);
|
||||||
restoreComplateRequest()
|
restoreComplateRequest()
|
||||||
uni.showToast({
|
uni.showToast({ title: t('user.closeWindow'), icon: 'error' })
|
||||||
title: '关闭支付弹窗',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -232,6 +232,19 @@ export function useUpload(): UseUploadReturn {
|
|||||||
extension
|
extension
|
||||||
}: ChooseFileOption): Promise<ChooseFile[]> {
|
}: ChooseFileOption): Promise<ChooseFile[]> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
if(uni.getSystemInfoSync().platform === 'ios') {
|
||||||
|
uni.chooseImage({
|
||||||
|
count: multiple ? maxCount : 1,
|
||||||
|
mediaType: ['image'],
|
||||||
|
sizeType,
|
||||||
|
sourceType,
|
||||||
|
extension,
|
||||||
|
success: (res) => resolve(formatImage(res)),
|
||||||
|
fail: reject
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
console.log('-9-9-9-');
|
||||||
switch (accept) {
|
switch (accept) {
|
||||||
case 'image':
|
case 'image':
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
|
|||||||
Reference in New Issue
Block a user