Commit 6a7318ef authored by youjie's avatar youjie

no message

parents 6cd60fcc aa5ad5cd
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<view class="Alipay-text3">发送“支付”获取支付宝付款链接</view> <view class="Alipay-text3">发送“支付”获取支付宝付款链接</view>
</view> </view>
<view class="Alipay-box33"> <view class="Alipay-box33">
<image class="Alipay-image" src="../../static/images/zhifu.png"></image> <!-- <image class="Alipay-image" src="../../static/images/zhifu.png"></image> -->
</view> </view>
<view class="Alipay-text4" @click="send()" style="margin-bottom: 86rpx;"> <view class="Alipay-text4" @click="send()" style="margin-bottom: 86rpx;">
去发送 去发送
......
<template> <template>
<view <view
class="ad-box" class="ad-box"
:class="{'ad-full-height':ad.list[0].link[0].PageName == 'full'}" :class="{'ad-box-full':ad.list[0].link[0].PageName == 'full'}"
:style="{ height: ad.height == 'auto' ? 'auto' : ad.height + 'rpx',padding:marginStyle,backgroundColor:ad.background }" :style="{ height: ad.height == 'auto' ? 'auto' : ad.height + 'rpx',padding:marginStyle,backgroundColor:ad.background }"
> >
<view <view
...@@ -112,7 +112,14 @@ export default { ...@@ -112,7 +112,14 @@ export default {
opacity: 0; opacity: 0;
z-index: 2; z-index: 2;
} }
.ad-full-height{ .ad-box-full{
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.ad-full-height,.ad-full-height image{
height: 100% !important; height: 100% !important;
} }
</style> </style>
{ {
"name" : "mallapp", "name" : "mallapp",
"appid" : "", "appid" : "__UNI__EE0B83C",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
......
...@@ -1568,5 +1568,6 @@ ...@@ -1568,5 +1568,6 @@
.content .flex-column .full-col{ .content .flex-column .full-col{
flex: 1; flex: 1;
height: 1px; height: 1px;
position: relative;
} }
</style> </style>
<template> <template>
<view class="page" v-if="loading"> <view class="page" v-if="loading">
<view v-if="nowStatus == 4" class="stepBox" style="padding-top: 20px"> <view v-if="nowStatus == 4" class="stepBox" style="padding-top: 20px">
<view v-if="ChooseidentityId == 1"> <view v-if="ChooseidentityId == 1">
<brandInformation ref="brandinfo" :datas="dataOne"></brandInformation> <brandInformation ref="brandinfo" :datas="dataOne"></brandInformation>
</view>
<view v-if="ChooseidentityId == 2">
<carrierInformation
ref="carrierinfo"
:datas="dataOne"
></carrierInformation>
</view>
</view>
<view class="progressBox" v-if="nowStatus != 4">
<view class="progressName">
<text class="cur">{{ stepName }}</text>
<text class="nex">{{ nextSepName }}</text>
</view>
<u-line-progress
class="progress"
:percent="percent"
:show-percent="false"
:height="10"
inactive-color="#DADCE6"
active-color="#F70027"
></u-line-progress>
</view>
<view> </view>
<view class="stepBox" v-if="nowStatus != 4">
<view class="stepItem" v-if="step == 1">
<view
style="width: 100%; display: flex"
v-if="dataOne.CompanyStatus && dataOne.CompanyStatus == 2"
>
<u-icon name="warning-o" color="#F70027" size="50"></u-icon>
<span style="margin-left: 10px; color: #f70027">审核未通过</span>
</view> </view>
<view <view v-if="ChooseidentityId == 2">
style=" <carrierInformation
width: 100%; ref="carrierinfo"
display: flex; :datas="dataOne"
margin-bottom: 20px; ></carrierInformation>
margin-top: 10px;
"
v-if="dataOne.CompanyStatus && dataOne.CompanyStatus == 2"
>
<span>原因:{{ dataOne.RejectRemark }}</span>
</view> </view>
<view v-for="(item, index) in stepOneList" :key="index"> </view>
<view class="itemBox"> <view class="progressBox" v-if="nowStatus != 4">
<view class="name"> <view class="progressName">
{{ item.name }} <text class="cur">{{ stepName }}</text>
<text class="tip" v-if="item.tip">{{ item.tip }}</text> <text class="nex">{{ nextSepName }}</text>
</view> </view>
<view class="con1" v-if="item.type == 1"> <u-line-progress
<input class="progress"
class="input" :percent="percent"
type="text" :show-percent="false"
v-model="dataOne[item.field]" :height="10"
:placeholder="item.text" inactive-color="#DADCE6"
:disabled="nowStatus == 3 || nowStatus == 5 ? true : false" active-color="#F70027"
placeholder-style="color: #CECECEFF" ></u-line-progress>
@focus="inputFcous(item)" </view>
/> <view> </view>
<view
v-if="nowStatus != 3 && nowStatus != 5" <view class="stepBox" v-if="nowStatus != 4">
style=" <view class="stepItem" v-if="step == 1">
width: 50rpx; <view
height: 50rpx; style="width: 100%; display: flex"
display: flex; v-if="dataOne.CompanyStatus && dataOne.CompanyStatus == 2"
align-items: center; >
justify-content: center; <u-icon name="warning-o" color="#F70027" size="50"></u-icon>
position: absolute; <span style="margin-left: 10px; color: #f70027">审核未通过</span>
top: -2rpx; </view>
right: 10rpx; <view
z-index: 10; style="
" width: 100%;
@click="delInputText(item.field)" display: flex;
> margin-bottom: 20px;
margin-top: 10px;
"
v-if="dataOne.CompanyStatus && dataOne.CompanyStatus == 2"
>
<span>原因:{{ dataOne.RejectRemark }}</span>
</view>
<view v-for="(item, index) in setList" :key="index">
<view class="itemBox">
<view class="name">
{{ item.name }}
<text class="tip" v-if="item.tip">{{ item.tip }}</text>
</view>
<view class="con1" v-if="item.type == 1">
<input
class="input"
type="text"
v-model="dataOne[item.field]"
:placeholder="item.text"
:disabled="nowStatus == 3 || nowStatus == 5 ? true : false"
placeholder-style="color: #CECECEFF"
@focus="inputFcous(item)"
/>
<view
v-if="nowStatus != 3 && nowStatus != 5"
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>
</view>
<view class="con2" v-if="item.type == 2">
<!-- 未上传成功 -->
<image <image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/delete.png" :src="businessLicenseDemo"
v-if="item.delIcon" v-if="!businessLicenseUploadIsSuccess"
class="delIcon" class="conImage"
mode="widthFix" mode="widthFix"
@click="chooseImg(item.field)"
></image>
<!-- 上传成功 -->
<image
:src="dataOne.BusinessLicense"
v-if="businessLicenseUploadIsSuccess"
class="conImage"
mode="heightFix"
></image> ></image>
<view
class="reupload"
v-if="
businessLicenseUploadIsSuccess &&
nowStatus != 3 &&
nowStatus != 5
"
@click="chooseImg(item.field)"
>
重新上传
</view>
</view> </view>
</view> <view class="con1" v-if="item.type == 4">
<view class="con2" v-if="item.type == 2"> <uni-section title="" type="line">
<!-- 未上传成功 --> <uni-data-select
<image v-model="dataOne[item.field]"
:src="businessLicenseDemo" lable="ClassName"
v-if="!businessLicenseUploadIsSuccess" defItem="ID"
class="conImage" :localdata="typeList"
mode="widthFix" :clear="false"
@click="chooseImg" ></uni-data-select>
></image> </uni-section>
<!-- 上传成功 -->
<image
:src="dataOne.BusinessLicense"
v-if="businessLicenseUploadIsSuccess"
class="conImage"
mode="heightFix"
></image>
<view
class="reupload"
v-if="
businessLicenseUploadIsSuccess &&
nowStatus != 3 &&
nowStatus != 5
"
@click="chooseImg"
>
重新上传
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> <view class="stepItem" v-if="step == 2">
<view class="stepItem" v-if="step == 2"> <view
<view style="
style=" font-size: 21px;
font-size: 21px; font-weight: 800;
font-weight: 800; color: #1f1f1f;
color: #1f1f1f; text-align: center;
text-align: center; "
" >请选择您的身份</view
>请选择您的身份</view >
> <view
<view style="
style=" width: 100%;
width: 100%; display: flex;
display: flex; justify-content: space-around;
justify-content: space-around; margin-top: 180rpx;
margin-top: 180rpx; "
" >
> <view class="chooseidbox" @click="ChooseidentityId = 1">
<view class="chooseidbox" @click="ChooseidentityId = 1"> <view class="chooseidbox_t">
<view class="chooseidbox_t"> <image
<image v-if="ChooseidentityId == 1"
v-if="ChooseidentityId == 1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp.png" >
> </image>
</image> <image
<image v-if="ChooseidentityId == 2"
v-if="ChooseidentityId == 2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp_n.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp_n.png" >
> </image>
</image> </view>
</view> <view class="chooseidbox_b">
<view class="chooseidbox_b"> <image
<image v-if="ChooseidentityId == 1"
v-if="ChooseidentityId == 1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_g.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_g.png" ></image>
></image> </view>
</view>
</view>
<view class="chooseidbox" @click="ChooseidentityId = 2">
<view class="chooseidbox_t">
<image
v-if="ChooseidentityId == 2"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt.png"
>
</image>
<image
v-if="ChooseidentityId == 1"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt_n.png"
>
</image>
</view> </view>
<view class="chooseidbox_b"> <view class="chooseidbox" @click="ChooseidentityId = 2">
<image <view class="chooseidbox_t">
v-if="ChooseidentityId == 2" <image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_g.png" v-if="ChooseidentityId == 2"
></image> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt.png"
>
</image>
<image
v-if="ChooseidentityId == 1"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt_n.png"
>
</image>
</view>
<view class="chooseidbox_b">
<image
v-if="ChooseidentityId == 2"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_g.png"
></image>
</view>
</view> </view>
</view> </view>
</view> </view>
</view> <view class="stepItem" v-if="step == 3" style="padding-bottom: 0">
<view class="stepItem" v-if="step == 3" style="padding-bottom: 0"> <view v-if="ChooseidentityId == 1">
<view v-if="ChooseidentityId == 1"> <brandInformation ref="brandinfo" :datas="dataOne"></brandInformation>
<brandInformation ref="brandinfo" :datas="dataOne"></brandInformation> </view>
</view> <view v-if="ChooseidentityId == 2">
<view v-if="ChooseidentityId == 2"> <carrierInformation
<carrierInformation ref="carrierinfo"
ref="carrierinfo" :datas="dataOne"
:datas="dataOne" ></carrierInformation>
></carrierInformation> </view>
</view> </view>
<template v-if="ChooseidentityId == 3">
<enterInformation ref="enterinfo" :datas="dataOne"></enterInformation> <view v-if="step != 3">
</template> <view class="butBox" @click="nextStep">
<template v-if="ChooseidentityId == 4"> <image :src="nextIcon" class="next" mode="widthFix"></image>
<buildingInformation ref="buildinginfo" :datas="dataOne"></buildingInformation> </view>
</template>
</view>
<view v-if="step != 3">
<view class="butBox" @click="nextStep">
<image :src="nextIcon" class="next" mode="widthFix"></image>
</view> </view>
</view> </view>
</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 {
components: {
rangeSlider,
carrierInformation,
brandInformation,
},
computed: {},
data() {
return {
pageTitle: "企业认证",
step: 1,
nextIcon:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/next.png",
percent: 33.33,
ChooseidentityId: 1,
stepName: "第1步 企业基础资料",
nextSepName: "第2步",
// type=1:输入框,2:照片
stepOneList: [
{
name: "营业执照",
tip: "(点击图片上传营业执照)",
type: 2,
},
{
name: "企业名称",
text: "请输入企业名称",
field: "CompanyName",
delIcon: false,
type: 1,
},
{
name: "统一社会信用代码",
text: "输入18位社会信用代码",
field: "UnifiedCode",
delIcon: false,
type: 1,
},
{
name: "法人代表",
text: "请输入法人姓名",
field: "LegalPerson",
delIcon: false,
type: 1,
},
{
name: "联系电话",
text: "请输入11位手机或者带区号座机号码",
field: "Mobile",
delIcon: false,
type: 1,
},
],
//type=1:输入框,2:步进器,3:多选 4.单项
stepTwoList: [
{
name: "品牌名称",
text: "请输入品牌名称",
field: "BrandName",
delIcon: false,
type: 1,
},
{
name: "品牌LOGO",
text: "请上传品牌LOGO",
field: "Logo",
delIcon: false,
type: 2,
},
{
name: "品牌介绍图",
text: "请上传品牌介绍图",
field: "BannerList",
delIcon: true,
type: 2,
},
{
name: "品牌视频",
text: "请上传品牌视频",
field: "VideoUrl",
delIcon: true,
type: 2,
},
{
name: "品牌定位",
text: "请输入品牌定位",
field: "BrandType",
type: 1,
},
{
name: "店铺数量",
text: "请输入店铺数量",
field: "ShopNum",
type: 1,
},
{
name: "需求面积",
text: "请输入需求面积",
field: "AreaRequirement",
type: 1,
},
{
name: "客群定位",
text: "请输入客群定位",
field: "CustomerType",
delIcon: false,
type: 1,
},
{
name: "品牌分类",
tip: "",
text: "",
field: "CategoryId",
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:范围
stepThreeList: [
{
name: "扩店区域",
text: "请输入扩店区域",
field: "StoreExpansion",
delIcon: false,
type: 1,
},
{
name: "商品性质 ",
tip: "(单选)",
text: "",
field: "ProjectType",
type: 2,
},
{
name: "面积要求",
text: "",
field: "",
type: 3,
},
],
goodsType: [], //商品性质
goodsTypeValue: "",
businessLicenseDemo:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/upLoadDemo.png", //营业执照占位图片
businessLicenseUploadIsSuccess: false, //营业执照是否上传成功
access_token: "", //百度ai平台token
dataOne: {
CompanyId: 0,
CompanyName: "",
BusinessLicense: "", //营业执照
UnifiedCode: "",
LegalPerson: "",
Mobile: "",
CompanyStatus: 0,
FirstShopType: 1,
<script> // 品牌入驻
import rangeSlider from "./components/range-slider.vue"; BrandName: "",//品牌名
import carrierInformation from "./components/carrierInformation.vue"; ShopNum: null,//店铺数量
import buildingInformation from "./components/buildingInformation.vue"; BuiltUpArea: 0,
import brandInformation from "./components/brandInformation.vue"; EndBuiltUpArea: 0,
import enterInformation from "./components/enterInformation.vue"; FullBrandName: "",//品牌全名
export default { CustomerType: "",//客群定位
components: { CustomerOtherType: "",
rangeSlider,
carrierInformation, ID: 0,
buildingInformation, Logo: "",
brandInformation, BannerList: "",
enterInformation, VideoUrl: "",
}, BrandType: "",//品牌定位
computed: {}, AreaRequirement: "",//需求面积
data() { CategoryId: "",
return { Introduce: "",//品牌简介/企业简介
pageTitle: "企业认证", PropertyDemand: "",//物业需求
step: 1, Cooperation: "",//意向合作条件
nextIcon: Complementary: "",//配套需求
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/next.png", ContactName: "",//联系人
percent: 33.33, ContactPhone: "",//联系电话
ChooseidentityId: 1,//1品牌 2载体 3企业 4楼宇
stepName: "第1步 企业基础资料",
nextSepName: "第2步",
// type=1:输入框,2:照片
stepOneList: [
{
name: "营业执照",
tip: "(点击图片上传营业执照)",
type: 2,
},
{
name: "企业名称",
text: "请输入企业名称",
field: "CompanyName",
delIcon: false,
type: 1,
},
{
name: "统一社会信用代码",
text: "输入18位社会信用代码",
field: "UnifiedCode",
delIcon: false,
type: 1,
},
{
name: "法人代表",
text: "请输入法人姓名",
field: "LegalPerson",
delIcon: false,
type: 1,
},
{
name: "联系电话",
text: "请输入11位手机或者带区号座机号码",
field: "Mobile",
delIcon: false,
type: 1,
},
],
//type=1:输入框,2:步进器,3:多选
stepTwoList: [
{
name: "品牌名称",
text: "请输入品牌名称",
field: "BrandName",
delIcon: false,
type: 1,
},
{
name: "店铺数量",
text: "",
field: "ShopNum",
type: 2,
},
{
name: "店铺面积",
text: "",
field: "",
type: 3,
},
{
name: "品牌定位",
text: "请输入品牌定位",
field: "FullBrandName",
delIcon: false,
type: 1,
},
{
name: "客户群体",
tip: "(可多选)",
text: "",
field: "CustomerType",
type: 4,
}, },
], dataTwo: {
customList: [], //客户群体 CompanyId: 0,
//type=1:输入框,2:单选,3:范围 BrandName: "",//品牌名
stepThreeList: [ ShopNum: 0,//店铺数量
{ BuiltUpArea: 0,
name: "扩店区域", EndBuiltUpArea: 0,
text: "请输入扩店区域", FullBrandName: "",//品牌全名
field: "StoreExpansion", CustomerType: "",//客群定位
delIcon: false, CustomerOtherType: "",
type: 1,
ID: 0,
Logo: "",
BannerList: "",
VideoUrl: "",
BrandType: "",//品牌定位
AreaRequirement: "",//需求面积
CategoryId: "",
Introduce: "",//品牌简介/企业简介
PropertyDemand: "",//物业需求
Cooperation: "",//意向合作条件
Complementary: "",//配套需求
ContactName: "",//联系人
ContactPhone: "",//联系电话
}, },
{ reduceIcon:
name: "商品性质 ", "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/reduceIcon.png",
tip: "(单选)", addIcon:
text: "", "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/addIcon.png",
field: "ProjectType", builtArea: [1, 100], //店铺面积
type: 2, rangeSliderMin: 0, //区间滑块最小值
rangeSliderMax: 100, //区间滑块最大值
dataThree: {
StoreExpansion: "", //扩展区域
ProjectType: "", //商品性质
AreaRequirement: 0, //面积要求
EndAreaRequirement: 0, //面积要求
}, },
{ goodsTypeImg: {
name: "面积要求", 1: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/goodstype-baihuo.png",
text: "", 2: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/goodstype-shappingmall.png",
field: "", 3: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/goodstype-center.png",
type: 3, 4: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/goodstype-other.png",
}, },
], AreaRequire: [],
goodsType: [], //商品性质 AreaRequireMin: 0,
goodsTypeValue: "", AreaRequireMax: 100,
businessLicenseDemo: finishBtn: "完成",
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/upLoadDemo.png", //营业执照占位图片 newCompanyId: 0,
businessLicenseUploadIsSuccess: false, //营业执照是否上传成功 nowStatus: 1, //此时的状态
access_token: "", //百度ai平台token loading: false,
dataOne: { editType: 0, //是否是从修改进入的 1是 0否
CompanyId: 0, TenantId: 18,
CompanyName: "", replace: null,
BusinessLicense: "", //营业执照 setList:[],
UnifiedCode: "", };
LegalPerson: "", },
Mobile: "", methods: {
CompanyStatus: 0, // 输入框获取焦点
FirstShopType: 1, inputFcous(e) {
e.delIcon = true;
}, },
dataTwo: { delInputText(field) {
CompanyId: 0, this.dataOne[field] = "";
BrandName: "", this.dataTwo[field] = "";
ShopNum: 0, this.dataThree[field] = "";
BuiltUpArea: 0,
EndBuiltUpArea: 0,
FullBrandName: "",
CustomerType: "",
CustomerOtherType: "",
}, },
reduceIcon: // 输入框失去焦点
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/reduceIcon.png", inputBlur(e) {
addIcon: e.delIcon = false;
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/addIcon.png",
builtArea: [1, 100], //店铺面积
rangeSliderMin: 0, //区间滑块最小值
rangeSliderMax: 100, //区间滑块最大值
dataThree: {
StoreExpansion: "", //扩展区域
ProjectType: "", //商品性质
AreaRequirement: 0, //面积要求
EndAreaRequirement: 0, //面积要求
}, },
goodsTypeImg: { // 获取客户群体枚举
1: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/goodstype-baihuo.png", getCustomerTypeEnumList() {
2: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/goodstype-shappingmall.png", let parms = {
3: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/goodstype-center.png", url: "/api/AppletTrade/GetCustomerTypeEnumList",
4: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/goodstype-other.png", };
this.request2(parms, (res) => {
if (res.resultCode == 1) {
res.data.map((e) => {
e.checked = false;
});
this.customList = res.data;
}
});
}, },
AreaRequire: [], // 获取商品性质
AreaRequireMin: 0, GetProjectTypeEnumList() {
AreaRequireMax: 100, let parms = {
finishBtn: "完成", url: "/api/AppletTrade/GetProjectTypeEnumList",
newCompanyId: 0, };
nowStatus: 1, //此时的状态 this.request2(parms, (res) => {
loading: false, if (res.resultCode == 1) {
editType: 0, //是否是从修改进入的 1是 0否 this.goodsType = res.data;
}; }
}, });
methods: { },
// 输入框获取焦点 //选择营业执照照片
inputFcous(e) { chooseImg(field) {
e.delIcon = true; let that = this;
}, uni.chooseImage({
delInputText(field) { count: 1, //默认9
this.dataOne[field] = ""; sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
this.dataTwo[field] = ""; sourceType: ["album"], //从相册选择
this.dataThree[field] = ""; success: function (res) {
}, wx.getFileSystemManager().readFile({
// 输入框失去焦点 filePath: res.tempFilePaths[0],
inputBlur(e) { encoding: "base64", //编码格式
e.delIcon = false; success: (ans) => {
}, that.getImgInfo(ans.data, that.access_token, (_res) => {
// 获取客户群体枚举 console.log("getImgInfo", _res);
getCustomerTypeEnumList() { if (_res.data.direction == 1) {
let parms = { //未定义,图片类型错误
url: "/api/AppletTrade/GetCustomerTypeEnumList", wx.showToast({
}; title: "图片类型错误!",
this.request2(parms, (res) => { icon: "none",
if (res.resultCode == 1) { duration: 1000,
res.data.map((e) => { });
e.checked = false; } else {
}); let data = _res.data.words_result;
this.customList = res.data; that.upFile(res.tempFilePaths[0], (uploadRes) => {
} console.log(field,'======')
}); that.dataOne[field] = JSON.parse(
}, uploadRes.data
// 获取商品性质 ).data;
GetProjectTypeEnumList() { that.businessLicenseUploadIsSuccess = true;
let parms = { if(this.replace.state=='1') {
url: "/api/AppletTrade/GetProjectTypeEnumList", that.dataOne.CompanyName = data.单位名称.words;
}; that.dataOne.LegalPerson = data.法人.words;
this.request2(parms, (res) => { that.dataOne.UnifiedCode = data.社会信用代码.words;
if (res.resultCode == 1) { }else{
this.goodsType = res.data; that.dataOne.BrandName = data.品牌名称.words;
} that.dataOne.ContactName = data.联系人.words;
}); }
},
//选择营业执照照片 });
chooseImg() { }
let that = this; });
uni.chooseImage({ },
count: 1, //默认9 });
sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有 //
sourceType: ["album"], //从相册选择 },
success: function (res) { });
wx.getFileSystemManager().readFile({ },
filePath: res.tempFilePaths[0], //提取营业执照信息
encoding: "base64", //编码格式 getImgInfo(data, token, resCall) {
success: (ans) => { let that = this;
that.getImgInfo(ans.data, that.access_token, (_res) => { uni.request({
console.log("getImgInfo", _res); url:
if (_res.data.direction == 1) { "https://aip.baidubce.com/rest/2.0/ocr/v1/business_license?access_token=" +
//未定义,图片类型错误 token,
wx.showToast({ method: "POST",
title: "图片类型错误!", header: {
icon: "none", "Content-Type": "application/x-www-form-urlencoded",
duration: 1000, },
}); data: {
} else { image: data,
let data = _res.data.words_result; },
that.upFile(res.tempFilePaths[0], (uploadRes) => { success(res) {
that.dataOne.BusinessLicense = JSON.parse( resCall(res);
uploadRes.data },
).data; fail(res) {
that.businessLicenseUploadIsSuccess = true; wx.showToast({
that.dataOne.CompanyName = data.单位名称.words; title: "图片类型错误!",
that.dataOne.LegalPerson = data.法人.words; icon: "none",
that.dataOne.UnifiedCode = data.社会信用代码.words; duration: 1000,
}); });
} },
}); });
}, },
}); //图片上传
// upFile(img, resCall) {
}, var that = this;
}); wx.showLoading({
}, title: "上传中",
//提取营业执照信息 });
getImgInfo(data, token, resCall) { let MallBaseId = uni.getStorageSync("mall_UserInfo").MallBaseId
let that = this; ? uni.getStorageSync("mall_UserInfo").MallBaseId
uni.request({ : 1;
url: let action =
"https://aip.baidubce.com/rest/2.0/ocr/v1/business_license?access_token=" + that.host2 + "/api/File/UploadTencent?MallBaseId=" + MallBaseId;
token, uni.uploadFile({
method: "POST", url: action,
header: { filePath: img,
"Content-Type": "application/x-www-form-urlencoded", name: "field",
}, formData: {
data: { user: "test",
image: data, },
}, success: (uploadFileRes) => {
success(res) { uni.hideLoading();
resCall(res); resCall(uploadFileRes);
}, },
fail(res) { fail: function (res) {
wx.showToast({ that.businessLicenseUploadIsSuccess = false;
title: "图片类型错误!", wx.showToast({
icon: "none", title: "上传失败!",
duration: 1000, icon: "none",
}); duration: 1000,
}, });
}); },
}, });
//图片上传 },
upFile(img, resCall) { //获取百度ai平台token
var that = this; getAccess_token() {
wx.showLoading({ let that = this;
title: "上传中", uni.request({
}); url: "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=uHc6N5qsYBfZs3jrM0DOLXCc&client_secret=8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J", // 百度获取token接口地址
let MallBaseId = uni.getStorageSync("mall_UserInfo").MallBaseId data: {
? uni.getStorageSync("mall_UserInfo").MallBaseId grant_type: "client_credentials", // 固定写死
: 1; client_id: "uHc6N5qsYBfZs3jrM0DOLXCc",
let action = client_secret: "8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J",
that.host2 + "/api/File/UploadTencent?MallBaseId=" + MallBaseId; },
uni.uploadFile({ method: "POST",
url: action, success(res) {
filePath: img, that.access_token = res.data.access_token;
name: "field", },
formData: { fail(e) {},
user: "test", });
}, },
success: (uploadFileRes) => { //企业认证
uni.hideLoading(); stepOne() {
resCall(uploadFileRes); console.log('-----')
}, return
fail: function (res) { this.dataOne.FirstShopType = this.ChooseidentityId;
that.businessLicenseUploadIsSuccess = false; let url = ""
wx.showToast({ if(this.replace.state=='1') url = "/api/AppletTrade/SetBrandEnterpriseApplyFor"
title: "上传失败!", else url = "/api/AppletTrade/SetEnterpriseServicesApply"
icon: "none", let parms = {
duration: 1000, url: url,
}); data: this.dataOne,
}, };
}); this.request2(parms, (res) => {
}, if (res.resultCode == 1) {
//获取百度ai平台token this.dataOne.CompanyId = res.data.CompanyId;
getAccess_token() { this.dataOne.CompanyStatus = -1;
let that = this; this.showTemplate(res.data.template_message_list);
uni.request({ }
url: "https://aip.baidubce.com/oauth/2.0/token", // 百度获取token接口地址 });
data: { },
grant_type: "client_credentials", // 固定写死
client_id: "wWtW3xQju14uH0ToPpxlk4aq", //步骤三
client_secret: "lEYPHN0CgFbX5e849ViK9Q7WdnUhkwEx",
}, //返回个人中心
method: "GET", finish() {
success(res) { uni.navigateTo({
that.access_token = res.data.access_token; url: "/pages/user-center/user-center",
}, });
fail(e) {}, },
}); //下一步
}, nextStep() {
//企业认证 if (this.percent > 100) {
stepOne() { this.percent = 100;
return
this.dataOne.FirstShopType = this.ChooseidentityId;
let parms = {
url: "/api/AppletTrade/SetCompany",
data: this.dataOne,
};
this.request2(parms, (res) => {
if (res.resultCode == 1) {
this.dataOne.CompanyId = res.data.CompanyId;
this.dataOne.CompanyStatus = -1;
this.showTemplate(res.data.template_message_list);
} }
}); if (this.step <= 4) {
}, if (this.step == 1) {
//审核中或审核通过就不提交请求
//步骤三 if (
this.nowStatus != 3 &&
//返回个人中心 this.nowStatus != 2 &&
finish() { this.nowStatus != 5
uni.navigateTo({ ) {
url: "/pages/user-center/user-center", this.stepName = "第2步 选择身份";
}); this.nextSepName = "第3步";
}, this.step++;
//下一步 this.percent += this.percent;
nextStep() {
if (this.percent > 100) {
this.percent = 100;
}
if (this.step <= 4) {
if (this.step == 1) {
//审核中或审核通过就不提交请求
if (
this.nowStatus != 3 &&
this.nowStatus != 2 &&
this.nowStatus != 5
) {
this.stepName = "第2步 选择身份";
this.nextSepName = "第3步";
this.step++;
this.percent += this.percent;
} else {
//审核中的去查看
if (this.nowStatus == 2) {
//不通过的时候不能去选择身份了
this.stepOne();
} else { } else {
this.step = 3; //审核中的去查看
this.percent = 100; if (this.nowStatus == 2) {
if (this.dataOne.FirstShopType == 1) { //不通过的时候不能去选择身份了
this.stepName = "第3步 品牌信息"; this.stepOne();
this.nextSepName = "完成";
} else { } else {
this.stepName = "第3步 载体信息"; this.step = 3;
this.nextSepName = "完成"; this.percent = 100;
if (this.dataOne.FirstShopType == 1) {
this.stepName = "第3步 品牌信息";
this.nextSepName = "完成";
} else {
this.stepName = "第3步 载体信息";
this.nextSepName = "完成";
}
} }
} }
} else if (this.step == 2) {
this.stepOne();
} }
} else if (this.step == 2) {
this.stepOne();
} }
} },
}, // 审核通过
// 审核通过 backBtn() {
backBtn() { if (this.percent > 100) {
if (this.percent > 100) { 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.step++;
this.percent += this.percent;
if (this.ChooseidentityId == 1) {
this.stepName = "第3步 品牌信息";
this.nextSepName = "完成";
} else {
this.stepName = "第3步 载体信息";
this.nextSepName = "完成";
} }
} if (this.step == 1) {
}, this.stepName = "第2步 选择身份";
this.nextSepName = "第3步";
// 获取公司认证信息 this.step++;
getUserCompany() { this.percent += this.percent;
let that = this; } else if (this.step == 2) {
that.loading = false; this.step++;
let parms = { this.percent += this.percent;
url: "/api/AppletTrade/GetUserCompanyEnterprise", if (this.ChooseidentityId == 1) {
}; this.stepName = "第3步 品牌信息";
this.request2(parms, (res) => { this.nextSepName = "完成";
if (res.resultCode == 1 && res.data != null) { } else {
this.dataOne = res.data; this.stepName = "第3步 载体信息";
this.businessLicenseUploadIsSuccess = true; this.nextSepName = "完成";
this.dataOne.CompanyId = res.data.CompanyId;
if (this.dataOne.CompanyStatus == 0 && this.dataOne.IsComplete == 1) {
//审核中
this.nowStatus = 3;
} }
if (this.dataOne.CompanyStatus == 1) { }
//审核通过 },
this.nowStatus = 4;
if (this.editType == 0) { // 获取公司认证信息
//从企业菜单今天 可以看企业菜单但是不能修改 getUserCompany() {
this.nowStatus = 5; let that = this;
that.loading = false;
let parms = {
url: "/api/AppletTrade/GetUserCompanyEnterprise",
};
this.request2(parms, (res) => {
if (res.resultCode == 1 && res.data != null) {
this.dataOne = res.data;
this.businessLicenseUploadIsSuccess = true;
this.dataOne.CompanyId = res.data.CompanyId;
if (this.dataOne.CompanyStatus == 0 && this.dataOne.IsComplete == 1) {
//审核中
this.nowStatus = 3;
}
if (this.dataOne.CompanyStatus == 1) {
//审核通过
this.nowStatus = 4;
if (this.editType == 0) {
//从企业菜单今天 可以看企业菜单但是不能修改
this.nowStatus = 5;
}
}
if (this.dataOne.CompanyStatus == 2) {
//审核不通过
this.nowStatus = 2;
}
this.ChooseidentityId = this.dataOne.FirstShopType;
if (this.dataOne.FirstShopType && this.dataOne.FirstShopType == 1) {
this.pageTitle = "品牌信息";
} else if (
this.dataOne.FirstShopType &&
this.dataOne.FirstShopType == 2
) {
this.pageTitle = "载体信息";
} }
} }
if (this.dataOne.CompanyStatus == 2) { that.loading = true;
//审核不通过 });
this.nowStatus = 2; },
// 单选
radioChange(e) {
// console.log(e);
},
//显示模板
showTemplate(template) {
let that = this;
uni.requestSubscribeMessage({
tmplIds: template,
complete(res) {
if (that.nowStatus == 2) {
that.step = 3;
that.percent = 100;
} else {
that.step++;
that.percent += that.percent;
}
if (that.ChooseidentityId == 1) {
that.stepName = "第3步 品牌信息";
that.nextSepName = "完成";
} else {
that.stepName = "第3步 载体信息";
that.nextSepName = "完成";
}
},
});
},
Children(ID, type) {
if (type == 1) {
if (Object.keys(this.$refs).length > 0 && this.$refs.brandinfo) {
//判断
this.$refs.brandinfo.brandchildren(ID);
} }
this.ChooseidentityId = this.dataOne.FirstShopType; } else {
if (this.dataOne.FirstShopType && this.dataOne.FirstShopType == 1) { if (Object.keys(this.$refs).length > 0 && this.$refs.carrierinfo) {
this.pageTitle = "品牌信息"; //判断
} else if ( this.$refs.carrierinfo.carrierchildren(ID);
this.dataOne.FirstShopType &&
this.dataOne.FirstShopType == 2
) {
this.pageTitle = "载体信息";
} }
} }
that.loading = true; },
}); 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) {
radioChange(e) { let uid = uni.getStorageSync("mall_UserInfo")
// console.log(e); 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() {},
showTemplate(template) { mounted() {
let that = this; // this.getCustomerTypeEnumList()
uni.requestSubscribeMessage({ // this.GetProjectTypeEnumList()
tmplIds: template, this.getAccess_token();
complete(res) { uni.setNavigationBarTitle({
if (that.nowStatus == 2) { title: this.pageTitle,
that.step = 3;
that.percent = 100;
} else {
that.step++;
that.percent += that.percent;
}
if (that.ChooseidentityId == 1) {
that.stepName = "第3步 品牌信息";
that.nextSepName = "完成";
} else {
that.stepName = "第3步 载体信息";
that.nextSepName = "完成";
}
},
}); });
}, },
Children(ID, type) { };
if (type == 1) { </script>
if (Object.keys(this.$refs).length > 0 && this.$refs.brandinfo) {
//判断 <style lang="scss" scoped>
this.$refs.brandinfo.brandchildren(ID); .page {
background-color: #f6f6f6;
min-height: 100vh;
height: 100%;
padding-bottom: 70rpx;
.progressBox {
width: 650rpx;
height: 120rpx;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: center;
.progressName {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 28rpx;
font-weight: bold;
.cur {
color: #f70027;
} }
} else {
if (Object.keys(this.$refs).length > 0 && this.$refs.carrierinfo) { .nex {
//判断 color: #b9bcca;
this.$refs.carrierinfo.carrierchildren(ID);
} }
} }
},
}, .progress {
onLoad(options) { width: 100%;
if (options && options.editType) {
//是否是从修改进去的
this.editType = options.editType;
}
this.getUserCompany();
},
created() {},
mounted() {
// this.getCustomerTypeEnumList()
// this.GetProjectTypeEnumList()
this.getAccess_token();
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
};
</script>
<style lang="scss" scoped>
.page {
background-color: #f6f6f6;
min-height: 100vh;
height: 100%;
padding-bottom: 70rpx;
.progressBox {
width: 650rpx;
height: 120rpx;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: center;
.progressName {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 28rpx;
font-weight: bold;
.cur {
color: #f70027;
}
.nex {
color: #b9bcca;
} }
} }
.progress { .stepBox {
width: 100%; width: 680rpx;
} margin: 0 auto;
} background-color: #ffffff;
box-shadow: 0rpx 10rpx 50rpx 0rpx rgba(218, 220, 230, 0.85);
.stepBox { border-radius: 30rpx;
width: 680rpx; padding: 53rpx 45rpx 70rpx;
margin: 0 auto;
background-color: #ffffff; .stepItem {
box-shadow: 0rpx 10rpx 50rpx 0rpx rgba(218, 220, 230, 0.85);
border-radius: 30rpx;
padding: 53rpx 45rpx 70rpx;
.stepItem {
width: 100%;
padding-bottom: 100rpx;
.itemBox {
width: 100%; width: 100%;
margin-bottom: 55rpx; padding-bottom: 100rpx;
.name { .itemBox {
font-size: 28rpx;
font-weight: bold;
color: #1f1f1f;
margin-bottom: 38rpx;
.tip {
font-weight: 400;
color: #aaaaaaff;
margin-left: 10rpx;
}
}
.con1 {
height: 60rpx;
position: relative;
.input {
// width: 100%;
font-size: 32rpx;
font-family: PingFang SC;
font-weight: bold;
color: #000000;
border-bottom: 1rpx solid #dadce6;
padding-bottom: 24rpx;
vertical-align: baseline;
padding-right: 50rpx;
}
.delIcon {
width: 32rpx;
height: 32rpx;
// width: 100%;
// height: 100%;
}
}
.con2 {
width: 100%; width: 100%;
position: relative; margin-bottom: 55rpx;
overflow: hidden;
.name {
.conImage {
width: 590rpx;
height: 367rpx;
// border: 1rpx solid #000000;
}
.reupload {
width: 185rpx;
height: 60rpx;
background-color: #f70027;
border-radius: 20rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 28rpx; font-size: 28rpx;
font-weight: bold; font-weight: bold;
color: #ffffff; color: #1f1f1f;
position: absolute; margin-bottom: 38rpx;
left: 50%;
transform: translateX(-50%); .tip {
bottom: 40rpx; font-weight: 400;
color: #aaaaaaff;
margin-left: 10rpx;
}
} }
}
.con1 {
.con3 { height: 60rpx;
// border-bottom: 1rpx solid #DADCE6; position: relative;
padding-bottom: 24rpx;
position: relative; .input {
// width: 100%;
.numberBbox { font-size: 32rpx;
display: flex; font-family: PingFang SC;
justify-content: space-between; font-weight: bold;
align-items: center; color: #000000;
border-bottom: 1rpx solid #dadce6;
.numberImg { padding-bottom: 24rpx;
width: 38rpx; vertical-align: baseline;
height: 38rpx; padding-right: 50rpx;
} }
.numberInput { .delIcon {
margin: 0 10rpx; width: 32rpx;
flex-grow: 5; height: 32rpx;
text-align: center; // width: 100%;
// height: 100%;
} }
} }
}
.con2 {
.con4 { width: 100%;
border-bottom: 1rpx solid #dadce6; position: relative;
padding-bottom: 24rpx; overflow: hidden;
.customTypeBox { .conImage {
display: flex; width: 590rpx;
// flex-wrap: wrap; height: 367rpx;
justify-content: space-between; // border: 1rpx solid #000000;
margin-bottom: 20rpx; }
.customName { .reupload {
width: 110rpx; width: 185rpx;
height: 50rpx; height: 60rpx;
background-color: #ffffff; background-color: #f70027;
border: 1rpx dashed #1f1f1f; border-radius: 20rpx;
opacity: 0.3;
border-radius: 10rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 28rpx; font-size: 28rpx;
font-weight: bold; font-weight: bold;
color: #000000; color: #ffffff;
// margin-right: 50rpx; position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 40rpx;
}
}
.con3 {
// border-bottom: 1rpx solid #DADCE6;
padding-bottom: 24rpx;
position: relative;
.numberBbox {
display: flex;
justify-content: space-between;
align-items: center;
.numberImg {
width: 38rpx;
height: 38rpx;
}
.numberInput {
margin: 0 10rpx;
flex-grow: 5;
text-align: center;
}
}
}
.con4 {
border-bottom: 1rpx solid #dadce6;
padding-bottom: 24rpx;
.customTypeBox {
display: flex;
// flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 20rpx; margin-bottom: 20rpx;
.customName {
width: 110rpx;
height: 50rpx;
background-color: #ffffff;
border: 1rpx dashed #1f1f1f;
opacity: 0.3;
border-radius: 10rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 28rpx;
font-weight: bold;
color: #000000;
// margin-right: 50rpx;
margin-bottom: 20rpx;
}
& :nth-child(4n) > .customName {
margin-right: 0rpx !important;
}
} }
& :nth-child(4n) > .customName { .customTypeInput {
margin-right: 0rpx !important; font-size: 32rpx;
font-family: PingFang SC;
font-weight: bold;
color: #000000;
} }
} }
.customTypeInput { .con6 {
font-size: 32rpx; display: flex;
font-family: PingFang SC; flex-wrap: wrap;
font-weight: bold;
color: #000000; .goodsTypeImg {
width: 278rpx;
height: 144rpx;
background-color: #232323;
opacity: 0.6;
border-radius: 18rpx;
margin-bottom: 30rpx;
}
} }
} }
.con6 { .chooseidbox {
width: 208rpx;
display: flex; display: flex;
flex-wrap: wrap; flex-direction: column;
align-items: center;
.goodsTypeImg {
width: 278rpx; .chooseidbox_t {
height: 144rpx; width: 100%;
background-color: #232323; height: 260rpx;
opacity: 0.6; }
border-radius: 18rpx;
margin-bottom: 30rpx; .chooseidbox_b {
width: 15px;
height: 15px;
margin-top: 12px;
}
image {
width: 100%;
height: 100%;
} }
} }
} }
}
.chooseidbox {
width: 208rpx; .butBox {
display: flex; margin: 10rpx auto;
flex-direction: column; width: 100rpx;
align-items: center; height: 100rpx;
background-color: #f70027;
.chooseidbox_t { box-shadow: 0rpx 4rpx 40rpx 0rpx rgba(249, 54, 85, 0.58);
width: 100%; border-radius: 20rpx;
height: 260rpx; display: flex;
} justify-content: center;
align-items: center;
.chooseidbox_b { font-size: 28rpx;
width: 15px; font-weight: bold;
height: 15px; color: #ffffff;
margin-top: 12px;
} .next {
width: 100%;
image { height: auto;
width: 100%;
height: 100%;
}
} }
} }
.skip {
text-align: center;
font-size: 28rpx;
font-weight: 500;
color: #b7b7b7;
}
} }
.butBox { .chooseType {
margin: 10rpx auto; background-color: #f95771ff !important;
width: 100rpx; color: #f70027 !important;
height: 100rpx; border: none !important;
background-color: #f70027; }
box-shadow: 0rpx 4rpx 40rpx 0rpx rgba(249, 54, 85, 0.58);
border-radius: 20rpx; // 修改滑块样式
/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 {
display: flex; display: flex;
justify-content: center; justify-content: space-between;
align-items: center; align-items: center;
font-size: 28rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
color: #ffffff; color: #000000;
.next {
width: 100%;
height: auto;
}
} }
.skip { /deep/.u-radio-group {
text-align: center; display: flex;
font-size: 28rpx; flex-wrap: wrap;
font-weight: 500;
color: #b7b7b7;
} }
}
/deep/.u-radio-group :nth-child(2n) > .u-radio {
.chooseType { margin-right: 0rpx;
background-color: #f95771ff !important; }
color: #f70027 !important;
border: none !important; /deep/.u-radio {
} position: relative;
width: 278rpx;
// 修改滑块样式 border-radius: 18rpx;
/deep/.block { margin-right: 30rpx;
background-color: #ffffff; }
border: 4rpx solid #f70027;
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(232, 76, 100, 0.74); /deep/.u-radio__icon-wrap {
border-radius: 10rpx; position: absolute;
} top: 17rpx;
right: 17rpx;
.rangeSliderNum { z-index: 10;
display: flex; }
justify-content: space-between;
align-items: center; .sliderCurNumBox {
font-size: 32rpx; display: flex;
font-weight: bold; justify-content: center;
color: #000000; align-items: baseline;
}
.sliderCurNum {
/deep/.u-radio-group { width: 100rpx;
display: flex; text-align: center;
flex-wrap: wrap; font-size: 40rpx;
} font-weight: 800;
color: #f70027;
/deep/.u-radio-group :nth-child(2n) > .u-radio { }
margin-right: 0rpx;
}
/deep/.u-radio {
position: relative;
width: 278rpx;
border-radius: 18rpx;
margin-right: 30rpx;
}
/deep/.u-radio__icon-wrap {
position: absolute;
top: 17rpx;
right: 17rpx;
z-index: 10;
}
.sliderCurNumBox {
display: flex;
justify-content: center;
align-items: baseline;
.sliderCurNum {
width: 100rpx;
text-align: center;
font-size: 40rpx;
font-weight: 800;
color: #f70027;
} }
} </style>
</style>
\ No newline at end of file
...@@ -511,13 +511,13 @@ export default { ...@@ -511,13 +511,13 @@ export default {
getAccess_token() { getAccess_token() {
let that = this; let that = this;
uni.request({ uni.request({
url: "https://aip.baidubce.com/oauth/2.0/token", // 百度获取token接口地址 url: "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=uHc6N5qsYBfZs3jrM0DOLXCc&client_secret=8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J", // 百度获取token接口地址
data: { data: {
grant_type: "client_credentials", // 固定写死 grant_type: "client_credentials", // 固定写死
client_id: "wWtW3xQju14uH0ToPpxlk4aq", client_id: "uHc6N5qsYBfZs3jrM0DOLXCc",
client_secret: "lEYPHN0CgFbX5e849ViK9Q7WdnUhkwEx", client_secret: "8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J",
}, },
method: "GET", method: "POST",
success(res) { success(res) {
that.access_token = res.data.access_token; that.access_token = res.data.access_token;
}, },
......
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
margin-bottom: 30rpx; margin-bottom: 30rpx;
padding: 0px 15px; padding: 0px 15px;
" "
v-if="tenantId==18"
> >
<image <image
@click="goNewFirstShop" @click="goNewFirstShop"
...@@ -110,6 +111,7 @@ ...@@ -110,6 +111,7 @@
style="height: calc(100vh - 189px)" style="height: calc(100vh - 189px)"
> >
<view <view
v-if="tenantId==18"
style="font-size: 30rpx; font-weight: 700; color: #111; padding: 0 15px" style="font-size: 30rpx; font-weight: 700; color: #111; padding: 0 15px"
>资讯信息</view >资讯信息</view
> >
...@@ -146,7 +148,7 @@ ...@@ -146,7 +148,7 @@
</view> </view>
</view> </view>
</view> </view>
<view style="height: 30px;"></view>
<u-loadmore <u-loadmore
:status="status" :status="status"
:load-text="loadText" :load-text="loadText"
...@@ -191,6 +193,7 @@ export default { ...@@ -191,6 +193,7 @@ export default {
status: "", status: "",
CommpanyStatus: 0, //公司认证状态 CommpanyStatus: 0, //公司认证状态
FirstShopType: 0, //1:品牌,2:载体 FirstShopType: 0, //1:品牌,2:载体
tenantId:0
}; };
}, },
onShareTimeline() { onShareTimeline() {
...@@ -252,9 +255,6 @@ export default { ...@@ -252,9 +255,6 @@ export default {
}; };
}, },
mounted() { mounted() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) { if (!this.u) {
this.u = { this.u = {
...@@ -263,11 +263,15 @@ export default { ...@@ -263,11 +263,15 @@ export default {
}; };
this.showAuth = true; this.showAuth = true;
} else { } else {
this.tenantId = this.u.TenantId
this.getList(1); this.getList(1);
this.getCommpanyStatus(); this.getCommpanyStatus();
this.isauth = true this.isauth = true
this.pageTitle = this.tenantId==18?this.pageTitle:'商业资讯'
} }
uni.setNavigationBarTitle({
title: this.pageTitle,
});
}, },
methods: { methods: {
reloadUserinfo() { reloadUserinfo() {
......
...@@ -2,8 +2,8 @@ export default { ...@@ -2,8 +2,8 @@ export default {
install(Vue, options) { install(Vue, options) {
Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285" Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
//Vue.prototype.host2 = "https://mallApi.oytour.com" //电商接口 Vue.prototype.host2 = "https://mallApi.oytour.com" //电商接口
Vue.prototype.host2 = "http://192.168.5.46:8200" //Vue.prototype.host2 = "http://192.168.5.46:8200"
Vue.prototype.host3 = "https://jjeduapi.oytour.com" //进阶小课堂以前接口 Vue.prototype.host3 = "https://jjeduapi.oytour.com" //进阶小课堂以前接口
Vue.prototype.UploadConfig = function() { //本地上传配置 Vue.prototype.UploadConfig = function() { //本地上传配置
......
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