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 Целия файл

@@ -1849,13 +1849,13 @@
{
//其他服务模块
"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": [
{
"path": "channelSing/select-car",

+ 12
- 11
subpackage/orders/sign-up-ali-yd.vue Целия файл

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

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 = {
orderId: state.orderId,
subOpenId: bizContent.openId,
outOrderId: state.orderId,
// subOpenId: bizContent.openId,
};
const options = {
type: 2,
@@ -150,16 +151,16 @@
method: "POST",
showLoading: true,
};
request(etcQYAction, options).then((res) => {
request(signTest, options).then((res) => {
console.log("res*******", res);
const data = stringToJson(res.bizContent);
console.log("data*******", data);
if (data.signStatus === "WAIT_SIGN") {
if (data.signStatusCode === "WAIT_SIGN") {
//待签约
my.ap.navigateToAlipayPage({
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("已签约");
confirm("您已完成签约,等待业务员审核发货", () => {
@@ -167,7 +168,7 @@
url: "/pages/order/order"
})
}, "已完成签约", false);
} else if (data.signStatus === "UNSIGN") {
} else if (data.signStatusCode === "UNSIGN") {
//已解约
// msg("已解约");
confirm(

+ 3
- 1
utils/network/api.js Целия файл

@@ -308,4 +308,6 @@ export const oneOreTwo = "3e09b1199e854a91a4d3a9329e734b8d" //判断诺德订
export const ndActivateVerification = "6aeefd1ec9c1469fae240b9dca3733a4" //诺德激活验证接口
export const versionVerificationApi = "d4f9dd3758ca41a1baa4f191df728f8b" //卡签版本校验接口
export const interceptNDApi = "d8445c8b368d4b57bb6774aa51b91bb0" //拦截诺德
export const getOnLineUrlApi = "4b173ee5f550478ca22d4681fa9d8b42" //在线客服
export const getOnLineUrlApi = "4b173ee5f550478ca22d4681fa9d8b42" //在线客服

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

+ 1
- 1
utils/network/request.js Целия файл

@@ -265,7 +265,7 @@ export function request(code, options = {}, start = false) {
reject(res.data.errorMsg)
return
} else {
console.log("res===",res)
let content = s4.decryptData_CBC(res, sm4Key)
console.log('请求成功返回参数:', code, content.data)
resolve(content.data)

Loading…
Отказ
Запис