扫码核销

huipay-h5
游梦婷 1 year ago
parent f552c2cb3d
commit 39deace8a1
  1. 3
      App.vue
  2. 8
      Utils/groupBuying.js
  3. 2
      pages/index/merchant-details/merchant-details.vue
  4. 8
      pages/welcome/welcome.vue
  5. 21
      subpackages/groupBuyingConfiguration/groupVerify/groupVerify.vue

@ -7,10 +7,13 @@
// url: 'https://pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
// redirectUrl:'https://pay.dctpay.com/cweb',
// hsgUrl:'https://hsg.dctpay.com',
//
url: 'https://gratia-pay.dctpay.com/crest',
imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com',
redirectUrl:'https://gratia-pay.dctpay.com/cweb',
hsgUrl:'https://hsgcs.dctpay.com',
userInfo: "",
openId: '',
h5code: '',

@ -3,7 +3,8 @@ import {
} from './Request.js';
let app = getApp();
let base = app.globalData.url;
let hsgCrest = app.globalData.hsgUrl+'/crest';
let hsgOrder = app.globalData.hsgUrl+'/order';
//新增门店图片
export const insertStoreImg = params => {
@ -105,4 +106,9 @@ export const editStoreExtMsg = params => {
//查询门店扩展信息
export const findStoreExtMsgByStoreId = params => {
return POST('POST', `${base}/storeGroup/findStoreExtMsgByStoreId`, params).then(res => res.data);
}
//查询获取团购内容code
export const getGroupContentByCode = params => {
return POST('GET', `${hsgOrder}/group/getGroupContentByCode`, params).then(res => res.data);
}

@ -93,7 +93,7 @@
<button class="btns mart10 margle10" @click.stop="jumpBindScan(item.id,1)">绑定二维码</button>
<button class="btns mart10 margle10" @click.stop="jumpBindScan(item.id,2)">二维码列表</button>
<button class="btns mart10 margle10" @click.stop="jumpService(item.id)">绑定设备</button>
<!-- <button class="btns mart10 margle10" @click.stop="jumpGroupService(item.id)">团购配置</button> -->
<button class="btns mart10 margle10" @click.stop="jumpGroupService(item.id)">团购配置</button>
<!-- <button class="btns mart10 marRight10" @click.stop="jumpService(item.id,2)">设备列表</button> -->
</view>
<view class="lin10"></view>

@ -16,8 +16,14 @@
}
},
onLoad(options) {
uni.redirectTo({
url: '/subpackages/groupBuyingConfiguration/groupVerify/groupVerify?orderKey='+7725856862418052,
})
return
// uni.reLaunch({
// url: '../tabBar/home/home'
// url: '/pages/login/login'
// })
// return

@ -1,18 +1,33 @@
<template>
<view>
========={{key}}========
========={{groupCode}}========
</view>
</template>
<script>
import {getGroupContentByCode} from '@/Utils/groupBuying.js';
export default {
data(){
return{
key:'',
groupCode:'',
}
},
onLoad(option){
this.key = option.orderKey;
if(option.orderKey){
this.groupCode = option.orderKey;
this.getGroupContentByCode();
}
},
methods:{
getGroupContentByCode(){
let params={
groupCode:this.groupCode
}
getGroupContentByCode(params).then(res=>{
})
},
}
}
</script>

Loading…
Cancel
Save