This commit is contained in:
kbing1981 2024-08-26 13:52:29 +08:00
commit 060371b92e
2 changed files with 81 additions and 12 deletions

View File

@ -45,6 +45,15 @@
<u-input type="number" v-model="age" maxlength="11" placeholder="请输入年龄" />
<view class="xian"></view>
</view>
<view class="item_view">
<view class="item_title">请选合作项目</view>
<view class="guke-list">
<view class="guke-btn huiBtn" :class="{ lanBtn: selected.includes(item) }"
@click="gukeBtn(item)" v-for="(item,index) in typeList" :key="index">
{{item.value}}
</view>
</view>
</view>
<view class="item_view">
<view class="item_title" style="margin-bottom: 10px;">上传身份证正面</view>
<view class="flex" style="overflow: hidden;flex-direction: initial;">
@ -140,6 +149,7 @@
export default {
data() {
return {
selected:[],
pickVal: [0, 0, 0], //
pickVal2:[], // 线
cityArr: [], //
@ -156,14 +166,41 @@
back:'',
certification:[],
bb:'1',
cityData:''
cityData:'',
typeId: '',
typeList:[]
}
},
onLoad() {
this.getChannel();
this.loadProvinces()
this.loadProvinces();
this.fuwuType()
},
methods: {
gukeBtn(item) {
var index = this.selected.indexOf(item);
if (index === -1) {
this.selected.push(item);
} else {
this.selected.splice(index, 1);
}
var data = [];
for (var i = 0; i < this.selected.length; i++) {
data.push(this.selected[i].id)
}
this.typeId = data.join(",")
},
fuwuType(){
this.$Request.get("/app/dict/list", {
type: '服务类型'
}).then(res => {
if (res.code == 0) {
if (res.data) {
this.typeList = res.data
}
}
});
},
loadProvinces() { //
uni.request({
url: 'http://test-api.tiananhub.com/api/province/GetListProvince',
@ -315,6 +352,10 @@
this.$queue.showToast('请输入年龄')
return;
}
if (!this.typeId) {
this.$queue.showToast('请选合作项目')
return;
}
if (this.front == '') {
this.$queue.showToast('请上身份证正面')
return;
@ -323,6 +364,7 @@
this.$queue.showToast('请上身份证反面')
return;
}
this.certification = this.certification.toString();
let userId = this.$queue.getData('userId');
let data = {
@ -333,7 +375,8 @@
city: this.cityData,
front: this.front,
back:this.back,
certification:this.certification
certification:this.certification,
classifyId: this.typeId,
}
this.$Request.postJson('/app/artificer/insertAgency', data).then(res => {
if (res.code == 0) {
@ -477,17 +520,47 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
@import '../../static/less/index.less';
@import '../../static/css/index.css';
.huiBtn {
color:#333;
background: #f3f3f3;
// color: #333333;
}
.lanBtn {
color:#fff;
background: #049F89;
}
.guke-btn {
width:30%;
line-height:34px;
text-align: center;
font-weight: bold;
font-size:11px;
border-radius: 6px;
margin-top:5px;
margin-right:6px;
}
.guke-list {
width: 100%;
margin-top: 10px;
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
box-sizing: border-box;
background-color: #fff;
justify-content: flex-start;
}
/deep/.is-required{
display: none;
}
/deep/.uni-forms-item__label{
width:100% !important;
font-size: 14px;
font-size: 16px;
font-family: PingFang SC Heavy, PingFang SC Heavy-Heavy;
color: #333333;
font-weight: 400;
margin-bottom: 4px;
}
/deep/.uni-forms-item{

View File

@ -14,8 +14,6 @@
<view class="flex align-center touxiang-left-view" v-if="item.status=='1'" v-for="(item, index) in orderList" :key='index' @click="goOrder(item)">
<view class="touxiang-left-content">
<image style="border: 2px solid #e2e2e2;" class="touxiang-left-content-img" :src="item.artificerImg ? item.artificerImg : '../../static/logo.png'" @click.stop="saveImgs(item.artificerImg)" mode="aspectFill"></image>
<image class="touxiang-left-content-img" v-if="item.isHot == 1" src="https://admin.sjajk.com/file/uploadPath/2023/02/16/9ae1b7e9fa931b5fc24cd8edecc10d9f.png"></image>
<!-- <image class="touxiang-frame" :src="technicianType=='3'?'../../static/vip/grade1-1.gif':technicianType=='4'?'../../static/vip/grade2-1.gif':'../../static/vip/grade3-1.gif'"></image> -->
<image class="touxiang-frame" :src="item.technicianType=='3'?'../../static/vip/grade1-1.gif':item.technicianType=='4'?'../../static/vip/grade2-1.gif':'../../static/vip/grade3-1.gif'"></image>
</view>
<view class="list-right">
@ -459,7 +457,6 @@
width: 100%;
display: flex;
flex-direction:row;
padding: 10rpx 0;
}
.therapist-mian{
width: 100%;
@ -560,8 +557,7 @@
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 16rpx;
justify-content: space-around;
}
.zpmore_view {
position: absolute;
@ -628,7 +624,7 @@
}
.touxiang-left-view{
width: 100%;
height: 126px;
height: 130px;
border-radius: 18rpx;
align-items: flex-start;
background: #fff;