diff --git a/common/js/api.js b/common/js/api.js
index f2c880d..d891428 100644
--- a/common/js/api.js
+++ b/common/js/api.js
@@ -16,6 +16,7 @@ export default {
accountPay(data) {
return uni.api.get("/pay/accountPay", data);
},
+
// 下单
creatGroupOrder(data) {
return uni.api.post("/groupOrderInfo/creatGroupOrder", data);
@@ -71,6 +72,10 @@ export default {
shopUserInfo(data) {
return uni.api.get("/user/shopUserInfo", data);
},
+ // 优惠券数量
+ userCoupon(data) {
+ return uni.api.get("/user/userCoupon", data);
+ },
// 优惠加倍
yhqDouble(data) { //查询订单支付状态
return uni.api.post("/order/yhqDouble", data);
@@ -138,7 +143,7 @@ export default {
return uni.api.get("/distirict/comShopList", data);
},
loginOut(data) { //退出登录
- return uni.api.post("/loginOut", data);
+ return uni.api.post("/login/loginOut", data);
},
productqueryShopIdByTableCode(data) { //通过桌码获取shopId
return uni.api.get("/product/queryShopIdByTableCode", data);
diff --git a/components/payPassword.vue b/components/payPassword.vue
new file mode 100644
index 0000000..08be0cd
--- /dev/null
+++ b/components/payPassword.vue
@@ -0,0 +1,192 @@
+
+
+
+
+ 请输入6位支付密码
+
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+
+ 忘记支付密码?
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/framework/0-conf.js b/framework/0-conf.js
index e488114..116446d 100644
--- a/framework/0-conf.js
+++ b/framework/0-conf.js
@@ -3,10 +3,10 @@ const debug = process.env.NODE_ENV == 'development' ? true : false;
const proxyApi = "/api"
// #endif
// #ifdef MP-WEIXIN || APP
-// const proxyApi = 'http://192.168.2.133:9889/cashierService' // 王伟
+// const proxyApi = 'http://192.168.2.96:9889/cashierService' // 王伟
// const proxyApi = 'http://192.168.2.74:9888/cashierService' // 帆哥
-const proxyApi = 'https://wxcashiertest.sxczgkj.cn/cashierService' // 测试
// const proxyApiwws = 'ws://192.168.2.74:9888/cashierService' // 测试
+const proxyApi = 'https://wxcashiertest.sxczgkj.cn/cashierService' // 测试
const proxyApiwws = 'wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
// #endif
@@ -19,6 +19,7 @@ const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
// const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService'// 线上
// const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/cashierService' // 线上
const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
+// const baseUrl = 'http://192.168.2.96:9889/cashierService'
const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
// #endif
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/manifest.json b/manifest.json
index 4b6f8c1..64b255c 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,111 +1,111 @@
{
- "name": "cashier_weapp",
- "appid": "__UNI__8092421",
- "description": "",
- "versionName": "1.0.0",
- "versionCode": "100",
- "transformPx": false,
- /* 5+App特有相关 */
- "app-plus": {
- "usingComponents": true,
- "nvueStyleCompiler": "uni-app",
- "compilerVersion": 3,
- "splashscreen": {
- "alwaysShowBeforeRender": true,
- "waiting": true,
- "autoclose": true,
- "delay": 0
- },
- /* 模块配置 */
- "modules": {
- "Barcode": {}
- },
- /* 应用发布信息 */
- "distribute": {
- /* android打包配置 */
- "android": {
- "permissions": [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ]
- },
- /* ios打包配置 */
- "ios": {
- "dSYMs": false
- },
- /* SDK配置 */
- "sdkConfigs": {
- "ad": {}
- }
- }
- },
- /* 快应用特有相关 */
- "quickapp": {},
- /* 小程序特有相关 */
- "mp-weixin": {
- "appid": "wxd88fffa983758a30",
- "setting": {
- "urlCheck": false,
- "minified": true,
- "es6": true,
- "postcss": true
- },
- "usingComponents": true,
- "libVersion": "latest",
- "permission": {
- "scope.userLocation": {
- "desc": "你的位置信息将用于小程序位置接口的效果展示"
- }
- },
- "requiredPrivateInfos": ["getLocation", "onLocationChange", "chooseLocation", "chooseAddress"]
- },
- "h5": {
- "devServer": {
- "https": false,
- "disableHostCheck": false,
- "proxy": {
- "/api": {
- "target": "https://wxcashiertest.sxczgkj.cn/cashierService",
- // "target" : "https://ky.sxczgkj.cn",
- "ws": false,
- "changeOrigin": true, //是否跨域
- "secure": false, // 设置支持https协议的代理
- "pathRewrite": {
- "^/api": "" //需要rewrite重写的,
- }
- }
- }
- },
- "template": "template.h5.html",
- "router": {
- "mode": "history",
- "base": "/h5/"
- }
- },
- "mp-alipay": {
- "usingComponents": true
- },
- "mp-baidu": {
- "usingComponents": true
- },
- "mp-toutiao": {
- "usingComponents": true
- },
- "uniStatistics": {
- "enable": false
- },
- "vueVersion": "2"
-}
\ No newline at end of file
+ "name" : "cashier_weapp",
+ "appid" : "__UNI__8092421",
+ "description" : "",
+ "versionName" : "1.0.0",
+ "versionCode" : "100",
+ "transformPx" : false,
+ /* 5+App特有相关 */
+ "app-plus" : {
+ "usingComponents" : true,
+ "nvueStyleCompiler" : "uni-app",
+ "compilerVersion" : 3,
+ "splashscreen" : {
+ "alwaysShowBeforeRender" : true,
+ "waiting" : true,
+ "autoclose" : true,
+ "delay" : 0
+ },
+ /* 模块配置 */
+ "modules" : {
+ "Barcode" : {}
+ },
+ /* 应用发布信息 */
+ "distribute" : {
+ /* android打包配置 */
+ "android" : {
+ "permissions" : [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ /* ios打包配置 */
+ "ios" : {
+ "dSYMs" : false
+ },
+ /* SDK配置 */
+ "sdkConfigs" : {
+ "ad" : {}
+ }
+ }
+ },
+ /* 快应用特有相关 */
+ "quickapp" : {},
+ /* 小程序特有相关 */
+ "mp-weixin" : {
+ "appid" : "wxd88fffa983758a30",
+ "setting" : {
+ "urlCheck" : false,
+ "minified" : true,
+ "es6" : true,
+ "postcss" : true
+ },
+ "usingComponents" : true,
+ "libVersion" : "latest",
+ "permission" : {
+ "scope.userLocation" : {
+ "desc" : "你的位置信息将用于小程序位置接口的效果展示"
+ }
+ },
+ "requiredPrivateInfos" : [ "getLocation", "onLocationChange", "chooseLocation", "chooseAddress" ]
+ },
+ "h5" : {
+ "devServer" : {
+ "https" : false,
+ "disableHostCheck" : false,
+ "proxy" : {
+ "/api" : {
+ "target" : "https://wxcashiertest.sxczgkj.cn/cashierService",
+ // "target" : "https://ky.sxczgkj.cn",
+ "ws" : false,
+ "changeOrigin" : true, //是否跨域
+ "secure" : false, // 设置支持https协议的代理
+ "pathRewrite" : {
+ "^/api" : "" //需要rewrite重写的,
+ }
+ }
+ }
+ },
+ "template" : "template.h5.html",
+ "router" : {
+ "mode" : "history",
+ "base" : "/h5/"
+ }
+ },
+ "mp-alipay" : {
+ "usingComponents" : true
+ },
+ "mp-baidu" : {
+ "usingComponents" : true
+ },
+ "mp-toutiao" : {
+ "usingComponents" : true
+ },
+ "uniStatistics" : {
+ "enable" : false
+ },
+ "vueVersion" : "2"
+}
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/group_order/components/groupMerchants.vue b/pages/group_order/components/groupMerchants.vue
index 3738326..7a04763 100644
--- a/pages/group_order/components/groupMerchants.vue
+++ b/pages/group_order/components/groupMerchants.vue
@@ -10,7 +10,7 @@
{{info.distances}}km |
+ style="width: 17.9rpx;height: 22rpx;margin-right: 6rpx;" mode="">{{info.distances}} |
{{info.address}}
diff --git a/pages/index/coupons/index.vue b/pages/index/coupons/index.vue
index 8abed28..570840d 100644
--- a/pages/index/coupons/index.vue
+++ b/pages/index/coupons/index.vue
@@ -193,7 +193,8 @@
userId: uni.cache.get('userInfo').id,
status: 0,
page: this.form.page,
- size: this.form.size
+ size: this.form.size,
+ orderId:''
})
try {
this.totalnumber = res.data.total
diff --git a/pages/index/drinks.vue b/pages/index/drinks.vue
index c4910ef..5be53c1 100644
--- a/pages/index/drinks.vue
+++ b/pages/index/drinks.vue
@@ -35,7 +35,7 @@
{{item.shopName}}
- 龙首.{{item.distances}}km
+ {{item.distances}}
diff --git a/pages/index/hotlist.vue b/pages/index/hotlist.vue
index 124f88a..e531358 100644
--- a/pages/index/hotlist.vue
+++ b/pages/index/hotlist.vue
@@ -47,7 +47,7 @@
{{item.productName}}
- {{item.distances}}km
+ {{item.distances}}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index d73ef17..046b8e2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -137,7 +137,7 @@
-
+
diff --git a/pages/index/tothestore.vue b/pages/index/tothestore.vue
index 55e77ab..22209cb 100644
--- a/pages/index/tothestore.vue
+++ b/pages/index/tothestore.vue
@@ -27,7 +27,7 @@
{{item.address.length>7?item.address.substring(0,7)+'...':item.address}}
- {{item.distances}}km
+ {{item.distances}}
diff --git a/pages/member/index.vue b/pages/member/index.vue
index 26abab1..a815054 100644
--- a/pages/member/index.vue
+++ b/pages/member/index.vue
@@ -49,7 +49,7 @@
}
},
onLoad(e) {
- console.log(e)
+ console.log(e,'调试')
if (e.type == 'list') {//从列表进来的
this.paygetShopByMember(e.shopId_id)
}else{
diff --git a/pages/member/list.vue b/pages/member/list.vue
index 77c64aa..2756d75 100644
--- a/pages/member/list.vue
+++ b/pages/member/list.vue
@@ -11,9 +11,10 @@
{{item.chainName}}
+
- {{item.is_vip}}
+ 余额:{{item.amount}}
{{item.shopName}}
diff --git a/pages/order/successful.vue b/pages/order/successful.vue
index 405aefb..1409dc7 100644
--- a/pages/order/successful.vue
+++ b/pages/order/successful.vue
@@ -148,9 +148,6 @@
}, 1000)
this.getinfo(e.orderId)
this.orderInfo = JSON.parse(e.orderInfo)
- console.log('调试1', e)
- console.log('调试2', JSON.parse(e.orderInfo))
- console.log('调试3', this.orderInfo)
},
computed: {
HeighT() { //手机类型的尺寸
diff --git a/pages/order_detail/order_detail.vue b/pages/order_detail/order_detail.vue
index 739c6e3..98750d2 100644
--- a/pages/order_detail/order_detail.vue
+++ b/pages/order_detail/order_detail.vue
@@ -82,10 +82,10 @@
- 红包/低佣券
+ 红包/抵用券
-
+ 可用优惠券{{couponAmount}}张
@@ -118,7 +118,8 @@
- 会员卡余额{{ amountVIP.amount}} 去充值
@@ -170,17 +171,23 @@
以优惠¥{{emitorderfoodform.couponsPrice}}
-
+
立即付款
+
+
+
+
\ No newline at end of file
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位支付密码
+
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+ ●
+
+
+
+ 忘记支付密码?
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
diff --git a/uni_modules/uni-scss/changelog.md b/uni_modules/新建文件夹/uni-scss/changelog.md
similarity index 100%
rename from uni_modules/uni-scss/changelog.md
rename to uni_modules/新建文件夹/uni-scss/changelog.md
diff --git a/uni_modules/uni-scss/index.scss b/uni_modules/新建文件夹/uni-scss/index.scss
similarity index 100%
rename from uni_modules/uni-scss/index.scss
rename to uni_modules/新建文件夹/uni-scss/index.scss
diff --git a/uni_modules/uni-scss/package.json b/uni_modules/新建文件夹/uni-scss/package.json
similarity index 100%
rename from uni_modules/uni-scss/package.json
rename to uni_modules/新建文件夹/uni-scss/package.json
diff --git a/uni_modules/uni-scss/readme.md b/uni_modules/新建文件夹/uni-scss/readme.md
similarity index 100%
rename from uni_modules/uni-scss/readme.md
rename to uni_modules/新建文件夹/uni-scss/readme.md
diff --git a/uni_modules/uni-scss/styles/index.scss b/uni_modules/新建文件夹/uni-scss/styles/index.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/index.scss
rename to uni_modules/新建文件夹/uni-scss/styles/index.scss
diff --git a/uni_modules/uni-scss/styles/setting/_border.scss b/uni_modules/新建文件夹/uni-scss/styles/setting/_border.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/setting/_border.scss
rename to uni_modules/新建文件夹/uni-scss/styles/setting/_border.scss
diff --git a/uni_modules/uni-scss/styles/setting/_color.scss b/uni_modules/新建文件夹/uni-scss/styles/setting/_color.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/setting/_color.scss
rename to uni_modules/新建文件夹/uni-scss/styles/setting/_color.scss
diff --git a/uni_modules/uni-scss/styles/setting/_radius.scss b/uni_modules/新建文件夹/uni-scss/styles/setting/_radius.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/setting/_radius.scss
rename to uni_modules/新建文件夹/uni-scss/styles/setting/_radius.scss
diff --git a/uni_modules/uni-scss/styles/setting/_space.scss b/uni_modules/新建文件夹/uni-scss/styles/setting/_space.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/setting/_space.scss
rename to uni_modules/新建文件夹/uni-scss/styles/setting/_space.scss
diff --git a/uni_modules/uni-scss/styles/setting/_styles.scss b/uni_modules/新建文件夹/uni-scss/styles/setting/_styles.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/setting/_styles.scss
rename to uni_modules/新建文件夹/uni-scss/styles/setting/_styles.scss
diff --git a/uni_modules/uni-scss/styles/setting/_text.scss b/uni_modules/新建文件夹/uni-scss/styles/setting/_text.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/setting/_text.scss
rename to uni_modules/新建文件夹/uni-scss/styles/setting/_text.scss
diff --git a/uni_modules/uni-scss/styles/setting/_variables.scss b/uni_modules/新建文件夹/uni-scss/styles/setting/_variables.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/setting/_variables.scss
rename to uni_modules/新建文件夹/uni-scss/styles/setting/_variables.scss
diff --git a/uni_modules/uni-scss/styles/tools/functions.scss b/uni_modules/新建文件夹/uni-scss/styles/tools/functions.scss
similarity index 100%
rename from uni_modules/uni-scss/styles/tools/functions.scss
rename to uni_modules/新建文件夹/uni-scss/styles/tools/functions.scss
diff --git a/uni_modules/uni-scss/theme.scss b/uni_modules/新建文件夹/uni-scss/theme.scss
similarity index 100%
rename from uni_modules/uni-scss/theme.scss
rename to uni_modules/新建文件夹/uni-scss/theme.scss
diff --git a/uni_modules/uni-scss/variables.scss b/uni_modules/新建文件夹/uni-scss/variables.scss
similarity index 100%
rename from uni_modules/uni-scss/variables.scss
rename to uni_modules/新建文件夹/uni-scss/variables.scss