Skip to content

Feature/image url #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 49 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
1aa60ed
Merge pull request #1 from iamdarcy/dev
iamdarcy Nov 28, 2019
b5fd4b2
Update Readme
iamdarcy Nov 28, 2019
dae4929
Update README.md
iamdarcy Nov 28, 2019
c60d974
Update README.md
iamdarcy Nov 28, 2019
f5afb3d
第一次提交
meiweiyuxian Nov 28, 2019
59adb8c
Merge branch 'master' of https://github.com/iamdarcy/hioshop-miniprogram
meiweiyuxian Nov 28, 2019
07ab0b8
Update README.md
iamdarcy Nov 28, 2019
49f015f
Update README.md
iamdarcy Nov 28, 2019
e2a7b5c
Update README.md
iamdarcy Nov 28, 2019
0088f92
更新支付失败时的错误提示,更新logo、名称
meiweiyuxian Nov 29, 2019
289330d
Merge branch 'master' of https://github.com/iamdarcy/hioshop-miniprogram
meiweiyuxian Nov 29, 2019
cc0785a
修改我的页面的样式,添加关于我们,更换logo
meiweiyuxian Nov 30, 2019
1ab289e
Update README.md
iamdarcy Nov 30, 2019
c852aa5
Update README.md
iamdarcy Nov 30, 2019
9eb2e80
Update README.md
iamdarcy Nov 30, 2019
13f3382
Update README.md
iamdarcy Nov 30, 2019
ded8cdf
Update README.md
iamdarcy Nov 30, 2019
8fa8ca3
Update README.md
iamdarcy Nov 30, 2019
1a114ff
Update README.md
iamdarcy Nov 30, 2019
d55719e
去除goods_type的样式
meiweiyuxian Dec 1, 2019
d5c1d58
添加商品没有库存时的样式
meiweiyuxian Dec 1, 2019
366901c
A,增加生成分享图的功能
meiweiyuxian Dec 14, 2019
0ff96e9
Update README.md
iamdarcy Dec 14, 2019
0cb480e
删除console.log
meiweiyuxian Dec 18, 2019
bd97eb0
修复部分安卓机的缓存导致生成的分享图不变的问题
meiweiyuxian Dec 18, 2019
9b56d6f
端口改为8360,和服务器一致
meiweiyuxian Feb 14, 2020
e9e3b15
删除我自己的局域网地址
meiweiyuxian Feb 14, 2020
63c771e
Update README.md
iamdarcy Feb 17, 2020
32f71cd
1、删除一些无效css代码
meiweiyuxian Feb 29, 2020
a685888
增加一个线下支付的按钮
meiweiyuxian Mar 4, 2020
65f37e0
1、修复一个群友Solver提出的关于体验性改善的问题
meiweiyuxian Mar 7, 2020
1b9df97
Create LICENSE
iamdarcy Mar 11, 2020
daca61c
Update README.md
iamdarcy Mar 11, 2020
278eb20
Update README.md
iamdarcy Mar 11, 2020
972d64d
U 将网络图标改成本地图标
meiweiyuxian Mar 26, 2020
df0d5e4
Update README.md
iamdarcy Mar 26, 2020
809b868
Update README.md
iamdarcy Apr 14, 2020
f18bb3e
Update README.md
iamdarcy Apr 14, 2020
03ab20b
Update README.md
iamdarcy Apr 19, 2020
1452256
Update README.md
iamdarcy Apr 19, 2020
6503e3c
Update README.md
iamdarcy Apr 19, 2020
7c853f9
本地没有支付时,提供一个提交订单直接支付的模拟支付方法
meiweiyuxian Apr 26, 2020
ad440df
删除formid
meiweiyuxian Apr 28, 2020
8c287a4
删除formid
meiweiyuxian Apr 28, 2020
6f8f88a
商品详情改为直接加载
meiweiyuxian Apr 29, 2020
08062d5
详情页支持视频了,感谢群友solver
meiweiyuxian Apr 29, 2020
b218699
build: ResourceURL
Nov 1, 2020
d14000c
[MOD] 添加云后台
csjy309450 Nov 3, 2020
6f67a83
[MOD]修改域名
csjy309450 Nov 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 iamdarcy 黑亮([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
77 changes: 53 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,54 @@
海鸥开源商城(微信小程序端)
基于开源项目NideShop重建,精简了一些功能的同时完善了一些功能,并重新设计了UI
测试数据来自上述开源项目
服务端api基于Node.js+ThinkJS+MySQL
### 海风小店,开源商城(微信小程序端)

本项目需要配合服务端使用,GitHub: https://github.com/iamdarcy/hioshop-server
+ 基于开源项目NideShop重建,精简了一些功能的同时完善了一些功能,并重新设计了UI
+ 测试数据来自上述开源项目
+ 服务端api基于Node.js+ThinkJS+MySQL

云服务器ECS-云主机优惠-2折上云
### 目前基于海风小店已经上线的几款微信小程序商城
<img width="1400" src="http://git.hiolabs.com/miniapp.jpg"/>

项目截图
首页
### 服务器和后台管理本地部署教程
服务器:https://www.bilibili.com/video/av89567916
后台管理:https://www.bilibili.com/video/av89568075

专题
#### 本项目需要配合
服务端: https://github.com/iamdarcy/hioshop-server
管理后台:https://github.com/iamdarcy/hioshop-admin

分类
线上demo:http://hiolabs.com/demo/#/login
用户名:hiolabs
密码:hiolabs

商品列表
<a target="_blank" href="https://www.aliyun.com/minisite/goods?userCode=zm04niet"><img width="1400" src="http://git.hiolabs.com/aliyun.jpg"/></a>
阿里云主机优惠<a target="_blank" href="https://www.aliyun.com/minisite/goods?userCode=zm04niet">立即去看看</a>

商品详情
### 项目截图

购物车
<img width="1400" src="http://git.hiolabs.com/github/all1.jpg"/>

订单中心
### 功能列表
+ 首页:搜索、Banner、公告、分类Icons、分类商品列表
+ 详情页:加入购物车、立即购买、选择规格
+ 搜索页:排序
+ 分类页:分页加载商品
+ 我的页面:订单(待付款,待发货,待收货),足迹,收货地址

##功能列表
首页:搜索、Banner、公告、分类Icons、分类商品列表
详情页:加入购物车、立即购买、选择规格
搜索页:排序
分类页:分页加载商品
我的页面:订单(待付款,待发货,待收货),足迹,收货地址
### 最近更新
- 3.26 更新详情
U 将网络图标改成本地图标
U 更新支付方式的UI
F 修复轮播图的bug
F 修复没有商品时的错误显示问题
F 修复share.js的一个bug
A 增加发货时的订阅消息

##完整的购物流程,商品加入购物车 --> 收货地址的选择 --> 下单支付 --> 确认收货
- 12.14 新增生成分享图的功能
<img width="1000" src="http://git.hiolabs.com/github/save-local.jpg"/>

项目结构
#### 完整的购物流程,商品加入购物车 --> 收货地址的选择 --> 下单支付 --> 确认收货

### 项目结构
```
├─config
│ └─api 
├─images
Expand Down Expand Up @@ -60,6 +77,18 @@
│ └─settings
├─services
└─utils
```
### 本地开发

请在https://mp.weixin.qq.com/ 注册你的小程序,得到appid和secret,微信开发者工具中设置appid。
在hiolabs-server的config.js中设置好appid和secret。

- 项目地址
微信小程序:https://github.com/iamdarcy/hioshop-miniprogram
后台管理:https://github.com/iamdarcy/hioshop-admin
服务端: https://github.com/iamdarcy/hioshop-server

- 本项目会持续更新和维护,喜欢别忘了 Star,有问题可通过微信、QQ群联系我,谢谢您的关注。
<img width="1200" src="http://git.hiolabs.com/github/contact.jpg"/>


项目地址:https://github.com/iamdarcy/hioshop-mini-program
喜欢别忘了 Star,有问题可通过微信、QQ群联系我,谢谢您的关注。
60 changes: 60 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
var util = require('utils/util.js');
var api = require('config/api.js');
App({
data: {
deviceInfo: {}
},
onLaunch: function() {
this.data.deviceInfo = wx.getSystemInfoSync();
console.log(this.data.deviceInfo);
// 展示本地存储能力
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
// 获取用户信息
wx.getSetting({
success: res => {
if (res.authSetting['scope.userInfo']) {
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
wx.getUserInfo({
success: res => {
// 可以将 res 发送给后台解码出 unionId
this.globalData.userInfo = res.userInfo
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
// 所以此处加入 callback 以防止这种情况
if (this.userInfoReadyCallback) {
this.userInfoReadyCallback(res)
}
}
})
}
}
})
let that = this;
wx.getSystemInfo({ // 获取页面的有关信息
success: function(res) {
wx.setStorageSync('systemInfo', res)
var ww = res.windowWidth;
var hh = res.windowHeight;
that.globalData.ww = ww;
that.globalData.hh = hh;
}
});

},
globalData: {
userInfo: {
nickname: '点我登录',
username: '点击登录',
avatar: 'http://lucky-icon.meiweiyuxian.com/hio/default_avatar_big.png'
},
token: '',
}

})
64 changes: 64 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"pages": [
"pages/index/index",
"pages/app-auth/index",
"pages/category/index",
"pages/cart/cart",
"pages/share/index",
"pages/search/search",
"pages/order-check/index",
"pages/goods/goods",
"pages/ucenter/about/index",
"pages/ucenter/address/index",
"pages/ucenter/address-detail/index",
"pages/ucenter/index/index",
"pages/ucenter/settings/index",
"pages/ucenter/order-list/index",
"pages/ucenter/goods-list/index",
"pages/ucenter/order-details/index",
"pages/ucenter/express-info/index",
"pages/ucenter/footprint/index",
"pages/payResult/payResult",
"pages/payOffline/index"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": true
},
"tabBar": {
"color": "#6e6d6b",
"selectedColor": "#ff3456",
"borderStyle": "white",
"backgroundColor": "#fff",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "images/nav/icon-index-b.png",
"selectedIconPath": "images/nav/icon-index-r.png",
"text": "首页"
},
{
"pagePath": "pages/category/index",
"iconPath": "images/nav/icon-cate-off.png",
"selectedIconPath": "images/nav/icon-cate-on.png",
"text": "分类"
},
{
"pagePath": "pages/cart/cart",
"iconPath": "images/nav/icon-cart-b.png",
"selectedIconPath": "images/nav/icon-cart-r.png",
"text": "购物车"
},
{
"pagePath": "pages/ucenter/index/index",
"iconPath": "images/nav/icon-center-b.png",
"selectedIconPath": "images/nav/icon-center-r.png",
"text": "我的"
}
]
},
"sitemapLocation": "sitemap.json"
}
9 changes: 9 additions & 0 deletions app.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**app.wxss**/
.container {
display: flex;
flex-direction: column;
box-sizing: border-box;
}
.hide{
display: none;
}
Loading