@@ -183,6 +183,19 @@
if (uid) {
this.uid = uid
}
+ if (first) {
+ axios({
+ method: 'post',
+ url: 'https://reader-api.ai160.com/wx/userEvent/v2',
+ headers: {
+ uid: this.uid,
+ channelCode: '3001'
+ },
+ data: {
+ action: 'IOS_PAY_ENTER'
+ }
+ })
if (code) {
this.code = code
axios({
@@ -201,19 +214,6 @@
} else {
this.getWxCode()
- if (first) {
- axios({
- method: 'post',
- url: 'https://reader-api.ai160.com/wx/userEvent/v2',
- headers: {
- uid: this.uid,
- channelCode: '3001'
- },
- data: {
- action: 'IOS_PAY_ENTER'
- }
- })
},
methods: {
selected(e) {