Skip to content

Commit 8e3f569

Browse files
李维亮李维亮
authored andcommitted
添加服务端地址
1 parent 59bc7cf commit 8e3f569

30 files changed

+102
-21
lines changed

.history/README_20180830163747.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# 微信小程序实现移动端商城
2+
3+
## 说明
4+
```
5+
> 如有问题或者遇到坑请直接在 Issues 中提,或者可以加我的QQ 212181324
6+
7+
> 如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢! ^_^
8+
9+
> 博客地址:https://blog.csdn.net/qq_28027903/article/details/82109408
10+
11+
> 服务端:https://github.com/FZliweiliang/wechat-app-mall-server(正在开发中)
12+
13+
> 此项目会一直持续更新 后期会使用node提供服务
14+
15+
> 提示小程序大于2M可以把screenshot文件夹删除
16+
```
17+
18+
### 项目截图:
19+
20+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/1.png" width="320px" style="display:inline;">
21+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/2.png" width="320px" style="display:inline;">
22+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/3.png" width="320px" style="display:inline;">
23+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/4.png" width="320px" style="display:inline;">
24+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/5.png" width="320px" style="display:inline;">
25+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/6.png" width="320px" style="display:inline;">
26+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/7.png" width="320px" style="display:inline;">
27+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/8.png" width="320px" style="display:inline;">
28+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/9.png" width="320px" style="display:inline;">
29+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/10.png" width="320px" style="display:inline;">
30+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/11.png" width="320px" style="display:inline;">
31+
32+
## 项目布局
33+
```
34+
|-- images // 公共图片
35+
|-- lib // 公共文件
36+
|-- pages // 页面
37+
| |-- index // 首页
38+
| |-- list // 商品列表
39+
| |-- details // 商品详情
40+
| |-- user // 个人中心
41+
| |-- order // 我的订单
42+
| |-- coupon // 优惠券
43+
| |-- cart // 购物车
44+
| |-- addressList // 我的地址
45+
| |-- addressAdd // 添加地址
46+
|-- README.md // 说明
47+
```
48+
49+
## 开发环境:
50+
调试基础库 2.0.4
51+
52+
## 支持作者
53+
```
54+
> 你的支持将是作者最大的动力(蚂蚁再小也是肉😁)
55+
```
56+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/zfb.jpg" width="320px" style="display:inline;">
57+
<img src="https://github.com/474782977/wechat-app-mall/blob/master/screenshot/wx.png" width="320px" style="display:inline;">

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
77
> 如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢! ^_^
88
9-
> 部署详解:https://blog.csdn.net/qq_28027903/article/details/82109408
9+
> 博客地址:https://blog.csdn.net/qq_28027903/article/details/82109408
10+
11+
> 服务端:https://github.com/FZliweiliang/wechat-app-mall-server(正在开发中)
1012
1113
> 此项目会一直持续更新 后期会使用node提供服务
1214

app.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ App({
1010
wx.login({
1111
success: res => {
1212
// 发送 res.code 到后台换取 openId, sessionKey, unionId
13+
console.log(res)
14+
// var appid = 'wx990a52ed22a14656'
15+
16+
// var secret = '58cc45a51aa9de0636db6c43b8407f3d'
17+
18+
// var url = 'https://api.weixin.qq.com/sns/jscode2session?appid=' + appid + 'secret=' + secret + 'js_code=' + res.code + 'grant_type=authorization_code';
19+
20+
// wx.request({
21+
// url: url,
22+
// success: function (res) {
23+
// console.log(res.data)
24+
// }
25+
// })
26+
1327
}
1428
})
1529
// 获取用户信息

images/banner.jpg

-102 KB
Binary file not shown.

images/banner2.jpg

-61.4 KB
Binary file not shown.

images/img1.jpeg

-44.8 KB
Binary file not shown.

images/img2.jpeg

-40.3 KB
Binary file not shown.

images/img3.jpeg

-79.9 KB
Binary file not shown.

images/img4.jpg

-39 KB
Binary file not shown.

pages/cart/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Page({
88
totalPrice:0, //总价
99
list:[{ //商品列表
1010
id: 2,
11-
img:'/images/img1.jpeg',
11+
img:'https://wx.yogalt.com/file/images/img1.jpeg',
1212
name: "榴恋草莓蛋糕-2磅188元/138元/4磅298元(深圳)",
1313
spec:"2磅,+19.9元得水果(中盒)…",
1414
price:999.00,
@@ -17,7 +17,7 @@ Page({
1717
},
1818
{
1919
id: 3,
20-
img: '/images/img1.jpeg',
20+
img: 'https://wx.yogalt.com/file/images/img1.jpeg',
2121
name: "榴恋草莓蛋糕-2磅188元/138元/4磅298元(深圳)",
2222
spec: "2磅,+19.9元得水果(中盒)…",
2323
price: 999.01,
@@ -26,7 +26,7 @@ Page({
2626
},
2727
{
2828
id: 4,
29-
img: '/images/img1.jpeg',
29+
img: 'https://wx.yogalt.com/file/images/img1.jpeg',
3030
name: "榴恋草莓蛋糕-2磅188元/138元/4磅298元(深圳)",
3131
spec: "2磅,+19.9元得水果(中盒)…",
3232
price: 999.02,
@@ -35,7 +35,7 @@ Page({
3535
},
3636
{
3737
id: 5,
38-
img: '/images/img1.jpeg',
38+
img: 'https://wx.yogalt.com/file/images/img1.jpeg',
3939
name: "榴恋草莓蛋糕-2磅188元/138元/4磅298元(深圳)",
4040
spec: "2磅,+19.9元得水果(中盒)…",
4141
price: 999.03,
@@ -44,7 +44,7 @@ Page({
4444
},
4545
{
4646
id: 6,
47-
img: '/images/img1.jpeg',
47+
img: 'https://wx.yogalt.com/file/images/img1.jpeg',
4848
name: "榴恋草莓蛋糕-2磅188元/138元/4磅298元(深圳)",
4949
spec: "2磅,+19.9元得水果(中盒)…",
5050
price: 999.04,

0 commit comments

Comments
 (0)