Commit b47ae6e9 authored by youjie's avatar youjie

初始化 enterIndex

parent 6a7318ef
......@@ -47,7 +47,7 @@
>
<span>原因:{{ dataOne.RejectRemark }}</span>
</view>
<view v-for="(item, index) in setList" :key="index">
<view v-for="(item, index) in stepOneList" :key="index">
<view class="itemBox">
<view class="name">
{{ item.name }}
......@@ -93,7 +93,7 @@
v-if="!businessLicenseUploadIsSuccess"
class="conImage"
mode="widthFix"
@click="chooseImg(item.field)"
@click="chooseImg"
></image>
<!-- 上传成功 -->
<image
......@@ -109,22 +109,11 @@
nowStatus != 3 &&
nowStatus != 5
"
@click="chooseImg(item.field)"
@click="chooseImg"
>
重新上传
</view>
</view>
<view class="con1" v-if="item.type == 4">
<uni-section title="" type="line">
<uni-data-select
v-model="dataOne[item.field]"
lable="ClassName"
defItem="ID"
:localdata="typeList"
:clear="false"
></uni-data-select>
</uni-section>
</view>
</view>
</view>
</view>
......@@ -207,13 +196,13 @@
</view>
</view>
</view>
</template>
</template>
<script>
import rangeSlider from "./components/range-slider.vue";
import carrierInformation from "./components/carrierInformation.vue";
import brandInformation from "./components/brandInformation.vue";
export default {
<script>
import rangeSlider from "./components/range-slider.vue";
import carrierInformation from "./carrierInformation.vue";
import brandInformation from "./brandInformation.vue";
export default {
components: {
rangeSlider,
carrierInformation,
......@@ -266,7 +255,7 @@
type: 1,
},
],
//type=1:输入框,2:步进器,3:多选 4.单项
//type=1:输入框,2:步进器,3:多选
stepTwoList: [
{
name: "品牌名称",
......@@ -276,100 +265,31 @@
type: 1,
},
{
name: "品牌LOGO",
text: "请上传品牌LOGO",
field: "Logo",
delIcon: false,
type: 2,
},
{
name: "品牌介绍图",
text: "请上传品牌介绍图",
field: "BannerList",
delIcon: true,
name: "店铺数量",
text: "",
field: "ShopNum",
type: 2,
},
{
name: "品牌视频",
text: "请上传品牌视频",
field: "VideoUrl",
delIcon: true,
type: 2,
name: "店铺面积",
text: "",
field: "",
type: 3,
},
{
name: "品牌定位",
text: "请输入品牌定位",
field: "BrandType",
type: 1,
},
{
name: "店铺数量",
text: "请输入店铺数量",
field: "ShopNum",
type: 1,
},
{
name: "需求面积",
text: "请输入需求面积",
field: "AreaRequirement",
type: 1,
},
{
name: "客群定位",
text: "请输入客群定位",
field: "CustomerType",
field: "FullBrandName",
delIcon: false,
type: 1,
},
{
name: "品牌分类",
tip: "",
name: "客户群体",
tip: "(可多选)",
text: "",
field: "CategoryId",
field: "CustomerType",
type: 4,
},
{
name: "品牌简介",
text: "请输入品牌简介",
field: "Introduce",
delIcon: false,
type: 1,
},
{
name: "物业需求",
text: "请输入物业需求",
field: "PropertyDemand",
delIcon: false,
type: 1,
},
{
name: "意向合作条件",
text: "请输入意向合作条件",
field: "Cooperation",
delIcon: false,
type: 1,
},
{
name: "配套需求",
text: "请输入配套需求",
field: "Complementary",
delIcon: false,
type: 1,
},
{
name: "联系人",
text: "请输入联系人",
field: "ContactName",
delIcon: false,
type: 1,
},
{
name: "联系电话",
text: "请输入联系电话",
field: "ContactPhone",
delIcon: false,
type: 1,
},
],
customList: [], //客户群体
//type=1:输入框,2:单选,3:范围
......@@ -410,53 +330,16 @@
Mobile: "",
CompanyStatus: 0,
FirstShopType: 1,
// 品牌入驻
BrandName: "",//品牌名
ShopNum: null,//店铺数量
BuiltUpArea: 0,
EndBuiltUpArea: 0,
FullBrandName: "",//品牌全名
CustomerType: "",//客群定位
CustomerOtherType: "",
ID: 0,
Logo: "",
BannerList: "",
VideoUrl: "",
BrandType: "",//品牌定位
AreaRequirement: "",//需求面积
CategoryId: "",
Introduce: "",//品牌简介/企业简介
PropertyDemand: "",//物业需求
Cooperation: "",//意向合作条件
Complementary: "",//配套需求
ContactName: "",//联系人
ContactPhone: "",//联系电话
},
dataTwo: {
CompanyId: 0,
BrandName: "",//品牌名
ShopNum: 0,//店铺数量
BrandName: "",
ShopNum: 0,
BuiltUpArea: 0,
EndBuiltUpArea: 0,
FullBrandName: "",//品牌全名
CustomerType: "",//客群定位
FullBrandName: "",
CustomerType: "",
CustomerOtherType: "",
ID: 0,
Logo: "",
BannerList: "",
VideoUrl: "",
BrandType: "",//品牌定位
AreaRequirement: "",//需求面积
CategoryId: "",
Introduce: "",//品牌简介/企业简介
PropertyDemand: "",//物业需求
Cooperation: "",//意向合作条件
Complementary: "",//配套需求
ContactName: "",//联系人
ContactPhone: "",//联系电话
},
reduceIcon:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/reduceIcon.png",
......@@ -485,9 +368,6 @@
nowStatus: 1, //此时的状态
loading: false,
editType: 0, //是否是从修改进入的 1是 0否
TenantId: 18,
replace: null,
setList:[],
};
},
methods: {
......@@ -530,7 +410,7 @@
});
},
//选择营业执照照片
chooseImg(field) {
chooseImg() {
let that = this;
uni.chooseImage({
count: 1, //默认9
......@@ -553,20 +433,13 @@
} else {
let data = _res.data.words_result;
that.upFile(res.tempFilePaths[0], (uploadRes) => {
console.log(field,'======')
that.dataOne[field] = JSON.parse(
that.dataOne.BusinessLicense = JSON.parse(
uploadRes.data
).data;
that.businessLicenseUploadIsSuccess = true;
if(this.replace.state=='1') {
that.dataOne.CompanyName = data.单位名称.words;
that.dataOne.LegalPerson = data.法人.words;
that.dataOne.UnifiedCode = data.社会信用代码.words;
}else{
that.dataOne.BrandName = data.品牌名称.words;
that.dataOne.ContactName = data.联系人.words;
}
});
}
});
......@@ -653,14 +526,9 @@
},
//企业认证
stepOne() {
console.log('-----')
return
this.dataOne.FirstShopType = this.ChooseidentityId;
let url = ""
if(this.replace.state=='1') url = "/api/AppletTrade/SetBrandEnterpriseApplyFor"
else url = "/api/AppletTrade/SetEnterpriseServicesApply"
let parms = {
url: url,
url: "/api/AppletTrade/SetCompany",
data: this.dataOne,
};
this.request2(parms, (res) => {
......@@ -747,7 +615,7 @@
let that = this;
that.loading = false;
let parms = {
url: "/api/AppletTrade/GetUserCompanyEnterprise",
url: "/api/AppletTrade/GetUserCompany",
};
this.request2(parms, (res) => {
if (res.resultCode == 1 && res.data != null) {
......@@ -823,46 +691,13 @@
}
}
},
GetBrandClassList() {
let BrandCategory = ''
if(this.TenantId!=18) BrandCategory = this.replace.state=='1' ? 3 : 4
this.request2(
{
url: "/api/AppletTrade/GetBrandClassList",
data: {
BrandCategory
},
},
(res) => {
if (res.resultCode == 1) {
let obj = {
ID: 0,
ClassName: "全部",
};
this.typeList = res.data;
// this.typeList.unshift(obj);
}
}
);
},
},
onLoad(options) {
let uid = uni.getStorageSync("mall_UserInfo")
this.TenantId = uid.TenantId
this.replace = uni.getStorageSync('replace_page_index')
if(this.replace.state=='1') {
this.setList = JSON.parse(JSON.stringify(this.stepTwoList))
}else {
this.setList = JSON.parse(JSON.stringify(this.stepOneList))
}
if (options && options.editType) {
//是否是从修改进去的
this.editType = options.editType;
}
this.getUserCompany();
this.GetBrandClassList()
},
created() {},
mounted() {
......@@ -873,11 +708,11 @@
title: this.pageTitle,
});
},
};
</script>
};
</script>
<style lang="scss" scoped>
.page {
<style lang="scss" scoped>
.page {
background-color: #f6f6f6;
min-height: 100vh;
height: 100%;
......@@ -1125,55 +960,55 @@
font-weight: 500;
color: #b7b7b7;
}
}
}
.chooseType {
.chooseType {
background-color: #f95771ff !important;
color: #f70027 !important;
border: none !important;
}
}
// 修改滑块样式
/deep/.block {
// 修改滑块样式
/deep/.block {
background-color: #ffffff;
border: 4rpx solid #f70027;
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(232, 76, 100, 0.74);
border-radius: 10rpx;
}
}
.rangeSliderNum {
.rangeSliderNum {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 32rpx;
font-weight: bold;
color: #000000;
}
}
/deep/.u-radio-group {
/deep/.u-radio-group {
display: flex;
flex-wrap: wrap;
}
}
/deep/.u-radio-group :nth-child(2n) > .u-radio {
/deep/.u-radio-group :nth-child(2n) > .u-radio {
margin-right: 0rpx;
}
}
/deep/.u-radio {
/deep/.u-radio {
position: relative;
width: 278rpx;
border-radius: 18rpx;
margin-right: 30rpx;
}
}
/deep/.u-radio__icon-wrap {
/deep/.u-radio__icon-wrap {
position: absolute;
top: 17rpx;
right: 17rpx;
z-index: 10;
}
}
.sliderCurNumBox {
.sliderCurNumBox {
display: flex;
justify-content: center;
align-items: baseline;
......@@ -1185,6 +1020,5 @@
font-weight: 800;
color: #f70027;
}
}
</style>
\ No newline at end of file
}
</style>
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