This commit is contained in:
devil_gong 2018-11-20 15:48:32 +08:00
parent 81fafdfddb
commit 58cbeffadc
1175 changed files with 96 additions and 62 deletions

6
.gitignore vendored
View File

@ -8,8 +8,8 @@ temp
Logs
logs
*.lock
Upload
upload
#Upload
#upload
Cache
cache
.tea
.tea

View File

@ -22,7 +22,7 @@ textarea {
/* 导航分割 */
.spacing-nav-title {
position: relative;
color: #ff6482;
color: #d2364c;
text-align: center;
background-color: #ffffff;
height: 80rpx;
@ -32,7 +32,7 @@ textarea {
display: inline-block;
width: 50%;
height: 1px;
background: #ff6482;
background: #d2364c;
position: absolute;
left: 50%;
top: 50%;
@ -104,7 +104,7 @@ textarea {
.dis-none { display: none; }
.dis-block { display: block; }
.cr-main { color: #ff6482; }
.cr-main { color: #d2364c; }
.cr-666 { color: #666; }
.cr-888 { color: #888; }
.cr-ccc { color: #ccc; }
@ -114,7 +114,7 @@ textarea {
font-size: 38rpx;
color: #fff;
border: none;
background-color:#ff6482;
background-color:#d2364c;
border-radius: 2px;
}
.my-btn-default.btn-disabled{
@ -199,19 +199,19 @@ textarea {
position: fixed;
left: 0;
bottom: 0;
background: #ff6482;
background: #d2364c;
color: #fff;
border: none;
width: 100%;
}
.bg-main {
background: #ff6482;
background: #d2364c;
color: #fff;
border: 0;
}
.bg-active-main {
background: #ff6482 !important;
background: #d2364c !important;
color: #fff !important;
}

View File

@ -46,7 +46,7 @@ App({
// 请求地址
request_url: "https://demo.shopxo.net/",
//request_url: 'http://localhost/project/shopxo/service/',
request_url: 'http://localhost/project/shopxo/service/',
// 基础信息
application_title: "ShopXO电商系统",

View File

@ -2,6 +2,7 @@
"pages": [
"pages/index/index",
"pages/goods-category/goods-category",
"pages/cart/cart",
"pages/user/user",
"pages/web-view/web-view",
"pages/login/login",
@ -23,7 +24,7 @@
],
"window": {
"defaultTitle": "ShopXO电商系统",
"titleBarColor": "#ff6482"
"titleBarColor": "#d2364c"
},
"tabBar": {
"textColor": "#8a8a8a",
@ -38,10 +39,16 @@
},
{
"pagePath": "pages/goods-category/goods-category",
"icon": "/images/nav-icon-answer.png",
"activeIcon": "/images/nav-icon-answer-active.png",
"icon": "/images/nav-icon-category.png",
"activeIcon": "/images/nav-icon-category-active.png",
"name": "分类"
},
{
"pagePath": "pages/cart/cart",
"icon": "/images/nav-icon-cart.png",
"activeIcon": "/images/nav-icon-cart-active.png",
"name": "购物车"
},
{
"pagePath": "pages/user/user",
"icon": "/images/nav-icon-user.png",

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
alipay/images/nav-icon-home-active.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
alipay/images/nav-icon-home.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
alipay/images/nav-icon-user-active.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
alipay/images/nav-icon-user.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

View File

@ -0,0 +1,3 @@
<view>
New Page
</view>

View File

@ -0,0 +1,4 @@
Page({
data: {},
onLoad() {},
});

View File

@ -0,0 +1 @@
{}

View File

@ -1,14 +1,20 @@
.content {
border-left: 1px solid #eee;
height: 100vh;
box-sizing: border-box
}
.content-items .title {
font-size: 32rpx;
line-height: 68rpx;
box-sizing: border-box;
overflow: hidden;
padding-bottom: 120rpx;
}
.content-items {
float: left;
width: calc(33.33% - 20rpx);
padding: 10rpx;
padding: 20rpx 10rpx;
text-align: center;
}
.content-items .text {
font-size: 28rpx;
line-height: 46rpx;
}
.content-items .icon {
width: 120rpx;
height: 120rpx;
}

View File

@ -1,21 +1,21 @@
<view>
<vtabs
tabs="{{tabs}}"
onChange="change_event"
activeTab="{{tab_active}}"
tabBarActiveTextColor="{{tab_active_text_color}}"
tabBarlineColor="{{tab_active_line_color}}"
>
<block a:for="{{tabs}}">
<vtab-content anchor="{{item.anchor}}">
<view class="content">
<block a:if="{{content.items.length > 0}}">
<view a:for="{{content.items}}" a:for-item="v" class="content-items">
<view class="title single-text">{{v.name}}</view>
</view>
<vtabs
tabs="{{data_list}}"
onTabClick="handle_event"
onChange="change_event"
activeTab="{{tab_active}}"
tabBarActiveTextColor="{{tab_active_text_color}}"
tabBarlineColor="{{tab_active_line_color}}"
>
<block a:for="{{data_list}}">
<vtab-content anchor="{{item.anchor}}">
<view class="content">
<block a:if="{{item.items.length > 0}}">
<view a:for="{{item.items}}" a:for-item="v" class="content-items" data-value="{{vs.id}}" onTap="category_event">
<image a:if="{{v.icon != null}}" src="{{v.icon}}" mode="aspectFit" class="icon" />
<view class="text single-text">{{v.name}}</view>
</view>
</view>
</vtab-content>
</block>
</vtabs>
</view>
</block>
</view>
</vtab-content>
</block>
</vtabs>

View File

@ -4,8 +4,6 @@ Page({
tab_active: 0,
tab_active_text_color: '#d2364c',
tab_active_line_color: '#d2364c',
tabs: [],
content: [],
data_list_loding_status: 1,
data_bottom_line_status: false,
data_list: [],
@ -35,18 +33,17 @@ Page({
data: this.data.params,
dataType: "json",
success: res => {
my.stopPullDownRefresh();
if (res.data.code == 0) {
var data = res.data.data;
// tabs
var temp_tabs = [];
for(var i in data) {
temp_tabs[i] = {"title": data[i]['name']};
data[i]['title'] = data[i]['name'];
data[i]['anchor'] = data[i]['id'];
}
this.setData({
tabs: temp_tabs,
content: data.length == 0 ? [] : data[0],
data_list: data,
data_list_loding_status: data.length == 0 ? 0 : 3,
data_bottom_line_status: true,
@ -64,6 +61,7 @@ Page({
}
},
fail: () => {
my.stopPullDownRefresh();
this.setData({
data_list_loding_status: 2,
data_bottom_line_status: true,
@ -77,13 +75,27 @@ Page({
});
},
// 下拉刷新
onPullDownRefresh() {
this.init();
},
// 处理事件
handle_event(index) {
this.setData({
tab_active: index,
});
},
// tab改变
change_event(index) {
this.setData({
tab_active: index,
content: this.data.data_list[index],
});
console.log('onChange', index, this.data.content);
},
// 事件
category_event(e) {
my.navigateTo({url: '/pages/goods-search/goods-search?category_id='+e.target.dataset.value});
}
});

View File

@ -1,5 +1,4 @@
{
"defaultTitle": "小程序AntUI组件库",
"usingComponents": {
"vtabs": "mini-antui/es/vtabs/index",
"vtab-content": "mini-antui/es/vtabs/vtab-content/index"

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 879 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Some files were not shown because too many files have changed in this diff Show More