Skip to content

Commit 8e3f569

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

30 files changed

+102
-21
lines changed

.history/README_20180830163747.md

+57
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

+3-1
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

+14
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

+5-5
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,

pages/details/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Page({
66
*/
77
data: {
88
imgUrls: [
9-
'/images/img1.jpeg',
10-
'/images/img2.jpeg',
11-
'/images/img3.jpeg'
9+
'https://wx.yogalt.com/file/images/img1.jpeg',
10+
'https://wx.yogalt.com/file/images/img2.jpeg',
11+
'https://wx.yogalt.com/file/images/img3.jpeg'
1212
],
1313
indicatorDots: true,
1414
autoplay: true,

pages/details/index.wxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<view class='popup' wx:if="{{specIs}}">
6464
<view class='title'>
6565
<view class='img'>
66-
<image src='/images/img1.jpeg'></image>
66+
<image src='https://wx.yogalt.com/file/images/img1.jpeg'></image>
6767
</view>
6868
<view class='text'>
6969
<text>热卖款:四重奏蛋糕2磅/3磅/4磅...</text>

pages/index/index.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Page({
99
hasUserInfo: false,
1010
canIUse: wx.canIUse('button.open-type.getUserInfo'),
1111
imgUrls: [
12-
'/images/banner.jpg',
13-
'/images/banner2.jpg',
12+
'https://wx.yogalt.com/file/images/banner.jpg',
13+
'https://wx.yogalt.com/file/images/banner2.jpg',
1414
],
1515
indicatorDots: true,
1616
autoplay: true,
@@ -25,6 +25,14 @@ Page({
2525
})
2626
},
2727
onLoad: function () {
28+
29+
wx.request({
30+
url: 'https://wx.yogalt.com/api/v1/home/bannerList', //仅为示例,并非真实的接口地址
31+
success: function (res) {
32+
console.log(res.data)
33+
}
34+
})
35+
2836
let list = []
2937
for(let i=0;i<100;i++){
3038
list.push({})

pages/index/index.wxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<view class='list'>
4747
<view class='item' wx:for="{{list}}">
4848
<navigator hover-class="none" url="/pages/details/index?id=1">
49-
<image class='product' src='/images/img1.jpeg'></image>
49+
<image class='product' src='https://wx.yogalt.com/file/images/img1.jpeg'></image>
5050
<text class='text'>热卖款:四重奏蛋糕-2磅188/3磅238元/4磅278...</text>
5151
</navigator>
5252
<view class='price'>

pages/order/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Page({
88
tabIndex: 1,
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,

pages/user/index.wxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<scroll-view scroll-y style='height:100vh;'>
22
<view class='top'>
33
<navigator url="/pages/bindPhone/index" class='img'>
4-
<image src='/images/img4.jpg'></image>
4+
<image src='https://wx.yogalt.com/file/images/img4.jpg'></image>
55
<text>李四</text>
66
</navigator>
77
</view>

project.config.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
},
1313
"compileType": "miniprogram",
1414
"libVersion": "2.0.4",
15-
"appid": "wx1d67977ffef38182",
16-
"projectname": "mall",
15+
"appid": "wx990a52ed22a14656",
16+
"projectname": "yoga%E9%93%BA",
1717
"isGameTourist": false,
1818
"condition": {
1919
"search": {

screenshot/1.png

-418 KB
Binary file not shown.

screenshot/10.png

-25.5 KB
Binary file not shown.

screenshot/11.png

-384 KB
Binary file not shown.

screenshot/2.png

-398 KB
Binary file not shown.

screenshot/3.png

-225 KB
Binary file not shown.

screenshot/4.png

-228 KB
Binary file not shown.

screenshot/5.png

-208 KB
Binary file not shown.

screenshot/6.png

-57.1 KB
Binary file not shown.

screenshot/7.png

-261 KB
Binary file not shown.

screenshot/8.png

-24.2 KB
Binary file not shown.

screenshot/9.png

-36.4 KB
Binary file not shown.

screenshot/wx.png

-43.7 KB
Binary file not shown.

screenshot/zfb.jpg

-88.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)