Commit 13360b35 by jscat

nyx mysql: 更新

parent dba7effa
USE rockwell_key; USE rockwell_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-已完成',
......
USE rockwell_key; USE rockwell_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,
......
/* /*
...@@ -88,51 +88,69 @@ ...@@ -88,51 +88,69 @@
图片 note_image 图片 note_image
标题 title 标题 title
价格 unit_price 价格 unit_price
SELECT * view_activity_product
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 --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="toConfirmOrder"
-- 类别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="toConfirmCart"
-- 类别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-订单取消
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论