浏览代码

9901

master
yangteng 9 个月前
父节点
当前提交
483429e7ef
共有 4 个文件被更改,包括 23 次插入20 次删除
  1. 7
    7
      pages.json
  2. 12
    11
      subpackage/orders/sign-up-ali-yd.vue
  3. 3
    1
      utils/network/api.js
  4. 1
    1
      utils/network/request.js

+ 7
- 7
pages.json 查看文件

{ {
//其他服务模块 //其他服务模块
"root": "subpackage/carPark", "root": "subpackage/carPark",
"plugins": {
"issuer-plugin": {
"version": "dev-91c0171ac789922cabbe091d3e64301c",
// "version": "1.0.2",
"provider": "wxa2d9acdd1054e69b"
}
},
// "plugins": {
// "issuer-plugin": {
// "version": "dev-2cf1829659c3c3bcc334d361179622aa",
// // "version": "1.0.2",
// "provider": "wxa2d9acdd1054e69b"
// }
// },
"pages": [ "pages": [
{ {
"path": "channelSing/select-car", "path": "channelSing/select-car",

+ 12
- 11
subpackage/orders/sign-up-ali-yd.vue 查看文件

aliPayConfigIdTwo, aliPayConfigIdTwo,
obtainUserId, obtainUserId,
infoQuery, infoQuery,
envs, etcQYAction
envs, signTest
} from "@/utils/network/api"; } from "@/utils/network/api";
const imgURL = `${fileURL}image/`; const imgURL = `${fileURL}image/`;
import { getItem } from "@/utils/storage";
const state = reactive({ const state = reactive({
openid: "", openid: "",
orderId: "", orderId: "",
type: 2, type: 2,
data: { data: {
payConfigId: aliPayConfigIdTwo, payConfigId: aliPayConfigIdTwo,
code: res.authCode
code: res.authCode,
mobile:getItem('mobile')
}, },
method: "POST", method: "POST",
showLoading: true, showLoading: true,
console.log('支付宝用户编号请求:', optionsUser) console.log('支付宝用户编号请求:', optionsUser)


request(obtainUserId, optionsUser).then((res) => { request(obtainUserId, optionsUser).then((res) => {
console.log('支付宝用户编号返回:', res)
const bizContent = stringToJson(res.bizContent);
console.log('支付宝用户编号返回:', res,res.bizContent)
// const bizContent = stringToJson(res.bizContent);
var data = { var data = {
orderId: state.orderId,
subOpenId: bizContent.openId,
outOrderId: state.orderId,
// subOpenId: bizContent.openId,
}; };
const options = { const options = {
type: 2, type: 2,
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(etcQYAction, options).then((res) => {
request(signTest, 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);
if (data.signStatus === "WAIT_SIGN") {
if (data.signStatusCode === "WAIT_SIGN") {
//待签约 //待签约
my.ap.navigateToAlipayPage({ my.ap.navigateToAlipayPage({
path: "https://render.alipay.com/p/yuyan/180020010001250649/sign.html?orderId=" + data.alipayOrderId path: "https://render.alipay.com/p/yuyan/180020010001250649/sign.html?orderId=" + data.alipayOrderId
}); });
} else if (data.signStatus === "SIGNED") {
} else if (data.signStatusCode === "SIGNED" || data.signStatusCode === "ACTIVED") {
//已签约 //已签约
// msg("已签约"); // msg("已签约");
confirm("您已完成签约,等待业务员审核发货", () => { confirm("您已完成签约,等待业务员审核发货", () => {
url: "/pages/order/order" url: "/pages/order/order"
}) })
}, "已完成签约", false); }, "已完成签约", false);
} else if (data.signStatus === "UNSIGN") {
} else if (data.signStatusCode === "UNSIGN") {
//已解约 //已解约
// msg("已解约"); // msg("已解约");
confirm( confirm(

+ 3
- 1
utils/network/api.js 查看文件

export const ndActivateVerification = "6aeefd1ec9c1469fae240b9dca3733a4" //诺德激活验证接口 export const ndActivateVerification = "6aeefd1ec9c1469fae240b9dca3733a4" //诺德激活验证接口
export const versionVerificationApi = "d4f9dd3758ca41a1baa4f191df728f8b" //卡签版本校验接口 export const versionVerificationApi = "d4f9dd3758ca41a1baa4f191df728f8b" //卡签版本校验接口
export const interceptNDApi = "d8445c8b368d4b57bb6774aa51b91bb0" //拦截诺德 export const interceptNDApi = "d8445c8b368d4b57bb6774aa51b91bb0" //拦截诺德
export const getOnLineUrlApi = "4b173ee5f550478ca22d4681fa9d8b42" //在线客服
export const getOnLineUrlApi = "4b173ee5f550478ca22d4681fa9d8b42" //在线客服

export const signTest = "880ae48d40704572bac521b2fa11e93e" //异地支付宝签约检测

+ 1
- 1
utils/network/request.js 查看文件

reject(res.data.errorMsg) reject(res.data.errorMsg)
return return
} else { } else {
console.log("res===",res)
let content = s4.decryptData_CBC(res, sm4Key) let content = s4.decryptData_CBC(res, sm4Key)
console.log('请求成功返回参数:', code, content.data) console.log('请求成功返回参数:', code, content.data)
resolve(content.data) resolve(content.data)

正在加载...
取消
保存