Przeglądaj źródła

接口添加商户字段merchantCode

tangdehang 5 miesięcy temu
rodzic
commit
65b74a47bf
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 3 3
      pages/introductionCloudPhone/index.vue
  2. 1 1
      plugins/axios.js

+ 3 - 3
pages/introductionCloudPhone/index.vue

@@ -169,7 +169,7 @@ export default {
     },
     getSuggestApp() {
       this.$axios.$post('/public/v1/market/getSuggestApp', {
-        pageNum: 1, pageSize: -1
+        pageNum: 1, pageSize: -1, merchantCode: this.$route.query.merchantCode,
       }).then((res) => {
         this.applicationList = res.data
       });
@@ -181,7 +181,7 @@ export default {
     search() {
       if (!this.searchText) return
       this.appSeatchList.slice(0, this.appSeatchList.length)
-      this.$axios.$post('/public/v1/market/clientSearchSuggestApp', { pageSize: 100, pageNum: 1, appName: this.searchText }).then((res) => {
+      this.$axios.$post('/public/v1/market/clientSearchSuggestApp', { pageSize: 100, pageNum: 1, appName: this.searchText, merchantCode: this.$route.query.merchantCode }).then((res) => {
         this.appSeatchList = res.data.list
         this.isShow = false
         this.appSeatchList.forEach(element => {
@@ -194,7 +194,7 @@ export default {
         this.pay()
         return 
       }
-      let url = `/introductionCloudPhone/onlineService?token=${this.$route.query.token}`
+      let url = `/introductionCloudPhone/onlineService?token=${this.$route.query.token}&merchantCode=${this.$route.query.merchantCode}`
       if(this.$route.query.isWeixin) {
         url+= '&isWeixin=1'
       }

+ 1 - 1
plugins/axios.js

@@ -15,7 +15,7 @@ export default function ({ $axios, $auth, $userAgent, query, redirect }) {
     } else {
       config.headers.client = 7;
     }
-    config.headers.versionname = '5.8.2'
+    config.headers.versionname = '5.9.0';
     return config;
   });
   $axios.onResponse(async (response) => {