|
@@ -280,17 +280,17 @@ export default {
|
|
|
},
|
|
|
async fetch() {
|
|
|
if (this.$route.query.type === 'pc') {
|
|
|
- this.$router.push({ path: '/activity/lottery/pc', query: { token: this.$route.query.token } })
|
|
|
+ this.$router.push({ path: '/activity/lottery/pc', query: { token: this.$route.query.token, type: 'pc' } })
|
|
|
}
|
|
|
if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
|
|
|
this.token = await window.native.getToken();
|
|
|
} else {
|
|
|
this.token = this.$route.query.token;
|
|
|
}
|
|
|
-
|
|
|
- if (this.$userAgent.isAndroid) {
|
|
|
+
|
|
|
+ if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
|
|
|
this.client = 1;
|
|
|
- } else if (this.$userAgent.isIos) {
|
|
|
+ } else if (this.$userAgent.isSzx && this.$userAgent.isIos) {
|
|
|
this.client = 2;
|
|
|
} else if (this.$userAgent.isMiniProgram) {
|
|
|
this.client = 5;
|
|
@@ -344,17 +344,8 @@ export default {
|
|
|
};
|
|
|
taocan = this.sort_ASCII(taocan);
|
|
|
const sign = this.jiaqian(JSON.stringify(taocan));
|
|
|
- if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
|
|
|
- this.client = 1;
|
|
|
- } else if (this.$userAgent.isSzx && this.$userAgent.isIos) {
|
|
|
- this.client = 2;
|
|
|
- } else if (this.$userAgent.isMiniProgram) {
|
|
|
- this.client = 5;
|
|
|
- } else {
|
|
|
- this.client = 7;
|
|
|
- }
|
|
|
const res = await this.$axios.$post('/pay/v1/order/create', taocan, {
|
|
|
- headers: { Authorization: this.token, sign, client: this.client }
|
|
|
+ headers: { Authorization: this.token, sign }
|
|
|
});
|
|
|
Toast.clear();
|
|
|
if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
|