我的资产调整首页调整提交企业认证接口调整

This commit is contained in:
唐明明
2021-09-13 17:51:11 +08:00
parent c0ef48f7cf
commit ac59089e29
83 changed files with 7251 additions and 2958 deletions

View File

@@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<nv :config="nvConfig" @nvTabTap="onNvTab" @nvBtnTap="onRightBtn"></nv>
<block v-if="tabIndex === 0">
<block v-if="tabIndex === 1">
<!-- 推荐商家 -->
<view class="block-title">
<view class="title">
@@ -42,7 +42,7 @@
<uni-rate
:readonly="true"
color="#ddd"
active-color="#c82626"
active-color="#e93340"
:value="item.star"
:size="14"
/>
@@ -61,11 +61,11 @@
<industry-list :list="busList" @on-industry="onOpenWechat"/>
</block>
<!-- 易货商城 -->
<block v-if="tabIndex === 1">
<block v-if="tabIndex === 0">
<view class="header-back">
<!-- 轮播图 -->
<view class="banner">
<swiper class="banner-swiper" indicator-color="#c82626" indicator-active-color="#f8f8f8" indicator-dots autoplay>
<swiper class="banner-swiper" indicator-color="#e93340" indicator-active-color="#f8f8f8" indicator-dots autoplay>
<swiper-item v-for="(item, index) in banners" :key="index">
<image class="cover" :src="item.cover" mode="aspectFill"></image>
</swiper-item>
@@ -137,12 +137,12 @@
tabIndex : 0,
nvConfig : {
tabArr: [
{title:'广场', active:true},
{title:'易货'}
{title:'易货商城', active:true},
{title:'企业广场'}
],
color: '#FFF',
hideback: true,
bgColor: '#c82626',
bgColor: '#e93340',
btn: [{
icon: '/static/icons/search-icon.png',
@@ -166,7 +166,7 @@
};
},
created() {
this.getCompanies()
this.getMall()
},
methods:{
// tab
@@ -177,7 +177,7 @@
else this.nvConfig.tabArr[i].active = false
}
this.tabIndex = tabIndex
if(this.goods.length <= 0) this.getMall()
if(tabIndex == 1 && this.recommendBus.length <= 0) this.getCompanies()
},
// 搜索
onRightBtn(e){
@@ -190,7 +190,6 @@
// 企业广场
getCompanies(){
companies().then(res=>{
console.log(res)
this.recommendBus = res.positions
this.hotBus = res.hot
this.industryBus = [{title: '全部', industry_id: ''}, ...res.industries]
@@ -251,15 +250,21 @@
plus.share.getServices(res => {
let sweixin = null;
for(let val of res){
console.log(val)
if(val.id === weixin){
if(val.id === 'weixin'){
sweixin = val
return
}
}
sweixin ? sweixin.launchMiniProgram({
id: e.original_id
}):plus.nativeUI.alert('当前环境不支持微信操作!');
if(sweixin != null){
sweixin.launchMiniProgram({
id : e.original_id,
path: 'pages/index/index?scene=' + e.company_id,
})
}else{
uni.showToast({
title: '当前环境不支持打开微信小程序',
icon : 'none'
})
}
})
}
}