Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nyx
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
发现
nyx
Commits
13360b35
Commit
13360b35
authored
Aug 08, 2020
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nyx mysql: 更新
parent
dba7effa
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
45 行增加
和
17 行删除
+45
-17
增值产品-小程序及app/doc/create_table_sql/mall/create_table_order.sql
+2
-2
增值产品-小程序及app/doc/create_table_sql/mall/create_table_pay_info.sql
+2
-3
增值产品-小程序及app/doc/create_table_sql/流程及数据测试.sql
+41
-12
没有找到文件。
增值产品-小程序及app/doc/create_table_sql/mall/create_table_order.sql
查看文件 @
13360b35
USE
r
ockwell_key
;
USE
r
ockwell_key
;
...
@@ -28,7 +28,7 @@ USE rockwell_key;
...
@@ -28,7 +28,7 @@ USE rockwell_key;
DROP
TABLE
IF
EXISTS
tbl_order
;
DROP
TABLE
IF
EXISTS
tbl_order
;
CREATE
TABLE
tbl_order
(
CREATE
TABLE
tbl_order
(
`order_id`
VARCHAR
(
100
)
COMMENT
'订单的id,
uuid format
, mid_001'
,
`order_id`
VARCHAR
(
100
)
COMMENT
'订单的id,
订单流水号, identity-maxId
, mid_001'
,
`activity_id`
VARCHAR
(
100
)
COMMENT
'活动的id, uuid format, aid_001'
,
`activity_id`
VARCHAR
(
100
)
COMMENT
'活动的id, uuid format, aid_001'
,
`user_id`
VARCHAR
(
100
)
COMMENT
'用户的id, uuid format, uid_001'
,
`user_id`
VARCHAR
(
100
)
COMMENT
'用户的id, uuid format, uid_001'
,
`order_status`
VARCHAR
(
10
)
DEFAULT
'00'
COMMENT
'订单状态: 00-订单取消, 10-未付款, 20-可使用, 30-已完成'
,
`order_status`
VARCHAR
(
10
)
DEFAULT
'00'
COMMENT
'订单状态: 00-订单取消, 10-未付款, 20-可使用, 30-已完成'
,
...
...
增值产品-小程序及app/doc/create_table_sql/mall/create_table_pay_info.sql
查看文件 @
13360b35
USE
r
ockwell_key
;
USE
r
ockwell_key
;
...
@@ -8,11 +8,10 @@ USE rockwell_key;
...
@@ -8,11 +8,10 @@ USE rockwell_key;
DROP
TABLE
IF
EXISTS
tbl_pay_info
;
DROP
TABLE
IF
EXISTS
tbl_pay_info
;
CREATE
TABLE
tbl_pay_info
(
CREATE
TABLE
tbl_pay_info
(
`pay_id`
VARCHAR
(
100
)
COMMENT
'支付的id,
uuid format
, pid_001'
,
`pay_id`
VARCHAR
(
100
)
COMMENT
'支付的id,
支付流水号, identity maxId
, pid_001'
,
`order_id`
VARCHAR
(
100
)
COMMENT
'订单的id, uuid format, oid_001'
,
`order_id`
VARCHAR
(
100
)
COMMENT
'订单的id, uuid format, oid_001'
,
`user_id`
VARCHAR
(
100
)
COMMENT
'用户的id, uuid format, uid_001'
,
`user_id`
VARCHAR
(
100
)
COMMENT
'用户的id, uuid format, uid_001'
,
`pay_platform`
VARCHAR
(
10
)
DEFAULT
NULL
COMMENT
'支付平台, 10-微信; 20-支付宝'
,
`pay_platform`
VARCHAR
(
10
)
DEFAULT
NULL
COMMENT
'支付平台, 10-微信; 20-支付宝'
,
`pay_number`
VARCHAR
(
200
)
DEFAULT
NULL
COMMENT
'支付流水号'
,
`pay_status`
VARCHAR
(
20
)
DEFAULT
'00'
COMMENT
'支付状态: 00-未完成; 01-已完成'
,
`pay_status`
VARCHAR
(
20
)
DEFAULT
'00'
COMMENT
'支付状态: 00-未完成; 01-已完成'
,
`create_datetime`
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`create_datetime`
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`update_datetime`
DATETIME
DEFAULT
NULL
,
`update_datetime`
DATETIME
DEFAULT
NULL
,
...
...
增值产品-小程序及app/doc/create_table_sql/流程及数据测试.sql
查看文件 @
13360b35
/*
/*
...
@@ -88,52 +88,70 @@
...
@@ -88,52 +88,70 @@
图片 note_image
图片 note_image
标题 title
标题 title
价格 unit_price
价格 unit_price
SELECT * view_activity_product
--322 点击进入活动详情页面 weapp activity_info.wxml todo 新增activity_info.wxml todo-1:1的image
SELECT * FROM
(
SELECT * FROM view_activity_product
WHERE 1=1
ORDER BY price ASC LIMIT 100
) AS tt
GROUP BY activity_id
--322 点击进入活动详情页面 weapp activity_info.wxml todo 新增 activity_info.wxml todo-1:1的image
图片 note_image
图片 note_image
价格 unit_price1/unit_price2
价格 unit_price1/unit_price2
标题 title
标题 title
类别 product_desc1/product_desc2
类别 product_desc1/product_desc2
描述 content
描述 content
select * from view_activity_product
where activity_id='aid_005'
--323 页面分享 weapp activity-info.js options.from == 'button'
--323 页面分享 weapp activity-info.js options.from == 'button'
--324 回到首页 weapp activity-info.wxml bindtap="toHome"
--324 回到首页 weapp activity-info.wxml bindtap="toHome"
--325 右上角分享 weapp activity-info.js onShareAppMessage()
--325 右上角分享 weapp activity-info.js onShareAppMessage()
--326 立即购买 (直接跳转到结算页 order.wxml) weapp activity-info.wxml bindtap="toBuy"
--326 立即购买 (直接跳转到结算页 order.wxml) weapp activity-info.wxml bindtap="toBuy"
-- 弹出模态框 weapp activity-info.wxml 确定 bindtap="toConfirm"
-- 弹出模态框 weapp activity-info.wxml 确定 bindtap="toConfirm
Order
"
-- 类别1/类别2 weapp activity-info.wxml bindtap="tab"
-- 类别1/类别2 weapp activity-info.wxml bindtap="tab"
切换类别 product_desc 和价格 unit_price 显示已选: product_desc
切换类别 product_desc 和价格 unit_price 显示已选: product_desc
-- 跳转到商品结算页 weapp order.wxml bindtap="toPay"
数据存储在小程序客户端
tbl_order_item product_id, product_desc, unit_price, quantity, total_price, product_image
-- 跳转到商品结算页 weapp activity-info.wxml <navigator> /order.wxml
--327 加入购物车 (直接添加到购物车图标
) todo 购物车数据存在客户端。
--327 加入购物车 (直接添加到购物车图标
, 特点: 可多个) todo 购物车数据存在客户端
-- 弹出模态框 weapp activity-info.wxml 确定 bindtap="toConfirm"
-- 弹出模态框 weapp activity-info.wxml 确定 bindtap="toConfirm
Cart
"
-- 类别1/类别2 weapp activity-info.wxml bindtap="tab"
-- 类别1/类别2 weapp activity-info.wxml bindtap="tab"
切换类别 product_desc 和价格 unit_price 显示已选: product_desc
切换类别 product_desc 和价格 unit_price 显示已选: product_desc
-- 回到 weapp activity-info.wxml 购物车数据新增
-- 回到 weapp activity-info.wxml 购物车数据新增
数据存储在小程序客户端
tbl_order_item product_id, product_desc, unit_price, quantity, total_price, product_image
tbl_order_item product_id, product_desc, unit_price, quantity, total_price, product_image
--328 购物车 (点击购物车图标) weapp cart.wxml
--328 购物车 (点击购物车图标) weapp cart.wxml
-- 编辑 weapp cart.wxml bindtap="onEdit"
-- 编辑 weapp cart.wxml bindtap="onEdit"
酒肆活动 编辑
酒肆活动 编辑
member_name (Renaissance Bar) · title (酒集市)
member_name (Renaissance Bar) · title (酒集市)
图片 product_desc
图片 product_desc
note
_image unit_price quantity
product
_image unit_price quantity
图片 product_desc
图片 product_desc
note
_image unit_price quantity
product
_image unit_price quantity
全选 合计: 去结算 (bindtap="toOrder")
全选 合计: 去结算 (bindtap="toOrder")
-- 完成 weapp cart.wxml bindtap="onFinish"
-- 完成 weapp cart.wxml bindtap="onFinish"
酒肆活动 完成
酒肆活动 完成
member_name (Renaissance Bar) · title (酒集市)
member_name (Renaissance Bar) · title (酒集市)
图片 product_desc
图片 product_desc
note
_image unit_price quantity
product
_image unit_price quantity
图片 product_desc
图片 product_desc
note
_image unit_price quantity
product
_image unit_price quantity
全选 删除所选 (bindtap="onDelete")
全选 删除所选 (bindtap="onDelete")
数据存储在小程序客户端
-- 删除所选 weapp cart.wxml bindtap="onDelete"
-- 删除所选 weapp cart.wxml bindtap="onDelete"
如果是全选 更改订单状态 tbl_order order_status 为 00-订单取消
如果是全选 更改订单状态 tbl_order order_status 为 00-订单取消
如果是单个 更改子项状态 tbl_order_item item_status 为 00-订单取消 todo 添加item_status
如果是单个 更改子项状态 tbl_order_item item_status 为 00-订单取消 todo 添加item_status
...
@@ -144,7 +162,6 @@
...
@@ -144,7 +162,6 @@
-- 去结算 weapp cart.wxml bindtap="toOrder"
-- 去结算 weapp cart.wxml bindtap="toOrder"
-- 结算页 weapp order.wxml bindtap="toPay"
-- 结算页 weapp order.wxml bindtap="toPay"
member_name (Renaissance Bar) · title (酒集市)
member_name (Renaissance Bar) · title (酒集市)
图片 product_desc
图片 product_desc
...
@@ -156,6 +173,18 @@
...
@@ -156,6 +173,18 @@
合计: 去支付 (bindtap="toPay")
合计: 去支付 (bindtap="toPay")
--如果成功,
-- 存储到数据库
tbl_order
tbl_order_item
tbl_pay_info
-- 回到my/my-order/my-order页面
--如果失败, 回到order.xml
--待支付页 todo weapp order-pay.wxml
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论