Commit 663f1ef9 authored by Mac's avatar Mac

1

parent af69f562
...@@ -299,16 +299,15 @@ ...@@ -299,16 +299,15 @@
<view class="bottom-border"> <view class="bottom-border">
<view class="label-text">开店意愿<span style='color: #E54D42;' >*</span></view> <view class="label-text">开店意愿<span style='color: #E54D42;' >*</span></view>
<view class="bottom-border_r " style="padding: 10px 0;height: 42px;display: flex;"> <view class="bottom-border_r " style="padding: 10px 0;height: 42px;display: flex;">
<radio-group @change="radioChange2($event)" style="display: flex;"> <!-- <radio-group @change="radioChange2($event)" style="display: flex;">
<label v-for="(item, index) in radiolist" :key="index" style="display: flex;margin-right: 10px;"> <label v-for="(item, index) in radiolist" :key="index" style="display: flex;margin-right: 10px;">
<view style="transform:scale(0.7)"> <view style="transform:scale(0.7)">
<radio :value="item.Id" :checked="item.Id == ShopWish" :disabled="disabled" color='#2979ff'/> <radio :value="item.Id" :checked="item.Id == ShopWish" :disabled="disabled" color='#2979ff'/>
</view> </view>
<view>{{item.name}}</view> <view>{{item.name}}</view>
</label> </label>
</radio-group> </radio-group> -->
<u-rate <u-rate
v-if='ShopWish==1'
:disabled="disabled" :disabled="disabled"
v-model="model.OpenShopWish" v-model="model.OpenShopWish"
:current="model.OpenShopWish?model.OpenShopWish:'5'" :current="model.OpenShopWish?model.OpenShopWish:'5'"
...@@ -432,16 +431,22 @@ ...@@ -432,16 +431,22 @@
if(this.datas.CompanyStatus!=undefined && this.datas.IsComplete != undefined){//判断是否填写过了 if(this.datas.CompanyStatus!=undefined && this.datas.IsComplete != undefined){//判断是否填写过了
this.model = this.datas.BrandModel this.model = this.datas.BrandModel
this.model.CompanyId = this.datas.CompanyId this.model.CompanyId = this.datas.CompanyId
if(this.model.OpenShopWish==-1){ // if(this.model.OpenShopWish==-1){
this.ShopWish == 0; // this.ShopWish == 0;
}; // };
if(this.model.BannerList.length>0){ if(this.model.BannerList && this.model.BannerList.length>0){
this.model.BannerList.forEach(x=>{ this.model.BannerList.forEach(x=>{
let obj ={ let obj ={
url:x url:x
} }
this.fileList.push(obj) this.fileList.push(obj)
}) })
}else{
this.model.BannerList = [];
this.fileList= []
}
if(!this.model.Logo){
this.model.Logo = ''
} }
this.BrandClassName = this.model.ClassName; this.BrandClassName = this.model.ClassName;
......
...@@ -292,13 +292,19 @@ ...@@ -292,13 +292,19 @@
if(this.datas.CompanyStatus!=undefined && this.datas.IsComplete != undefined){//判断是否填写过了 if(this.datas.CompanyStatus!=undefined && this.datas.IsComplete != undefined){//判断是否填写过了
this.model = this.datas.CarrierModel this.model = this.datas.CarrierModel
this.MetroList = this.model.CarrierMetroList this.MetroList = this.model.CarrierMetroList
if(this.model.BannerList.length>0){ if(this.model.BannerList && this.model.BannerList.length>0){
this.model.BannerList.forEach(x=>{ this.model.BannerList.forEach(x=>{
let obj ={ let obj ={
url:x url:x
} }
this.fileList.push(obj) this.fileList.push(obj)
}) })
}else{
this.model.BannerList = [];
this.fileList= []
}
if(!this.model.Logo){
this.model.Logo = ''
} }
if(this.datas.CompanyStatus==0 && this.datas.IsComplete==1){//审核中 if(this.datas.CompanyStatus==0 && this.datas.IsComplete==1){//审核中
this.disabled = true this.disabled = true
......
<template> <template>
<view style="width: 100%;height: 100vh;"> <view style="width: 100%;height: 100vh;">
<view class="fbanniu" @click="btnclick"> <view class="fbanniu" @click="btnclick" v-if="companyStatus == 5">
<u-icon name="plus" color="#FFF" size='30'></u-icon> <u-icon name="plus" color="#FFF" size='30'></u-icon>
<!-- <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/fabupyq.png" style="height: 26rpx;" mode="aspectFit"></image> --> <!-- <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/fabupyq.png" style="height: 26rpx;" mode="aspectFit"></image> -->
<text style="font-size: 10px;color: #FFF;">新增</text> <text style="font-size: 10px;color: #FFF;">新增</text>
...@@ -78,11 +78,11 @@ ...@@ -78,11 +78,11 @@
loading: "努力加载中", loading: "努力加载中",
nomore: "没有更多了", nomore: "没有更多了",
}, },
contentHeight:0 contentHeight:0,
companyStatus:0,
FirstShopType:1
}; };
}, },
onLoad(options) { onLoad(options) {
if(options && options.id){ if(options && options.id){
this.msg.ProjectType = options.id this.msg.ProjectType = options.id
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
}, },
mounted() { mounted() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
...@@ -100,6 +101,7 @@ ...@@ -100,6 +101,7 @@
}); });
this.msg.UserId = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserId:'0' this.msg.UserId = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserId:'0'
this.getCarrierPageList() this.getCarrierPageList()
this.getComponyStatus()
}, },
methods: { methods: {
...@@ -125,6 +127,20 @@ ...@@ -125,6 +127,20 @@
} }
}) })
}, },
// 获取公司认证信息
getComponyStatus(){
let that = this
let parms = {
url: "/api/AppletTrade/GetCommpanyStatus",
}
this.request2(parms, (res) => {
if (res.resultCode == 1&&res.data!=null) {
// 获取公司名字和认证状态
that.companyStatus=res.data.CompanyStatus
this.FirstShopType = res.data.FirstShopType
}
})
},
//触底事件 //触底事件
lower(e) { lower(e) {
......
...@@ -336,6 +336,7 @@ ...@@ -336,6 +336,7 @@
if (this.mall_UserInfo) { if (this.mall_UserInfo) {
this.getUserPoint() this.getUserPoint()
} }
this.getComponyStatus()//首店获取认证状态
let basedata =uni.getStorageSync("basedata")?uni.getStorageSync("basedata"):''; let basedata =uni.getStorageSync("basedata")?uni.getStorageSync("basedata"):'';
this.isAttestationEdu = basedata.user_info.isAttestationEdu ? basedata.user_info.isAttestationEdu:0 this.isAttestationEdu = basedata.user_info.isAttestationEdu ? basedata.user_info.isAttestationEdu:0
}, },
...@@ -407,6 +408,14 @@ ...@@ -407,6 +408,14 @@
flag = false; flag = false;
} }
break; break;
case "/pages/kotra/wish/list":
console.log('asdas ',this.FirstShopType)
if(this.FirstShopType == 1){
flag = true;
}else{
flag = false;
}
break;
} }
return flag; return flag;
}, },
......
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