| | |
| | | console.log(res); |
| | | switch(res.action) |
| | | { |
| | | case "back": |
| | | case "back"://返回 |
| | | this.backLast(); |
| | | break; |
| | | case "tbauth": |
| | | case "tbauth"://淘宝授权 |
| | | this.openTbMd(); |
| | | break; |
| | | case "totb": |
| | | this.targetTb(res.tburl); |
| | | break; |
| | | } |
| | | }, |
| | | targetTb(tburl) |
| | | { |
| | | // #ifdef APP-PLUS |
| | | if (plus.runtime.isApplicationExist({ |
| | | pname: 'com.taobao.taobao', |
| | | action: 'taobao://' |
| | | })) { |
| | | const plug = uni.requireNativePlugin('xiguazhu-baichuan') |
| | | plug.detailPage({ |
| | | url: tburl, |
| | | "openType": 0 |
| | | }, result => { |
| | | }); |
| | | } else { |
| | | uni.navigateTo({ |
| | | url:'@/webView/webView?url=' + tburl |
| | | }) |
| | | } |
| | | // #endif |
| | | }, |
| | | backLast() |
| | | { |
| | | uni.navigateBack({ |
| | |
| | | //const httpUrl = ""; // 接口域名 |
| | | //const httpUrl = "http://appapitest.ushopvip.com"; // 测试环境接口域名 |
| | | const httpUrl = "http://dfgapp.ushopvip.com"; // 生产环境接口域名 |
| | | const httpUrl = "http://appapitest.ushopvip.com"; // 测试环境接口域名 |
| | | //const httpUrl = "http://dfgapp.ushopvip.com"; // 生产环境接口域名 |
| | | const salt = ""; |
| | | export default { |
| | | httpUrl:httpUrl, |