Selaa lähdekoodia

2023年7月6日18:20:20

yxb
wq 1 vuosi sitten
vanhempi
commit
e4ab1c9f44

+ 1
- 0
composables/order/useOrderSkip.ts Näytä tiedosto

//根据订单类型 跳转到不同的订单详情页面 //根据订单类型 跳转到不同的订单详情页面
const gotoOrderDetails = (orderInfo) => { const gotoOrderDetails = (orderInfo) => {
console.log('输出内容=====',orderInfo.orderType) console.log('输出内容=====',orderInfo.orderType)
//已完成
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}`);



+ 18
- 18
pages/index/index.vue Näytä tiedosto

onLoad(() => { onLoad(() => {


wx.login({ wx.login({
success: function(res){
console.log('输出内容========',res)
success: function (res) {
console.log('输出内容========', res)
} }
}) })
// //调用方式 // //调用方式
// request('eeb51c66bcda48dc9dbb5997323a11ed', {}).then((res) => { // request('eeb51c66bcda48dc9dbb5997323a11ed', {}).then((res) => {
// console.log("====", stringToJson(res.bizContent)); // console.log("====", stringToJson(res.bizContent));
// }) // })
// }) // })
// .catch((err) => {}); // .catch((err) => {});
getInfo() getInfo()
quanKeyAction().then((val: any) => {
quanKeyAction().then((val : any) => {
setItem('key', val.dictTypeAndItem) setItem('key', val.dictTypeAndItem)
}) })
highMsg(); //高速快讯 highMsg(); //高速快讯


onMounted(() => { onMounted(() => {
uni.getSystemInfo({ uni.getSystemInfo({
success: (e: any) => {
success: (e : any) => {
// console.log(e.statusBarHeight); // console.log(e.statusBarHeight);
statusBarHeight.value = e.statusBarHeight; statusBarHeight.value = e.statusBarHeight;
} }
}; };


//轮播跳转 //轮播跳转
const gotoLink = (item: any) => {
const gotoLink = (item : any) => {
console.log("555555555555555555", item); console.log("555555555555555555", item);
}; };


}; };


//全量枚举值查询 //全量枚举值查询
const quanKeyAction = (val: any) => {
const quanKeyAction = (val : any) => {
var data = { var data = {


}; };
} }




const toCreatOrder = (val: number) => {
console.log(typeof(val));
const toCreatOrder = (val : number) => {
console.log(typeof (val));
state.userType = val; state.userType = val;
// if (val === 1) { // if (val === 1) {
// // navTo(`/applyCard/essential-information?type=${state.type}&&userType=${state.userType}`) // // navTo(`/applyCard/essential-information?type=${state.type}&&userType=${state.userType}`)
closeMask(); closeMask();
}; };


const showMask = (val: any) => {
const showMask = (val : any) => {
state.type = val; //1 客车 2货车 state.type = val; //1 客车 2货车
isShowMask.value = true; isShowMask.value = true;
}; };
} }


//替换图片地址 //替换图片地址
const strReplace = (str: string) => {
const strReplace = (str : string) => {
return str.replace('192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl) return str.replace('192.168.100.63:8087', envs[process.env.NODE_ENV].baseUrl)
} }
// 高速快讯查询接口 // 高速快讯查询接口


//调用方式 //调用方式
request(queryHighMsg, options).then((res) => { request(queryHighMsg, options).then((res) => {
console.log("高速快讯查询接口", stringToJson(res.bizContent));
state.highMsgData = stringToJson(res.bizContent).data
})
.catch((err) => {});
console.log("高速快讯查询接口", stringToJson(res.bizContent));
state.highMsgData = stringToJson(res.bizContent).data
})
.catch((err) => { });
} }
const link = (item) => { const link = (item) => {
console.log("item", item) console.log("item", item)
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
</style>
</style>

+ 5
- 1
pages/order/components/order-list-item.vue Näytä tiedosto

<view class="search-btn" @click="doSearch">搜索</view> <view class="search-btn" @click="doSearch">搜索</view>
</view> </view>


<!-- 数据为空 -->
<empty-view :mode="config.emptyHint.mode" :content="config.emptyHint.hint" v-if="ordersList.length === 0" /> <empty-view :mode="config.emptyHint.mode" :content="config.emptyHint.hint" v-if="ordersList.length === 0" />
<template v-else> <template v-else>
<!-- 列表 --> <!-- 列表 -->
<block v-for="(item,index) in ordersList" :key="index"> <block v-for="(item,index) in ordersList" :key="index">
<!-- 新办订单 --> <!-- 新办订单 -->
<order-list-item-new :item="item" v-if="item.orderType == 'ISSUE'" /> <order-list-item-new :item="item" v-if="item.orderType == 'ISSUE'" />
<!-- 卡签同时更换/更换卡/更换签订单 --> <!-- 卡签同时更换/更换卡/更换签订单 -->
<order-list-item-card-sign :item="item" v-else-if="item.orderType == OrderTypes.同时换卡换签 || item.orderType == 'REPLACEMENT_CARD' || item.orderType == 'REPLACEMENT_SIGNATURE'" />
<order-list-item-card-sign :item="item"
v-else-if="item.orderType == OrderTypes.同时换卡换签 || item.orderType == 'REPLACEMENT_CARD'
|| item.orderType == 'REPLACEMENT_SIGNATURE'" />
<!-- 增补OBU订单 --> <!-- 增补OBU订单 -->
<order-list-item-obu :item="item" v-else-if="item.orderType == 'SUPPLEMENT_OBU'" /> <order-list-item-obu :item="item" v-else-if="item.orderType == 'SUPPLEMENT_OBU'" />
<!-- 公务车增补OBU订单 --> <!-- 公务车增补OBU订单 -->

+ 5
- 3
subpackage/orders/order-details-new.vue Näytä tiedosto

|| state.orderInfo.orderStep == OrderStatus['已申请-退货'] || isHaveAfterSaleInfo()" > || state.orderInfo.orderStep == OrderStatus['已申请-退货'] || isHaveAfterSaleInfo()" >
<!-- 售后退货--> <!-- 售后退货-->
<view v-if="state.orderInfo.orderStep == OrderStatus['已申请-退货'] || !isBlank(state.orderInfo.orderInfoExt.returnMode)">
<view v-if="state.orderInfo.orderStep == OrderStatus['已申请-退货'] || !isBlank(state.orderInfo.orderInfoExt && state.orderInfo.orderInfoExt.returnMode)">
<view class="d-row" v-if="state.orderInfo.XXX"> <view class="d-row" v-if="state.orderInfo.XXX">
<text class="d-label">售后单号:</text> <text class="d-label">售后单号:</text>
<text class="d-value">{{state.orderInfo.XXX ?? ''}}</text> <text class="d-value">{{state.orderInfo.XXX ?? ''}}</text>
import {OrderStatus} from "@/datas/enum"; import {OrderStatus} from "@/datas/enum";


const state = reactive({ const state = reactive({
orderInfo: {} as any, //订单信息
orderInfo: {
orderInfoExt: {}
} as any, //订单信息
showActiveOrder: false, //激活弹窗 showActiveOrder: false, //激活弹窗
}); });
//是否有售后信息 //是否有售后信息
const isHaveAfterSaleInfo = () =>{ const isHaveAfterSaleInfo = () =>{
if(isBlank(state.orderInfo.orderInfoExt.returnMode ?? null) && isBlank(state.orderInfo.orderInfoExt.exchangeMode ?? null)){
if(state.orderInfo.orderInfoExt && isBlank(state.orderInfo.orderInfoExt.returnMode ?? null) && isBlank(state.orderInfo.orderInfoExt.exchangeMode ?? null)){
return false; return false;
} }
return true; return true;

+ 59
- 64
subpackage/service/process/process.vue Näytä tiedosto

<template> <template>
<view class="wrapper"> <view class="wrapper">
<view class="flow-path"> <view class="flow-path">
<view >
<view>
<view class="flow-list"> <view class="flow-list">
<flow-path-list :options="state.flowList"></flow-path-list> <flow-path-list :options="state.flowList"></flow-path-list>
</view> </view>
</template> </template>


<script setup lang="ts"> <script setup lang="ts">
import {reactive} from "vue";
import { reactive } from "vue";
import flowPathList from "./components/flow-path-list.vue"; import flowPathList from "./components/flow-path-list.vue";
const state = reactive({ const state = reactive({
flowPathTabList: ["办理流程", "办理条件", "常见问题"], flowPathTabList: ["办理流程", "办理条件", "常见问题"],
flowList: [
//办理流程数据
flowList: [ //办理流程数据
{ {
title: "第一步:信息校验:", title: "第一步:信息校验:",
desc: "提交车牌号、车牌颜色、收货地址相关信息", desc: "提交车牌号、车牌颜色、收货地址相关信息",
{ {
title: "第五步:订单完成:", title: "第五步:订单完成:",
desc: "支付完成订单", desc: "支付完成订单",
},
],
}
]
}); });

</script> </script>


<style lang="scss"> <style lang="scss">
page{
page {
background: #eef7f7; background: #eef7f7;
} }

.flow-path { .flow-path {
padding: 20rpx 0rpx 20rpx;
.scroll-view {
white-space: nowrap;
// position: sticky;
top: 0;
}
.top-menu {
display: flex;
}
.top-menu .tab {
font-size: 28rpx;
padding: 38rpx 30rpx;
color: #666666;
position: relative;
}
.top-menu .active .border {
position: absolute;
width: 70%;
height: 16rpx;
background: #00b38b;
opacity: 0.3;
bottom: 40rpx;
z-index: -99;
left: 15%;
border-radius: 6rpx;
}
.top-menu .active {
font-weight: bold;
font-size: 32rpx;
color: #0d0f26;
}
.top-menu .active::before {
width: 100%;
height: 16rpx;
background: #00b38b;
opacity: 0.3;
}
.flow-list {
margin: 0rpx 30rpx;
min-height: 700rpx;
background: #ffffff;
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
border-radius: 20rpx;
padding: 55rpx 30rpx 30rpx;
}
padding: 20rpx 0rpx 20rpx;

.scroll-view {
white-space: nowrap;
// position: sticky;
top: 0;
} }

.top-menu {
display: flex;
}

.top-menu .tab {
font-size: 28rpx;
padding: 38rpx 30rpx;
color: #666666;
position: relative;
}

.top-menu .active .border {
position: absolute;
width: 70%;
height: 16rpx;
background: #00b38b;
opacity: 0.3;
bottom: 40rpx;
z-index: -99;
left: 15%;
border-radius: 6rpx;
}

.top-menu .active {
font-weight: bold;
font-size: 32rpx;
color: #0d0f26;
}

.top-menu .active::before {
width: 100%;
height: 16rpx;
background: #00b38b;
opacity: 0.3;
}

.flow-list {
margin: 0rpx 30rpx;
min-height: 700rpx;
background: #ffffff;
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
border-radius: 20rpx;
padding: 55rpx 30rpx 30rpx;
}
}
</style> </style>

Loading…
Peruuta
Tallenna