Commit 1a21ed1f authored by wildfirecode13's avatar wildfirecode13

1

parent 0776dd76
...@@ -300,10 +300,10 @@ export const getUserAddress = async (opts = {}) => { ...@@ -300,10 +300,10 @@ export const getUserAddress = async (opts = {}) => {
let _opts = Object.assign({}, defaults, opts); let _opts = Object.assign({}, defaults, opts);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
my.authorize({ my.authorize({
scopes: 'scope.addressList', scopes: 'scope.addressList',
success: () => { success: () => {
const { addAddress, searchAddress, locateAddress, joinTag } = _opts; const { addAddress, searchAddress, locateAddress, joinTag } = _opts;
if (!my.tb || !my.tb.chooseAddress) { if (!my.tb.chooseAddress) {
reject({ reject({
noSupport: true, noSupport: true,
errorMessage: '当前版本不支持选择收货地址,请升级到最新版本' errorMessage: '当前版本不支持选择收货地址,请升级到最新版本'
...@@ -336,14 +336,10 @@ export const getUserAddress = async (opts = {}) => { ...@@ -336,14 +336,10 @@ export const getUserAddress = async (opts = {}) => {
reject(res); reject(res);
} }
); );
},
fail: err => {
reject(err);
} }
}); });
}); });
}; };
/** /**
* 选择图片 * 选择图片
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment