Commit b47ae6e9 authored by youjie's avatar youjie

初始化 enterIndex

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