|
@@ -12,8 +12,8 @@
|
|
选择名片
|
|
选择名片
|
|
</view>
|
|
</view>
|
|
<view style="font-size:12px;padding-right:20rpx;" class='flex align-item-center' @click="cardShow">
|
|
<view style="font-size:12px;padding-right:20rpx;" class='flex align-item-center' @click="cardShow">
|
|
- {{formData.cardBusiness?formData.cardBusiness:'暂无名片'}}
|
|
|
|
- <u-icon v-if='!formData.cardBusiness' name="arrow-right" size="12"></u-icon>
|
|
|
|
|
|
+ {{formData.cardBusiness}}
|
|
|
|
+ <u-icon name="arrow-right" size="12"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="row1">
|
|
<view class="row1">
|
|
@@ -25,7 +25,7 @@
|
|
<view v-for="(item,index) in labelList":key="index">
|
|
<view v-for="(item,index) in labelList":key="index">
|
|
<view>
|
|
<view>
|
|
<view class="flex">
|
|
<view class="flex">
|
|
- <u-input placeholder="请输入圈子标签,2-4个字" border="none" v-model="item.labelName" @change="change"
|
|
|
|
|
|
+ <u-input placeholder="请输入圈子标签,2-6个字" border="none" v-model="item.labelName" @change="change"
|
|
:customStyle="custom">
|
|
:customStyle="custom">
|
|
<template slot="suffix">
|
|
<template slot="suffix">
|
|
<image src="../../static/imgs/mySet/del.png" mode="widthFix" style="width: 40rpx;" @click="subtract(index)"></image>
|
|
<image src="../../static/imgs/mySet/del.png" mode="widthFix" style="width: 40rpx;" @click="subtract(index)"></image>
|
|
@@ -64,18 +64,6 @@
|
|
labelList: [{
|
|
labelList: [{
|
|
labelName: '',
|
|
labelName: '',
|
|
},
|
|
},
|
|
- {
|
|
|
|
- labelName: '',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- labelName: '',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- labelName: '',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- labelName: '',
|
|
|
|
- },
|
|
|
|
{
|
|
{
|
|
labelName: '',
|
|
labelName: '',
|
|
}
|
|
}
|
|
@@ -84,6 +72,7 @@
|
|
circleName: '',
|
|
circleName: '',
|
|
circleLabel: [],
|
|
circleLabel: [],
|
|
commonId: '',
|
|
commonId: '',
|
|
|
|
+ cardBusiness:''
|
|
},
|
|
},
|
|
currectData:{}
|
|
currectData:{}
|
|
};
|
|
};
|
|
@@ -108,6 +97,7 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
this.cardList = [res.data.items]
|
|
this.cardList = [res.data.items]
|
|
|
|
+ this.formData.cardBusiness = res.data.items[0].cardBusiness
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -141,10 +131,10 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.labelList[i].labelName.length > 4 || this.labelList[i].labelName.length < 2) {
|
|
|
|
|
|
+ if (this.labelList[i].labelName.length > 6 || this.labelList[i].labelName.length < 2) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
- message: '标签内容2-4个字!',
|
|
|
|
|
|
+ message: '标签内容2-6个字!',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -163,18 +153,20 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'success',
|
|
type: 'success',
|
|
- message: '提交成功!',
|
|
|
|
|
|
+ message: '信息审核中,请留意消息通知!',
|
|
|
|
+ back:true,
|
|
|
|
+ duration:3000
|
|
})
|
|
})
|
|
- setTimeout(() => {
|
|
|
|
- uni.navigateBack()
|
|
|
|
- }, 500)
|
|
|
|
})
|
|
})
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }, 3000)
|
|
},
|
|
},
|
|
add() {
|
|
add() {
|
|
- if (this.labelList.length > 3) {
|
|
|
|
|
|
+ if (this.labelList.length > 5) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
- message: '“标签数量2-4个!',
|
|
|
|
|
|
+ message: '“标签数量2-6个!',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -186,7 +178,7 @@
|
|
if (this.labelList.length < 3) {
|
|
if (this.labelList.length < 3) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
- message: '“标签数量2-4个!',
|
|
|
|
|
|
+ message: '“标签数量2-6个!',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|