# 默认忽略的文件 | |||||
/shelf/ | |||||
/workspace.xml | |||||
# 基于编辑器的 HTTP 客户端请求 | |||||
/httpRequests/ |
const gotoOrderDetails = (orderInfo) => { | const gotoOrderDetails = (orderInfo) => { | ||||
console.log('输出内容=====', orderInfo) | console.log('输出内容=====', orderInfo) | ||||
if (orderInfo.orderType === 'ISSUE') { | if (orderInfo.orderType === 'ISSUE') { | ||||
navTo(`/subpackage/orders/order-details-new?id=${orderInfo.id}&appraise=${orderInfo.appraise}`); | |||||
// navTo(`/subpackage/orders/order-details-new?id=${orderInfo.id}&appraise=${orderInfo.appraise}`); | |||||
navTo(`/subpackage/orders/order_payment?orderId=${orderInfo.orderId}`); | |||||
} else if (orderInfo.orderType == OrderTypes.同时换卡换签 || | } else if (orderInfo.orderType == OrderTypes.同时换卡换签 || | ||||
orderInfo.orderType == 'REPLACEMENT_CARD' || orderInfo.orderType == 'REPLACEMENT_SIGNATURE') { | orderInfo.orderType == 'REPLACEMENT_CARD' || orderInfo.orderType == 'REPLACEMENT_SIGNATURE') { | ||||
url = '/subpackage/orders/car-release'; | url = '/subpackage/orders/car-release'; | ||||
} else if (orderInfo.orderStep === OrderStatus.完成车辆信息上传 && orderInfo.isValueCard != 1) { | } else if (orderInfo.orderStep === OrderStatus.完成车辆信息上传 && orderInfo.isValueCard != 1) { | ||||
url = `/subpackage/orders/release-products`; | url = `/subpackage/orders/release-products`; | ||||
} else if (orderInfo.orderStep === OrderStatus.完成车辆信息上传 && orderInfo.isValueCard == 1) { | |||||
} else if (orderInfo.orderStep === OrderStatus.待加购权益 && orderInfo.isValueCard == 1) { | |||||
url = `/subpackage/orders/interestsList?orderId=${orderInfo.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`; | url = `/subpackage/orders/interestsList?orderId=${orderInfo.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`; | ||||
// uni.redirectTo({ | // uni.redirectTo({ | ||||
// url: `/subpackage/orders/choice-product?orderId=${val.orderId}`, | // url: `/subpackage/orders/choice-product?orderId=${val.orderId}`, | ||||
// }); | // }); | ||||
} else { | } else { | ||||
// #ifdef MP-ALIPAY | |||||
url = `/subpackage/orders/sign-up`; | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
url = `/subpackage/orders/essential-information`; | url = `/subpackage/orders/essential-information`; | ||||
// #endif | |||||
} | } | ||||
console.log("url", url) | console.log("url", url) | ||||
navTo(`${url}?orderId=${orderInfo.orderId}&clientFee=${orderInfo.amount}&id=${orderInfo.productId}&vehiclePlateColor=${orderInfo.vehiclePlateColor}&fromOrder=true&type=${orderInfo.type}&userType=${orderInfo.userType === 'PERSONAL_USER' ? '1' : '2'}`); | navTo(`${url}?orderId=${orderInfo.orderId}&clientFee=${orderInfo.amount}&id=${orderInfo.productId}&vehiclePlateColor=${orderInfo.vehiclePlateColor}&fromOrder=true&type=${orderInfo.type}&userType=${orderInfo.userType === 'PERSONAL_USER' ? '1' : '2'}`); | ||||
navTo(`/subpackage/orders/order-evaluate-product?id=${orderInfo.id}&orderId=${orderInfo.orderId}`); | navTo(`/subpackage/orders/order-evaluate-product?id=${orderInfo.id}&orderId=${orderInfo.orderId}`); | ||||
} | } | ||||
//新办订单-去评价 业务办理满意度,业务员满意度 | //新办订单-去评价 业务办理满意度,业务员满意度 | ||||
const gotoEvaluateSalesman = (orderInfo : any) => { | const gotoEvaluateSalesman = (orderInfo : any) => { | ||||
navTo(`/subpackage/orders/order-evaluate-salesman?id=${orderInfo.id}&orderId=${orderInfo.orderId}`); | navTo(`/subpackage/orders/order-evaluate-salesman?id=${orderInfo.id}&orderId=${orderInfo.orderId}`); | ||||
} | } | ||||
//查看物流 | //查看物流 | ||||
const gotoCheckLogistics = (orderInfo : any) => { | const gotoCheckLogistics = (orderInfo : any) => { |
'完成填写基本信息' = 1, | '完成填写基本信息' = 1, | ||||
'完成个人/单位信息上传' = 2, | '完成个人/单位信息上传' = 2, | ||||
'完成车辆信息上传' = 3, | '完成车辆信息上传' = 3, | ||||
'待支付1' = 4, | |||||
'待加购权益' = 4, | |||||
'待支付2' = 26, | '待支付2' = 26, | ||||
'待支付3' = 27, | '待支付3' = 27, | ||||
'已支付' = 5, | '已支付' = 5, |
} | } | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
"path": "order_payment", | |||||
"style": { | |||||
"navigationBarTitleText": "订单支付", | |||||
"navigationStyle": "custom", | |||||
"mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦 | |||||
"transparentTitle": "always", | |||||
"titlePenetrate": "YES", | |||||
"defaultTitle": "" // 将导航栏默认的 title 置空 | |||||
} | |||||
} | |||||
}, | |||||
{ | |||||
"path": "mpng-payment", | |||||
"style": { | |||||
"navigationBarTitleText": "交通银行支付" | |||||
} | |||||
}, | |||||
{ | { | ||||
"path": "addAddress", | "path": "addAddress", | ||||
"style": { | "style": { | ||||
"navigationBarTitleText": "微信车主服务" | "navigationBarTitleText": "微信车主服务" | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
"path": "sign-up-ali", | |||||
"style": { | |||||
"navigationBarTitleText": "支付宝签约代扣" | |||||
} | |||||
}, | |||||
{ | { | ||||
"path": "interestsList", | "path": "interestsList", | ||||
"style": { | "style": { |
</view> | </view> | ||||
<!-- 待支付 --> | <!-- 待支付 --> | ||||
<view class="btns" v-if="item.orderStep == OrderStatus.待支付1"> | |||||
<view class="btns" v-if="item.orderStep == OrderStatus.待加购权益"> | |||||
<view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> | <view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> | ||||
<view class="btn btn-primary" @click.stop="gotoOrderDetails(item)">支付</view> | |||||
<view class="btn btn-primary" @click.stop="gotoEditUserOrUnitInfo(item)">加购权益</view> | |||||
</view> | </view> | ||||
<view class="btns" v-if="item.orderStep == OrderStatus.待支付2"> | <view class="btns" v-if="item.orderStep == OrderStatus.待支付2"> | ||||
<view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> | <view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> |
<view class="btn btn-primary" @click.stop="gotoConfirmReceipt(item)">确认收货 | <view class="btn btn-primary" @click.stop="gotoConfirmReceipt(item)">确认收货 | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<!-- 加购权益 --> | |||||
<view v-if="item.orderStep == OrderStatus.待加购权益" class="btns"> | |||||
<view class="btn btn-normal" @click="gotoCancelOrder(item)">取消订单</view> | |||||
<view class="btn btn-primary" @click="gotoPay(item)">加购权益</view> | |||||
</view> | |||||
<!-- 待支付 --> | <!-- 待支付 --> | ||||
<view v-if="item.orderStep == OrderStatus.待支付" class="btns"> | <view v-if="item.orderStep == OrderStatus.待支付" class="btns"> | ||||
<view class="btn btn-normal" @click="gotoCancelOrder(item)">取消订单</view> | <view class="btn btn-normal" @click="gotoCancelOrder(item)">取消订单</view> |
import { fileURL } from "@/datas/fileURL.js"; | import { fileURL } from "@/datas/fileURL.js"; | ||||
import navBar from "@/components/nav-bar/nav-bar2.vue"; | import navBar from "@/components/nav-bar/nav-bar2.vue"; | ||||
import navBgCar from "./components/nav-bg-car4"; | import navBgCar from "./components/nav-bg-car4"; | ||||
import { setItem } from "@/utils/storage"; | |||||
// import { setItem } from "@/utils/storage"; | |||||
import { msg } from "@/utils/utils"; | import { msg } from "@/utils/utils"; | ||||
import { | import { | ||||
checkOrderStatus, | checkOrderStatus, | ||||
wechatAppID, | wechatAppID, | ||||
wechatPayConfigId, | wechatPayConfigId, | ||||
wechatSecret, | wechatSecret, | ||||
addProduct, | |||||
queryDetails | |||||
} from "@/utils/network/api"; | } from "@/utils/network/api"; | ||||
import { | |||||
getItem, | |||||
StorageKeys, | |||||
setItem | |||||
} from "@/utils/storage"; | |||||
const imgURL = `${fileURL}image/`; | const imgURL = `${fileURL}image/`; | ||||
const state = reactive({ | const state = reactive({ | ||||
state.choiceValueComplete.push(state.list[state.choiceValue[i]]) | state.choiceValueComplete.push(state.list[state.choiceValue[i]]) | ||||
} | } | ||||
let items = encodeURIComponent(JSON.stringify(state.choiceValueComplete)); | let items = encodeURIComponent(JSON.stringify(state.choiceValueComplete)); | ||||
uni.navigateTo({ | |||||
url: `/subpackage/orders/product-detail?orderId=${state.orderId}&&clientFee=${state.clientFee}&&id=${state.id}&&data=${items}`, | |||||
console.log("state.openid", state); | |||||
const data = JSON.parse(decodeURIComponent(items)); | |||||
let productId = []; | |||||
state.productMoney = 0; | |||||
for (var i = 0; i < data.length; i++) { | |||||
data['isOpened'] = 'node'; | |||||
state.productMoney += data[i]['discountPrice'] / 100; | |||||
productId.push(data[i]['equityId']) | |||||
} | |||||
const options = { | |||||
type: 2, | |||||
data: { | |||||
orderId: state.orderId, //订单编号 | |||||
}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
console.log("options", options); | |||||
request(queryDetails, options).then((res) => { | |||||
state.detailsObj = stringToJson(res.bizContent); | |||||
console.log("state.detailsObj",state.detailsObj) | |||||
let allMoney = (parseFloat(state.detailsObj.product.oncePrice * 0.01) + parseFloat(state.productMoney)).toFixed(2) | |||||
const optionss = { | |||||
type: 2, | |||||
data: { | |||||
orderId: state.orderId, //订单编号 | |||||
openId: getItem(StorageKeys.OpenId), //操作人 id | |||||
equityId: productId.toString(), //权益Id | |||||
totalAmount: allMoney * 100, //总金额 | |||||
isRepeatPurchase: 0 | |||||
}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
console.log("optionss", optionss); | |||||
request(addProduct, optionss).then((res) => { | |||||
uni.navigateTo({ | |||||
url: `/subpackage/orders/order_payment?orderId=${state.orderId}&&clientFee=${state.clientFee}&&id=${state.id}&&data=${items}`, | |||||
}); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
const getList = (id) => { | const getList = (id) => { | ||||
const options = { | const options = { | ||||
type: 2, | type: 2, |
}; | }; | ||||
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str : string) => { | const strReplace = (str : string) => { | ||||
return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
// if (envs[process.env.NODE_ENV].baseUrl == "https://trial.etcjz.cn") { | |||||
// return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
// } else { | |||||
// return str.replace('http://100.64.2.113:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
// } | |||||
// let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
// imgUrl = str.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
// return imgUrl; | |||||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
console.log(imgUrl) | |||||
return imgUrl; | |||||
} | } | ||||
const getGlobalParam = () => { | const getGlobalParam = () => { | ||||
const data = getItem('globalParam') | const data = getItem('globalParam') | ||||
} else { | } else { | ||||
state.isEnableOCRData = true; | state.isEnableOCRData = true; | ||||
} | } | ||||
} | } | ||||
// 通过opneId查询用户信息 | // 通过opneId查询用户信息 | ||||
const queryUserMsg = () => { | const queryUserMsg = () => { |
/* 接口中常量 */ | /* 接口中常量 */ | ||||
// export const URL = "192.168.100.63"; | // export const URL = "192.168.100.63"; | ||||
export const URL = "testmedusa.etcjz.cn"; | |||||
export const URL = "192.168.124.6"; | |||||
/** | /** | ||||
* 配置信息,针对不同的平台进行配置 | * 配置信息,针对不同的平台进行配置 | ||||
*/ | */ | ||||
export const envs = { | export const envs = { | ||||
//开发环境配置 | //开发环境配置 | ||||
development: { | development: { | ||||
baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "http://192.168.100.63:8087", | |||||
// baseUrl: "https://testmedusa.etcjz.cn", | |||||
// baseUrl: "https://qtzl.etcjz.cn", | |||||
baseUrl: "http://192.168.124.6:8087", | |||||
// baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "http://192.168.100.158:8085", | // baseUrl: "http://192.168.100.158:8085", | ||||
}, | }, | ||||
//生产环境配置 | //生产环境配置 | ||||
production: { | production: { | ||||
// baseUrl: "http://192.168.100.63:8087", | |||||
baseUrl: "http://192.168.124.6:8087", | |||||
// baseUrl: "http://222.85.144.89:19002", | // baseUrl: "http://222.85.144.89:19002", | ||||
// baseUrl: "http://192.168.100.158:8085/html/", | // baseUrl: "http://192.168.100.158:8085/html/", | ||||
baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "https://testmedusa.etcjz.cn", | |||||
// baseUrl: "https://qtzl.etcjz.cn", | |||||
// baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "http://192.168.100.158:8085", | |||||
}, | }, | ||||
} | } | ||||
export const queryRefoundResult = "a11d756827f848f79de027a2ec1943c3" //储值卡圈存-半条流水-微信退费结果查询 | export const queryRefoundResult = "a11d756827f848f79de027a2ec1943c3" //储值卡圈存-半条流水-微信退费结果查询 | ||||
export const queryStoredQuan = "cc907ba2683e481d92398bf6c4d74c57" //储值卡圈存详情-多条件分页查询 | export const queryStoredQuan = "cc907ba2683e481d92398bf6c4d74c57" //储值卡圈存详情-多条件分页查询 | ||||
export const queryTrajectory = "d6414e83a2a34c4cb0f3da33a0e901bd" //我的上个月轨迹查询 | export const queryTrajectory = "d6414e83a2a34c4cb0f3da33a0e901bd" //我的上个月轨迹查询 | ||||
export const queryCardRecord = "2124c3086aa04faf84d70c01930cc90c" //用户储值卡充值记录-分页查询 | |||||
export const queryCardRecord = "2124c3086aa04faf84d70c01930cc90c" //用户储值卡充值记录-分页查询 | |||||
export const PAYDETECTION = "7d240e2034f94da399fb0e3775f87a62" //CSMSN-订单支付检测 | |||||
export const PAYMENTORDERAPPLY = "377421d6ed4f48a29575aa126838a4d2" //CSMSN-订单支付检测 |