category
6
.gitignore
vendored
@ -8,8 +8,8 @@ temp
|
||||
Logs
|
||||
logs
|
||||
*.lock
|
||||
Upload
|
||||
upload
|
||||
#Upload
|
||||
#upload
|
||||
Cache
|
||||
cache
|
||||
.tea
|
||||
.tea
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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电商系统",
|
||||
|
@ -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",
|
||||
|
BIN
alipay/images/nav-icon-cart-active.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
alipay/images/nav-icon-cart.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
alipay/images/nav-icon-category-active.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
alipay/images/nav-icon-category.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
alipay/images/nav-icon-home-active.png
Executable file → Normal file
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
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
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
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
0
alipay/pages/cart/cart.acss
Normal file
3
alipay/pages/cart/cart.axml
Normal file
@ -0,0 +1,3 @@
|
||||
<view>
|
||||
New Page
|
||||
</view>
|
4
alipay/pages/cart/cart.js
Normal file
@ -0,0 +1,4 @@
|
||||
Page({
|
||||
data: {},
|
||||
onLoad() {},
|
||||
});
|
1
alipay/pages/cart/cart.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
@ -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;
|
||||
}
|
@ -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>
|
@ -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});
|
||||
}
|
||||
});
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"defaultTitle": "小程序AntUI组件库",
|
||||
"usingComponents": {
|
||||
"vtabs": "mini-antui/es/vtabs/index",
|
||||
"vtab-content": "mini-antui/es/vtabs/vtab-content/index"
|
||||
|
BIN
service/Public/Upload/alipay_life_menu/2018/10/30/2018103015052509480.png
Executable file
After Width: | Height: | Size: 5.5 KiB |
BIN
service/Public/Upload/alipay_life_menu/2018/10/30/2018103015340642686.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
service/Public/Upload/alipay_life_menu/2018/10/30/2018103015484536846.png
Executable file
After Width: | Height: | Size: 2.3 KiB |
BIN
service/Public/Upload/alipay_life_menu/2018/10/30/2018103017250117945.png
Executable file
After Width: | Height: | Size: 4.0 KiB |
BIN
service/Public/Upload/alipay_life_menu/2018/10/30/2018103017251088808.png
Executable file
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515241073367.jpg
Executable file
After Width: | Height: | Size: 34 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515260951757.jpg
Executable file
After Width: | Height: | Size: 38 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515264461166.jpg
Executable file
After Width: | Height: | Size: 38 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515273808514.jpg
Executable file
After Width: | Height: | Size: 38 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515274728622.jpg
Executable file
After Width: | Height: | Size: 38 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515280305880.jpg
Executable file
After Width: | Height: | Size: 38 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515281759524.jpg
Executable file
After Width: | Height: | Size: 38 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515353033245.jpg
Executable file
After Width: | Height: | Size: 492 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515360339741.jpg
Executable file
After Width: | Height: | Size: 52 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515360965642.jpg
Executable file
After Width: | Height: | Size: 52 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515361621068.jpg
Executable file
After Width: | Height: | Size: 52 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515363855451.jpg
Executable file
After Width: | Height: | Size: 39 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102515372309900.jpg
Executable file
After Width: | Height: | Size: 39 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102517433011116.png
Executable file
After Width: | Height: | Size: 78 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/25/2018102517495338527.png
Executable file
After Width: | Height: | Size: 21 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/26/2018102600174550081.png
Executable file
After Width: | Height: | Size: 18 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/29/2018102918192237114.png
Executable file
After Width: | Height: | Size: 21 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/29/2018102918193238310.png
Executable file
After Width: | Height: | Size: 5.5 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/29/2018102918194343693.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
service/Public/Upload/alipay_life_message/2018/10/29/2018102918195581164.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 730 B |
After Width: | Height: | Size: 894 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 879 B |
BIN
service/Public/Upload/brand/2018/08/20180831123506659500.jpeg
Executable file
After Width: | Height: | Size: 5.5 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123612400417.jpeg
Executable file
After Width: | Height: | Size: 6.4 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123638301757.jpeg
Executable file
After Width: | Height: | Size: 5.8 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123659295462.jpeg
Executable file
After Width: | Height: | Size: 6.5 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123718129432.jpeg
Executable file
After Width: | Height: | Size: 7.5 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123739604557.jpeg
Executable file
After Width: | Height: | Size: 8.5 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123805053207.jpeg
Executable file
After Width: | Height: | Size: 7.5 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123832665998.jpeg
Executable file
After Width: | Height: | Size: 9.2 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123901892901.jpeg
Executable file
After Width: | Height: | Size: 5.3 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123923979734.jpeg
Executable file
After Width: | Height: | Size: 9.4 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831123941878091.jpeg
Executable file
After Width: | Height: | Size: 9.4 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124001306519.jpeg
Executable file
After Width: | Height: | Size: 7.9 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124028863137.jpeg
Executable file
After Width: | Height: | Size: 6.5 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124052288940.jpeg
Executable file
After Width: | Height: | Size: 3.6 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124114729313.jpeg
Executable file
After Width: | Height: | Size: 3.7 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124204852297.jpeg
Executable file
After Width: | Height: | Size: 6.9 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124220397979.jpeg
Executable file
After Width: | Height: | Size: 5.2 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124235290388.jpeg
Executable file
After Width: | Height: | Size: 4.4 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124253118694.jpeg
Executable file
After Width: | Height: | Size: 6.9 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124320138615.jpeg
Executable file
After Width: | Height: | Size: 6.0 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124338343861.jpeg
Executable file
After Width: | Height: | Size: 7.5 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124358184873.jpeg
Executable file
After Width: | Height: | Size: 5.0 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124414494883.jpeg
Executable file
After Width: | Height: | Size: 6.4 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124432799807.jpeg
Executable file
After Width: | Height: | Size: 6.0 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124447773181.jpeg
Executable file
After Width: | Height: | Size: 8.6 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124503006925.jpeg
Executable file
After Width: | Height: | Size: 6.1 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124520403239.jpeg
Executable file
After Width: | Height: | Size: 7.6 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124538167027.jpeg
Executable file
After Width: | Height: | Size: 7.7 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124555864230.jpeg
Executable file
After Width: | Height: | Size: 4.6 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124611120082.jpeg
Executable file
After Width: | Height: | Size: 6.0 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124630371456.jpeg
Executable file
After Width: | Height: | Size: 6.3 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124711269217.jpeg
Executable file
After Width: | Height: | Size: 5.4 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124726804328.jpeg
Executable file
After Width: | Height: | Size: 6.6 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124745441134.jpeg
Executable file
After Width: | Height: | Size: 8.9 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124802841044.jpeg
Executable file
After Width: | Height: | Size: 3.6 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124823875593.jpeg
Executable file
After Width: | Height: | Size: 6.7 KiB |
BIN
service/Public/Upload/brand/2018/08/20180831124920751185.png
Executable file
After Width: | Height: | Size: 26 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911093753188783.jpeg
Executable file
After Width: | Height: | Size: 7.1 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911093827728940.jpeg
Executable file
After Width: | Height: | Size: 6.9 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911093845205790.jpeg
Executable file
After Width: | Height: | Size: 5.3 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911094017352817.jpeg
Executable file
After Width: | Height: | Size: 6.5 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911094111296971.jpeg
Executable file
After Width: | Height: | Size: 9.0 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911094133329172.jpeg
Executable file
After Width: | Height: | Size: 7.6 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911094156207853.gif
Executable file
After Width: | Height: | Size: 5.1 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911094213446788.jpeg
Executable file
After Width: | Height: | Size: 6.0 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911094257504723.jpeg
Executable file
After Width: | Height: | Size: 7.1 KiB |
BIN
service/Public/Upload/brand/2018/09/20180911094324597298.jpeg
Executable file
After Width: | Height: | Size: 5.8 KiB |