.
This commit is contained in:
@@ -16,6 +16,21 @@ const CategoryApi = {
|
||||
params: { ids },
|
||||
});
|
||||
},
|
||||
// 查询可用分类 --- 新加的接口
|
||||
getCategoryTree: () => {
|
||||
return request({
|
||||
url: '/product/category/tree',
|
||||
method: 'GET',
|
||||
});
|
||||
},
|
||||
// 测试
|
||||
test: (data) => {
|
||||
return request({
|
||||
url: '/cloth/list',
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export default CategoryApi;
|
||||
|
||||
@@ -163,7 +163,8 @@
|
||||
|
||||
.icon-box {
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 0px 4rpx rgba(51, 51, 51, 0.08), 0px 4rpx 6rpx 2rpx rgba(102, 102, 102, 0.12);
|
||||
box-shadow: 0px 0px 4rpx rgba(51, 51, 51, 0.08),
|
||||
0px 4rpx 6rpx 2rpx rgba(102, 102, 102, 0.12);
|
||||
border-radius: 30rpx;
|
||||
width: 134rpx;
|
||||
height: 56rpx;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<image class="icon" :src="state.liveStatus[data.status].img"></image>
|
||||
<view class="title ss-m-l-16">{{ state.liveStatus[data.status].title }}</view>
|
||||
</view>
|
||||
<img class="md-img-box" :src="sheep.$url.cdn(data.feeds_img)" referrerpolicy="no-referrer">
|
||||
<img class="md-img-box" :src="sheep.$url.cdn(data.feeds_img)" referrerpolicy="no-referrer" />
|
||||
<view class="md-goods-content">
|
||||
<view class="md-goods-title ss-line-1" :style="[{ color: titleColor }]">
|
||||
{{ data.name }}
|
||||
@@ -22,7 +22,7 @@
|
||||
<image class="icon" :src="state.liveStatus[data.status].img"></image>
|
||||
<view class="title ss-m-l-16">{{ state.liveStatus[data.status].title }}</view>
|
||||
</view>
|
||||
<img class="sl-img-box" :src="sheep.$url.cdn(data.feeds_img)" referrerpolicy="no-referrer">
|
||||
<img class="sl-img-box" :src="sheep.$url.cdn(data.feeds_img)" referrerpolicy="no-referrer" />
|
||||
<view class="sl-goods-content">
|
||||
<view class="sl-goods-title ss-line-1" :style="[{ color: titleColor }]">
|
||||
{{ data.name }}
|
||||
|
||||
@@ -87,6 +87,7 @@ function uniReadPagesV3Plugin({ pagesJsonDir, includes }) {
|
||||
pagesJsonDir,
|
||||
includes,
|
||||
});
|
||||
|
||||
return {
|
||||
name: 'uni-read-pages-v3',
|
||||
config(config) {
|
||||
|
||||
+12
-12
@@ -199,32 +199,32 @@ const adaptTemplate = async (appTemplate, templateId) => {
|
||||
|
||||
appTemplate.basic.tabbar.items = [
|
||||
{
|
||||
activeIconUrl: "https://3d.aidigitalfield.com/imgs/home.png",
|
||||
iconUrl: "https://3d.aidigitalfield.com/imgs/home.png",
|
||||
activeIconUrl: "https://puton.huimeimeta.com/imgs/home.png",
|
||||
iconUrl: "https://puton.huimeimeta.com/imgs/home.png",
|
||||
text: "首页",
|
||||
url: "/pages/index/index",
|
||||
},
|
||||
{
|
||||
activeIconUrl: "https://3d.aidigitalfield.com/imgs/list.png",
|
||||
iconUrl: "https://3d.aidigitalfield.com/imgs/list.png",
|
||||
activeIconUrl: "https://puton.huimeimeta.com/imgs/list.png",
|
||||
iconUrl: "https://puton.huimeimeta.com/imgs/list.png",
|
||||
text: "商品列表",
|
||||
url: "/pages/index/list",
|
||||
},
|
||||
{
|
||||
activeIconUrl: "https://3d.aidigitalfield.com/imgs/room.png",
|
||||
iconUrl: "https://3d.aidigitalfield.com/imgs/room.png",
|
||||
activeIconUrl: "https://puton.huimeimeta.com/imgs/room.png",
|
||||
iconUrl: "https://puton.huimeimeta.com/imgs/room.png",
|
||||
text: "试衣间",
|
||||
url: "/pages/index/room",
|
||||
},
|
||||
{
|
||||
activeIconUrl: "https://3d.aidigitalfield.com/imgs/chat.png",
|
||||
iconUrl: "https://3d.aidigitalfield.com/imgs/chat.png",
|
||||
text: "聊天",
|
||||
url: "/pages/index/chat",
|
||||
activeIconUrl: "https://puton.huimeimeta.com/imgs/cart.png",
|
||||
iconUrl: "https://puton.huimeimeta.com/imgs/cart.png",
|
||||
text: "购物车",
|
||||
url: "/pages/index/cart",
|
||||
},
|
||||
{
|
||||
activeIconUrl: "https://3d.aidigitalfield.com/imgs/my.png",
|
||||
iconUrl: "https://3d.aidigitalfield.com/imgs/my.png",
|
||||
activeIconUrl: "https://puton.huimeimeta.com/imgs/my.png",
|
||||
iconUrl: "https://puton.huimeimeta.com/imgs/my.png",
|
||||
text: "我的",
|
||||
url: "/pages/index/user",
|
||||
},
|
||||
|
||||
@@ -26,17 +26,7 @@
|
||||
</uni-badge>
|
||||
|
||||
<!-- 选中的当前tabbar加上下横线 -->
|
||||
<view
|
||||
:style="{
|
||||
width: '20rpx',
|
||||
height: '1rpx',
|
||||
background: '#000',
|
||||
position: 'absolute',
|
||||
left: 'calc(50% - 10rpx)',
|
||||
bottom: '-5rpx',
|
||||
display: isActive ? 'inline-block' : 'none',
|
||||
}"
|
||||
/>
|
||||
<view class="active-line" :style="{ display: isActive ? 'inline-block' : 'none' }" />
|
||||
</view>
|
||||
<!-- 底部tabbar不要文字 -->
|
||||
<!-- <slot name="text">
|
||||
@@ -231,6 +221,15 @@
|
||||
position: relative;
|
||||
width: 150rpx;
|
||||
justify-content: center;
|
||||
|
||||
.active-line {
|
||||
width: 20rpx;
|
||||
height: 1rpx;
|
||||
background: #000;
|
||||
position: absolute;
|
||||
left: calc(50% - 10rpx);
|
||||
bottom: -5rpx;
|
||||
}
|
||||
}
|
||||
|
||||
&__text {
|
||||
|
||||
@@ -156,7 +156,8 @@
|
||||
},
|
||||
getRect(selector, all) {
|
||||
return new Promise((resolve) => {
|
||||
uni.createSelectorQuery()
|
||||
uni
|
||||
.createSelectorQuery()
|
||||
.in(this)
|
||||
[all ? 'selectAll' : 'select'](selector)
|
||||
.boundingClientRect((rect) => {
|
||||
|
||||
Reference in New Issue
Block a user