diff --git a/App.vue b/App.vue index 73847e1..263e37f 100644 --- a/App.vue +++ b/App.vue @@ -4,11 +4,11 @@ // url: 'http://192.168.3.4:9301/crest', // imgUrl: 'https://192.168.3.4:9301/filesystem/', //正式 - url: 'https://pay.dctpay.com/crest', - imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com', + // url: 'https://pay.dctpay.com/crest', + // imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com', //测试 - // url: 'https://gratia-pay.dctpay.com/crest', - // imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com', + url: 'https://gratia-pay.dctpay.com/crest', + imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com', userInfo: "", openId: '', h5code: '', @@ -57,6 +57,13 @@ } }); + const res = uni.getSystemInfoSync(); + uni.setStorageSync('platform', res.platform); + plus.runtime.getProperty(plus.runtime.appid, function(inf) { + uni.setStorageSync('version', inf.version); // 大版本号 + uni.setStorageSync('versionCode', inf.versionCode); // 小版本号 + }); + let uuid = plus.device.uuid; }, onShow: function() {}, diff --git a/pages.json b/pages.json index d022405..2b2f587 100644 --- a/pages.json +++ b/pages.json @@ -422,7 +422,16 @@ } } - ], + ,{ + "path" : "pages/index/scanCodeAllocation/scanCodeAllocation", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ], "subpackages": [{ "root": "subPages", diff --git a/pages/index/addService/addService.vue b/pages/index/addService/addService.vue index e901b1b..e8dce5d 100644 --- a/pages/index/addService/addService.vue +++ b/pages/index/addService/addService.vue @@ -134,7 +134,7 @@ "deviceType": this.serviceid, "deviceNum": "1" } - createDeviceOrder(datas).then(res => { + createDeviceOrder(datas).then(res => { if (res.return_code == '000000') { this.payOrder(res.return_data.orderNo); } else { diff --git a/pages/index/merchant-details/merchant-details.vue b/pages/index/merchant-details/merchant-details.vue index 0848af4..3d14d04 100644 --- a/pages/index/merchant-details/merchant-details.vue +++ b/pages/index/merchant-details/merchant-details.vue @@ -9,41 +9,41 @@ - + 账号 {{merDesInfo.account.loginName}} 商户ID {{merDesInfo.merNo}} - - - 商户名称 - {{merDesInfo.merName}} - + 商户名称 + {{merDesInfo.merName}} + + + 商户状态 正常 违规 - + 联系人 {{merDesInfo.account.userName}} - - - 手机号 - {{merDesInfo.regPhone}} + + + 手机号 + {{merDesInfo.regPhone}} - + 银行卡号 {{merDesInfo.merSettleAcct.bankCardNo}} - + 所属银行 {{merDesInfo.merSettleAcct.bankName}} diff --git a/pages/index/salesOrderList/salesOrderList.vue b/pages/index/salesOrderList/salesOrderList.vue index 4a3d464..52ba767 100644 --- a/pages/index/salesOrderList/salesOrderList.vue +++ b/pages/index/salesOrderList/salesOrderList.vue @@ -29,11 +29,17 @@ 申请数量: 1台 - + + 分配桌码 + + + 订单退款 + v-if="item.status == 3 && item.deviceType == 1"> 更换设备 @@ -66,7 +72,7 @@ ], //状态 pageNum: 1, pagesize: 15, - goodtyid: 2, //当前状态 + goodtyid: 2, //当前状态 isLoadMore: false, //是否加载中 serviceList: [] //设备列表˚ } @@ -98,7 +104,7 @@ methods: { //切换id switchid(item) { - this.goodtyid = item.id; + this.goodtyid = item.id; this.pageNum = 1; this.serviceList = []; this.getOrderList(); @@ -128,6 +134,21 @@ } }) }, + //扫码分配 + scanNo(item) { + // 允许从相机和相册扫码 + uni.scanCode({ + success: function(res) { + let scanCont = res.result.split('='); + let scanNo = scanCont[1]; + uni.navigateTo({ + url: '/pages/index/scanCodeAllocation/scanCodeAllocation?storename=' + + item.storeName + '&scanno=' + scanNo + '&orderno=' + item.orderNo + }) + } + }); + + }, //分配设备 jumpService(item) { if (this.goodtyid == 2) { diff --git a/pages/index/scanCodeAllocation/scanCodeAllocation.vue b/pages/index/scanCodeAllocation/scanCodeAllocation.vue new file mode 100644 index 0000000..9907c5a --- /dev/null +++ b/pages/index/scanCodeAllocation/scanCodeAllocation.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/pages/index/serviceApplicationList/serviceApplicationList.vue b/pages/index/serviceApplicationList/serviceApplicationList.vue index 3e88563..03d6b1d 100644 --- a/pages/index/serviceApplicationList/serviceApplicationList.vue +++ b/pages/index/serviceApplicationList/serviceApplicationList.vue @@ -77,13 +77,15 @@ }) }, // 添加设备 - jumpaddservice() { - uni.showToast({ - title:'请前往微信小程序申请设备' - }) - // uni.navigateTo({ - // url: '../addService/addService' + jumpaddservice() { + // uni.showToast({ + // title: '请前往微信小程序申请设备', + // duration: 2000, + // icon: 'none' // }) + uni.navigateTo({ + url: '../addService/addService' + }) }, //进入详情 jumpdetails(item) { @@ -134,4 +136,4 @@ position: fixed; right: 40rpx; } - + \ No newline at end of file