浏览代码

feat: iOS价格展示

ArvinQi 6 年之前
父节点
当前提交
47e736ed28
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      pages/type/vip.vue

+ 2 - 1
pages/type/vip.vue

@@ -43,7 +43,8 @@ export default {
   methods: {
     async getList() {
       const deviceSign = this.deviceType ? 'ios 7.0.0' : 'android 9.0.0';
-      let res = await this.$axios.$get(`/api/vip/getList`, { headers: { 'x_app': deviceSign } })
+      const extraHeaders = this.deviceType === 'ios' ? { x_app: 'ios 4.6.0', x_nonce_str: '1558105441627', x_signature: 'h5' } : {};
+      let res = await this.$axios.$get(`/api/vip/getList`, { headers: { ...extraHeaders } })
       if (res) {
         this.vipList = res.data
       }