2021-05-13 11:03:32 +08:00
|
|
|
|
<template>
|
2021-08-09 18:40:06 +08:00
|
|
|
|
<div>
|
|
|
|
|
<u-navbar :border-bottom="false">
|
|
|
|
|
<u-search v-model="keyword" @search="search" @click="search" placeholder="请输入搜索"></u-search>
|
|
|
|
|
</u-navbar>
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
<!-- 店铺信息模块 -->
|
|
|
|
|
<div class="store flex">
|
2021-09-09 11:21:28 +08:00
|
|
|
|
<u-image border-radius="10" width="150" height="150" :src="storeInfo.storeLogo || config.logo" mode="aspectFit">
|
|
|
|
|
</u-image>
|
2021-08-09 18:40:06 +08:00
|
|
|
|
<div class="box">
|
2021-08-11 17:09:37 +08:00
|
|
|
|
<div class="store-name" @click="getStoreLicencePhoto">
|
2021-08-09 18:40:06 +08:00
|
|
|
|
{{ storeInfo.storeName || ''}}
|
2021-08-11 17:09:37 +08:00
|
|
|
|
<u-icon style="margin-left:10rpx;" name="arrow-right"></u-icon>
|
2021-08-09 18:40:06 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="flex store-message">
|
2021-08-11 09:49:09 +08:00
|
|
|
|
<div> <span>{{ storeInfo.collectionNum || 0 }}</span>关注 </div>
|
|
|
|
|
<div> <span>{{ storeInfo.goodsNum || 0 }}</span>件商品 </div>
|
2021-08-09 18:40:06 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="collection">
|
|
|
|
|
<div class="collection-btn" @click="whetherCollection"> {{ isCollection ? '已关注' : '+ 关注' }}</div>
|
|
|
|
|
</div>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</div>
|
2021-08-09 18:40:06 +08:00
|
|
|
|
<!-- 店铺简介 -->
|
|
|
|
|
<div class="store-desc wes-2">
|
|
|
|
|
{{storeInfo.storeDesc}}
|
|
|
|
|
</div>
|
2021-08-10 09:57:48 +08:00
|
|
|
|
|
|
|
|
|
<!-- 联系客服 -->
|
|
|
|
|
<div class="kefu" @click="linkKefuDetail">
|
|
|
|
|
<u-icon name="kefu-ermai"></u-icon>
|
|
|
|
|
联系客服
|
|
|
|
|
</div>
|
2021-08-09 18:40:06 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!-- 优惠券 -->
|
|
|
|
|
<scroll-view scroll-x="true" show-scrollbar="false" class="discount" v-if="couponList.length > 0">
|
|
|
|
|
<view class="card-box" v-for="(item, index) in couponList" :key="index">
|
|
|
|
|
<view class="card" @click="getCoupon(item)">
|
|
|
|
|
<view class="money">
|
|
|
|
|
<view>
|
|
|
|
|
<span v-if="item.couponType == 'DISCOUNT'">{{ item.couponDiscount }}折</span>
|
|
|
|
|
<span v-else>{{ item.price }}元</span>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="xian"></view>
|
|
|
|
|
<view class="text">
|
|
|
|
|
<text>{{'领取优惠券'}}</text>
|
|
|
|
|
<text>满{{ item.consumeThreshold | unitPrice }}元可用</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</view>
|
2021-08-09 18:40:06 +08:00
|
|
|
|
</scroll-view>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
2021-08-09 18:40:06 +08:00
|
|
|
|
<!-- tab -->
|
|
|
|
|
<u-tabs :list="tabs" :active-color="mainColor" :is-scroll="false" :current="current" @change="changeTab"></u-tabs>
|
|
|
|
|
<!-- menu -->
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
2021-08-09 18:40:06 +08:00
|
|
|
|
<!-- 商品 -->
|
|
|
|
|
<div class="contant" v-if="current == 0">
|
|
|
|
|
<view v-if="!goodsList.length" class="empty">暂无商品信息</view>
|
2022-05-30 16:37:50 +08:00
|
|
|
|
<goodsTemplate :res="goodsList" :storeName="false" />
|
2021-08-09 18:40:06 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!-- 全部分类 -->
|
|
|
|
|
<div class="category" v-if="current == 1">
|
|
|
|
|
<div class="category-item" v-for="(item,index) in categoryList" :key="index">
|
|
|
|
|
<div class="flex" @click="getCategoryGoodsList(item)">
|
|
|
|
|
<div>{{item.labelName}}</div>
|
|
|
|
|
<div>
|
|
|
|
|
<u-icon color="#999" name="arrow-right"></u-icon>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 分类子级 -->
|
|
|
|
|
<div class="child-list" v-if="item.children && item.children.length!=0">
|
2021-09-09 11:21:28 +08:00
|
|
|
|
<div class="child" @click="getCategoryGoodsList(child)" v-for="(child,i) in item.children">{{child.labelName}}
|
|
|
|
|
</div>
|
2021-08-09 18:40:06 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<u-back-top :scroll-top="scrollTop"></u-back-top>
|
|
|
|
|
</div>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-05-30 16:37:50 +08:00
|
|
|
|
import { getStoreBaseInfo, getStoreCategory } from "@/api/store.js";
|
|
|
|
|
import goodsTemplate from '@/components/m-goods-list/list'
|
2021-08-09 18:40:06 +08:00
|
|
|
|
import {
|
|
|
|
|
receiveCoupons,
|
|
|
|
|
deleteStoreCollection,
|
|
|
|
|
collectionGoods,
|
|
|
|
|
getGoodsIsCollect,
|
|
|
|
|
} from "@/api/members.js";
|
2021-09-09 11:21:28 +08:00
|
|
|
|
import config from "@/config/config";
|
2021-08-10 09:57:48 +08:00
|
|
|
|
import storage from "@/utils/storage";
|
2021-08-09 18:40:06 +08:00
|
|
|
|
import { getGoodsList } from "@/api/goods.js";
|
|
|
|
|
import { getAllCoupons } from "@/api/promotions.js";
|
2021-05-13 11:03:32 +08:00
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2021-09-02 16:08:35 +08:00
|
|
|
|
config,
|
2021-08-09 18:40:06 +08:00
|
|
|
|
scrollTop: 0,
|
|
|
|
|
mainColor: this.$mainColor, //主色调
|
|
|
|
|
current: 0, //初始tabs的索引
|
|
|
|
|
tabs: [{ name: "全部商品" }, { name: "分类查看" }], // 标签
|
|
|
|
|
storeId: "",
|
|
|
|
|
keyword: "",
|
|
|
|
|
storeInfo: {}, //店铺详情
|
|
|
|
|
isCollection: false, //是否关注
|
|
|
|
|
goodsList: [], //推荐货物
|
|
|
|
|
couponList: [], //优惠券列表
|
|
|
|
|
categoryList: [],
|
|
|
|
|
couponParams: { pageNumber: 1, pageSize: 50, storeId: "" },
|
|
|
|
|
goodsParams: { pageNumber: 1, pageSize: 50, storeId: "" },
|
2021-05-13 11:03:32 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
2021-08-09 18:40:06 +08:00
|
|
|
|
watch: {
|
|
|
|
|
current(val) {
|
2021-12-24 09:12:21 +08:00
|
|
|
|
val == 0 ? ()=>{ this.goodsList = []; this.getGoodsData()} : this.getCategoryData();
|
2021-08-09 18:40:06 +08:00
|
|
|
|
},
|
2022-05-30 16:37:50 +08:00
|
|
|
|
},
|
|
|
|
|
components:{goodsTemplate},
|
2021-05-17 18:19:26 +08:00
|
|
|
|
|
|
|
|
|
/**
|
2021-08-09 18:40:06 +08:00
|
|
|
|
* 加载
|
2021-05-17 18:19:26 +08:00
|
|
|
|
*/
|
2021-05-13 11:03:32 +08:00
|
|
|
|
async onLoad(options) {
|
|
|
|
|
this.storeId = options.id;
|
2021-09-27 19:58:18 +08:00
|
|
|
|
this.goodsParams.storeId = options.id;
|
|
|
|
|
this.couponParams.storeId = options.id;
|
2021-08-09 18:40:06 +08:00
|
|
|
|
},
|
|
|
|
|
onPageScroll(e) {
|
|
|
|
|
this.scrollTop = e.scrollTop;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
},
|
2021-09-09 11:21:28 +08:00
|
|
|
|
onPullDownRefresh() {
|
2021-09-27 19:58:18 +08:00
|
|
|
|
this.init();
|
2021-09-09 11:21:28 +08:00
|
|
|
|
},
|
2021-06-22 18:12:35 +08:00
|
|
|
|
mounted() {
|
2021-09-27 19:58:18 +08:00
|
|
|
|
// #ifdef MP-WEIXIN
|
2021-06-22 18:12:35 +08:00
|
|
|
|
// 小程序默认分享
|
|
|
|
|
uni.showShareMenu({ withShareTicket: true });
|
|
|
|
|
// #endif
|
2021-08-11 09:49:09 +08:00
|
|
|
|
this.init();
|
2021-06-22 18:12:35 +08:00
|
|
|
|
},
|
2021-09-27 19:58:18 +08:00
|
|
|
|
|
2021-08-09 18:40:06 +08:00
|
|
|
|
// 下拉加载
|
|
|
|
|
onReachBottom() {
|
|
|
|
|
this.goodsParams.pageNumber++;
|
|
|
|
|
this.getGoodsData();
|
|
|
|
|
},
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
|
|
|
|
methods: {
|
2021-08-11 17:09:37 +08:00
|
|
|
|
getStoreLicencePhoto() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/product/licencePhoto?id=${this.storeId}`,
|
|
|
|
|
});
|
|
|
|
|
},
|
2021-08-11 09:49:09 +08:00
|
|
|
|
/**
|
|
|
|
|
* 初始化信息
|
|
|
|
|
*/
|
|
|
|
|
init() {
|
|
|
|
|
this.goodsList = [];
|
|
|
|
|
this.categoryList = [];
|
|
|
|
|
this.couponList = [];
|
|
|
|
|
this.goodsParams.pageNumber = 1;
|
|
|
|
|
if (this.$options.filters.isLogin("auth")) {
|
|
|
|
|
this.enableGoodsIsCollect();
|
|
|
|
|
}
|
|
|
|
|
// 店铺信息
|
|
|
|
|
this.getStoreData();
|
|
|
|
|
// 商品信息
|
|
|
|
|
this.getGoodsData();
|
|
|
|
|
// 优惠券信息
|
|
|
|
|
this.getCouponsData();
|
|
|
|
|
// 店铺分类
|
|
|
|
|
this.getCategoryData();
|
|
|
|
|
},
|
2021-08-10 09:57:48 +08:00
|
|
|
|
/**
|
|
|
|
|
* 联系客服
|
|
|
|
|
*/
|
|
|
|
|
linkKefuDetail() {
|
|
|
|
|
// 客服
|
|
|
|
|
// #ifdef MP-WEIXIN
|
|
|
|
|
|
|
|
|
|
const params = {
|
|
|
|
|
// originalPrice: this.goodsDetail.original || this.goodsDetail.price,
|
|
|
|
|
uuid: storage.getUuid(),
|
|
|
|
|
token: storage.getAccessToken(),
|
|
|
|
|
sign: this.storeInfo.yzfSign,
|
|
|
|
|
mpSign: this.storeInfo.yzfMpSign,
|
|
|
|
|
};
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:
|
|
|
|
|
"/pages/product/customerservice/index?params=" +
|
|
|
|
|
encodeURIComponent(JSON.stringify(params)),
|
|
|
|
|
});
|
|
|
|
|
// #endif
|
|
|
|
|
// #ifndef MP-WEIXIN
|
|
|
|
|
const sign = this.storeInfo.yzfSign;
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:
|
|
|
|
|
"/pages/tabbar/home/web-view?src=https://yzf.qq.com/xv/web/static/chat/index.html?sign=" +
|
|
|
|
|
sign,
|
|
|
|
|
});
|
|
|
|
|
// #endif
|
|
|
|
|
},
|
|
|
|
|
|
2021-08-09 18:40:06 +08:00
|
|
|
|
/** 获取店铺分类 */
|
|
|
|
|
async getCategoryData() {
|
|
|
|
|
let res = await getStoreCategory(this.storeId);
|
|
|
|
|
if (res.data.success) {
|
|
|
|
|
this.categoryList = res.data.result;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/**是否收藏店铺 */
|
|
|
|
|
async enableGoodsIsCollect() {
|
|
|
|
|
let res = await getGoodsIsCollect("STORE", this.storeId);
|
|
|
|
|
if (res.data.success) {
|
|
|
|
|
this.isCollection = res.data.result;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**商品分类中商品集合 */
|
2021-08-10 09:57:48 +08:00
|
|
|
|
getCategoryGoodsList(val) {
|
2021-08-09 18:40:06 +08:00
|
|
|
|
uni.navigateTo({
|
2021-08-10 09:57:48 +08:00
|
|
|
|
url: `/pages/product/shopPageGoods?title=${val.labelName}&id=${val.id}&storeId=${this.storeId}`,
|
2021-08-09 18:40:06 +08:00
|
|
|
|
});
|
2021-05-13 11:03:32 +08:00
|
|
|
|
},
|
2021-05-17 18:19:26 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 搜索
|
|
|
|
|
*/
|
2021-05-13 11:03:32 +08:00
|
|
|
|
search() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/navigation/search/searchPage?storeId=${this.storeId}&keyword=${this.keyword}`,
|
|
|
|
|
});
|
|
|
|
|
},
|
2021-05-17 18:19:26 +08:00
|
|
|
|
|
2021-08-09 18:40:06 +08:00
|
|
|
|
/** 点击tab */
|
|
|
|
|
changeTab(index) {
|
|
|
|
|
this.current = index;
|
|
|
|
|
},
|
|
|
|
|
|
2021-05-17 18:19:26 +08:00
|
|
|
|
/**
|
2021-08-09 18:40:06 +08:00
|
|
|
|
* 店铺信息
|
2021-05-17 18:19:26 +08:00
|
|
|
|
*/
|
2021-08-09 18:40:06 +08:00
|
|
|
|
async getStoreData() {
|
|
|
|
|
let res = await getStoreBaseInfo(this.storeId);
|
|
|
|
|
res.data.success
|
|
|
|
|
? (this.storeInfo = res.data.result)
|
|
|
|
|
: uni.reLaunch({ url: "/" });
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 加载商品 */
|
|
|
|
|
async getGoodsData() {
|
|
|
|
|
let res = await getGoodsList(this.goodsParams);
|
|
|
|
|
if (res.data.success) {
|
|
|
|
|
this.goodsList.push(...res.data.result.content);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 加载优惠券 */
|
|
|
|
|
async getCouponsData() {
|
|
|
|
|
this.couponParams.storeId = this.storeId;
|
|
|
|
|
let res = await getAllCoupons(this.couponParams);
|
|
|
|
|
if (res.data.success) {
|
|
|
|
|
this.couponList.push(...res.data.result.records);
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2021-05-17 18:19:26 +08:00
|
|
|
|
/**
|
2021-08-09 18:40:06 +08:00
|
|
|
|
* 是否收藏
|
2021-05-17 18:19:26 +08:00
|
|
|
|
*/
|
2021-08-09 18:40:06 +08:00
|
|
|
|
whetherCollection() {
|
|
|
|
|
if (this.isCollection) {
|
|
|
|
|
deleteStoreCollection(this.storeId).then((res) => {
|
|
|
|
|
if (res.data.success) {
|
|
|
|
|
this.isCollection = false;
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 3000,
|
|
|
|
|
title: "取消关注成功!",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
collectionGoods("STORE", this.storeId).then((res) => {
|
|
|
|
|
if (res.data.success) {
|
|
|
|
|
this.isCollection = true;
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 3000,
|
|
|
|
|
title: "关注成功!",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2021-05-13 11:03:32 +08:00
|
|
|
|
},
|
2021-05-17 18:19:26 +08:00
|
|
|
|
|
|
|
|
|
/**
|
2021-08-09 18:40:06 +08:00
|
|
|
|
* 领取
|
2021-05-17 18:19:26 +08:00
|
|
|
|
*/
|
2021-08-09 18:40:06 +08:00
|
|
|
|
getCoupon(item) {
|
|
|
|
|
if (!this.$options.filters.isLogin("auth")) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 3000,
|
|
|
|
|
title: "请先登录!",
|
|
|
|
|
});
|
2021-09-09 11:21:28 +08:00
|
|
|
|
|
2021-08-17 11:53:56 +08:00
|
|
|
|
this.$options.filters.navigateToLogin("redirectTo");
|
2021-08-09 18:40:06 +08:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
receiveCoupons(item.id).then((res) => {
|
|
|
|
|
if (res.data.success) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 3000,
|
|
|
|
|
title: "领取成功!",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
2021-05-13 11:03:32 +08:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
2021-08-09 18:40:06 +08:00
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.wrapper {
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 32rpx;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
2021-08-09 18:40:06 +08:00
|
|
|
|
.store {
|
|
|
|
|
align-items: center;
|
|
|
|
|
> .box {
|
2021-05-13 11:03:32 +08:00
|
|
|
|
display: flex;
|
2021-08-09 18:40:06 +08:00
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-left: 30rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
flex: 2;
|
|
|
|
|
> .store-name {
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
letter-spacing: 1rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
> .store-message {
|
|
|
|
|
margin-top: 25rpx;
|
|
|
|
|
> div {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
margin: 0 5rpx;
|
|
|
|
|
> span {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #333;
|
|
|
|
|
margin-right: 8rpx;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-09 18:40:06 +08:00
|
|
|
|
.collection-btn {
|
|
|
|
|
background: $main-color;
|
|
|
|
|
padding: 6rpx 0;
|
|
|
|
|
width: 140rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-radius: 100px;
|
|
|
|
|
text-align: center;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
2021-08-09 18:40:06 +08:00
|
|
|
|
.store-desc {
|
|
|
|
|
margin: 40rpx 0 0 0;
|
|
|
|
|
color: #999;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-09 18:40:06 +08:00
|
|
|
|
.contant {
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
> .empty {
|
2021-05-13 11:03:32 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
2021-08-09 18:40:06 +08:00
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-top: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.discount {
|
|
|
|
|
height: 154rpx;
|
|
|
|
|
border-top: 1px solid #f6f6f6;
|
|
|
|
|
border-bottom: 18rpx solid #f6f6f6;
|
|
|
|
|
background: #f6f6f6;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
.card-box {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding-top: 25rpx;
|
|
|
|
|
}
|
|
|
|
|
.card {
|
|
|
|
|
width: 324rpx;
|
|
|
|
|
height: 116rpx;
|
|
|
|
|
background: #fff;
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
display: flex;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
align-items: center;
|
2021-08-09 18:40:06 +08:00
|
|
|
|
.money {
|
|
|
|
|
width: 45%;
|
|
|
|
|
color: #fd6466;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text {
|
|
|
|
|
font-size: 50rpx;
|
|
|
|
|
}
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
2021-08-09 18:40:06 +08:00
|
|
|
|
.xian {
|
|
|
|
|
height: 66rpx;
|
|
|
|
|
border: 1px dashed #f6f6f6;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
position: relative;
|
2021-08-09 18:40:06 +08:00
|
|
|
|
&:before,
|
|
|
|
|
&:after {
|
|
|
|
|
content: "";
|
|
|
|
|
width: 22rpx;
|
|
|
|
|
height: 12rpx;
|
|
|
|
|
position: absolute;
|
|
|
|
|
background: #f6f6f6;
|
|
|
|
|
}
|
|
|
|
|
&:before {
|
|
|
|
|
border-radius: 0 0 22rpx 22rpx;
|
|
|
|
|
top: -30rpx;
|
|
|
|
|
left: -10rpx;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
2021-08-09 18:40:06 +08:00
|
|
|
|
&:after {
|
|
|
|
|
border-radius: 22rpx 22rpx 0 0;
|
|
|
|
|
bottom: -30rpx;
|
|
|
|
|
left: -10rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.text {
|
|
|
|
|
flex: 1;
|
|
|
|
|
color: $aider-light-color;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
margin-left: 14rpx;
|
|
|
|
|
text:nth-of-type(2) {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
.cur:nth-of-type(1) {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.category-item {
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 22rpx;
|
|
|
|
|
margin: 20rpx 10rpx;
|
|
|
|
|
> .flex {
|
|
|
|
|
color: #666;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
> .child-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
> .child {
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin: 1% 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 48%;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
margin-right: 1%;
|
|
|
|
|
border: 1rpx solid #ededed;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: 70rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 70rpx;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-10 09:57:48 +08:00
|
|
|
|
.kefu {
|
|
|
|
|
background: #f7f7f7;
|
|
|
|
|
height: 70rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-top: 32rpx;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
2021-08-09 18:40:06 +08:00
|
|
|
|
</style>
|