my.getAuthCode({ | my.getAuthCode({ | ||||
scopes: 'auth_base', | scopes: 'auth_base', | ||||
success: res => { | success: res => { | ||||
console.log("支付宝授权码", res) | |||||
console.log("支付宝授权码", res.authCode) | |||||
const options = { | const options = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { | ||||
}, | }, | ||||
method: "POST", | method: "POST", | ||||
}; | }; | ||||
request(getZfbOpenid, options).then((res) => { | |||||
const result = stringToJson(res.bizContent); | |||||
if (result.data) { | |||||
setItem("zfbOpenId", result.data); | |||||
requestNew(getZfbOpenid, options).then((res) => { | |||||
const result = res; | |||||
console.log("getZfbOpenid",getZfbOpenid) | |||||
if (result.openId) { | |||||
setItem("zfbOpenId", result.openId); | |||||
} else { | } else { | ||||
setItem("zfbUserId", result.userId); | setItem("zfbUserId", result.userId); | ||||
} | } |
<view class="nav-bar" :class="scrollTop>navHeight?navbgClass:''" :style="{height:navHeight+'px',color:fontColor}"> | <view class="nav-bar" :class="scrollTop>navHeight?navbgClass:''" :style="{height:navHeight+'px',color:fontColor}"> | ||||
<view class="title" | <view class="title" | ||||
:style="{paddingTop:searchMarginTop+'px',height:searchHeight+'px',lineHeight:searchHeight+'px'}"> | :style="{paddingTop:searchMarginTop+'px',height:searchHeight+'px',lineHeight:searchHeight+'px'}"> | ||||
<block v-if="isBack && !isAlipay"> | |||||
<!-- <block v-if="isBack && !isAlipay"> --> | |||||
<block v-if="isBack"> | |||||
<image :src="navbgClass=='nav-bg'?`/static/image/icon-back.png`:'/static/image/icon-back-white.png'" :style="{height:searchHeight+'px',width:searchHeight+'px'}" | <image :src="navbgClass=='nav-bg'?`/static/image/icon-back.png`:'/static/image/icon-back-white.png'" :style="{height:searchHeight+'px',width:searchHeight+'px'}" | ||||
class="back" @click="back(title,type,userType,orderId)"></image> | class="back" @click="back(title,type,userType,orderId)"></image> | ||||
</block> | </block> |
<template> | |||||
<view class="nav-bar" :class="scrollTop>navHeight?navbgClass:''" :style="{height:navHeight+'px',color:fontColor}"> | |||||
<view class="title" | |||||
:style="{paddingTop:searchMarginTop+'px',height:searchHeight+'px',lineHeight:searchHeight+'px'}"> | |||||
<block v-if="isBack && !isAlipay"> | |||||
<image :src="`/static/image/icon-back-white.png`" :style="{height:searchHeight+'px',width:searchHeight+'px'}" | |||||
class="back" @click="back(title,type,userType,orderId)"></image> | |||||
</block> | |||||
<text>{{title}}</text> | |||||
</view> | |||||
</view> | |||||
<view class="blank" :style="{height:navHeight+'px'}"></view> | |||||
</template> | |||||
<script setup lang="ts"> | |||||
import { msg } from "@/utils/utils"; | |||||
import { | |||||
onMounted, | |||||
ref | |||||
} from "vue"; | |||||
const navHeight = ref(0) | |||||
const searchMarginTop = ref(0) | |||||
const searchHeight = ref(0) | |||||
const searchWidth = ref(0) | |||||
const isAlipay = ref(false) | |||||
onMounted(() => { | |||||
const type = uni.getSystemInfoSync().uniPlatform | |||||
isAlipay.value = type === 'mp-alipay' | |||||
const menuButtonInfo = uni.getMenuButtonBoundingClientRect() | |||||
const { | |||||
top, | |||||
width, | |||||
height, | |||||
right | |||||
} = menuButtonInfo | |||||
uni.getSystemInfo({ | |||||
success: (res) => { | |||||
const { | |||||
statusBarHeight | |||||
} = res | |||||
const margin = top - statusBarHeight | |||||
navHeight.value = (height + statusBarHeight + (margin * 2)) //导航栏总高 | |||||
searchMarginTop.value = statusBarHeight + margin // 状态栏 + 胶囊按钮边距 | |||||
searchHeight.value = height // 与胶囊按钮同高 | |||||
searchWidth.value = right - width // 胶囊按钮右边坐标 - 胶囊按钮宽度 = 按钮左边可使用宽度 | |||||
}, | |||||
}) | |||||
}) | |||||
const props = defineProps({ | |||||
title: { | |||||
type: String, | |||||
default: '' | |||||
}, | |||||
orderId: { | |||||
type: String, | |||||
default: '' | |||||
}, | |||||
type: { | |||||
type: String, | |||||
default: '' | |||||
}, | |||||
userType: { | |||||
type: String, | |||||
default: '' | |||||
}, | |||||
isBack: { | |||||
type: Boolean, | |||||
default: true | |||||
}, | |||||
scrollTop: { | |||||
type: Number, | |||||
default: 0 | |||||
}, | |||||
navbgClass: { | |||||
type: String, | |||||
default: 'nav-bg' | |||||
}, | |||||
fontColor: { | |||||
type: String, | |||||
default: '#000' | |||||
}, | |||||
}) | |||||
const back = () => { | |||||
uni.navigateBack({ | |||||
delta: 1 | |||||
}) | |||||
} | |||||
</script> | |||||
<style scoped> | |||||
.nav-bg { | |||||
background: #01243A; | |||||
} | |||||
.nav-bgXin { | |||||
background: #01243A; | |||||
color:#fff; | |||||
} | |||||
.blank { | |||||
width: 100%; | |||||
display: none; | |||||
} | |||||
.nav-bar { | |||||
position: fixed; | |||||
width: 100%; | |||||
z-index: 999; | |||||
} | |||||
.nav-bar .title { | |||||
text-align: center; | |||||
width: 100%; | |||||
font-size: 28rpx; | |||||
font-weight: bold; | |||||
position: relative; | |||||
color: white; | |||||
} | |||||
.back { | |||||
position: absolute; | |||||
left: 10rpx; | |||||
} | |||||
</style> |
}); | }); | ||||
onShow(() => { | onShow(() => { | ||||
console.log("一进页面就刷新", searchKeyWords.value) | console.log("一进页面就刷新", searchKeyWords.value) | ||||
// refreshList(true); | |||||
if(props.index==0){ | |||||
refreshList(true); | |||||
} | |||||
}) | }) | ||||
return { | return { | ||||
config, | config, |
"path": "pages/service/service", | "path": "pages/service/service", | ||||
"style": { | "style": { | ||||
"navigationBarTitleText": "九州ETC", | "navigationBarTitleText": "九州ETC", | ||||
// "navigationStyle": "custom", | |||||
"navigationBarBackgroundColor": "#01243A", | "navigationBarBackgroundColor": "#01243A", | ||||
"navigationBarTextStyle":"white", | |||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||||
"transparentTitle": "always", | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | |||||
"navigationBarTextStyle":"white" | |||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"style": { | "style": { | ||||
"navigationBarTitleText": "订单详情", | "navigationBarTitleText": "订单详情", | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
"navigationBarTextStyle":"white" | |||||
"navigationBarTextStyle":"white", | |||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||||
"transparentTitle": "always", | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | |||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"navigationBarTitleText": "ETC通行流水记录" | "navigationBarTitleText": "ETC通行流水记录" | ||||
} | } | ||||
}, | }, | ||||
// { | |||||
// "path": "search/select-card", | |||||
// "style": { | |||||
// "navigationBarTitleText": "选择卡号" | |||||
// } | |||||
// }, | |||||
{ | { | ||||
"path": "help/help", | "path": "help/help", | ||||
"style": { | "style": { | ||||
{ | { | ||||
//其他服务模块 | //其他服务模块 | ||||
"root": "subpackage/carPark", | "root": "subpackage/carPark", | ||||
// "plugins": { | |||||
// "issuer-plugin": { | |||||
// // "version": "dev-5d954bb916bb210d6c17397439d90f07", | |||||
// "version": "1.0.2", | |||||
// "provider": "wxa2d9acdd1054e69b" | |||||
// } | |||||
// }, | |||||
"plugins": { | |||||
"issuer-plugin": { | |||||
// "version": "dev-5d954bb916bb210d6c17397439d90f07", | |||||
"version": "1.0.2", | |||||
"provider": "wxa2d9acdd1054e69b" | |||||
} | |||||
}, | |||||
"pages": [ | "pages": [ | ||||
{ | { | ||||
"path": "etc/etcDeviceInfo", | "path": "etc/etcDeviceInfo", |
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="news-con"> | |||||
<view class="news-con" v-if="state.highMsgData.length>0"> | |||||
<view class="title-con"> | <view class="title-con"> | ||||
<text class='title-h'>高速快讯</text> | <text class='title-h'>高速快讯</text> | ||||
<view class="r-more" @click="$util.navTo('/subpackage/orders/moreHighMsg/moreHighMsg',true)"> | <view class="r-more" @click="$util.navTo('/subpackage/orders/moreHighMsg/moreHighMsg',true)"> | ||||
} from "@/datas/fileURL.js"; | } from "@/datas/fileURL.js"; | ||||
import { | import { | ||||
navTo, | navTo, | ||||
msg,hasLogin,confirm | |||||
msg,hasLogin,confirm,jumpOldMini | |||||
} from "@/utils/utils"; | } from "@/utils/utils"; | ||||
import { | import { | ||||
getCodeName | getCodeName | ||||
} | } | ||||
}else{ | }else{ | ||||
console.log("进来了") | |||||
if(item.title=='设备注销' || item.title=='设备升级'){ | |||||
// 跳转到运维 | |||||
jumpOldMini() | |||||
return; | |||||
} | |||||
if (item.path) { | if (item.path) { | ||||
navTo(item.path, true) | navTo(item.path, true) | ||||
} else if (item.handlePath) { | } else if (item.handlePath) { |
<template> | <template> | ||||
<view class='right-contaienr'> | <view class='right-contaienr'> | ||||
<scroll-view scroll-y="true" :style='{height:scrollHeight}'> | <scroll-view scroll-y="true" :style='{height:scrollHeight}'> | ||||
<view v-for="(item,index) in menuList" :key='index' class="item-box" @click="toNext(item.link)"> | |||||
<view v-for="(item,index) in menuList" :key='index' class="item-box" @click="toNext(item.link,item.name)"> | |||||
<view class="l-img bg-blue" :style="{ '--background': bgBlue }"> | <view class="l-img bg-blue" :style="{ '--background': bgBlue }"> | ||||
<image :src="`${fileURLList}${item.iconPath}`" mode="aspectFit" class='img' /> | <image :src="`${fileURLList}${item.iconPath}`" mode="aspectFit" class='img' /> | ||||
</view> | </view> | ||||
getCurrentInstance, | getCurrentInstance, | ||||
defineProps | defineProps | ||||
} from "vue"; | } from "vue"; | ||||
import {jumpOldMini} from "@/utils/utils"; | |||||
import { | import { | ||||
fileURL, fileURLList | fileURL, fileURLList | ||||
} from "@/datas/fileURL.js"; | } from "@/datas/fileURL.js"; | ||||
.exec(); | .exec(); | ||||
}) | }) | ||||
function toNext(url) { | |||||
uni.navigateTo({ | |||||
url: url, | |||||
}); | |||||
function toNext(url,name) { | |||||
if(name=='更换设备' || name=='卡签续期'||name=='设备升级' || name=='卡签注销'|| name=='挂失解挂' || name=='欠费补缴' || name=='发票服务'|| name=='月结单查询' || name=='业务审核查询'|| name=='ETC通行流水记录' || name=='黑名单查询'){ | |||||
jumpOldMini() | |||||
}else{ | |||||
uni.navigateTo({ | |||||
url: url, | |||||
}); | |||||
} | |||||
} | } | ||||
</script> | </script> | ||||
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
const data = res; | |||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { |
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
console.log('支付宝用户编号请求:', optionsUser) | console.log('支付宝用户编号请求:', optionsUser) | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res) | console.log('支付宝用户编号返回:', res) | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
console.log("data", data) | console.log("data", data) | ||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, |
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
console.log('支付宝用户编号请求:', optionsUser) | console.log('支付宝用户编号请求:', optionsUser) | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res) | console.log('支付宝用户编号返回:', res) | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
console.log("data", data) | console.log("data", data) | ||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, |
<!-- 订单详情-确认收货 --> | <!-- 订单详情-确认收货 --> | ||||
<template> | <template> | ||||
<navBar title="确认收货" :scrollTop="scrollTop"></navBar> | |||||
<navBar title="确认收货" navbgClass="nav-bgXin" fontColor='#fff' :scrollTop="scrollTop"></navBar> | |||||
<view class="bg-img"> | <view class="bg-img"> | ||||
<image :src="`${$imgUrl}order/bg-order.png`" mode="scaleToFill" class="icon"></image> | <image :src="`${$imgUrl}order/bg-order.png`" mode="scaleToFill" class="icon"></image> | ||||
</view> | </view> | ||||
</template> | </template> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import navBar from "@/components/nav-bar/nav-barNew.vue"; | |||||
import navBar from "@/components/nav-bar/nav-bar2.vue"; | |||||
import { reactive,ref } from "vue"; | import { reactive,ref } from "vue"; | ||||
import { onLoad,onPageScroll } from "@dcloudio/uni-app"; | import { onLoad,onPageScroll } from "@dcloudio/uni-app"; | ||||
import {requestNew } from "@/utils/network/request.js"; | import {requestNew } from "@/utils/network/request.js"; |
import { onLoad, onPageScroll } from "@dcloudio/uni-app"; | import { onLoad, onPageScroll } from "@dcloudio/uni-app"; | ||||
import { reactive, ref } from "vue"; | import { reactive, ref } from "vue"; | ||||
import { | import { | ||||
// PAYDETECTION, | |||||
PAYMENTORDERAPPLY, | PAYMENTORDERAPPLY, | ||||
aliPayConfigIdTwo, | aliPayConfigIdTwo, | ||||
obtainUserId, | obtainUserId, | ||||
getOpenId, | |||||
etcVehiclePlateVer,payApply,payQuery, | |||||
getOpenId,payApply,payQuery, | |||||
cancelPayQuery | cancelPayQuery | ||||
} from "@/utils/network/api.js"; | } from "@/utils/network/api.js"; | ||||
import { request,requestNew } from "@/utils/network/request.js"; | import { request,requestNew } from "@/utils/network/request.js"; | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
console.log('支付宝用户编号请求:', optionsUser) | console.log('支付宝用户编号请求:', optionsUser) | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res) | console.log('支付宝用户编号返回:', res) | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
console.log('支付下单请求:', optionsali) | console.log('支付下单请求:', optionsali) | ||||
request(PAYMENTORDERAPPLY, optionsali).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
requestNew(PAYMENTORDERAPPLY, optionsali).then((res) => { | |||||
const data = res; | |||||
console.log('支付下单返回:', data) | console.log('支付下单返回:', data) | ||||
my.tradePay({ | my.tradePay({ | ||||
// 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no | // 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no |
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
const data = res; | |||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { |
position: absolute; | position: absolute; | ||||
top: 370rpx; | top: 370rpx; | ||||
min-height: calc(100% - 370rpx); | min-height: calc(100% - 370rpx); | ||||
// background-color: #fff; | |||||
// padding:20rpx 30rpx 50rpx; | |||||
width: 100%; | |||||
box-sizing: border-box; | box-sizing: border-box; | ||||
border-radius: 12rpx; | border-radius: 12rpx; | ||||
padding: 0 30rpx 210rpx; | padding: 0 30rpx 210rpx; |
<!-- 订单详情-确认收货 --> | <!-- 订单详情-确认收货 --> | ||||
<template> | <template> | ||||
<navBar title="确认收货" :scrollTop="scrollTop"></navBar> | |||||
<navBar title="确认收货" navbgClass="nav-bgXin" fontColor='#fff' :scrollTop="scrollTop"></navBar> | |||||
<view class="bg-img"> | <view class="bg-img"> | ||||
<image :src="`${$imgUrl}order/bg-order.png`" mode="scaleToFill" class="icon"></image> | <image :src="`${$imgUrl}order/bg-order.png`" mode="scaleToFill" class="icon"></image> | ||||
</view> | </view> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
// import orderInfoItem from "./components/order-info-item"; | // import orderInfoItem from "./components/order-info-item"; | ||||
import navBar from "@/components/nav-bar/nav-barNew.vue"; | |||||
import navBar from "@/components/nav-bar/nav-bar2.vue"; | |||||
import { reactive,ref } from "vue"; | import { reactive,ref } from "vue"; | ||||
import { onLoad,onPageScroll } from "@dcloudio/uni-app"; | import { onLoad,onPageScroll } from "@dcloudio/uni-app"; | ||||
import {requestNew } from "@/utils/network/request.js"; | import {requestNew } from "@/utils/network/request.js"; |
<!-- 新办订单-订单详情 --> | <!-- 新办订单-订单详情 --> | ||||
<template> | <template> | ||||
<navBar title="订单详情" :scrollTop="scrollTop"></navBar> | |||||
<navBar title="订单详情" navbgClass="nav-bgXin" fontColor='#fff' :scrollTop="scrollTop"></navBar> | |||||
<view class="bg-img"> | <view class="bg-img"> | ||||
<image :src="`${$imgUrl}order/bg-order.png`" mode="scaleToFill" class="icon"></image> | <image :src="`${$imgUrl}order/bg-order.png`" mode="scaleToFill" class="icon"></image> | ||||
</view> | </view> | ||||
import { getETCStatusName, getOBUStatusName, msg, getOrderTypeName, getCarTypeName, getOrderTime, isBlank, timesDiff } from "@/utils/utils"; | import { getETCStatusName, getOBUStatusName, msg, getOrderTypeName, getCarTypeName, getOrderTime, isBlank, timesDiff } from "@/utils/utils"; | ||||
import { OrderStatus } from "@/datas/enum"; | import { OrderStatus } from "@/datas/enum"; | ||||
import {deviceType} from "@/utils/network/difference"; | import {deviceType} from "@/utils/network/difference"; | ||||
import navBar from "@/components/nav-bar/nav-barNew.vue"; | |||||
import navBar from "@/components/nav-bar/nav-bar2.vue"; | |||||
import { | import { | ||||
getCodeName | getCodeName | ||||
} from "@/datas/queryKey.js"; | } from "@/datas/queryKey.js"; |
import { onLoad, onPageScroll } from "@dcloudio/uni-app"; | import { onLoad, onPageScroll } from "@dcloudio/uni-app"; | ||||
import { reactive, ref } from "vue"; | import { reactive, ref } from "vue"; | ||||
import { | import { | ||||
// PAYDETECTION, | |||||
PAYMENTORDERAPPLY, | PAYMENTORDERAPPLY, | ||||
aliPayConfigIdTwo, | aliPayConfigIdTwo, | ||||
obtainUserId, | obtainUserId, | ||||
getOpenId, | |||||
etcVehiclePlateVer, payApply, payQuery | |||||
getOpenId, payApply, payQuery | |||||
} from "@/utils/network/api.js"; | } from "@/utils/network/api.js"; | ||||
import { request, requestNew } from "@/utils/network/request.js"; | import { request, requestNew } from "@/utils/network/request.js"; | ||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
const savaHandle = (val) => { | const savaHandle = (val) => { | ||||
console.log("val", val) | console.log("val", val) | ||||
if (state.isclick) { | if (state.isclick) { | ||||
// etcVehiclePlateVerRequest().then(() => { | |||||
if (val.payStatus == "SUCCESS") { | if (val.payStatus == "SUCCESS") { | ||||
return; | return; | ||||
} | } | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
console.log('支付宝用户编号请求:', optionsUser) | console.log('支付宝用户编号请求:', optionsUser) | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res) | console.log('支付宝用户编号返回:', res) | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
console.log('支付下单请求:', optionsali) | console.log('支付下单请求:', optionsali) | ||||
request(PAYMENTORDERAPPLY, optionsali).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
requestNew(PAYMENTORDERAPPLY, optionsali).then((res) => { | |||||
const data = res; | |||||
console.log('支付下单返回:', data) | console.log('支付下单返回:', data) | ||||
my.tradePay({ | my.tradePay({ | ||||
// 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no | // 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no | ||||
isclick: true,//防止重复点击 | isclick: true,//防止重复点击 | ||||
vehicleId: "" | vehicleId: "" | ||||
}); | }); | ||||
// 车牌校验 | |||||
const etcVehiclePlateVerRequest = () => { | |||||
let data = { | |||||
vehiclePlate: state.vehicleId.split('_')[0], | |||||
vehiclePlateColor: state.vehicleId.split('_')[1], | |||||
} | |||||
const options = { | |||||
type: 2, | |||||
data: data, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
return new Promise(async (resolve, reject) => { | |||||
const res = await request(etcVehiclePlateVer, options); | |||||
const data = stringToJson(res.bizContent); | |||||
resolve(data); | |||||
}).catch((error) => { | |||||
reject(error); | |||||
}); | |||||
} | |||||
</script> | </script> | ||||
<style lang="scss" scoped> | <style lang="scss" scoped> |
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
const data = res; | |||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { |
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { onLoad, onShow } from "@dcloudio/uni-app"; | import { onLoad, onShow } from "@dcloudio/uni-app"; | ||||
import { reactive } from "vue"; | import { reactive } from "vue"; | ||||
import { request } from "@/utils/network/request.js"; | |||||
import { request,requestNew } from "@/utils/network/request.js"; | |||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
import { fileURL } from "@/datas/fileURL.js"; | import { fileURL } from "@/datas/fileURL.js"; | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
console.log('支付宝用户编号请求:', optionsUser) | console.log('支付宝用户编号请求:', optionsUser) | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res) | console.log('支付宝用户编号返回:', res) | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { |
}; | }; | ||||
console.log('支付宝用户编号请求:', optionsUser) | console.log('支付宝用户编号请求:', optionsUser) | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res,res.bizContent) | console.log('支付宝用户编号返回:', res,res.bizContent) | ||||
// const bizContent = stringToJson(res.bizContent); | // const bizContent = stringToJson(res.bizContent); | ||||
var data = { | var data = { |
aliPayConfigIdTwo, | aliPayConfigIdTwo, | ||||
obtainUserId, | obtainUserId, | ||||
infoQuery, | infoQuery, | ||||
envs, etcQYAction | |||||
envs, userSign | |||||
} from "@/utils/network/api"; | } from "@/utils/network/api"; | ||||
const imgURL = `${fileURL}image/`; | const imgURL = `${fileURL}image/`; | ||||
}; | }; | ||||
console.log('支付宝用户编号请求:', optionsUser) | console.log('支付宝用户编号请求:', optionsUser) | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res) | console.log('支付宝用户编号返回:', res) | ||||
const bizContent = stringToJson(res.bizContent); | |||||
const bizContent = res; | |||||
var data = { | var data = { | ||||
orderId: state.orderId, | orderId: state.orderId, | ||||
subOpenId: bizContent.openId, | subOpenId: bizContent.openId, | ||||
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(etcQYAction, options).then((res) => { | |||||
requestNew(userSign, options).then((res) => { | |||||
console.log("res*******", res); | console.log("res*******", res); | ||||
const data = stringToJson(res.bizContent); | const data = stringToJson(res.bizContent); | ||||
console.log("data*******", data); | console.log("data*******", data); |
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { onLoad, onShow } from "@dcloudio/uni-app"; | import { onLoad, onShow } from "@dcloudio/uni-app"; | ||||
import { reactive } from "vue"; | import { reactive } from "vue"; | ||||
import { etcQYAction } from "@/utils/network/api.js"; | |||||
import { request } from "@/utils/network/request.js"; | |||||
import { request, requestNew } from "@/utils/network/request.js"; | |||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
import { fileURL } from "@/datas/fileURL.js"; | import { fileURL } from "@/datas/fileURL.js"; | ||||
import navBar from "@/components/nav-bar/nav-bar2.vue"; | |||||
import navBgCar from "./components/nav-bg-car4"; | |||||
import { setItem, StorageKeys } from "@/utils/storage"; | import { setItem, StorageKeys } from "@/utils/storage"; | ||||
import { msg, confirm, getOrderStatusName } from "@/utils/utils"; | |||||
import { msg, confirm} from "@/utils/utils"; | |||||
import { | import { | ||||
checkOrderStatus, | |||||
wechatAppID, | |||||
wechatSecret, | |||||
aliPayConfigIdTwo, | aliPayConfigIdTwo, | ||||
obtainUserId, | obtainUserId, | ||||
userSign | |||||
} from "@/utils/network/api"; | } from "@/utils/network/api"; | ||||
const imgURL = `${fileURL}image/`; | const imgURL = `${fileURL}image/`; | ||||
setItem('openId', option.openId); | setItem('openId', option.openId); | ||||
}); | }); | ||||
const addInterestsList = () => { | |||||
uni.navigateTo({ | |||||
url: `/subpackage/orders/interestsList?orderId=${state.orderId}&&clientFee=${state.clientFee}&&id=${state.id}` | |||||
}); | |||||
} | |||||
const savaHandle = () => { | const savaHandle = () => { | ||||
my.getAuthCode({ | my.getAuthCode({ | ||||
scopes: 'auth_user', | scopes: 'auth_user', | ||||
}; | }; | ||||
console.log('支付宝用户编号请求:', optionsUser) | console.log('支付宝用户编号请求:', optionsUser) | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res) | console.log('支付宝用户编号返回:', res) | ||||
const bizContent = stringToJson(res.bizContent); | |||||
const bizContent = res; | |||||
var data = { | var data = { | ||||
orderId: state.orderId, | orderId: state.orderId, | ||||
subOpenId: bizContent.openId, | subOpenId: bizContent.openId, | ||||
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(etcQYAction, options).then((res) => { | |||||
requestNew(userSign, options).then((res) => { | |||||
console.log("res*******", res); | console.log("res*******", res); | ||||
const data = stringToJson(res.bizContent); | |||||
const data = res; | |||||
console.log("data*******", data); | console.log("data*******", data); | ||||
if (data.signStatus === "WAIT_SIGN") { | if (data.signStatus === "WAIT_SIGN") { | ||||
//待签约 | //待签约 | ||||
color: #ff0000; | color: #ff0000; | ||||
line-height: 58rpx; | line-height: 58rpx; | ||||
} | } | ||||
</style> | |||||
</style> |
<template> | |||||
<view class="selectCar-box"> | |||||
<view v-if="state.cards.length>0" @click="choose(i,item)" class="item" v-for="(item,i) in state.cards" :key="i"> | |||||
<view class="iten-left"> | |||||
<image :src="`${$imgUrl}card2.png`" mode=""></image> | |||||
<text>{{item.cardId}}</text> | |||||
</view> | |||||
<view class="choose-item"> | |||||
<view class="active" v-if="flag==i"> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<view v-else class="flex"> | |||||
暂无该车辆卡信息 | |||||
</view> | |||||
</view> | |||||
</template> | |||||
<script setup> | |||||
import { | |||||
reactive, | |||||
ref | |||||
} from "vue" | |||||
import { | |||||
navTo | |||||
} from "@/utils/utils" | |||||
import { | |||||
onLoad, | |||||
onShow | |||||
} from "@dcloudio/uni-app"; | |||||
import { | |||||
cardList, | |||||
} from "@/utils/network/api.js"; | |||||
import { | |||||
request | |||||
} from "@/utils/network/request.js"; | |||||
import { | |||||
msg | |||||
} from "@/utils/utils"; | |||||
import { | |||||
getItem, | |||||
StorageKeys, | |||||
setItem | |||||
} from "@/utils/storage"; | |||||
import { | |||||
stringToJson | |||||
} from "@/utils/network/encryption"; | |||||
const state = reactive({ | |||||
cards: [], | |||||
vehicleId: "", | |||||
handleDate: "" | |||||
}); | |||||
onLoad((option) => { | |||||
state.handleDate = option.handleDate | |||||
state.vehicleId = option.vehicleId | |||||
getCardList(option.vehicleId) | |||||
}); | |||||
const flag = ref('0') | |||||
const choose = (i, item) => { | |||||
console.log(item, i) | |||||
console.log(item.vehicleId); | |||||
navTo( | |||||
`/subpackage/personal-center/search/etcFlowingWater?cardId=${item.cardId}&&handleDate=${state.handleDate}&&vehicleId=${state.vehicleId}` | |||||
) | |||||
} | |||||
const getCardList = (vehicleId) => { | |||||
var data = { | |||||
vehicleId: vehicleId | |||||
}; | |||||
const options = { | |||||
type: 2, | |||||
data: data, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
request(cardList, options).then((res) => { | |||||
console.log("152", stringToJson(res.bizContent)) | |||||
let result = stringToJson(res.bizContent); | |||||
state.cards = result.data ? result.data : null; | |||||
console.log(result.data); | |||||
}) | |||||
} | |||||
</script> | |||||
<style> | |||||
page { | |||||
width: 100%; | |||||
height: 100%; | |||||
background-color: #EEF7F7; | |||||
} | |||||
</style> | |||||
<style lang="scss" scoped> | |||||
.flex { | |||||
display: flex; | |||||
justify-content: center; | |||||
} | |||||
.selectCar-box { | |||||
// width: 100%; | |||||
height: 100%; | |||||
padding: 30rpx; | |||||
.item { | |||||
padding: 20rpx; | |||||
display: flex; | |||||
justify-content: space-between; | |||||
align-items: center; | |||||
height: 130rpx; | |||||
background: #FFFFFF; | |||||
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8); | |||||
border-radius: 20rpx; | |||||
margin-bottom: 30rpx; | |||||
.iten-left { | |||||
display: flex; | |||||
align-items: center; | |||||
image { | |||||
width: 150rpx; | |||||
height: 120rpx; | |||||
} | |||||
text { | |||||
margin-left: 20rpx; | |||||
font-size: 32rpx; | |||||
font-family: Noto Sans S Chinese; | |||||
font-weight: 400; | |||||
color: #333333; | |||||
} | |||||
} | |||||
.choose-item { | |||||
width: 44rpx; | |||||
height: 44rpx; | |||||
background: #FFFFFF; | |||||
border: 2rpx solid #00B38B; | |||||
border-radius: 50%; | |||||
margin-right: 20rpx; | |||||
display: flex; | |||||
justify-content: center; | |||||
align-items: center; | |||||
box-sizing: content-box; | |||||
} | |||||
.active { | |||||
width: 34rpx; | |||||
height: 34rpx; | |||||
background: #00B38B; | |||||
border-radius: 50%; | |||||
} | |||||
} | |||||
} | |||||
</style> |
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
const data = res; | |||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { |
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
request(obtainUserId, optionsUser).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
requestNew(obtainUserId, optionsUser).then((res) => { | |||||
const data = res; | |||||
const optionsali = { | const optionsali = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { |
<view class="activate" :style="{'--bgimg':`url(${$imgUrl}equity-bg3.png)`}">{{item.getStatus}}</view> | <view class="activate" :style="{'--bgimg':`url(${$imgUrl}equity-bg3.png)`}">{{item.getStatus}}</view> | ||||
</view> | </view> | ||||
<view v-for="(list, index) in item.equityInfoItems"> | <view v-for="(list, index) in item.equityInfoItems"> | ||||
<view class="go" v-if="item.equityType == 'COUPONS'"> | |||||
<view class="go" v-if="list.equityType == 'COUPONS'"> | |||||
<view> | <view> | ||||
<view class="title">权益名称:{{list.productName}}</view> | <view class="title">权益名称:{{list.productName}}</view> | ||||
<view class="title">卡券状态:<text style="color: #01243A;">卡卷状态:{{functBackName(list) == 'WAIT_ACTIVATED' ? '待激活' : functBackName(list) == 'WAIT_USE' ? '待领取' : functBackName(list) == 'USED' ? '已领取' : '已失效'}}</text></view> | |||||
<view class="title"><text style="color: #01243A;">卡卷状态:{{functBackName(list) == 'WAIT_ACTIVATED' ? '待激活' : functBackName(list) == 'WAIT_USE' ? '待领取' : functBackName(list) == 'USED' ? '已领取' : '已失效'}}</text></view> | |||||
</view> | </view> | ||||
<view class="btn" data-code="{{item}}" | <view class="btn" data-code="{{item}}" | ||||
@click.stop="copyCode(list,functBackName(list),item)" v-if="functBackName(list) != 'EXPIRED' && list && list.equityType !='ZFB'">{{functBackName(list) == 'WAIT_ACTIVATED' ? '去激活' : functBackName(list) == 'WAIT_USE' ? '立即领取' : | @click.stop="copyCode(list,functBackName(list),item)" v-if="functBackName(list) != 'EXPIRED' && list && list.equityType !='ZFB'">{{functBackName(list) == 'WAIT_ACTIVATED' ? '去激活' : functBackName(list) == 'WAIT_USE' ? '立即领取' : | ||||
item.vehiclePlate); | item.vehiclePlate); | ||||
// functBackName(list) = item.equityInfoItems[0].couponStatus == 'WAIT_GET' ? 'WAIT_ACTIVATED' : item.equityInfoItems[0].couponStatus | // functBackName(list) = item.equityInfoItems[0].couponStatus == 'WAIT_GET' ? 'WAIT_ACTIVATED' : item.equityInfoItems[0].couponStatus | ||||
item.getStatus = getStatusValue(item.status) | item.getStatus = getStatusValue(item.status) | ||||
console.log("item.getStatus===",item.getStatus) | |||||
item.redeemCodeStr = item.equityInfoItems[0].couponInfoItem && desensitize(item | item.redeemCodeStr = item.equityInfoItems[0].couponInfoItem && desensitize(item | ||||
.equityInfoItems[0].couponInfoItem.redeemCode) | .equityInfoItems[0].couponInfoItem.redeemCode) | ||||
item.periodOfValidity = item.equityInfoItems[0].periodOfValidity ? item | item.periodOfValidity = item.equityInfoItems[0].periodOfValidity ? item | ||||
font-size: 26rpx; | font-size: 26rpx; | ||||
box-sizing: border-box; | box-sizing: border-box; | ||||
margin: 20rpx auto; | margin: 20rpx auto; | ||||
position: relative; | |||||
} | } | ||||
.btn{ | .btn{ | ||||
padding: 16rpx 24rpx; | padding: 16rpx 24rpx; |
}) | }) | ||||
} | } | ||||
// 权益支付下单 | // 权益支付下单 | ||||
const equityPaymentOrderRequest = (id) => { | |||||
state.id =id | |||||
// #ifdef MP-WEIXIN | |||||
uni.login({ | |||||
provider: "weixin", | |||||
success: function (e) { | |||||
const options1 = { | |||||
type: 2, | |||||
data: { | |||||
"jsCode": e.code | |||||
}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
requestNew(getOpenId, options1).then((res) => { | |||||
console.log("state.id",id) | |||||
const result = res; | |||||
const openidData = stringToJson(result.data); | |||||
console.log("openidData",openidData) | |||||
const options = { | |||||
type: 2, | |||||
data: { | |||||
id: id, | |||||
payType: "EQUITY", | |||||
wxOpenid: openidData.openid, | |||||
}, | |||||
method: 'POST', | |||||
showLoading: true, | |||||
} | |||||
requestNew(paymentequityapplyapp, options).then((res) => { | |||||
const data = res; | |||||
console.log("权益支付下单", data) | |||||
if (data.info == "购买权益记录已支付") { | |||||
uni.showModal({ | |||||
title: '提示', | |||||
content: data.info, | |||||
showCancel: false, | |||||
success: function (res) { | |||||
if (res.confirm) { | |||||
uni.navigateBack({ | |||||
delta: 2 | |||||
}) | |||||
} | |||||
} | |||||
}); | |||||
} else { | |||||
uni.requestPayment({ | |||||
provider: "wxpay", | |||||
orderInfo: "", | |||||
timeStamp: data.timestamp, | |||||
nonceStr: data.noncestr, | |||||
package: data.wxPackage ? data.wxPackage : "", | |||||
signType: data.signType, | |||||
paySign: data.sign, | |||||
success: function (e) { | |||||
console.log("支付成功", res); | |||||
// 权益支付检测 | |||||
equityPaymentTestRequest().then((item : any) => { | |||||
console.log("权益支付检测", data) | |||||
msg("权益产品购买成功") | |||||
// 重新查询一遍 | |||||
query() | |||||
}) | |||||
}, | |||||
fail: function (err) { | |||||
confirm(err, () => { }, "支付失败", false); | |||||
}, | |||||
}) | |||||
} | |||||
}) | |||||
}) | |||||
}, | |||||
}) | |||||
// #endif | |||||
// #ifdef MP-ALIPAY | |||||
my.getAuthCode({ | |||||
scopes: 'auth_base', | |||||
success: res => { | |||||
const optionsUser = { | |||||
type: 2, | |||||
data: { | |||||
payConfigId: aliPayConfigIdTwo, | |||||
code: res.authCode | |||||
}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
console.log('支付宝用户编号请求:', optionsUser) | |||||
request(obtainUserId, optionsUser).then((res) => { | |||||
console.log('支付宝用户编号返回:', res) | |||||
const data = stringToJson(res.bizContent); | |||||
console.log("data", data) | |||||
const optionsali = { | |||||
type: 2, | |||||
data: { | |||||
id: state.id, | |||||
payType: "EQUITY", | |||||
wxOpenid: data.openId, | |||||
}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
console.log('支付下单请求:', optionsali) | |||||
requestNew(paymentequityapplyapp, optionsali).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
console.log('支付下单返回:', data) | |||||
my.tradePay({ | |||||
// 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no | |||||
tradeNO: data.tranPackage, | |||||
success: res => { | |||||
console.log("支付成功", res); | |||||
if (res.resultCode != "6001") { | |||||
// 权益支付检测 | |||||
equityPaymentTestRequest().then((item : any) => { | |||||
console.log("权益支付检测", data) | |||||
msg("权益产品购买成功,到【我的】权益查看") | |||||
setTimeout(() => { | |||||
uni.navigateBack({ | |||||
delta: 2 | |||||
}) | |||||
}, 2000) | |||||
}) | |||||
} | |||||
// const equityPaymentOrderRequest = (id) => { | |||||
// state.id =id | |||||
// // #ifdef MP-WEIXIN | |||||
// uni.login({ | |||||
// provider: "weixin", | |||||
// success: function (e) { | |||||
// const options1 = { | |||||
// type: 2, | |||||
// data: { | |||||
// "jsCode": e.code | |||||
// }, | |||||
// method: "POST", | |||||
// showLoading: true, | |||||
// }; | |||||
// requestNew(getOpenId, options1).then((res) => { | |||||
// console.log("state.id",id) | |||||
// const result = res; | |||||
// const openidData = stringToJson(result.data); | |||||
// console.log("openidData",openidData) | |||||
// const options = { | |||||
// type: 2, | |||||
// data: { | |||||
// id: id, | |||||
// payType: "EQUITY", | |||||
// wxOpenid: openidData.openid, | |||||
// }, | |||||
// method: 'POST', | |||||
// showLoading: true, | |||||
// } | |||||
// requestNew(paymentequityapplyapp, options).then((res) => { | |||||
// const data = res; | |||||
// console.log("权益支付下单", data) | |||||
// if (data.info == "购买权益记录已支付") { | |||||
// uni.showModal({ | |||||
// title: '提示', | |||||
// content: data.info, | |||||
// showCancel: false, | |||||
// success: function (res) { | |||||
// if (res.confirm) { | |||||
// uni.navigateBack({ | |||||
// delta: 2 | |||||
// }) | |||||
// } | |||||
// } | |||||
// }); | |||||
// } else { | |||||
// uni.requestPayment({ | |||||
// provider: "wxpay", | |||||
// orderInfo: "", | |||||
// timeStamp: data.timestamp, | |||||
// nonceStr: data.noncestr, | |||||
// package: data.wxPackage ? data.wxPackage : "", | |||||
// signType: data.signType, | |||||
// paySign: data.sign, | |||||
// success: function (e) { | |||||
// console.log("支付成功", res); | |||||
// // 权益支付检测 | |||||
// equityPaymentTestRequest().then((item : any) => { | |||||
// console.log("权益支付检测", data) | |||||
// msg("权益产品购买成功") | |||||
// // 重新查询一遍 | |||||
// query() | |||||
// }) | |||||
// }, | |||||
// fail: function (err) { | |||||
// confirm(err, () => { }, "支付失败", false); | |||||
// }, | |||||
// }) | |||||
// } | |||||
// }) | |||||
// }) | |||||
// }, | |||||
// }) | |||||
// // #endif | |||||
// // #ifdef MP-ALIPAY | |||||
// my.getAuthCode({ | |||||
// scopes: 'auth_base', | |||||
// success: res => { | |||||
// const optionsUser = { | |||||
// type: 2, | |||||
// data: { | |||||
// payConfigId: aliPayConfigIdTwo, | |||||
// code: res.authCode | |||||
// }, | |||||
// method: "POST", | |||||
// showLoading: true, | |||||
// }; | |||||
// console.log('支付宝用户编号请求:', optionsUser) | |||||
// requestNew(obtainUserId, optionsUser).then((res) => { | |||||
// console.log('支付宝用户编号返回:', res) | |||||
// const data = res; | |||||
// console.log("data", data) | |||||
// const optionsali = { | |||||
// type: 2, | |||||
// data: { | |||||
// id: state.id, | |||||
// payType: "EQUITY", | |||||
// wxOpenid: data.openId, | |||||
// }, | |||||
// method: "POST", | |||||
// showLoading: true, | |||||
// }; | |||||
// console.log('支付下单请求:', optionsali) | |||||
// requestNew(paymentequityapplyapp, optionsali).then((res) => { | |||||
// const data = stringToJson(res.bizContent); | |||||
// console.log('支付下单返回:', data) | |||||
// my.tradePay({ | |||||
// // 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no | |||||
// tradeNO: data.tranPackage, | |||||
// success: res => { | |||||
// console.log("支付成功", res); | |||||
// if (res.resultCode != "6001") { | |||||
// // 权益支付检测 | |||||
// equityPaymentTestRequest().then((item : any) => { | |||||
// console.log("权益支付检测", data) | |||||
// msg("权益产品购买成功,到【我的】权益查看") | |||||
// setTimeout(() => { | |||||
// uni.navigateBack({ | |||||
// delta: 2 | |||||
// }) | |||||
// }, 2000) | |||||
// }) | |||||
// } | |||||
}, | |||||
fail: res => { | |||||
console.log("支付失败", res); | |||||
}, | |||||
}); | |||||
// }, | |||||
// fail: res => { | |||||
// console.log("支付失败", res); | |||||
// }, | |||||
// }); | |||||
}); | |||||
}); | |||||
}, | |||||
fail: err => { | |||||
console.log('my.getAuthCode 调用失败', err) | |||||
} | |||||
}); | |||||
// #endif | |||||
} | |||||
// }); | |||||
// }); | |||||
// }, | |||||
// fail: err => { | |||||
// console.log('my.getAuthCode 调用失败', err) | |||||
// } | |||||
// }); | |||||
// // #endif | |||||
// } | |||||
// 权益支付检测 | // 权益支付检测 | ||||
const equityPaymentTestRequest = () => { | |||||
const options = { | |||||
type: 2, | |||||
data: { | |||||
id: state.id, | |||||
}, | |||||
method: 'POST', | |||||
showLoading: true, | |||||
} | |||||
return new Promise(async (resolve, reject) => { | |||||
const res = await requestNew(payequitydetection, options); | |||||
const data = res; | |||||
resolve(data); | |||||
}).catch((error) => { | |||||
reject(error); | |||||
}); | |||||
} | |||||
// const equityPaymentTestRequest = () => { | |||||
// const options = { | |||||
// type: 2, | |||||
// data: { | |||||
// id: state.id, | |||||
// }, | |||||
// method: 'POST', | |||||
// showLoading: true, | |||||
// } | |||||
// return new Promise(async (resolve, reject) => { | |||||
// const res = await requestNew(payequitydetection, options); | |||||
// const data = res; | |||||
// resolve(data); | |||||
// }).catch((error) => { | |||||
// reject(error); | |||||
// }); | |||||
// } | |||||
</script> | </script> | ||||
<style> | <style> | ||||
page { | page { |
export const updateToken = "225aa780a91b40f0b44e7e5fe204fc9a"; //统一会员平台登录确认接口(用于换取openId和token) | export const updateToken = "225aa780a91b40f0b44e7e5fe204fc9a"; //统一会员平台登录确认接口(用于换取openId和token) | ||||
export const checkCode = "966"; //校验验证码 | export const checkCode = "966"; //校验验证码 | ||||
export const register = "52de4029940f4e03b18c3a0b8d64c2db"; //USER-无感注册登录(个人/企业) | export const register = "52de4029940f4e03b18c3a0b8d64c2db"; //USER-无感注册登录(个人/企业) | ||||
export const obtainUserId = "58760acb637245729e971597a1fb92c4"; //获取第三方用户标识 | |||||
/*地址管理*/ | /*地址管理*/ | ||||
export const addressQuery = "27"; //地址管理查询 | export const addressQuery = "27"; //地址管理查询 | ||||
export const addressToOrder = "531"; //CSMSN-卡签是否邮寄 -》更新地址订单 | export const addressToOrder = "531"; //CSMSN-卡签是否邮寄 -》更新地址订单 | ||||
/*下单CSMSN*/ | /*下单CSMSN*/ | ||||
export const etcVehiclePlateVer = "35"; //车牌校验 | |||||
export const etcCreatOrder = "6"; //CSMSN-创建订单 | |||||
export const searchOrder = "156"; //8.54.CSMSN-根据车辆ID、操作人、来源获取未完成办理订单 | export const searchOrder = "156"; //8.54.CSMSN-根据车辆ID、操作人、来源获取未完成办理订单 | ||||
export const etcOcrCard = "15"; //CSMSN-OCR识别身份证 | export const etcOcrCard = "15"; //CSMSN-OCR识别身份证 | ||||
export const etcCarOcrCard = "16"; //CSMSN-OCR识别行驶证 | export const etcCarOcrCard = "16"; //CSMSN-OCR识别行驶证 | ||||
export const etcUserCardInfoChange = "21"; // CSMSN-更改个人用户信息 | export const etcUserCardInfoChange = "21"; // CSMSN-更改个人用户信息 | ||||
export const etcCompanyCardInfoSubmit = "20"; // CSMSN-提交单位用户信息 | export const etcCompanyCardInfoSubmit = "20"; // CSMSN-提交单位用户信息 | ||||
export const etcCarCardInfoSubmit = "18"; // CSMSN-提交车辆信息 | export const etcCarCardInfoSubmit = "18"; // CSMSN-提交车辆信息 | ||||
export const exchangeApply = '888' //8.99.ASS-换货/换卡签申请接口 | |||||
export const exchangeProcess = '886' //8.101.ASS-换货/换卡签审核接口 | |||||
// export const exchangeApply = '888' //8.99.ASS-换货/换卡签申请接口 | |||||
// export const exchangeProcess = '886' //8.101.ASS-换货/换卡签审核接口 | |||||
//产品选择 | //产品选择 | ||||
export const etcQueryProduct = "f01002fa6ded4162afaec1139e503641"; //获取产品 根据客货类型获取 | export const etcQueryProduct = "f01002fa6ded4162afaec1139e503641"; //获取产品 根据客货类型获取 | ||||
//签约 | //签约 | ||||
export const etcOpenIdMember = "62"; //统一会员平台openId查询接口 | export const etcOpenIdMember = "62"; //统一会员平台openId查询接口 | ||||
export const etcQYAction = "23"; //签约接口 | |||||
/*******************蓝牙 start*************/ | /*******************蓝牙 start*************/ | ||||
/* 开卡 * 50->51->52->73->51*/ | /* 开卡 * 50->51->52->73->51*/ | ||||
export const cancelOrder = "7"; //取消订单 | export const cancelOrder = "7"; //取消订单 | ||||
export const cancelOrderNew = "7fba19ba5d354c0ea5c443f9b5c66cdf"; //取消订单(新) | export const cancelOrderNew = "7fba19ba5d354c0ea5c443f9b5c66cdf"; //取消订单(新) | ||||
export const receiveOrder = "155"; //订单完成收货 | export const receiveOrder = "155"; //订单完成收货 | ||||
// export const getLogistics = "30"; //获取所有的快递公司信息 | |||||
export const editOrderAddr = '164'; //订单修改收货地址 | export const editOrderAddr = '164'; //订单修改收货地址 | ||||
export const orderEvaluate = '169'; //评价订单 | export const orderEvaluate = '169'; //评价订单 | ||||
export const orderEvaluateTag = '170'; //获取服务评价标签 | export const orderEvaluateTag = '170'; //获取服务评价标签 | ||||
export const confirmSignCancellation = '897' //卡确认注销接口 | export const confirmSignCancellation = '897' //卡确认注销接口 | ||||
export const relieveCarId = '932' //车辆释放信息增加接口(解除车牌占用) | export const relieveCarId = '932' //车辆释放信息增加接口(解除车牌占用) | ||||
export const cckChangejzCard = '93' //8.106.ASS-储值卡转记账卡申请接口 | export const cckChangejzCard = '93' //8.106.ASS-储值卡转记账卡申请接口 | ||||
// export const cckChangejzCardJY = '92' //8.133.ASS-卡签注销验证接口 | |||||
export const cckChangejzCardJY = 'e730fdae15f542b09395ecb0f5ccbcb6' //8.133.ASS-卡签注销验证接口 | export const cckChangejzCardJY = 'e730fdae15f542b09395ecb0f5ccbcb6' //8.133.ASS-卡签注销验证接口 | ||||
export const cckChangejzCardInfo = '95' //8.107.ASS-储值卡转记账卡填写信息接口 | export const cckChangejzCardInfo = '95' //8.107.ASS-储值卡转记账卡填写信息接口 | ||||
export const queryTrajectory = "d6414e83a2a34c4cb0f3da33a0e901bd" //我的上个月轨迹查询 | export const queryTrajectory = "d6414e83a2a34c4cb0f3da33a0e901bd" //我的上个月轨迹查询 | ||||
export const queryCardRecord = "2124c3086aa04faf84d70c01930cc90c" //用户储值卡充值记录-分页查询 | export const queryCardRecord = "2124c3086aa04faf84d70c01930cc90c" //用户储值卡充值记录-分页查询 | ||||
export const PAYDETECTION = "7d240e2034f94da399fb0e3775f87a62" //CSMSN-订单支付检测 | export const PAYDETECTION = "7d240e2034f94da399fb0e3775f87a62" //CSMSN-订单支付检测 | ||||
export const PAYMENTORDERAPPLY = "377421d6ed4f48a29575aa126838a4d2" //CSMSN-订单支付检测 | |||||
export const businessApi = "b275644e586b447791eede4ad6a41640" //业务完成日志 | export const businessApi = "b275644e586b447791eede4ad6a41640" //业务完成日志 | ||||
export const inventoryEquipmentApi = "5570160d4b8d46408664b6c289de6b57" //库存设备统计 | export const inventoryEquipmentApi = "5570160d4b8d46408664b6c289de6b57" //库存设备统计 | ||||
// export const getOpenidApi = "53c0698b512a44539ea05cc88157e68b" //获取微信小程序openid | |||||
export const getAgreementApi = "a8b7a57c7e7546848c1c0cc4c3dfe19a" //根据订单编号获取渠道产品的补充协议(新) | export const getAgreementApi = "a8b7a57c7e7546848c1c0cc4c3dfe19a" //根据订单编号获取渠道产品的补充协议(新) | ||||
export const transferRecordApi = "323bc6e1f3304c83921155fc220e9e37" //过户记录查询 | export const transferRecordApi = "323bc6e1f3304c83921155fc220e9e37" //过户记录查询 | ||||
export const agreementConfirmApi = "96fa039a85f54655af06d980c8ddc057" //协议确认接口 | export const agreementConfirmApi = "96fa039a85f54655af06d980c8ddc057" //协议确认接口 | ||||
export const ETCProductStatusListQueryApi = "448e81a599fe49b5b7f90f4af3ecae06" //ETC产品状态名单查询 | export const ETCProductStatusListQueryApi = "448e81a599fe49b5b7f90f4af3ecae06" //ETC产品状态名单查询 | ||||
export const ETCProductStatusListQueryDetailsApi = "3b8fdabde0aa4db59be440cd3d688d72" //ETC产品状态名单查询详情 | export const ETCProductStatusListQueryDetailsApi = "3b8fdabde0aa4db59be440cd3d688d72" //ETC产品状态名单查询详情 | ||||
export const DataSynchronizationApi = "1ed5f05a48d24ee8985a4fa104e8ef3e" //订单数据同步到老系统接口 | export const DataSynchronizationApi = "1ed5f05a48d24ee8985a4fa104e8ef3e" //订单数据同步到老系统接口 | ||||
// export const isSubmitOrderApi = "3cec5ab7db63439186bda5a054c5fab7" //老中台-检测能否提交订单 | |||||
export const activationRecordApi = "1be22d30f08a4f10958a4b76dcfae6cf" //查询重新激活记录限制 | export const activationRecordApi = "1be22d30f08a4f10958a4b76dcfae6cf" //查询重新激活记录限制 | ||||
export const submitVehicleApi = "e35daf84891549afabcbf86b4ed7e2e3" //重新激活提交车辆信息 | export const submitVehicleApi = "e35daf84891549afabcbf86b4ed7e2e3" //重新激活提交车辆信息 | ||||
export const getEquityListApi = "a2656146d9c24c86b8ea7aabbe3dbf97" //获取全部加购权益列表 | export const getEquityListApi = "a2656146d9c24c86b8ea7aabbe3dbf97" //获取全部加购权益列表 | ||||
export const silentLoginApi = "abaf0013caa24dafad12b0f571e8ee40" // 无感登录 | export const silentLoginApi = "abaf0013caa24dafad12b0f571e8ee40" // 无感登录 | ||||
export const carMessageApi = "854899f6244049d69b6ff883f28dcb28" // 车辆信息上传带出车辆信息 | export const carMessageApi = "854899f6244049d69b6ff883f28dcb28" // 车辆信息上传带出车辆信息 | ||||
export const getZfbOpenid = "62f02a3fd5eb462d9541aa21b78bba06" // 获取支付宝Openid支付宝 | |||||
export const selectCarInfo = "/iaw/api/vehicleManage/query"; //车辆管理信息查询 | export const selectCarInfo = "/iaw/api/vehicleManage/query"; //车辆管理信息查询 | ||||
export const changeCarInfo = "/iaw/api/vehicleManage/update"; //车辆管理信息修改 | export const changeCarInfo = "/iaw/api/vehicleManage/update"; //车辆管理信息修改 | ||||
export const channelSingQueryApi = "/iaw/sign/wxsigninfo" | |||||
export const channelSingQueryApi = "/iaw/sign/wxsigninfo" | |||||
// 支付宝接口 | |||||
export const getZfbOpenid = "/iaw/alipay/system/getAlipayOpenId" // 获取支付宝Openid支付宝 | |||||
export const obtainUserId = "/iaw/trafficsupple/obtainuserid"; //获取第三方用户标识 | |||||
export const PAYMENTORDERAPPLY = "/iaw/issue/order/payApply" //支付申请 |
// 示例使用 | // 示例使用 | ||||
// const dateComparison = compareDates('2023-12-31'); | // const dateComparison = compareDates('2023-12-31'); | ||||
// console.log(dateComparison); | |||||
// console.log(dateComparison); | |||||
// 跳转运维小程序 | |||||
export function jumpOldMini() { | |||||
uni.navigateToMiniProgram({ | |||||
appId: "wx008c60533388527a", | |||||
path: `pages/main/serve/serve`, | |||||
envVersion: "release", | |||||
success(res) { | |||||
console.log('成功', res); | |||||
}, | |||||
fail(res) { | |||||
console.log('失败' + res); | |||||
}, | |||||
}); | |||||
} |