Skip to content

Commit e3a59e3

Browse files
author
huyuangang
committed
merge alipay-baidu
2 parents 291a0c9 + bfdd7d7 commit e3a59e3

File tree

629 files changed

+82625
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

629 files changed

+82625
-43
lines changed

README.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# cml-yanxuan
22
仿网易严选demo
3-
4-
包含更多端 [百度、支付宝小程序](https://github.com/chameleon-team/cml-yanxuan/tree/baidu-alipay) 分支
5-
3+
# 安装 alpha 版本
4+
```bash
5+
6+
```
67
# 使用
78

89
- clone 当前项目
@@ -13,13 +14,13 @@
1314

1415
# 页面如下
1516

16-
| web | 微信小程序 | native-weex |
17-
|----------|:-------------:|------:|
18-
| <img src="./preview/web-1.jpg" width="200px"/> | <img src="./preview/wx-1.jpg" width="200px"/>| <img src="./preview/weex-1.jpg" width="200px"/> |
19-
| <img src="./preview/web-2.jpg" width="200px"/> | <img src="./preview/wx-2.jpg" width="200px"/>| <img src="./preview/weex-2.jpg" width="200px"/> |
20-
| <img src="./preview/web-3.jpg" width="200px"/> | <img src="./preview/wx-3.jpg" width="200px"/>| <img src="./preview/weex-3.jpg" width="200px"/> |
21-
| <img src="./preview/web-4.jpg" width="200px"/> | <img src="./preview/wx-4.jpg" width="200px"/>| <img src="./preview/weex-4.jpg" width="200px"/> |
22-
| <img src="./preview/web-5.jpg" width="200px"/> | <img src="./preview/wx-5.jpg" width="200px"/>| <img src="./preview/weex-5.jpg" width="200px"/> |
23-
| <img src="./preview/web-6.jpeg" width="200px"/> | <img src="./preview/wx-6.jpg" width="200px"/>| <img src="./preview/weex-6.jpg" width="200px"/> |
24-
| <img src="./preview/web-7.jpg" width="200px"/> | <img src="./preview/wx-7.jpg" width="200px"/>| <img src="./preview/weex-7.jpg" width="200px"/> |
17+
| web | 微信小程序 | native-weex | 百度小程序 | 支付宝小程序 |
18+
|:----------:|:-------------:|:------:|:------:|:------:|
19+
| <img src="./preview/web-1.jpg" width="200px"/> | <img src="./preview/wx-1.jpg" width="200px"/>| <img src="./preview/weex-1.jpg" width="200px"/> | <img src="./preview/baidu-1.png" width="200px"/> |<img src="./preview/alipay-1.png" width="200px"/> |
20+
| <img src="./preview/web-2.jpg" width="200px"/> | <img src="./preview/wx-2.jpg" width="200px"/>| <img src="./preview/weex-2.jpg" width="200px"/> |<img src="./preview/baidu-2.png" width="200px"/> |<img src="./preview/alipay-2.png" width="200px"/> |
21+
| <img src="./preview/web-3.jpg" width="200px"/> | <img src="./preview/wx-3.jpg" width="200px"/>| <img src="./preview/weex-3.jpg" width="200px"/> |<img src="./preview/baidu-3.png" width="200px"/> |<img src="./preview/alipay-3.png" width="200px"/> |
22+
| <img src="./preview/web-4.jpg" width="200px"/> | <img src="./preview/wx-4.jpg" width="200px"/>| <img src="./preview/weex-4.jpg" width="200px"/> |<img src="./preview/baidu-4.png" width="200px"/> |<img src="./preview/alipay-4.png" width="200px"/> |
23+
| <img src="./preview/web-5.jpg" width="200px"/> | <img src="./preview/wx-5.jpg" width="200px"/>| <img src="./preview/weex-5.jpg" width="200px"/> |<img src="./preview/baidu-5.png" width="200px"/> |<img src="./preview/alipay-5.png" width="200px"/> |
24+
| <img src="./preview/web-6.jpeg" width="200px"/> | <img src="./preview/wx-6.jpg" width="200px"/>| <img src="./preview/weex-6.jpg" width="200px"/> |<img src="./preview/baidu-6.png" width="200px"/> |<img src="./preview/alipay-6.png" width="200px"/> |
25+
| <img src="./preview/web-7.jpg" width="200px"/> | <img src="./preview/wx-7.jpg" width="200px"/>| <img src="./preview/weex-7.jpg" width="200px"/> |<img src="./preview/baidu-7.png" width="200px"/> |<img src="./preview/alipay-7.png" width="200px"/> |
2526

chameleon.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const apiPrefix = 'https://chameleon-team.github.io';
77
cml.config.merge({
88
templateLang: "cml",
99
templateType: "html",
10+
platforms: ["web","baidu","alipay","wx","weex"],
1011
buildInfo: {
1112
wxAppId: '123456'
1213
},

dist/alipay/.tea/entryFiles-development/config$.js

Whitespace-only changes.

dist/alipay/.tea/entryFiles-development/importScripts$.js

Whitespace-only changes.

dist/alipay/.tea/entryFiles-development/index$.remote.worker.js

Whitespace-only changes.

dist/alipay/.tea/entryFiles-development/index$.web.js

Whitespace-only changes.

dist/alipay/.tea/entryFiles-development/index$.worker.js

Whitespace-only changes.

dist/alipay/app.acss

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
.cml-base {
2+
text-align: left;
3+
font-size: 32rpx;
4+
letter-spacing: 1rpx;
5+
font-family: BlinkMacSystemFont, 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
6+
}
7+
8+
.cml-base,
9+
.cml-base::before,
10+
.cml-base::after {
11+
box-sizing: border-box;
12+
-webkit-text-size-adjust: none;
13+
-moz-text-size-adjust: none;
14+
-ms-text-size-adjust: none;
15+
text-size-adjust: none;
16+
}
17+
18+
.cml-view {
19+
display: -webkit-box;
20+
display: -webkit-flex;
21+
display: flex;
22+
box-sizing: border-box;
23+
position: relative;
24+
-webkit-box-orient: vertical;
25+
-webkit-box-direction: normal;
26+
-webkit-flex-direction: column;
27+
flex-direction: column;
28+
-webkit-flex-shrink: 0;
29+
flex-shrink: 0;
30+
-webkit-box-flex: 0;
31+
-webkit-flex-grow: 0;
32+
flex-grow: 0;
33+
-webkit-flex-basis: auto;
34+
flex-basis: auto;
35+
-webkit-box-align: stretch;
36+
-webkit-align-items: stretch;
37+
align-items: stretch;
38+
-webkit-align-content: flex-start;
39+
align-content: flex-start;
40+
border: 0 solid black;
41+
margin: 0;
42+
padding: 0;
43+
min-width: 0;
44+
}
45+
46+
.cml-text {
47+
display: block;
48+
box-sizing: border-box;
49+
position: relative;
50+
white-space: pre-wrap; /* not using 'pre': support auto line feed. 保留空白符序列,但是正常地进行换行 */
51+
word-wrap: break-word; /* 在长单词或 URL 地址内部进行换行。 */
52+
overflow: hidden; /* it'll be clipped if the height is not high enough. */
53+
54+
-webkit-flex-shrink: 0;
55+
56+
flex-shrink: 0;
57+
-webkit-box-flex: 0;
58+
-webkit-flex-grow: 0;
59+
flex-grow: 0;
60+
-webkit-flex-basis: auto;
61+
flex-basis: auto;
62+
border: 0 solid black;
63+
margin: 0;
64+
padding: 0;
65+
min-width: 0;
66+
}
67+
68+
.border-1px,
69+
.border-top-1px,
70+
.border-right-1px,
71+
.border-bottom-1px,
72+
.border-left-1px {
73+
position: relative;
74+
}
75+
76+
.border-top-1px:before,
77+
.border-left-1px:before,
78+
.border-1px:after,
79+
.border-right-1px:after,
80+
.border-bottom-1px:after {
81+
content: "";
82+
display: block;
83+
position: absolute;
84+
-webkit-transform-origin: 0 0;
85+
transform-origin: 0 0;
86+
box-sizing: border-box;
87+
z-index: 2;
88+
}
89+
90+
.border-1px:after {
91+
border: 1rpx solid #ccc;
92+
left: 0;
93+
top: 0;
94+
width: 100%;
95+
height: 100%;
96+
-webkit-transform-origin: 0 0;
97+
transform-origin: 0 0;
98+
}
99+
100+
.border-top-1px:before {
101+
border-top: 1rpx solid #ccc;
102+
left: 0;
103+
top: 0;
104+
width: 100%;
105+
}
106+
107+
.border-right-1px:after {
108+
border-right: 1rpx solid #ccc;
109+
top: 0;
110+
right: 0;
111+
height: 100%;
112+
-webkit-transform-origin: right 0;
113+
transform-origin: right 0;
114+
}
115+
116+
.border-bottom-1px:after {
117+
border-bottom: 1rpx solid #ccc;
118+
left: 0;
119+
bottom: 0;
120+
width: 100%;
121+
-webkit-transform-origin: 0 bottom;
122+
transform-origin: 0 bottom;
123+
}
124+
125+
.border-left-1px:before {
126+
border-left: 1rpx solid #ccc;
127+
top: 0;
128+
left: 0;
129+
height: 100%;
130+
}
131+
132+
.border-none:before, .border-none:after {
133+
display: none;
134+
}

dist/alipay/app.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
var __CML__GLOBAL = require('/static/js/manifest.js')
2+
__CML__GLOBAL.App = App;
3+
require('/static/js/common.js')
4+
require('/static/js/app.js')

dist/alipay/app.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"window": {
3+
"backgroundTextStyle": "dark",
4+
"navigationBarBackgroundColor": "#343434",
5+
"navigationBarTitleText": "仿网易严选",
6+
"navigationBarTextStyle": "white"
7+
},
8+
"pages": [
9+
"pages/index/index",
10+
"pages/list/list",
11+
"pages/detail/detail",
12+
"pages/map/map"
13+
],
14+
"usingComponents": {}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
.class-wrapper {
2+
display: -webkit-box;
3+
display: -webkit-flex;
4+
display: flex;
5+
-webkit-box-orient: vertical;
6+
-webkit-box-direction: normal;
7+
-webkit-flex-direction: column;
8+
flex-direction: column;
9+
}
10+
.wrapper-content {
11+
display: -webkit-box;
12+
display: -webkit-flex;
13+
display: flex;
14+
-webkit-box-orient: horizontal;
15+
-webkit-box-direction: normal;
16+
-webkit-flex-direction: row;
17+
flex-direction: row;
18+
-webkit-box-pack: justify;
19+
-webkit-justify-content: space-between;
20+
justify-content: space-between;
21+
}
22+
.class-list {
23+
width: 150rpx;
24+
/*height: 1000cpx;*/
25+
border-right-color: #d9d9d9;
26+
background-color: #fff;
27+
border-right-style: solid;
28+
}
29+
.class-txt {
30+
font-size: 28rpx;
31+
margin-top: 22rpx;
32+
margin-bottom: 26rpx;
33+
margin-left: 10rpx;
34+
margin-right: 10rpx;
35+
text-align: center;
36+
color: #333;
37+
}
38+
.main-list {
39+
width: 600rpx;
40+
/*height: 1000cpx;*/
41+
display: -webkit-box;
42+
display: -webkit-flex;
43+
display: flex;
44+
-webkit-box-orient: vertical;
45+
-webkit-box-direction: normal;
46+
-webkit-flex-direction: column;
47+
flex-direction: column;
48+
-webkit-flex-wrap: nowrap;
49+
flex-wrap: nowrap;
50+
background-color: #fff;
51+
}
52+
.ad-img {
53+
width: 532rpx;
54+
height: 194rpx;
55+
border-radius: 6rpx;
56+
margin: 28rpx;
57+
}
58+
.sub-tlt {
59+
display: block;
60+
text-align: center;
61+
font-size: 24rpx;
62+
color: #333;
63+
margin-top: 10rpx;
64+
margin-bottom: 30rpx;
65+
}
66+
.sub-box {
67+
padding-left: 26rpx;
68+
display: -webkit-box;
69+
display: -webkit-flex;
70+
display: flex;
71+
-webkit-box-orient: horizontal;
72+
-webkit-box-direction: normal;
73+
-webkit-flex-direction: row;
74+
flex-direction: row;
75+
-webkit-flex-wrap: wrap;
76+
flex-wrap: wrap;
77+
}
78+
.sub-i {
79+
display: -webkit-box;
80+
display: -webkit-flex;
81+
display: flex;
82+
-webkit-box-orient: vertical;
83+
-webkit-box-direction: normal;
84+
-webkit-flex-direction: column;
85+
flex-direction: column;
86+
width: 178rpx;
87+
height: 200rpx;
88+
}
89+
.i-img {
90+
width: 150rpx;
91+
margin-left: 14rpx;
92+
margin-right: 14rpx;
93+
height: 150rpx;
94+
}
95+
.i-name {
96+
font-size: 22rpx;
97+
text-align: center;
98+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<view class="wrapper-classify cml-base cml-view">
2+
<classify-header class=" cml-base cml-classify-header"></classify-header>
3+
<view class="wrapper-content cml-base cml-view">
4+
<view class="class-list cml-base cml-view" style="{{scrollerHeight}}rpx">
5+
<cml-buildin-scroller height="{{scrollerHeight}}" class=" cml-base cml-scroller">
6+
<view class="class-wrapper cml-base cml-view" onTap="_cmlEventProxy" data-eventtap="forbinding" onCmlPropsEventProxy="_cmlPropsEventProxy">
7+
<text class="class-txt cml-base cml-text" a:for="{{classes}}">{{item}}</text>
8+
</view>
9+
</cml-buildin-scroller>
10+
</view>
11+
12+
<view class="main-list cml-base cml-view" style="{{scrollerHeight}}rpx">
13+
<image class="ad-img cml-base cml-image" resize="cover" src="http://yanxuan.nosdn.127.net/3ebd7addcc0d101d116052a57cec2f16.png"></image>
14+
<text class="sub-tlt cml-base cml-text"> --- 推荐区分类 --- </text>
15+
<view class="sub-box cml-base cml-view">
16+
<view class="sub-i cml-base cml-view" a:for="{{subclasses}}" onTap="_cmlEventProxy" data-eventtap="godetail" onCmlPropsEventProxy="_cmlPropsEventProxy">
17+
<image class="i-img cml-base cml-image" resize="contain" src="{{item.img}}"></image>
18+
<text class="i-name cml-base cml-text">{{item.name}}</text>
19+
</view>
20+
</view>
21+
</view>
22+
</view>
23+
24+
</view>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
var __CML__GLOBAL = require('../../static/js/manifest.js')
2+
__CML__GLOBAL.Component = Component;
3+
require('../../static/js/common.js')
4+
require('../../static/js/components/classify/classify.js')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"usingComponents": {
3+
"classify-header": "./../common/classify-header",
4+
"cml-buildin-scroller": "./../../npm/chameleon-ui-builtin/components/scroller/scroller"
5+
},
6+
"component": true
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.wrapper-classify-header {
2+
width: 750rpx;
3+
height: 114rpx;
4+
padding-top: 30rpx;
5+
display: -webkit-box;
6+
display: -webkit-flex;
7+
display: flex;
8+
-webkit-flex-wrap: nowrap;
9+
flex-wrap: nowrap;
10+
-webkit-box-orient: horizontal;
11+
-webkit-box-direction: normal;
12+
-webkit-flex-direction: row;
13+
flex-direction: row;
14+
-webkit-justify-content: space-around;
15+
justify-content: space-around;
16+
z-index: 101;
17+
background-color: #fafafa;
18+
opacity: .99;
19+
border-bottom-width: 1rpx;
20+
border-bottom-color: #d9d9d9;
21+
border-bottom-style: solid;
22+
box-sizing: border-box;
23+
}
24+
.search {
25+
-webkit-box-flex: 1;
26+
-webkit-flex: 1;
27+
flex: 1;
28+
height: 70rpx;
29+
font-size: 26rpx;
30+
line-height: 70rpx;
31+
background-color: #ededed;
32+
border-radius: 8rpx;
33+
margin-right: 26rpx;
34+
margin-left: 26rpx;
35+
text-align: center;
36+
color: #666;
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<view class="wrapper-classify-header cml-base cml-view">
2+
<text class="search iconfont cml-base cml-text">搜索商品,共8888款好物</text>
3+
</view>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
var __CML__GLOBAL = require('../../static/js/manifest.js')
2+
__CML__GLOBAL.Component = Component;
3+
require('../../static/js/common.js')
4+
require('../../static/js/components/common/classify-header.js')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"usingComponents": {},
3+
"component": true
4+
}

0 commit comments

Comments
 (0)