| | |
| | | Vue.prototype.$webHost = 'https://rbb98765.zrgy-bbg.com' |
| | | Vue.prototype.$util = util |
| | | Vue.prototype.$baseUrl = 'https://qxg1996.lllykj.com' |
| | | if(process.env.NODE_ENV === 'development') { |
| | | Vue.prototype.$webHost = 'https://test-skfq.zrgy-bbg.com' |
| | | } |
| | | Vue.prototype.$bank = [ |
| | | '中国工商银行', |
| | | '中国建设银行', |
| | |
| | | let goUrl = '' |
| | | |
| | | // qxgLogin接口 |
| | | // configureToDomain: 小猪优选是 融6,则configureToDomain = 6,看商城属于融几,购有趣(融7)等等 |
| | | const ygxRes = await new Promise((resolve, reject) => { |
| | | uni.request({ |
| | | url: t.$webHost + '/api/v2/auth/qxgIosUnionLogin?phone=' + t.$util.getUserInfo().phone, |
| | | url: t.$webHost + '/api/v2/auth/iosShopUnionLogin?phone=' + t.$util.getUserInfo().phone+'&configureToDomain=6', |
| | | success: resolve, |
| | | fail: reject |
| | | }) |
| | |
| | | const _this = this; |
| | | if(_this.$util.getUserInfo()?.phone){ |
| | | uni.request({ |
| | | url: _this.$webHost+'/api/v2/auth/qxgIosUnionLogin?phone='+_this.$util.getUserInfo().phone, |
| | | url: _this.$webHost+'/api/v2/auth/iosShopUnionLogin?phone=' + _this.$util.getUserInfo().phone+'&configureToDomain=6', |
| | | data:{ |
| | | customerId: uni.getStorageSync('ygxLogin').customerId, |
| | | appId: uni.getStorageSync('ygxLogin').appId |
| | |
| | | const _this = this; |
| | | await uni.request({ |
| | | // url: _this.$webHost+'/api/v2/auth/ygxLogin?phone='+_this.$util.getUserInfo().phone+'&appId='+'47be9559-6b1b-42dd-84ed-25d028065013', |
| | | url: _this.$webHost + '/api/v2/auth/qxgIosUnionLogin?phone=' + _this.$util.getUserInfo().phone, |
| | | // url: _this.$webHost + '/api/v2/auth/qxgIosUnionLogin?phone=' + _this.$util.getUserInfo().phone, |
| | | // configureToDomain: 小猪优选是 融6,则configureToDomain = 6,看商城属于融几,购有趣(融7)等等 |
| | | url: _this.$webHost + '/api/v2/auth/iosShopUnionLogin?phone=' + _this.$util.getUserInfo().phone+'&configureToDomain=6', |
| | | success: function (res) { |
| | | _this.ygxLogin = res.data.data; |
| | | uni.setStorageSync('ygxLogin',_this.ygxLogin) |