-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
269 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
addons/demo_rgapi/demo_rgapi_wxapp/demo_rgapi/pages/pay/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import http from '../../util/request.js'; | ||
import pay from '../../util/pay.js'; | ||
|
||
// demo_rgapi/pages/pay/index.js | ||
Page({ | ||
|
||
/** | ||
* 页面的初始数据 | ||
*/ | ||
data: { | ||
|
||
}, | ||
|
||
/** | ||
* 生命周期函数--监听页面加载 | ||
*/ | ||
onLoad(options) { | ||
|
||
}, | ||
|
||
/** | ||
* 生命周期函数--监听页面初次渲染完成 | ||
*/ | ||
onReady() { | ||
|
||
}, | ||
|
||
/** | ||
* 生命周期函数--监听页面显示 | ||
*/ | ||
onShow() { | ||
|
||
}, | ||
|
||
/** | ||
* 生命周期函数--监听页面隐藏 | ||
*/ | ||
onHide() { | ||
|
||
}, | ||
|
||
/** | ||
* 生命周期函数--监听页面卸载 | ||
*/ | ||
onUnload() { | ||
|
||
}, | ||
|
||
pay: function(e) { | ||
pay('orderid'); | ||
}, | ||
|
||
/** | ||
* 页面相关事件处理函数--监听用户下拉动作 | ||
*/ | ||
onPullDownRefresh() { | ||
|
||
}, | ||
|
||
/** | ||
* 页面上拉触底事件的处理函数 | ||
*/ | ||
onReachBottom() { | ||
|
||
}, | ||
|
||
/** | ||
* 用户点击右上角分享 | ||
*/ | ||
onShareAppMessage() { | ||
|
||
} | ||
}) |
3 changes: 3 additions & 0 deletions
3
addons/demo_rgapi/demo_rgapi_wxapp/demo_rgapi/pages/pay/index.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"usingComponents": {} | ||
} |
5 changes: 5 additions & 0 deletions
5
addons/demo_rgapi/demo_rgapi_wxapp/demo_rgapi/pages/pay/index.wxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!--demo_rgapi/pages/pay/index.wxml--> | ||
<text>小程序支付:</text> | ||
<view class="weui-btn-area"> | ||
<button class="weui-btn" type="primary" bindtap="pay">去支付</button> | ||
</view> |
1 change: 1 addition & 0 deletions
1
addons/demo_rgapi/demo_rgapi_wxapp/demo_rgapi/pages/pay/index.wxss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* demo_rgapi/pages/pay/index.wxss */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
$tablename_riji = tablename('demo_rgapi_riji'); | ||
$tablename_paylog = tablename('demo_rgapi_paylog'); | ||
$sql = <<<EOT | ||
CREATE TABLE IF NOT EXISTS $tablename_riji ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', | ||
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '日记标题', | ||
`content` varchar(255) NOT NULL DEFAULT '' COMMENT '日记内容', | ||
`createtime` int(11) NOT NULL COMMENT '创建时间', | ||
`updatetime` int(11) NOT NULL COMMENT '更新时间', | ||
`uid` varchar(255) NOT NULL DEFAULT '' COMMENT '用户标识', | ||
`uniacid` int(11) NOT NULL DEFAULT '0', | ||
`image` varchar(255) NOT NULL DEFAULT '' COMMENT '图片路径', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
CREATE TABLE IF NOT EXISTS $tablename_paylog ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', | ||
`no` varchar(255) NOT NULL DEFAULT '' COMMENT '商户订单号', | ||
`code` varchar(255) NOT NULL DEFAULT '' COMMENT '二维码链接', | ||
`status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '状态', | ||
`type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '支付类型 1:微信;2:支付宝;', | ||
`createtime` int(11) NOT NULL COMMENT '创建时间', | ||
`updatetime` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间', | ||
`uid` varchar(255) NOT NULL DEFAULT '' COMMENT '用户标识', | ||
`uniacid` int(11) NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
EOT; | ||
|
||
pdo_query($sql); |
Oops, something went wrong.