H5更新body显示di为空更改

This commit is contained in:
wwz
2025-03-01 13:42:06 +08:00
parent 17a79eef0f
commit 6c920a9ea5

View File

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