隐藏掉本次不上线的功能

This commit is contained in:
donqi 2022-07-04 16:04:58 +08:00
parent 71e9d9ad18
commit e860bc0481
4 changed files with 75 additions and 55 deletions

View File

@ -54,9 +54,9 @@
<view class="cu-item" v-for="(item,index) in subCategories" :key="index" v-if="index < 5" <view class="cu-item" v-for="(item,index) in subCategories" :key="index" v-if="index < 5"
@click="chooseCategory(item)"> @click="chooseCategory(item)">
<view class="hot-sub-category-icon" :class="['cuIcon-' + item.cuIcon,'text-' + item.color]"> <view class="hot-sub-category-icon" :class="['cuIcon-' + item.cuIcon,'text-' + item.color]">
<view class="cu-tag badge" v-if="item.badge!=0"> <!-- <view class="cu-tag badge" v-if="item.badge!=0">
<block v-if="item.badge!=1">{{item.badge}}</block> <block v-if="item.badge!=1">{{item.badge}}</block>
</view> </view> -->
</view> </view>
<text>{{item.goodsCategoryName}}</text> <text>{{item.goodsCategoryName}}</text>
</view> </view>
@ -66,9 +66,9 @@
<view class="cu-item" v-for="(item,index) in subCategories" :key="index" <view class="cu-item" v-for="(item,index) in subCategories" :key="index"
v-if="index < subCategories.length && index > 4" @click="chooseCategory(item)"> v-if="index < subCategories.length && index > 4" @click="chooseCategory(item)">
<view :class="['cuIcon-' + item.cuIcon,'text-' + item.color]"> <view :class="['cuIcon-' + item.cuIcon,'text-' + item.color]">
<view class="cu-tag badge" v-if="item.badge!=0"> <!-- <view class="cu-tag badge" v-if="item.badge!=0">
<block v-if="item.badge!=1">{{item.badge}}</block> <block v-if="item.badge!=1">{{item.badge}}</block>
</view> </view> -->
</view> </view>
<text>{{item.goodsCategoryName}}</text> <text>{{item.goodsCategoryName}}</text>
</view> </view>

View File

@ -24,7 +24,7 @@
<view>公司家居家政雇佣上门服务</view> <view>公司家居家政雇佣上门服务</view>
</view> </view>
</view> </view>
<view class="flex justify-start margin-tb-xl"> <!-- <view class="flex justify-start margin-tb-xl">
<view class="cu-avatar round middle-avatar second-avatar"> <view class="cu-avatar round middle-avatar second-avatar">
<view class="cuIcon-cameraaddfill"></view> <view class="cuIcon-cameraaddfill"></view>
</view> </view>
@ -33,8 +33,8 @@
<view class="text-gray">30s发布宝贝</view> <view class="text-gray">30s发布宝贝</view>
<view class="text-sm">手机/家电卖出/非上门类</view> <view class="text-sm">手机/家电卖出/非上门类</view>
</view> </view>
</view> </view> -->
<view class="flex justify-start margin-tb-xl"> <!-- <view class="flex justify-start margin-tb-xl">
<view class="cu-avatar round middle-avatar third-avatar"> <view class="cu-avatar round middle-avatar third-avatar">
<view class="cuIcon-footprint"></view> <view class="cuIcon-footprint"></view>
</view> </view>
@ -42,8 +42,8 @@
<view class="text-xl">社区跑腿</view> <view class="text-xl">社区跑腿</view>
<view>同楼盘跑腿服务</view> <view>同楼盘跑腿服务</view>
</view> </view>
</view> </view> -->
<view class="flex justify-start margin-tb-xl"> <!-- <view class="flex justify-start margin-tb-xl">
<view class="cu-avatar round middle-avatar fourth-avatar"> <view class="cu-avatar round middle-avatar fourth-avatar">
<view class="cuIcon-shopfill"></view> <view class="cuIcon-shopfill"></view>
</view> </view>
@ -51,7 +51,7 @@
<view class="text-xl">品牌厂商发布</view> <view class="text-xl">品牌厂商发布</view>
<view>销售商电商雇佣</view> <view>销售商电商雇佣</view>
</view> </view>
</view> </view> -->
</view> </view>
</view> </view>
<view class="cu-bar tabbar margin-bottom-xl fixed-bottom-bar"> <view class="cu-bar tabbar margin-bottom-xl fixed-bottom-bar">

View File

@ -1,8 +1,8 @@
<template> <template>
<view> <view>
<!-- 顶部头像栏 --> <!-- 顶部头像栏 -->
<view class="padding bg-main-color" :style="'padding-top: ' + pageContentTop + 'px; padding-bottom: 100rpx;'"> <view class="padding bg-gradual-color" :style="'padding-top: ' + pageContentTop + 'px; padding-bottom: 100rpx;'">
<view class="flex justify-start padding-bottom-xl solid-bottom"> <view class="flex justify-start padding-bottom-xl">
<view class="cu-avatar round" <view class="cu-avatar round"
:style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.customerLogoUrl + ');'"></view> :style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.customerLogoUrl + ');'"></view>
<view class="margin-lr-sm"> <view class="margin-lr-sm">
@ -14,7 +14,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="cu-bar"> <!-- <view class="cu-bar">
<view class="action bar-first-action"><text class="margin-right-sm">余额:</text><text>{{myInfo.balance}}</text></view> <view class="action bar-first-action"><text class="margin-right-sm">余额:</text><text>{{myInfo.balance}}</text></view>
<view class="action"><text class="margin-right-sm">积分:</text><text>{{myInfo.integrate}}</text></view> <view class="action"><text class="margin-right-sm">积分:</text><text>{{myInfo.integrate}}</text></view>
<view class="action" @click="showCart"> <view class="action" @click="showCart">
@ -23,11 +23,11 @@
<text class="cu-tag badge my-cart-badge" v-if="myInfo.cartNum > 0">{{myInfo.cartNum}}</text> <text class="cu-tag badge my-cart-badge" v-if="myInfo.cartNum > 0">{{myInfo.cartNum}}</text>
</text> </text>
</view> </view>
</view> </view> -->
</view> </view>
<view class="margin-lr-sm paper-drawer-bar margin-bottom-with-bar"> <view class="margin-lr-sm paper-drawer-bar margin-bottom-with-bar">
<!-- 服务圈 --> <!-- 服务圈 -->
<view class="bg-white padding-lr shadow-warp"> <!-- <view class="bg-white padding-lr shadow-warp">
<view class="cu-bar margin-top-sm solid-bottom"> <view class="cu-bar margin-top-sm solid-bottom">
<view class="action bar-first-action"> <view class="action bar-first-action">
<text>{{myInfo.servCircle.name}}</text> <text>{{myInfo.servCircle.name}}</text>
@ -61,7 +61,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view> -->
<view class="bg-white padding-lr padding-bottom"> <view class="bg-white padding-lr padding-bottom">
<!-- 服务订单 --> <!-- 服务订单 -->
<view class="cu-bar solid-bottom margin-top-sm"> <view class="cu-bar solid-bottom margin-top-sm">
@ -120,7 +120,7 @@
<block>{{myInfo.serOrderNum.afterServ}}</block> <block>{{myInfo.serOrderNum.afterServ}}</block>
</view> </view>
</view> </view>
<text>完成待确认</text> <text>待确认</text>
</view> </view>
<view class="cu-item" @click="showMyOrders(servOrderTabList, 6, servOrderType)"> <view class="cu-item" @click="showMyOrders(servOrderTabList, 6, servOrderType)">
<view class="cuIcon-forward"> <view class="cuIcon-forward">
@ -132,7 +132,7 @@
</view> </view>
</view> </view>
<!-- 商品订单 --> <!-- 商品订单 -->
<view class="cu-bar solid-bottom"> <!-- <view class="cu-bar solid-bottom">
<view class="action bar-first-action"> <view class="action bar-first-action">
<text class="cuIcon-titles text-main-color"></text> 商品订单 <text class="cuIcon-titles text-main-color"></text> 商品订单
</view> </view>
@ -182,7 +182,7 @@
</view> </view>
<text>待转发</text> <text>待转发</text>
</view> </view>
</view> </view> -->
</view> </view>
<!-- 所有功能 --> <!-- 所有功能 -->
<view class="bg-white padding-lr padding-bottom"> <view class="bg-white padding-lr padding-bottom">
@ -193,42 +193,42 @@
</view> </view>
</view> </view>
<view class="cu-list grid no-border col-4"> <view class="cu-list grid no-border col-4">
<view class="cu-item"> <!-- <view class="cu-item" @click="showPage(null)">
<view class="cuIcon-wefill text-red"></view> <view class="cuIcon-wefill text-red"></view>
<text>我的发布</text> <text>我的发布</text>
</view> </view> -->
<view class="cu-item" @click="showMyAddress"> <view class="cu-item" @click="showMyAddress">
<view class="cuIcon-locationfill text-orange"></view> <view class="cuIcon-locationfill text-orange"></view>
<text>地址管理</text> <text>地址管理</text>
</view> </view>
<view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-questionfill text-yellow"></view> <view class="cuIcon-questionfill text-yellow"></view>
<text>常见问题</text> <text>常见问题</text>
</view> </view> -->
<view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-servicefill text-olive"></view> <view class="cuIcon-servicefill text-olive"></view>
<text>联系客服</text> <text>联系客服</text>
</view> </view> -->
<view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-qr_code text-green"></view> <view class="cuIcon-qr_code text-green"></view>
<text>二维码分享</text> <text>二维码分享</text>
</view> </view> -->
<view class="cu-item" @click="showPage('/pages/my/my-money-bag')"> <!-- <view class="cu-item">
<view class="cuIcon-moneybagfill text-cyan"></view> <view class="cuIcon-moneybagfill text-cyan"></view>
<text>钱包</text> <text>钱包</text>
</view> </view> -->
<view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-friendaddfill text-blue"></view> <view class="cuIcon-friendaddfill text-blue"></view>
<text>加盟项目</text> <text>加盟项目</text>
</view> </view> -->
<view class="cu-item"> <!-- <view class="cu-item">
<view class="cuIcon-group_fill text-purple"></view> <view class="cuIcon-group_fill text-purple"></view>
<text>社区代理</text> <text>社区代理</text>
</view> </view> -->
</view> </view>
</view> </view>
<!-- 后台入口 --> <!-- 后台入口 -->
<view class="bg-white padding-lr padding-bottom"> <!-- <view class="bg-white padding-lr padding-bottom">
<view class="cu-bar margin-top-sm solid-bottom"> <view class="cu-bar margin-top-sm solid-bottom">
<view class="action bar-first-action"> <view class="action bar-first-action">
<view class="cuIcon-titles text-main-color"></view> <view class="cuIcon-titles text-main-color"></view>
@ -249,7 +249,7 @@
<text>后台数据</text> <text>后台数据</text>
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
</view> </view>
</template> </template>
@ -280,7 +280,7 @@
name: '服务中' name: '服务中'
}, { }, {
type: 4, type: 4,
name: '完成待确认' name: '待确认'
}, { }, {
type: 5, type: 5,
name: '已完成' name: '已完成'
@ -343,9 +343,16 @@
}) })
}, },
showPage(pageUrl) { showPage(pageUrl) {
uni.navigateTo({ if (pageUrl) {
url: pageUrl uni.navigateTo({
}) url: pageUrl
})
} else {
uni.showToast({
icon: 'none',
title: '功能开发中'
})
}
} }
} }
} }

View File

@ -2,16 +2,16 @@
<page-meta :page-style="'overflow:'+(ifShowPageMeta?'hidden':'visible')"></page-meta> <page-meta :page-style="'overflow:'+(ifShowPageMeta?'hidden':'visible')"></page-meta>
<view> <view>
<!-- 顶部操作条 --> <!-- 顶部操作条 -->
<cu-custom :bgColor="'bg-white'" :isBack="true" :isBackHome="true" :homePageUrl="'/pages/index/index'"> <cu-custom :bgColor="'bg-white'" :isBack="true" :isBackHome="false" :homePageUrl="'/pages/index/index'">
<!-- <block slot="backText">返回</block> --> <block slot="backText">返回</block>
<!-- <block slot="backHomeText">首页</block> --> <!-- <block slot="backHomeText">首页</block> -->
<!-- <block slot="content">商品详情</block> --> <block slot="content">商品详情</block>
</cu-custom> </cu-custom>
<!-- 导航栏 --> <!-- 导航栏 -->
<uni-transition class="fixed-top-bar" mode-class="fade" :show="showTopNav"> <uni-transition class="fixed-top-bar" mode-class="fade" :show="showTopNav">
<view class="grid text-center col-3 solid-top solid-bottom bg-white"> <view class="grid text-center col-3 solid-top solid-bottom bg-white">
<view class="padding" :class="curTopNav == 0 ? 'bg-blue' : ''" @click.stop="clickNav(0)">服务</view> <view class="padding" :class="curTopNav == 0 ? 'bg-blue' : ''" @click.stop="clickNav(0)">服务</view>
<view class="padding" :class="curTopNav == 1 ? 'bg-blue' : ''" @click.stop="clickNav(1)">评价</view> <!-- <view class="padding" :class="curTopNav == 1 ? 'bg-blue' : ''" @click.stop="clickNav(1)">评价</view> -->
<view class="padding" :class="curTopNav == 2 ? 'bg-blue' : ''" @click.stop="clickNav(2)">详情</view> <view class="padding" :class="curTopNav == 2 ? 'bg-blue' : ''" @click.stop="clickNav(2)">详情</view>
</view> </view>
</uni-transition> </uni-transition>
@ -128,14 +128,14 @@
:class="'cuIcon-' + (isShowAllSpecs ? 'fold' : 'unfold')"></text></view> :class="'cuIcon-' + (isShowAllSpecs ? 'fold' : 'unfold')"></text></view>
</view> </view>
<!-- 服务评价 --> <!-- 服务评价 -->
<view id="pageAnchor1" class="margin-lr-sm margin-top-sm bg-white"> <!-- <view id="pageAnchor1" class="margin-lr-sm margin-top-sm bg-white"> -->
<view class="flex justify-between align-end padding"> <!-- <view class="flex justify-between align-end padding"> -->
<view class="text-black text-lg">商品评价</view> <!-- <view class="text-black text-lg">商品评价</view> -->
<!-- <view class="text-red text-sm">好评率95%<text class="text-bold text-gray cuIcon-right"></text></view> --> <!-- <view class="text-red text-sm">好评率95%<text class="text-bold text-gray cuIcon-right"></text></view> -->
</view> <!-- </view> -->
<view class="text-center padding-bottom">开发中敬请期待</view> <!-- <view class="text-center padding-bottom">开发中敬请期待</view> -->
<!-- <comments-card :reviewers="reviewers"></comments-card> --> <!-- <comments-card :reviewers="reviewers"></comments-card> -->
</view> <!-- </view> -->
<!-- 店家链接 --> <!-- 店家链接 -->
<view class="margin-lr-sm margin-top-sm padding bg-white"> <view class="margin-lr-sm margin-top-sm padding bg-white">
<view class="flex justify-between align-center"> <view class="flex justify-between align-center">
@ -155,22 +155,30 @@
</view> </view>
<!-- 底部操作条 --> <!-- 底部操作条 -->
<view class="cu-bar bg-white tabbar border shop fixed-bottom-bar"> <view class="cu-bar bg-white tabbar border shop fixed-bottom-bar">
<view class="action" @click="showIndex">
<view class="cuIcon-homefill"></view>
首页
</view>
<button class="action" open-type="contact"> <button class="action" open-type="contact">
<view class="cuIcon-service text-green"> <view class="cuIcon-servicefill text-green">
<view class="cu-tag badge" v-if="ifHasCsMsg"></view> <!-- <view class="cu-tag badge" v-if="ifHasCsMsg"></view> -->
</view> </view>
客服 客服
</button> </button>
<view class="action" @click="showShopDetail(shopInfo)">
<view class="cuIcon-taoxiaopu text-orange"></view>
店铺
</view>
<!-- <view class="action"> <!-- <view class="action">
<view class=" cuIcon-shop"></view> 店铺 <view class=" cuIcon-shop"></view> 店铺
</view> --> </view> -->
<view class="action" @click="showCart"> <!-- <view class="action" @click="showCart">
<view class="cuIcon-cart"> <view class="cuIcon-cart">
<view class="cu-tag badge" v-if="totalPickCount > 0">{{totalPickCount}}</view> <view class="cu-tag badge" v-if="totalPickCount > 0">{{totalPickCount}}</view>
</view> </view>
购物车 购物车
</view> </view> -->
<view class="bg-main-color light submit" @click="toggleProductPickModal">加入购物车</view> <!-- <view class="bg-main-color light submit" @click="toggleProductPickModal">加入购物车</view> -->
<view class="bg-main-color submit" @tap="checkLogin" @click="toggleProductPickModal($event, true)">立即订购</view> <view class="bg-main-color submit" @tap="checkLogin" @click="toggleProductPickModal($event, true)">立即订购</view>
</view> </view>
<!-- 底部弹窗 --> <!-- 底部弹窗 -->
@ -363,6 +371,11 @@
uni.navigateTo({ uni.navigateTo({
url: '/pages/my/my-cart?myCartInfo=' + encodeURIComponent(JSON.stringify(myCartInfo)) url: '/pages/my/my-cart?myCartInfo=' + encodeURIComponent(JSON.stringify(myCartInfo))
}); });
},
showIndex() {
uni.navigateTo({
url: '/pages/index/index'
});
} }
} }
} }