@@ -2,12 +2,13 @@ | |||
import { msg, navTo } from "@/utils/utils"; | |||
import { OrderStatus } from "@/datas/enum"; | |||
import { OrderTypes } from "@/datas/enum"; | |||
import { getItem, setItem } from "@/utils/storage"; | |||
export default function useOrderSkip() { | |||
//根据订单类型 跳转到不同的订单详情页面 | |||
const gotoOrderDetails = (orderInfo) => { | |||
console.log('输出内容=====',orderInfo.orderType) | |||
console.log('输出内容=====', orderInfo.orderType) | |||
if (orderInfo.orderType === 'ISSUE') { | |||
navTo(`/subpackage/orders/order-details-new?id=${orderInfo.id}&appraise=${orderInfo.appraise}`); | |||
@@ -69,11 +70,17 @@ export default function useOrderSkip() { | |||
url = orderInfo.userType === 'PERSONAL_USER' ? '/subpackage/orders/opening-account-people' : '/subpackage/orders/opening-account-unit'; | |||
} else if (orderInfo.orderStep === OrderStatus["完成个人/单位信息上传"]) { | |||
url = '/subpackage/orders/car-release'; | |||
} else if (orderInfo.orderStep === OrderStatus.完成车辆信息上传) { | |||
} else if (orderInfo.orderStep === OrderStatus.完成车辆信息上传 && orderInfo.isValueCard != 2) { | |||
url = `/subpackage/orders/release-products`; | |||
} else if (orderInfo.orderStep === OrderStatus.完成车辆信息上传 && orderInfo.isValueCard == 2) { | |||
url = `/subpackage/orders/interestsList?orderId=${orderInfo.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`; | |||
// uni.redirectTo({ | |||
// url: `/subpackage/orders/choice-product?orderId=${val.orderId}`, | |||
// }); | |||
} else { | |||
url = `/subpackage/orders/essential-information`; | |||
} | |||
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'}`); | |||
} | |||
@@ -46,7 +46,6 @@ | |||
<view class="btn btn-primary" @click.stop="gotoEditUserOrUnitInfo(item)">继续申请</view> | |||
</view> | |||
<!-- 待支付 --> | |||
<view class="btns" v-if="item.orderStep == OrderStatus.待支付1"> | |||
<view class="btn btn-normal" @click.stop="gotoCancelOrder(item)">取消订单</view> | |||
@@ -115,6 +114,12 @@ | |||
<view class="btn btn-normal" @click.stop="gotoCheckLogistics(item)">查看物流</view> | |||
<view class="btn btn-primary" @click.stop="gotoConfirmReceipt(item)">确认收货</view> | |||
</view> | |||
<!-- '已支付' = 5, | |||
'已申请-退货' = 13, | |||
'退款中' = 15, | |||
'退款成功' = 16, | |||
'退货成功' = 17, | |||
'换货-设备已回收' = 18, --> | |||
</template> | |||
</view> | |||
@@ -16,7 +16,8 @@ | |||
<!-- 列表 --> | |||
<block v-for="(item,index) in ordersList" :key="index"> | |||
<!-- 新办订单 --> | |||
<order-list-item-new :item="item" v-if="item.orderType == 'ISSUE'" /> | |||
<!-- v-if="item.orderType == 'ISSUE'" --> | |||
<order-list-item-new :item="item" /> | |||
<!-- 卡签同时更换/更换卡/更换签订单 --> | |||
<!-- <order-list-item-card-sign :item="item" | |||
v-else-if="item.orderType == OrderTypes.同时换卡换签 || item.orderType == 'REPLACEMENT_CARD' |
@@ -242,17 +242,25 @@ | |||
}&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
}); | |||
} else { | |||
// uni.redirectTo({ | |||
// url: `/subpackage/orders/release-products?orderId=${state.form.orderId | |||
// }&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
// }); | |||
uni.redirectTo({ | |||
// url: `/subpackage/orders/choice-product?orderId=${state.form.orderId}`, | |||
url: `/subpackage/orders/release-products?orderId=${state.form.orderId | |||
}&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
}); | |||
} | |||
}else{ | |||
// 不签约 | |||
// uni.redirectTo({ | |||
// url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
// }); | |||
uni.redirectTo({ | |||
url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`, | |||
url:`/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}` | |||
}); | |||
// uni.redirectTo({ | |||
// url: `/subpackage/orders/release-products?orderId=${state.form.orderId}&clientFee=${getItem('clientFee')}&&id=${getItem('productId')}`, | |||
// }); | |||
} | |||
} | |||
}); |
@@ -33,13 +33,25 @@ | |||
</view> | |||
<view class="bottomTip"> 到底啦!敬请期待其他产品! </view> | |||
</view> | |||
<u-popup mode="center" v-model="state.choiceCardShow"> | |||
<u-popup mode="center" v-model="state.choiceCardShow" closeable> | |||
<view class="squire"> | |||
<u-radio-group> | |||
<u-radio :customStyle="{marginBottom: '8px'}" activeColor="#2CE242" | |||
<!-- <view class="mask-close"> | |||
<image :src="fileURL + 'image/index/icon-close.png'" class="icon-closed" @click="closeMask"></image> | |||
</view> --> | |||
<view class="mask-title" :style="{ '--color': color }">选择卡的类型</view> | |||
<u-radio-group wrap> | |||
<u-radio :customStyle="{marginBottom: '8px'}" activeColor="#2CE242" | |||
v-for="(item, index) in state.radiolist1" :key="index" :label="item.disabled" :name="item.name" | |||
@change="radioChange"> | |||
{{item.name}} | |||
<view style="width: 100%;display: flex;align-items: center;margin-bottom: 30rpx;"> | |||
<image | |||
style="width: 200rpx; height: 100rpx; border-radius: 20rpx;margin-right: 20rpx;" | |||
:src="`${$imgUrl}applyCard/product-bg.png`" | |||
mode="aspectFill" | |||
></image> | |||
{{item.name}} | |||
</view> | |||
</u-radio> | |||
</u-radio-group> | |||
</view> | |||
@@ -203,6 +215,11 @@ const state = reactive({ | |||
</script> | |||
<style lang="scss" scoped> | |||
::v-deep .u-radio{ | |||
display: flex !important; | |||
align-items: center !important; | |||
float: none !important; | |||
} | |||
::v-deep .u-icon__icon{ | |||
top: -4px !important; | |||
} | |||
@@ -362,6 +379,20 @@ const state = reactive({ | |||
border-radius: 10rpx; | |||
} | |||
.squire{ | |||
padding: 20rpx; | |||
padding: 30rpx 30rpx 30rpx 50rpx; | |||
} | |||
.mask-close { | |||
text-align: right; | |||
} | |||
.icon-closed { | |||
width: 48rpx; | |||
height: 48rpx; | |||
} | |||
.mask-title { | |||
text-align: center; | |||
font-size: 32rpx; | |||
color: $uni-text-color-black; | |||
margin-bottom: 50rpx; | |||
margin-top: 50rpx; | |||
} | |||
</style> |
@@ -300,7 +300,7 @@ const orderGoAction = () => { | |||
}; | |||
//订单状态舔砖 | |||
const orderStepGoActon = (val: any) => { | |||
console.log(val); | |||
console.log("订单状态舔砖",val); | |||
//完成填写基本信息 | |||
if (val.orderStep === 1) { | |||
if (state.data.userType === 1) { | |||
@@ -317,9 +317,18 @@ const orderStepGoActon = (val: any) => { | |||
url: `/subpackage/orders/car-release?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`, | |||
}); | |||
} else if (val.orderStep === 3) { | |||
uni.redirectTo({ | |||
url: `/subpackage/orders/choice-product?orderId=${val.orderId}`, | |||
}); | |||
uni.redirectTo({ | |||
url: `/subpackage/orders/choice-product?orderId=${val.orderId}`, | |||
}); | |||
// if(val.isValueCard==2){ | |||
// uni.redirectTo({ | |||
// url:`/subpackage/orders/interestsList?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}` | |||
// }); | |||
// }else{ | |||
// uni.redirectTo({ | |||
// url: `/subpackage/orders/choice-product?orderId=${val.orderId}`, | |||
// }); | |||
// } | |||
}else if (val.orderStep === 4) { | |||
uni.redirectTo({ | |||
url: `/subpackage/orders/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`, |
@@ -20,8 +20,11 @@ | |||
</view> | |||
</view> | |||
</view> | |||
<button type="default" class="button" @click="savaHandle()"> | |||
<!-- <button type="default" class="button" @click="savaHandle()"> | |||
开通服务 | |||
</button> --> | |||
<button type="default" class="button" @click="addInterestsList()"> | |||
加购权益 | |||
</button> | |||
</view> | |||
</template> | |||
@@ -65,7 +68,16 @@ | |||
state.id = option.id; | |||
console.log("option", option) | |||
}) | |||
const addInterestsList=()=>{ | |||
state.choiceValueComplete = []; | |||
for (var i = 0; i < state.choiceValue.length; i++) { | |||
state.choiceValueComplete.push(state.list[state.choiceValue[i]]) | |||
} | |||
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}`, | |||
}); | |||
} | |||
const getList = (id) => { | |||
const options = { | |||
type: 2, |
@@ -439,7 +439,7 @@ | |||
request(orderDetail, options).then((res) => { | |||
state.orderInfo = stringToJson(res.bizContent); | |||
state.orderInfo.appraise = appraise; | |||
console.log("state.orderInfo",state.orderInfo) | |||
//测试 | |||
// state.orderInfo.orderStep = OrderStatus.待激活; | |||
}) | |||
@@ -478,7 +478,7 @@ | |||
//是否有售后信息 | |||
const isHaveAfterSaleInfo = () =>{ | |||
if(isBlank(state.orderInfo.orderInfoExt.returnMode ?state.orderInfo.orderInfoExt.returnMode: null) && isBlank(state.orderInfo.orderInfoExt.exchangeMode ?state.orderInfo.orderInfoExt.exchangeMode: null)){ | |||
if(isBlank(state.orderInfo.orderInfoExt ?state.orderInfo.orderInfoExt.returnMode: null) && isBlank(state.orderInfo.orderInfoExt ?state.orderInfo.orderInfoExt.exchangeMode: null)){ | |||
return false; | |||
} | |||
return true; |
@@ -16,7 +16,7 @@ | |||
</view> | |||
</view> | |||
</view> | |||
加购权益列表 | |||
<view style="margin: 20rpx 0 10rpx 20rpx;font-size: 32rpx;">加购权益列表</view> | |||
<view class="add_all"> | |||
<uni-swipe-action> | |||
<uni-swipe-action-item class="del_item" v-for="(item,index) in state.list" |
@@ -18,12 +18,12 @@ | |||
</view> | |||
</view> | |||
<view class="action"> | |||
<!-- <button type="default" class="button" @click="savaHandle()"> | |||
<button type="default" class="button" @click="savaHandle()"> | |||
开通服务 | |||
</button> --> | |||
<button type="default" class="button" @click="addInterestsList()"> | |||
</button> | |||
<!-- <button type="default" class="button" @click="addInterestsList()"> | |||
加购权益 | |||
</button> | |||
</button> --> | |||
</view> | |||
</template> | |||
@@ -137,9 +137,12 @@ const savaHandle = () => { | |||
}); | |||
} else if (data.userState === "NORMAL") { | |||
msg("已开通车主服务"); | |||
uni.navigateTo({ | |||
url: `/subpackage/orders/product-detail?orderId=${state.orderId}&&clientFee=${state.clientFee}&&id=${state.id}`, | |||
}); | |||
// uni.navigateTo({ | |||
// url: `/subpackage/orders/product-detail?orderId=${state.orderId}&&clientFee=${state.clientFee}&&id=${state.id}`, | |||
// }); | |||
uni.navigateTo({ | |||
url:`/subpackage/orders/interestsList?orderId=${state.orderId}&&clientFee=${state.clientFee}&&id=${state.id}` | |||
}); | |||
} else if (data.userState === "PAUSED") { | |||
msg("已暂停车主服务"); | |||
return; |
@@ -19,6 +19,7 @@ const s4 = new SM4Util() | |||
//请求 | |||
export function request(code, options = {}) { | |||
// request(code,options) | |||
//公参 | |||
const Common = { | |||
agentId: "52010106004", |