This commit is contained in:
wzz
2024-08-05 09:14:54 +08:00
parent 1dd22ddb54
commit fb7d0cc232
22 changed files with 300 additions and 1137 deletions

View File

@@ -44,19 +44,23 @@
<template v-if="showElse">
<view class="Box_box flex-between">
<view class="Box_boxone">公司地址</view>
<view class="Box_boxtow"><input type="text" v-model="form.c_address" placeholder="请填写公司地址" /></view>
<view class="Box_boxtow"><input type="text" v-model="form.c_address" placeholder="请填写公司地址" />
</view>
</view>
<view class="Box_box flex-between">
<view class="Box_boxone">联系电话</view>
<view class="Box_boxtow"><input type="text" v-model="form.c_phone" placeholder="请填写公司联系电话" /></view>
<view class="Box_boxtow"><input type="text" v-model="form.c_phone" placeholder="请填写公司联系电话" />
</view>
</view>
<view class="Box_box flex-between">
<view class="Box_boxone">开户行名称</view>
<view class="Box_boxtow"><input type="text" v-model="form.c_bank_name" placeholder="请填写公司开户行名称" /></view>
<view class="Box_boxtow"><input type="text" v-model="form.c_bank_name"
placeholder="请填写公司开户行名称" /></view>
</view>
<view class="Box_box flex-between">
<view class="Box_boxone">开户行账号</view>
<view class="Box_boxtow"><input type="text" v-model="form.c_bank_account" placeholder="请填写公司开户行账号" /></view>
<view class="Box_boxtow"><input type="text" v-model="form.c_bank_account"
placeholder="请填写公司开户行账号" /></view>
</view>
</template>
</template>
@@ -133,7 +137,6 @@
},
methods: {
stopPropagation() {
console.log(1111)
this.subCategoryList = [];
},
wxInit() {
@@ -168,6 +171,7 @@
// 函数执行内容
}, 500),
async categorySubClick(category) {
console.log(category)
if (category.companyName == '以上都不是') {
let res = await this.api.storepaidkeywordsearch({
sign: uni.utils.md5(this.form.user_name + 'd2e862a1-02b5-4405-8c69-c74ca871bcfe'),
@@ -176,9 +180,14 @@
})
this.subCategoryList = res.data
} else {
this.form.user_name = category.companyName;
this.form.user_duty = category.creditCode;
this.subCategoryList = [];
setTimeout(() => {
this.$set(this.form, 'user_name', category.companyName);
this.$set(this.form, 'user_duty', category.creditCode);
// this.form.user_name = category.companyName;
// this.form.user_duty = category.creditCode;
this.subCategoryList = [];
}, 500)
}
@@ -299,41 +308,7 @@
}
// window.location.href = "https://i.hangzhouyiyao.cn/activities?appKey=3f4ca8be626445e8b306c2badafd6f46&appEntrance=1&business=money"
}
// uni.request({
// url: 'https://invoice.sxczgkj.cn/api/' + 'user/subopeninvoice',
// data: {
// //参数
// id: this.form.id,
// open_id: this.form.open_id,
// user_name: this.form.user_name,
// user_type: this.form.user_type,
// user_duty: this.form.user_duty,
// email: this.form.email,
// img: this.form.img,
// mobile: this.form.mobile,
// notes: this.form.notes
// },
// method: 'POST', //请求方式,必须为大写
// success: res => {
// uni.showToast({
// title: res.data.message || res.data.msg,
// icon: "none",
// })
// if (res.data.code == 1) {
// setTimeout(() => {
// if (res.data.data.url) {
// window.location.href = res.data.data.url
// }
// // let data = encodeURIComponent(res.data.data.url);
// // uni.navigateTo({
// // url: '/pages/index/web?src=' + data
// // })
// }, 1000);
// // window.location.href = "https://i.hangzhouyiyao.cn/activities?appKey=3f4ca8be626445e8b306c2badafd6f46&appEntrance=1&business=money"
// }
// }
// });
},
clickakex(e) {
this.form.user_type = e;
@@ -343,34 +318,22 @@
this.form.email = '';
this.form.mobile = '';
},
async getOrder() {
//搜索值
uni.request({
url: 'https://invoice.sxczgkj.cn/api/' + 'store/enterprise',
data: {
//参数
sign: uni.utils.md5(this.form.user_name + 'd2e862a1-02b5-4405-8c69-c74ca871bcfe'),
like: this.form.user_name,
open_id: this.form.open_id
},
method: 'POST', //请求方式,必须为大写
success: async (res) => {
console.log('接口返回------', res);
setTimeout(() => {
// if (this.page == 1) {
// if (res.data.data.length != 0) {
this.subCategoryList = [...res.data.data, ...[{
companyName: '以上都不是'
}]];
// }
// } else {
// this.subCategoryList.push(...res.data.data);
// }
}, 500);
}
});
async getOrder() { //搜索值
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) {
this.subCategoryList = res.data
// this.subCategoryList = [...res.data,{'companyName':'以上都不是','creditCode':''}] ;
// this.subCategoryList = [...res.data,{'companyName':'以上都不是','creditCode':''}] ;
// if (this.page == 1) {
// this.subCategoryList = res.data;
// } else {
// this.subCategoryList.push(...res.data);
// }
}
}
}
};
@@ -445,13 +408,16 @@
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
.Box_boxone{
.Box_boxone {
width: 160rpx;
text-align: left;
}
.Box_boxtow{
flex:auto;
.Box_boxtow {
flex: auto;
}
.position {
position: absolute;
right: 0;
@@ -511,7 +477,7 @@
font-size: 28rpx;
color: #333333;
}
.Box_boxtowimge {
display: flex;
justify-content: center;

View File

@@ -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)
}
}
}
}