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/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/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/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/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 17c59b7..f6cd4e7 100644
--- a/pages/order_detail/order_detail.vue
+++ b/pages/order_detail/order_detail.vue
@@ -426,7 +426,7 @@
let isVip = uni.cache.get('userInfo').isPwd
if (isVip == 0) {
uni.pro.navigateTo('/pages/user/repairpassword', {
- // shopId_id: uni.cache.get('shopUser')
+ shopId_id: uni.cache.get('shopUser')
})
} else {
this.ispws = true
diff --git a/pages/product/generalstore.vue b/pages/product/generalstore.vue
index 54b78c9..7bc480d 100644
--- a/pages/product/generalstore.vue
+++ b/pages/product/generalstore.vue
@@ -17,7 +17,7 @@
- 距您{{item.distances}}km,{{item.address}}
+ 距您{{item.distances}},{{item.address}}
diff --git a/pages/product/index.vue b/pages/product/index.vue
index 94aca6d..f593443 100644
--- a/pages/product/index.vue
+++ b/pages/product/index.vue
@@ -467,6 +467,7 @@
bottom: 0;
left: 0;
width: 100%;
+ height: 180rpx;
padding: 24rpx 28rpx;
background: #FFFFFF;
z-index: 999;
diff --git a/pages/product/placeOrder.vue b/pages/product/placeOrder.vue
index c9e5042..188325a 100644
--- a/pages/product/placeOrder.vue
+++ b/pages/product/placeOrder.vue
@@ -40,16 +40,16 @@
- 优惠¥{{info.save * Quantity}}
+ 优惠¥{{calculateEvent(info.save)}}
- 小计¥{{info.salePrice * Quantity}}
+ 小计¥{{calculateEvent(info.salePrice) }}
-
+
支付方式
@@ -65,9 +65,8 @@
-
-
-
+
+
@@ -77,7 +76,7 @@
-
+
会员卡余额{{ amountVIP.amount}} 去充值
@@ -88,11 +87,12 @@
合计 ¥{{info.salePrice * Quantity}}
+ style="font-size: 32rpx;font-weight: bold;color:#FF4C11"> ¥{{calculateEvent(info.salePrice)}}
+
含优惠卷包¥0
- 共{{Quantity}}件 已优惠¥{{info.save * Quantity}}
+ 共{{Quantity}}件 已优惠¥{{calculateEvent(info.save) }}
@@ -140,11 +140,16 @@
async accountPayevent(pwd) {
this.ispws = false
let res = await this.api.payOrderPay({
- orderId: this.listinfoid,
+ orderId: this.listinfoid.id,
payType: "deposit",
pwd
})
if (res.code == 0) {
+ let orderInfo = {
+ createdAt:this.listinfoid.createTime,
+ orderNo:this.listinfoid.orderNo,
+ orderAmount:this.calculateEvent(this.info.salePrice)
+ }
uni.showToast({
icon: 'none',
title: '支付成功',
@@ -152,8 +157,7 @@
setTimeout(res => {
uni.redirectTo({
url: '/pages/order/successful?orderId=' + this
- .listinfoid + '&orderInfo=' + JSON.stringify(
- this.orderInfo)
+ .listinfoid.id + '&orderInfo=' + JSON.stringify(orderInfo)
});
}, 1000)
}
@@ -165,6 +169,9 @@
}, 2000)
}
},
+ calculateEvent(d) {
+ return (d * 1000 * this.Quantity)/1000
+ },
goRecharge() {
uni.pro.navigateTo('/pages/member/index', {
shopId_id: this.info.shopId
@@ -180,7 +187,7 @@
orderAmount: payMoney
})
if (res.code == 0) {
- this.listinfoid = res.data.id
+ this.listinfoid = res.data
// radiovalue1:为1的时候微信支付,为2是会员卡,需要输入支付密码
if (this.radiovalue1 == 1) {
// 调用支付接口
@@ -190,7 +197,7 @@
let isVip = uni.cache.get('userInfo').isPwd
if (isVip == 0) {
uni.pro.navigateTo('/pages/user/repairpassword', {
- // shopId_id: uni.cache.get('shopUser')
+ shopId_id: uni.cache.get('shopUser')
})
} else {
this.ispws = true
diff --git a/uni_modules/cc-defineKeyboard/components/cc-defineKeyboard/cc-defineKeyboard.vue b/uni_modules/cc-defineKeyboard/components/cc-defineKeyboard/cc-defineKeyboard.vue
index a63e3f4..6a5f80d 100644
--- a/uni_modules/cc-defineKeyboard/components/cc-defineKeyboard/cc-defineKeyboard.vue
+++ b/uni_modules/cc-defineKeyboard/components/cc-defineKeyboard/cc-defineKeyboard.vue
@@ -1,11 +1,14 @@
-
- {{item.key}}
+
+
+ {{item.key}}
+
+
+
+
@@ -16,71 +19,69 @@
data() {
return {
isShow: false,
- keyList: [
- {
- key: 1,
- en: '',
- keyCode: 49,
- },{
- key: 2,
- en: 'ABC',
- keyCode: 50,
- },{
- key: 3,
- en: 'ABC',
- keyCode: 51,
- },{
- key: 4,
- en: 'ABC',
- keyCode: 52,
- },{
- key: 5,
- en: 'ABC',
- keyCode: 53,
- },{
- key: 6,
- en: 'ABC',
- keyCode: 54,
- },{
- key: 7,
- en: 'ABC',
- keyCode: 55,
- },{
- key: 8,
- en: 'ABC',
- keyCode: 56,
- },{
- key: 9,
- en: 'ABC',
- keyCode: 57,
- },{
- key: '.',
- en: 'ABC',
- keyCode: 190,
- },{
- key: 0,
- en: 'ABC',
- keyCode: 48,
- },{
- key: 'del',
- en: 'DEL',
- keyCode: 8,
- },
- ],
+ keyList: [{
+ key: 1,
+ en: '',
+ keyCode: 49,
+ }, {
+ key: 2,
+ en: 'ABC',
+ keyCode: 50,
+ }, {
+ key: 3,
+ en: 'ABC',
+ keyCode: 51,
+ }, {
+ key: 4,
+ en: 'ABC',
+ keyCode: 52,
+ }, {
+ key: 5,
+ en: 'ABC',
+ keyCode: 53,
+ }, {
+ key: 6,
+ en: 'ABC',
+ keyCode: 54,
+ }, {
+ key: 7,
+ en: 'ABC',
+ keyCode: 55,
+ }, {
+ key: 8,
+ en: 'ABC',
+ keyCode: 56,
+ }, {
+ key: 9,
+ en: 'ABC',
+ keyCode: 57,
+ }, {
+ key: '.',
+ en: 'ABC',
+ keyCode: 190,
+ }, {
+ key: 0,
+ en: 'ABC',
+ keyCode: 48,
+ }, {
+ key: 'del',
+ en: 'DEL',
+ keyCode: 8,
+ }, ],
keyIndex: -1,
};
},
- props:{
+ props: {
passwrdType: {
type: String,
default: 'pay'
}
},
- methods:{
- show(){
+ methods: {
+ show() {
this.isShow = true;
},
- hide(){
+ hide() {
this.isShow = false;
},
/**
@@ -88,17 +89,17 @@
* @param {Object} item
* @param {Number} index
*/
- onKeyList(item,index){
- let KeyInfo = item;
+ onKeyList(item, index) {
+ let KeyInfo = item;
// 删除键
- if(KeyInfo.keyCode === 8 && this.keyIndex > -1){
+ if (KeyInfo.keyCode === 8 && this.keyIndex > -1) {
this.keyIndex--;
}
- this.$emit('KeyInfo',KeyInfo);
+ this.$emit('KeyInfo', KeyInfo);
// 不是删除键
- if(KeyInfo.keyCode != 8){
- console.log(this.keyIndex,'支付键盘');
- if( this.keyIndex = 4){
+ if (KeyInfo.keyCode != 8) {
+ console.log(this.keyIndex, '支付键盘');
+ if (this.keyIndex = 4) {
this.keyIndex = -1;
return;
}
@@ -112,4 +113,4 @@
+
\ No newline at end of file