1.调试扫码进入银联

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

@ -180,7 +180,11 @@ export const getDredgeProvince = params => {
export const getCmsContent = params => {
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);
}
/**
* 工会卡
*/
@ -327,7 +331,9 @@ export const getAgentSalesPriceCount = params => {
//修改密码
export const sendUserPass = params => {
return POSTBREST('POST', `${brestBase}/secUser/sendUserPass`, params).then(res => res.data);
}
}

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

@ -25,7 +25,10 @@
<yy-video-player :auto-play="false" :url="imagewxUrl+imgadres3" :poster="poster" :show-back-btn="true">
</yy-video-player>
<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"
v-if="!couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0 && couponDesInfo.couponInfo.couponSource == 3">
请出示核销码(商户扫客户)</view>

@ -36,8 +36,10 @@
</view>
<view class="width100">
<view class="width90 mart10 fcor666" v-if="!couponDesInfo.couponInfo.reserveStatus && couponDesInfo.highUserCoupon.status != 0 && couponDesInfo.couponInfo.couponSource == 3">请出示核销码(商户扫客户)</view>
<view class="width100">
<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="width90 mart20 fotct" v-if="!couponDesInfo.couponInfo.reserveStatus">
<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>

@ -1,59 +1,90 @@
<template>
<view>
<image class="width90" mode="widthFix" :src="imagewxUrl+imgadres" @click="jumpunionpay"></image>
<image class="width90" mode="widthFix" :src="imagewxUrl+imgadres1" @click="jumpMp"></image>
</view>
</template>
<script>
export default {
data() {
return {
imagewxUrl: app.globalData.imageWxImg,
imgadres: 'union1.jpg',
imgadres1: 'union2.jpg',
codes:'',
url:'https://base.95516.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0=&id=40'
}
},
onLoad(options) {
var arr1 = decodeURIComponent(options.q);
var arr2 = arr1.split('=');
this.codes = arr2[2];
},
methods: {
//
jumpunionpay(){
<template>
<view>
<image class="width90" mode="widthFix" :src="imagewxUrl+imgadres" @click="jumpunionpay"></image>
<image class="width90" mode="widthFix" :src="imagewxUrl+imgadres1" @click="jumpMp"></image>
</view>
</template>
<script>
import {
setUserParam,
HandleCode
} from '../../Utils/Api.js';
let app = getApp();
export default {
data() {
return {
imagewxUrl: app.globalData.imageWxImg,
imgadres: 'union1.jpg',
imgadres1: 'union2.jpg',
codes: '',
url: 'https://base.95516.com/s/wl/WebAPP/helpAgree/page/help/shareRutineHelp.html?params=eyJlbmNyeXB0QXBwSWQiOiIxOTAwYmM4NDQ5N2NhYjNiIiwidG9MaW5rIjoiaHR0cHMlM0ElMkYlMkZoc2cuZGN0cGF5LmNvbSUyRnVuaW9uUGF5JTJGIn0'
}
},
onLoad(options) {
var arr1 = decodeURIComponent(options.q);
var arr2 = arr1.split('=');
this.codes = arr2[2];
},
methods: {
//
jumpunionpay() {
// uni.navigateTo({
// url:'unionPay-entrance/unionPay-entrance'
// })
// uni.navigateToMiniProgram({
// appId: '1900bc84497cab3b',
// path: '../../pages/goods/externalCoupon/externalCoupon',
// // extraData: {
// // 'data1': 'test'
// // },
// success(res) {
// //
// }
// url:'../unionWeb/unionWeb'
// })
uni.showToast({
title: '暂未开放',
duration: 2000,
icon: "none"
icon: 'none',
duration: 2000
})
},
//
jumpMp(){
uni.reLaunch({
url: '../../pages/goods/externalCoupon/externalCoupon?id='+this.codes
})
}
}
}
</script>
<style>
// 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() {
uni.reLaunch({
url: '../../pages/goods/externalCoupon/externalCoupon?id=' + this.codes
})
}
}
}
</script>
<style>
</style>

@ -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