Commit f7f7eb5e authored by 罗超's avatar 罗超

1

parent 779882a4
...@@ -8,7 +8,28 @@ ...@@ -8,7 +8,28 @@
padding: 30rpx; padding: 30rpx;
" "
> >
<view class="label-text" style="margin-top: 0; margin-bottom: 30rpx"> <view class="bottom-border">
<view class="label-text" style="margin-top: 0">
<text>我的品牌</text>
</view>
<u-field
v-model="brandName"
@click="isdisabled == false ? (showTypeStatus5 = true) : ''"
:disabled="true"
right-icon="arrow"
padding="10px 0px 5px 0"
label-width="0"
placeholder="请选择品牌"
placeholder-style="color:#CECECE;"
></u-field>
<u-action-sheet
@click="clickItem5"
name="BrandName"
:list="brandList"
v-model="showTypeStatus5"
></u-action-sheet>
</view>
<view class="label-text" style="margin-top: 20px; margin-bottom: 30rpx">
<text>店铺照片</text> <text>店铺照片</text>
<text style="color: #999; font-weight: 400" <text style="color: #999; font-weight: 400"
>(上传3-5张照片,第一张为封面图)</text >(上传3-5张照片,第一张为封面图)</text
...@@ -118,7 +139,7 @@ ...@@ -118,7 +139,7 @@
</view> </view>
<view v-if="model.VideoUrl == '' && isdisabled == true"></view> <view v-if="model.VideoUrl == '' && isdisabled == true"></view>
</view> </view>
<view class="bottom-border"> <!-- <view class="bottom-border">
<view class="label-text">首店名称</view> <view class="label-text">首店名称</view>
<u-field <u-field
v-model="model.Name" v-model="model.Name"
...@@ -128,7 +149,7 @@ ...@@ -128,7 +149,7 @@
placeholder="请填写首店名称" placeholder="请填写首店名称"
placeholder-style="color:#CECECE;" placeholder-style="color:#CECECE;"
></u-field> ></u-field>
</view> </view> -->
<view class="bottom-border"> <view class="bottom-border">
<view class="label-text">首店类型</view> <view class="label-text">首店类型</view>
<u-field <u-field
...@@ -232,27 +253,7 @@ ...@@ -232,27 +253,7 @@
v-model="showTypeStatus3" v-model="showTypeStatus3"
></u-action-sheet> ></u-action-sheet>
</view> </view>
<view class="bottom-border">
<view class="label-text">
<text>品牌</text>
</view>
<u-field
v-model="brandName"
@click="isdisabled == false ? (showTypeStatus5 = true) : ''"
:disabled="true"
right-icon="arrow"
padding="10px 0px 5px 0"
label-width="0"
placeholder="请选择品牌"
placeholder-style="color:#CECECE;"
></u-field>
<u-action-sheet
@click="clickItem5"
name="BrandName"
:list="brandList"
v-model="showTypeStatus5"
></u-action-sheet>
</view>
<view class="bottom-border"> <view class="bottom-border">
<view class="label-text"> <view class="label-text">
<text>首店业种类型</text> <text>首店业种类型</text>
...@@ -451,6 +452,8 @@ export default { ...@@ -451,6 +452,8 @@ export default {
isdisabled: false, //是否是详情过来的 isdisabled: false, //是否是详情过来的
index: 0, //列表带过来的索引 index: 0, //列表带过来的索引
brandList: [], //品牌列表 brandList: [], //品牌列表
CommpanyStatus: 0, //公司认证状态
FirstShopType: 0, //1:品牌,2:载体
}; };
}, },
onLoad(options) { onLoad(options) {
...@@ -492,6 +495,7 @@ export default { ...@@ -492,6 +495,7 @@ export default {
}, },
mounted() { mounted() {
this.getMyBrandList(); this.getMyBrandList();
this.getCommpanyStatus();
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
let MallBaseId = uni.getStorageSync("mall_UserInfo").MallBaseId let MallBaseId = uni.getStorageSync("mall_UserInfo").MallBaseId
? uni.getStorageSync("mall_UserInfo").MallBaseId ? uni.getStorageSync("mall_UserInfo").MallBaseId
...@@ -709,8 +713,9 @@ export default { ...@@ -709,8 +713,9 @@ export default {
clickItem5(index) { clickItem5(index) {
//品牌 //品牌
this.brandName = this.brandList[index].BrandName; this.brandName = this.brandList[index].BrandName;
this.model.Name = this.brandList[index].BrandName;
this.model.ExistBrandId = this.brandList[index].ID; this.model.ExistBrandId = this.brandList[index].ID;
console.log(this.model.ExistBrandId); console.log(this.model.ExistBrandId, this.model.Name);
}, },
uploadSuccessHandler(data, index, lists) { uploadSuccessHandler(data, index, lists) {
let r = JSON.parse(data); let r = JSON.parse(data);
...@@ -818,6 +823,76 @@ export default { ...@@ -818,6 +823,76 @@ export default {
} }
); );
}, },
//获取认证状态
getCommpanyStatus() {
this.request2(
{
url: "/api/AppletTrade/GetCommpanyStatus",
data: {},
},
(res) => {
if (res.resultCode == 1) {
this.CommpanyStatus = res.data.CompanyStatus;
this.FirstShopType = res.data.FirstShopType;
this.auth();
}
}
);
},
auth(url) {
console.log(308, this.CommpanyStatus, this.FirstShopType);
if (this.CommpanyStatus === 1 || this.CommpanyStatus === 4) {
uni.showModal({
title: "提示",
content: "请您先完成实名认证",
// showCancel: false,
confirmText: "立即认证",
success: function (res) {
if (res.confirm) {
uni.navigateTo({
url: "/pages/kotra/identification",
});
} else if (res.cancel) {
uni.navigateBack({
delta: 1,
});
}
},
});
} else if (this.CommpanyStatus === 3) {
uni.showModal({
title: "提示",
content: "感谢您的厚爱,请等待认证通过以后再来尝试吧",
showCancel: false,
confirmText: "我知道了",
success: function (res) {
if (res.confirm) {
uni.navigateBack({
delta: 1,
});
}
},
});
} else if (this.CommpanyStatus === 2) {
uni.showModal({
title: "提示",
content: "认证待完善",
// showCancel: false,
confirmText: "立即完善",
success: function (res) {
if (res.confirm) {
uni.navigateTo({
url: "/pages/kotra/identification",
});
} else if (res.cancel) {
uni.navigateBack({
delta: 1,
});
}
},
});
}
},
}, },
}; };
</script> </script>
......
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