Commit 5774d55f authored by 罗超's avatar 罗超

1

parent 58d6d86a
......@@ -18,14 +18,15 @@
</view>
<view class="con1" v-if="item.type==1">
<input class="input" type="text" v-model="dataOne[item.field]" :placeholder="item.text"
placeholder-style="color: #CECECEFF" @focus="inputFcous(item)"/>
<view style="width: 50rpx;height: 50rpx;display: flex;align-items: center;justify-content: center;position: absolute;
placeholder-style="color: #CECECEFF" @focus="inputFcous(item)" />
<view style="width: 50rpx;height: 50rpx;display: flex;align-items: center;justify-content: center;position: absolute;
top: -2rpx;
right: 10rpx;
z-index: 10;" @click="delInputText(item.field)">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/delete.png" v-if="item.delIcon" class="delIcon" mode="widthFix" ></image>
</view>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/delete.png"
v-if="item.delIcon" class="delIcon" mode="widthFix"></image>
</view>
</view>
<view class="con2" v-if="item.type==2">
<!-- 未上传成功 -->
......@@ -49,18 +50,20 @@
</view>
<view class="con1" v-if="item.type==1">
<input class="input" type="text" v-model="dataTwo[item.field]" :placeholder="item.text"
placeholder-style="color: #CECECEFF" @focus="inputFcous(item)"/>
<view style="width: 50rpx;height: 50rpx;display: flex;align-items: center;justify-content: center;position: absolute;
placeholder-style="color: #CECECEFF" @focus="inputFcous(item)" />
<view style="width: 50rpx;height: 50rpx;display: flex;align-items: center;justify-content: center;position: absolute;
top: -2rpx;
right: 10rpx;
z-index: 10;" @click="delInputText(item.field)">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/delete.png" v-if="item.delIcon" class="delIcon" mode="widthFix" ></image>
</view>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/delete.png"
v-if="item.delIcon" class="delIcon" mode="widthFix"></image>
</view>
</view>
<view class="con3" v-if="item.type==2">
<view class="numberBbox">
<image class="numberImg" :src="reduceIcon" mode="widthFix" @click="reduce"></image>
<input class="numberInput" type="number" disabled v-model.number="dataTwo[item.field]" />
<input class="numberInput" type="number" disabled
v-model.number="dataTwo[item.field]" />
<image class="numberImg" :src="addIcon" mode="widthFix" @click="add"></image>
</view>
</view>
......@@ -89,8 +92,8 @@
</view>
</view>
</view>
<input type="text" class="customTypeInput" v-model="dataTwo.CustomerOtherType" placeholder="以上都不合适,可在此输入客户群体"
placeholder-style="color: #CECECEFF" />
<input type="text" class="customTypeInput" v-model="dataTwo.CustomerOtherType"
placeholder="以上都不合适,可在此输入客户群体" placeholder-style="color: #CECECEFF" />
</view>
</view>
</view>
......@@ -103,13 +106,14 @@
</view>
<view class="con1" v-if="item.type==1">
<input class="input" type="text" v-model="dataThree[item.field]" :placeholder="item.text"
placeholder-style="color: #CECECEFF" @focus="inputFcous(item)"/>
<view style="width: 50rpx;height: 50rpx;display: flex;align-items: center;justify-content: center;position: absolute;
placeholder-style="color: #CECECEFF" @focus="inputFcous(item)" />
<view style="width: 50rpx;height: 50rpx;display: flex;align-items: center;justify-content: center;position: absolute;
top: -2rpx;
right: 10rpx;
z-index: 10;" @click="delInputText(item.field)">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/delete.png" v-if="item.delIcon" class="delIcon" mode="widthFix" ></image>
</view>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/delete.png"
v-if="item.delIcon" class="delIcon" mode="widthFix"></image>
</view>
</view>
<view class="con6" v-if="item.type==2">
<u-radio-group v-model="dataThree[item.field]">
......@@ -122,7 +126,8 @@
<view class="con3" v-if="item.type==3">
<view class="sliderCurNumBox">
<view style="display: flex; align-items: baseline;" v-if="dataThree.AreaRequirement>0">
<input class="sliderCurNum" disabled type="text" v-model="dataThree.AreaRequirement" />-
<input class="sliderCurNum" disabled type="text"
v-model="dataThree.AreaRequirement" />-
</view>
<input class="sliderCurNum" disabled type="text"
v-model="dataThree.EndAreaRequirement" />
......@@ -139,14 +144,24 @@
</view>
</view>
</view>
<view class="butBox" @click="nextStep">
<image :src="nextIcon" class="next" mode="widthFix" v-if="step!=3"></image>
<text v-if="step==3">完成</text>
<!-- 审核未通过 -->
<view v-if="dataOne.CompanyStatus!=1">
<view class="butBox" @click="nextStep">
<image :src="nextIcon" class="next" mode="widthFix" v-if="step!=3"></image>
<text v-if="step==3">完成</text>
</view>
<view class="skip" v-if="step==3">
<text @click="finish">跳过</text>
</view>
</view>
<view class="skip" v-if="step==3">
<text @click="finish">跳过</text>
<!-- 审核通过 -->
<view class="butBox" v-if="dataOne.CompanyStatus==1" @click="backBtn">
<image :src="nextIcon" class="next" mode="widthFix" v-if="step!=3"></image>
<text v-if="step==3">返回</text>
</view>
</view>
</view>
</view>
</template>
......@@ -170,31 +185,31 @@
// type=1:输入框,2:照片
stepOneList: [{
name: "营业执照",
tip:"(点击图片上传营业执照)",
tip: "(点击图片上传营业执照)",
type: 2
}, {
name: "企业名称",
text: "请输入企业名称",
field: "CompanyName",
delIcon:false,
delIcon: false,
type: 1
}, {
name: "统一社会信用代码",
text: "输入18位社会信用代码",
field: "UnifiedCode",
delIcon:false,
delIcon: false,
type: 1
}, {
name: "法人代表",
text: "请输入法人姓名",
field: "LegalPerson",
delIcon:false,
delIcon: false,
type: 1
}, {
name: "联系电话",
text: "请输入11位手机或者带区号座机号码",
field: "Mobile",
delIcon:false,
delIcon: false,
type: 1
}, ],
//type=1:输入框,2:步进器,3:多选
......@@ -202,7 +217,7 @@
name: "品牌名称",
text: "请输入品牌名称",
field: "BrandName",
delIcon:false,
delIcon: false,
type: 1
}, {
name: "店铺数量",
......@@ -218,11 +233,11 @@
name: "品牌定位",
text: "请输入品牌定位",
field: "FullBrandName",
delIcon:false,
delIcon: false,
type: 1
}, {
name: "客户群体",
tip:"(可多选)",
tip: "(可多选)",
text: "",
field: "CustomerType",
type: 4,
......@@ -233,11 +248,11 @@
name: "扩店区域",
text: "请输入扩店区域",
field: "StoreExpansion",
delIcon:false,
delIcon: false,
type: 1
}, {
name: "商品性质 ",
tip:"(单选)",
tip: "(单选)",
text: "",
field: "ProjectType",
type: 2
......@@ -269,7 +284,7 @@
EndBuiltUpArea: 0,
FullBrandName: "",
CustomerType: "",
CustomerOtherType:""
CustomerOtherType: ""
},
reduceIcon: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/reduceIcon.png",
addIcon: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/addIcon.png",
......@@ -291,21 +306,22 @@
AreaRequire: [],
AreaRequireMin: 0,
AreaRequireMax: 100,
finishBtn: "完成",
}
},
methods: {
// 输入框获取焦点
inputFcous(e){
e.delIcon=true
inputFcous(e) {
e.delIcon = true
},
delInputText(field){
this.dataOne[field]=""
this.dataTwo[field]=""
this.dataThree[field]=""
delInputText(field) {
this.dataOne[field] = ""
this.dataTwo[field] = ""
this.dataThree[field] = ""
},
// 输入框失去焦点
inputBlur(e){
e.delIcon=false
inputBlur(e) {
e.delIcon = false
},
// 获取客户群体枚举
getCustomerTypeEnumList() {
......@@ -446,7 +462,7 @@
},
//步骤一
stepOne() {
let parms = {
url: "/api/AppletTrade/SetCompany",
data: this.dataOne
......@@ -504,15 +520,16 @@
}
this.request2(parms, (res) => {
if (res.resultCode == 1) {
that.finish()
that.finish()
}
})
},
finish(){
uni.navigateTo({
url:"/pages/user-center/user-center"
})
},
//返回个人中心
finish() {
uni.navigateTo({
url: "/pages/user-center/user-center"
})
},
//下一步
nextStep() {
if (this.percent > 100) {
......@@ -543,12 +560,31 @@
//审核中或审核通过就不提交请求
if (this.dataOne.CompanyStatus == 0 || this.dataOne.CompanyStatus == 1) {
this.finish()
}else{
} else {
this.stepThree()
}
}
}
},
// 审核通过
backBtn(){
if (this.percent > 100) {
this.percent = 100
}
if (this.step == 1) {
this.stepName = "第2步 品牌信息"
this.nextSepName = "第3步"
this.step++
this.percent += this.percent
}else if(this.step == 2){
this.stepName = "第3步 扩店需求"
this.nextSepName = "完成"
this.step++
this.percent += this.percent
}else if(this.step == 3){
this.finish()
}
},
chooseType(item) { //选择客户群体
item.checked = !item.checked
},
......@@ -579,7 +615,7 @@
url: "/api/AppletTrade/GetUserCompany",
}
this.request2(parms, (res) => {
if (res.resultCode == 1&&res.data!=null) {
if (res.resultCode == 1 && res.data != null) {
this.dataOne = res.data
this.businessLicenseUploadIsSuccess = true
that.getUserCompanyBrand(res.data.CompanyId)
......@@ -633,7 +669,7 @@
tmplIds: template,
success(res) {
console.log(res)
},
fail(err) {
console.log(err)
......@@ -718,7 +754,8 @@
font-weight: bold;
color: #1F1F1F;
margin-bottom: 38rpx;
.tip{
.tip {
font-weight: 400;
color: #AAAAAAFF;
margin-left: 10rpx;
......@@ -728,6 +765,7 @@
.con1 {
height: 60rpx;
position: relative;
.input {
// width: 100%;
font-size: 32rpx;
......@@ -736,15 +774,16 @@
color: #000000;
border-bottom: 1rpx solid #DADCE6;
padding-bottom: 24rpx;
vertical-align:baseline;
vertical-align: baseline;
padding-right: 50rpx;
}
.delIcon{
.delIcon {
width: 32rpx;
height: 32rpx;
// width: 100%;
// height: 100%;
}
}
......@@ -829,14 +868,15 @@
& :nth-child(4n)>.customName {
margin-right: 0rpx !important;
}
}
.customTypeInput {
font-size: 32rpx;
font-family: PingFang SC;
font-weight: bold;
color: #000000;
}
.customTypeInput{
font-size: 32rpx;
font-family: PingFang SC;
font-weight: bold;
color: #000000;
}
}
.con6 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment