1
This commit is contained in:
@@ -74,13 +74,14 @@
|
||||
return {
|
||||
showtext: 0,
|
||||
subCategoryList: [],
|
||||
open_id: '',
|
||||
form: {
|
||||
id: '',
|
||||
open_id: '',
|
||||
user_type: 2,
|
||||
img: '',
|
||||
user_name: "",
|
||||
user_duty: "",
|
||||
open_id: '',
|
||||
email: "",
|
||||
mobile: '',
|
||||
status_note: '', //原因备注
|
||||
@@ -91,7 +92,9 @@
|
||||
},
|
||||
async onLoad(e) {
|
||||
if (e.id) {
|
||||
console.log(e)
|
||||
this.form.id = e.id
|
||||
this.form.open_id = e.open_id
|
||||
let res = await this.api.szzpyfailccho({
|
||||
id: this.form.id,
|
||||
view_type: this.form.view_type
|
||||
@@ -107,29 +110,11 @@
|
||||
this.form.body = e.body
|
||||
this.form.open_id = e.open_id
|
||||
}
|
||||
// this.form.id = e.id
|
||||
// this.form.open_id = e.open_id
|
||||
// if (e.view_type == 'fail') {
|
||||
// // http://localhost:8080/pages/hindex/indexs?id=7668&open_id=102132&view_type=fail
|
||||
// this.form.view_type = e.view_type
|
||||
// let res = await this.api.szzpyfailccho({
|
||||
// id: this.form.id,
|
||||
// view_type: this.form.view_type
|
||||
// })
|
||||
// try {
|
||||
// if (res.code == 1) {
|
||||
// this.form = res.data
|
||||
// }
|
||||
// } catch (e) {
|
||||
// //TODO handle the exception
|
||||
// }
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
onInput(e) {
|
||||
if (this.form.user_type == 2) {
|
||||
if ([...e.detail.value].length >= 6) {
|
||||
console.log(100000)
|
||||
this.handleClick()
|
||||
} else {
|
||||
this.subCategoryList = []
|
||||
@@ -138,7 +123,6 @@
|
||||
|
||||
},
|
||||
handleClick: _.debounce(function() {
|
||||
console.log(100000)
|
||||
this.getOrder()
|
||||
// 函数执行内容
|
||||
|
||||
@@ -244,26 +228,21 @@
|
||||
this.form.mobile = ''
|
||||
},
|
||||
async getOrder() { //搜索值
|
||||
uni.request({
|
||||
url: 'https://invoice.sxczgkj.cn/api/' + 'store/enterprise',
|
||||
data: {
|
||||
//参数
|
||||
like: this.form.user_name,
|
||||
open_id: this.form.open_id
|
||||
},
|
||||
method: 'POST', //请求方式,必须为大写
|
||||
success: res => {
|
||||
console.log('接口返回------', res);
|
||||
setTimeout(() => {
|
||||
if (this.page == 1) {
|
||||
this.subCategoryList = res.data.data;
|
||||
} else {
|
||||
this.subCategoryList.push(...res.data.data);
|
||||
}
|
||||
}, 500)
|
||||
|
||||
}
|
||||
});
|
||||
console.log(this.form.open_id)
|
||||
let res = await this.api.enterprisestore({
|
||||
like: this.form.user_name,
|
||||
open_id: this.form.open_id,
|
||||
sign: uni.utils.md5(this.form.user_name + 'd2e862a1-02b5-4405-8c69-c74ca871bcfe')
|
||||
})
|
||||
if (res.code == 1) {
|
||||
setTimeout(() => {
|
||||
if (this.page == 1) {
|
||||
this.subCategoryList = res.data;
|
||||
} else {
|
||||
this.subCategoryList.push(...res.data);
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user