diff --git a/framework/11-api.js b/framework/11-api.js
index 21865c5..fa274dc 100644
--- a/framework/11-api.js
+++ b/framework/11-api.js
@@ -127,6 +127,7 @@ async function request(options) {
}
})
}
+ return res
}
} else {
uni.hideLoading()
diff --git a/pages.json b/pages.json
index bfa7aea..607816b 100644
--- a/pages.json
+++ b/pages.json
@@ -231,7 +231,7 @@
"style": {
"navigationBarTitleText": "订单详情"
}
- }
+ }
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/order_detail/components/payPassword.vue b/pages/order_detail/components/payPassword.vue
new file mode 100644
index 0000000..08be0cd
--- /dev/null
+++ b/pages/order_detail/components/payPassword.vue
@@ -0,0 +1,192 @@
+
+
+
+
+ 请输入6位支付密码
+
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+
+ 忘记支付密码?
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/order_detail/order_detail.vue b/pages/order_detail/order_detail.vue
index b96d81e..9cf03ad 100644
--- a/pages/order_detail/order_detail.vue
+++ b/pages/order_detail/order_detail.vue
@@ -176,12 +176,18 @@
+
+
+
+
diff --git a/uni_modules/cc-defineKeyboard/package.json b/uni_modules/cc-defineKeyboard/package.json
new file mode 100644
index 0000000..39fc622
--- /dev/null
+++ b/uni_modules/cc-defineKeyboard/package.json
@@ -0,0 +1,87 @@
+{
+ "id": "cc-defineKeyboard",
+ "displayName": "自定义支付密码输入键盘Keyboard和支付设置输入框Input",
+ "version": "2.0",
+ "description": "自定义支付密码输入键盘Keyboard和支付设置输入框Input",
+ "keywords": [
+ "支付密码",
+ "键盘",
+ "",
+ "支付密码输入键盘",
+ "Keyboard",
+ "",
+ "自定义键盘"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.7.0"
+ },
+ "dcloudext": {
+ "type": "component-vue",
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ },
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "y"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "y",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "y",
+ "百度": "y",
+ "字节跳动": "y",
+ "QQ": "y",
+ "钉钉": "y",
+ "快手": "y",
+ "飞书": "y",
+ "京东": "y"
+ },
+ "快应用": {
+ "华为": "y",
+ "联盟": "y"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules/cc-defineKeyboard/readme.md b/uni_modules/cc-defineKeyboard/readme.md
new file mode 100644
index 0000000..34182fd
--- /dev/null
+++ b/uni_modules/cc-defineKeyboard/readme.md
@@ -0,0 +1,232 @@
+# cc-defineKeyboard
+
+
+#### 使用方法
+```使用方法
+
+
+
+/** * 唤起键盘 */
+onPayUp() {
+ this.$refs.CodeKeyboard.show();
+},
+
+/*** 支付键盘回调* @param {Object} val */
+
+KeyInfo(val) {
+
+ if (val.index >= 6) {
+ return;
+ }
+ // 判断是否输入的是删除键
+ if (val.keyCode === 8) {
+ // 删除最后一位
+ this.passwordArr.splice(val.index + 1, 1)
+ }
+ // 判断是否输入的是.
+ else if (val.keyCode == 190) {
+ // 输入.无效
+ } else {
+ this.passwordArr.push(val.key);
+ }
+
+ uni.showModal({
+ title: '温馨提示',
+ content: '输入密码是 = ' + JSON.stringify(this.passwordArr)
+ })
+}
+
+
+```
+
+#### HTML代码实现部分
+```html
+
+
+
+
+
+ 请输入6位支付密码
+ 请设置6位支付密码
+ 请确认6位支付密码
+
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+
+ 忘记支付密码?
+
+
+
+
+
+
+
+
+
+
+
+
+
+```