1.调试扫码进入银联

yj-dev
杨杰 3 years ago
parent 5601754066
commit 85075e3f7c
  1. 6
      Utils/Api.js
  2. 18
      pages.json
  3. 3
      pages/goods/coupon-details/coupon-details.vue
  4. 4
      pages/pay/success/success.vue
  5. 27
      pages/qianZhuPay/union-pay/union-pay.vue
  6. 67
      subPages/unionPay/unionPay.vue
  7. 46
      subPages/unionWeb/unionWeb.vue

@ -181,6 +181,10 @@ export const getCmsContent = params => {
return POST('GET', `${base}/cmsContent/getCmsContent`, params).then(res => res.data); return POST('GET', `${base}/cmsContent/getCmsContent`, params).then(res => res.data);
} }
//设置用户参数
export const setUserParam = params => {
return POST('GET', `${base}/highUser/setUserParam`, params).then(res => res.data);
}
/** /**
* 工会卡 * 工会卡
*/ */
@ -332,6 +336,8 @@ export const sendUserPass = params => {
// 话费 // 话费
//积分支付 //积分支付
export const orderToGoldPayunion = params => { export const orderToGoldPayunion = params => {

@ -462,7 +462,17 @@
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
},{
"path" : "pages/qianZhuPay/union-pay/union-pay",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
} }
}
], ],
"subpackages": [{ "subpackages": [{
"root": "subPages", "root": "subPages",
@ -554,6 +564,14 @@
"backgroundColorTop": "#0083f5", "backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
} ,{
"path" : "unionWeb/unionWeb",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
} }
] ]
}], }],

@ -26,6 +26,9 @@
</yy-video-player> </yy-video-player>
<image :src="imagewxUrl+imgadres2" mode="widthFix" class="mart10"></image> <image :src="imagewxUrl+imgadres2" mode="widthFix" class="mart10"></image>
</view> </view>
<view class="mart20 fotct fcorred font15 marb20 height20"
v-if="couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0">
预约订单已成功 门店会在24小时内联系您</view>
<view class="mart20 fotct fcorred font15 marb20 height20" <view class="mart20 fotct fcorred font15 marb20 height20"
v-if="!couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0 && couponDesInfo.couponInfo.couponSource == 3"> v-if="!couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0 && couponDesInfo.couponInfo.couponSource == 3">
请出示核销码(商户扫客户)</view> 请出示核销码(商户扫客户)</view>

@ -37,7 +37,9 @@
<view class="width100"> <view class="width100">
<view class="width90 mart10 fcor666" v-if="!couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0 && couponDesInfo.couponInfo.couponSource == 3">请出示核销码(商户扫客户)</view>
<view class="mart20 fotct fcorred font15 marb20" v-if="couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0">预约订单已成功 门店会在24小时内联系您</view>
<view class="mart20 fotct fcorred font15 marb20" v-if="!couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0 && couponDesInfo.couponInfo.couponSource == 3">请出示核销码(商户扫客户)</view>
<view class="mart20 fotct fcorred font15 marb20" v-if="!couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0 && couponDesInfo.couponInfo.couponSource != 3">请告知加油员用码商支付</view> <view class="mart20 fotct fcorred font15 marb20" v-if="!couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0 && couponDesInfo.couponInfo.couponSource != 3">请告知加油员用码商支付</view>
<view class="width90 mart20 fotct" v-if="!couponDesInfo.couponInfo.reserveStatus"> <view class="width90 mart20 fotct" v-if="!couponDesInfo.couponInfo.reserveStatus">
<image class="coupon-qr" :src="imageUrl+'couponCode/'+couponDesInfo.highUserCoupon.qrCodeImg"> <image class="coupon-qr" :src="imageUrl+'couponCode/'+couponDesInfo.highUserCoupon.qrCodeImg">

@ -0,0 +1,27 @@
<template>
<view>
<view>测试中</view>
</view>
</template>
<script>
export default {
data() {
return {
url: 'https://base.95516.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0'
}
},
onLoad() {
this.jumpurl();
},
methods: {
jumpurl(){
location.href = this.url;
}
}
}
</script>
<style>
</style>

@ -6,14 +6,19 @@
</template> </template>
<script> <script>
import {
setUserParam,
HandleCode
} from '../../Utils/Api.js';
let app = getApp();
export default { export default {
data() { data() {
return { return {
imagewxUrl: app.globalData.imageWxImg, imagewxUrl: app.globalData.imageWxImg,
imgadres: 'union1.jpg', imgadres: 'union1.jpg',
imgadres1: 'union2.jpg', imgadres1: 'union2.jpg',
codes:'', codes: '',
url:'https://base.95516.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0=&id=40' url: 'https://base.95516.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0'
} }
}, },
onLoad(options) { onLoad(options) {
@ -23,30 +28,56 @@
}, },
methods: { methods: {
// //
jumpunionpay(){ jumpunionpay() {
// uni.navigateTo({ // uni.navigateTo({
// url:'unionPay-entrance/unionPay-entrance' // url:'../unionWeb/unionWeb'
// })
// uni.navigateToMiniProgram({
// appId: '1900bc84497cab3b',
// path: '../../pages/goods/externalCoupon/externalCoupon',
// // extraData: {
// // 'data1': 'test'
// // },
// success(res) {
// //
// }
// }) // })
uni.showToast({ uni.showToast({
title: '暂未开放', title: '暂未开放',
duration: 2000, icon: 'none',
icon: "none" duration: 2000
}) })
// if (!app.globalData.userInfo) {
// uni.login({
// provider: 'weixin',
// success: function(loginRes) {
// app.globalData.code = loginRes.code;
// //
// let params = {
// code: app.globalData.code
// }
// HandleCode(params).then(res => {
// if (res.return_code == '000000') {
// app.globalData.openId = res.return_data.openId;
// uni.navigateTo({
// url: '../../pages/userLogin/userLogin'
// })
// }
// })
// }
// })
// return;
// }
// let params = {
// param: this.codes
// }
// setUserParam(params).then(res => {
// if (res.return_code == '000000') {
// location.href = this.url;
// } else {
// uni.showToast({
// title: res.return_msg,
// icon: 'none',
// duration: 2000
// })
// }
// })
}, },
// //
jumpMp(){ jumpMp() {
uni.reLaunch({ uni.reLaunch({
url: '../../pages/goods/externalCoupon/externalCoupon?id='+this.codes url: '../../pages/goods/externalCoupon/externalCoupon?id=' + this.codes
}) })
} }

@ -0,0 +1,46 @@
<template>
<view>
<web-view :src="url">
<cover-view class="duiba-back-btn" bindtap="handleBackTo">
<cover-image src="//yun.duiba.com.cn/saas/images/zjzy-icons/back-btn.png" @click="openurl()"></cover-image>
<button class="mart30 width90 height50 fcorfff backcor008 fotct btns font16"
@click="openurl">立即打开</button>
</cover-view>
</web-view>
<!-- <button open-type="launchApp" binderror="launchAppError">打开APP</button> -->
</view>
</template>
<script>
export default {
data() {
return {
url: 'https://unionpa.dctpay.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0='
}
},
methods: {
launchAppError(e) {
console.log(e.detail.errMsg)
},
openurl() {
location.href = this.url;
uni.showToast({
title: 'oooooo中',
icon: "none",
duration: 20000
});
}
}
}
</script>
<style lang="scss">
.duiba-back-btn {
position: fixed;
z-index: 999999;
top: 20rpx;
left: 0;
width: 100rpx;
height: 50rpx;
}
</style>
Loading…
Cancel
Save