diff --git a/pages/hindex/indexs.vue b/pages/hindex/indexs.vue index 547b282..bfdccac 100644 --- a/pages/hindex/indexs.vue +++ b/pages/hindex/indexs.vue @@ -82,7 +82,6 @@ return { showtext: 0, subCategoryList: [], - open_id: '', form: { id: '', user_type: 2, @@ -108,7 +107,6 @@ try { if (e.q) { const q = decodeURIComponent(e.q) // 获取到二维码原始链接内容 - // this.form.id = e.id let queryParams = {}; let queryString = q.split('?')[1]; if (queryString) { @@ -122,24 +120,21 @@ } } catch (e) {} } else { - this.form.body = e.id + this.form.body = e.id ? e.id : e.body } // 获取开票抬头 // 这是H5 // #ifdef H5 - this.getInvoiceList() - this.form.body = e.id - this.form.open_id = e.open_id + if (e.body) { + this.form.body = e.id ? e.id : e.body + this.form.open_id = e.open_id + } // #endif - - // 这是微信 // #ifdef MP-WEIXIN this.showtitle = true this.form.open_id = uni.cache.get('open_id') // #endif - - try { let res = await this.api.szzpyfailccho({ id: this.form.body, @@ -242,7 +237,6 @@ }); return false; } - // http://localhost:8080/pages/hindex/index?id=12&open_id=102132 let res = await this.api.usersubopeninvoicefixed(this.form) if (res.code == 1) { uni.showToast({ @@ -274,7 +268,6 @@ this.form.mobile = '' }, async getOrder() { //搜索值 - console.log(this.form.open_id) let res = await this.api.enterprisestore({ like: this.form.user_name, open_id: this.form.open_id,