}); | }); | ||||
this.globalParam(); | this.globalParam(); | ||||
//获取微信小程序openid | //获取微信小程序openid | ||||
// #ifdef MP-WEIXIN | |||||
uni.login({ | uni.login({ | ||||
provider: "weixin", | provider: "weixin", | ||||
success: function(e) { | success: function(e) { | ||||
}); | }); | ||||
}, | }, | ||||
}); | }); | ||||
// #endif | |||||
uni.setStorageSync("extraData", option.referrerInfo.extraData); | uni.setStorageSync("extraData", option.referrerInfo.extraData); | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
//获取小程序更新机制兼容 | //获取小程序更新机制兼容 | ||||
method: "POST", | method: "POST", | ||||
showLoading: true, | showLoading: true, | ||||
}; | }; | ||||
// #ifdef MP-WEIXIN | |||||
request(getGlobalParam, options).then((res) => { | request(getGlobalParam, options).then((res) => { | ||||
const result = stringToJson(res.bizContent); | const result = stringToJson(res.bizContent); | ||||
setItem('globalParam', result.data) | setItem('globalParam', result.data) | ||||
console.log("配置", result); | console.log("配置", result); | ||||
}); | }); | ||||
// #endif | |||||
}, | }, | ||||
navTo(`/subpackage/orders/order-details-new?id=${orderInfo.id}&appraise=${orderInfo.appraise}`); | navTo(`/subpackage/orders/order-details-new?id=${orderInfo.id}&appraise=${orderInfo.appraise}`); | ||||
// #endif | // #endif | ||||
// #ifdef MP-ALIPAY | // #ifdef MP-ALIPAY | ||||
navTo(`/subpackage/orders/order_payment?orderId=${orderInfo.orderId}`); | |||||
navTo(`/subpackage/orders/order_payment?orderId=${orderInfo.orderId}&isValueCard=${orderInfo.isValueCard}`); | |||||
// #endif | // #endif | ||||
} 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') { | ||||
navTo(`/subpackage/orders/order-details-card-sign?id=${orderInfo.id}&orType=${orderInfo.orderType}`); | navTo(`/subpackage/orders/order-details-card-sign?id=${orderInfo.id}&orType=${orderInfo.orderType}`); |
request(sendCode, options) | request(sendCode, options) | ||||
.then((res) => { | .then((res) => { | ||||
msg("验证码发送成功!"); | msg("验证码发送成功!"); | ||||
navTo(`/login/forget-pwd-step2?phone=${state.phone}`); | |||||
// #ifdef MP-WEIXIN | |||||
navTo(`/login/forget-pwd-step2?phone=${state.phone}`); | |||||
// #endif | |||||
// #ifdef MP-ALIPAY | |||||
navTo(`/login/forget-pwd-step2-ali?phone=${state.phone}`); | |||||
// #endif | |||||
}) | }) | ||||
.catch((err) => { | .catch((err) => { | ||||
console.log(err); | console.log(err); |
request(sendCode, options) | request(sendCode, options) | ||||
.then((res) => { | .then((res) => { | ||||
msg("验证码发送成功!"); | msg("验证码发送成功!"); | ||||
// #ifdef MP-WEIXIN | |||||
navTo(`/login/register-step2?phone=${state.phone}`); | navTo(`/login/register-step2?phone=${state.phone}`); | ||||
// #endif | |||||
// #ifdef MP-ALIPAY | |||||
navTo(`/login/register-step2-ali?phone=${state.phone}`); | |||||
// #endif | |||||
}) | }) | ||||
.catch((err) => { | .catch((err) => { | ||||
console.log(err); | console.log(err); |
<swiper class="swiper" circular :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay" | <swiper class="swiper" circular :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay" | ||||
:interval="swiper.interval" :duration="swiper.duration" | :interval="swiper.interval" :duration="swiper.duration" | ||||
indicator-active-color="rgba(0, 179, 139, 1)" :easing-function="swiper.easing"> | indicator-active-color="rgba(0, 179, 139, 1)" :easing-function="swiper.easing"> | ||||
<block v-if="state.swiperList.length >0" v-for="item in state.swiperList" :key="item.id"> | |||||
<!-- <block v-if="state.swiperList.length >0" v-for="item in state.swiperList" :key="item.id"> | |||||
<swiper-item class="swiper-item" @click="gotoLink(item)"> | <swiper-item class="swiper-item" @click="gotoLink(item)"> | ||||
<image :src="item.imgUrl?strReplace(item.imgUrl):fileURL + 'image/index/banner-1.png'" | <image :src="item.imgUrl?strReplace(item.imgUrl):fileURL + 'image/index/banner-1.png'" | ||||
mode="widthFix"></image> | mode="widthFix"></image> | ||||
</swiper-item> | </swiper-item> | ||||
</block> | |||||
<block v-else> | |||||
</block> --> | |||||
<block > | |||||
<swiper-item class="swiper-item"> | <swiper-item class="swiper-item"> | ||||
<image :src="fileURL + 'image/index/banner-1.png'" mode="widthFix"></image> | <image :src="fileURL + 'image/index/banner-1.png'" mode="widthFix"></image> | ||||
</swiper-item> | </swiper-item> | ||||
</view> | </view> | ||||
<view class="text">账单查询</view> | <view class="text">账单查询</view> | ||||
</view> | </view> | ||||
<view class="item-box" @click="$util.navTo('/subpackage/orders/Invoice-mannager',true)"> | |||||
<!-- <view class="item-box" @click="$util.navTo('/subpackage/orders/Invoice-mannager',true)"> | |||||
<view class="item item-3"> | <view class="item item-3"> | ||||
<image :src="fileURL + 'image/index/item-3.png'" mode="aspectFill" /> | <image :src="fileURL + 'image/index/item-3.png'" mode="aspectFill" /> | ||||
</view> | </view> | ||||
<view class="text">通行发票</view> | <view class="text">通行发票</view> | ||||
</view> --> | |||||
<view class="item-box" @click="$util.navTo('/subpackage/after-sale/activation-once-again/select-car',true)"> | |||||
<view class="item item-3"> | |||||
<image :src="fileURL + '20230511/24e179d44e2d4e5687339bff_obucxjh.png'" mode="aspectFill" /> | |||||
</view> | |||||
<view class="text">重新激活</view> | |||||
</view> | </view> | ||||
<view class="item-box" | <view class="item-box" | ||||
@click="$util.navTo('/subpackage/personal-center/install-activation-order',true)"> | @click="$util.navTo('/subpackage/personal-center/install-activation-order',true)"> | ||||
</view> | </view> | ||||
<!-- 消息滚动显示 --> | <!-- 消息滚动显示 --> | ||||
<view class="backlog-notice"> | |||||
<view v-if="false" class="backlog-notice"> | |||||
<notice-bar :noticeList="state.noticeList" @noticeClick="goOrder(3)"></notice-bar> | <notice-bar :noticeList="state.noticeList" @noticeClick="goOrder(3)"></notice-bar> | ||||
</view> | </view> | ||||
highMsg(); //高速快讯 | highMsg(); //高速快讯 | ||||
processeCondition();//办理条件 | processeCondition();//办理条件 | ||||
commonQuestion(); | commonQuestion(); | ||||
doSomething();//代办事项 | |||||
// doSomething();//代办事项 | |||||
}) | }) | ||||
onMounted(() => { | onMounted(() => { | ||||
.catch((err) => { | .catch((err) => { | ||||
console.log(err); | console.log(err); | ||||
}); | }); | ||||
} | } | ||||
const goOrder = (index) => { | const goOrder = (index) => { | ||||
uni.reLaunch({ | uni.reLaunch({ |
<!-- 新办订单item | <!-- 新办订单item | ||||
新办订单状态:待支付、审核中、审核不通过、待发货、待收货、待激活、已完成、已取消、已结束、退货、换货--> | 新办订单状态:待支付、审核中、审核不通过、待发货、待收货、待激活、已完成、已取消、已结束、退货、换货--> | ||||
<template> | <template> | ||||
<view :class="item.orderStatus == OrderStatus.已取消 ? 'item finished' : 'item'" @click.stop="gotoOrderDetails(item)"> | |||||
<!-- <view :class="item.orderStatus == OrderStatus.已取消 ? 'item finished' : 'item'" @click.stop="gotoOrderDetails(item)"> --> | |||||
<view :class="item.orderStatus == OrderStatus.已取消 ? 'item finished' : 'item'" > | |||||
<view class="head"> | <view class="head"> | ||||
<view class="name"> | <view class="name"> | ||||
<image :src="`${$imgUrl}order/icon-star-green.png`" class="icon" mode="aspectFill"></image> | <image :src="`${$imgUrl}order/icon-star-green.png`" class="icon" mode="aspectFill"></image> |
</view> | </view> | ||||
<view class="tabs"> | <view class="tabs"> | ||||
<view class="tab-tit as-gravity-center-start">充值方式 | <view class="tab-tit as-gravity-center-start">充值方式 | ||||
<radio-group @change="radioChange" style="flex: 1;display:flex;margin-right: 30rpx;"> | |||||
<!-- <radio-group @change="radioChange" style="flex: 1;display:flex;margin-right: 30rpx;"> | |||||
<radio class="as-weight as-gravity-center" value="blu" :checked="state.transWay === 'blu'">蓝牙 | <radio class="as-weight as-gravity-center" value="blu" :checked="state.transWay === 'blu'">蓝牙 | ||||
</radio> | </radio> | ||||
<radio class="as-weight" value="nfc" :checked="state.transWay === 'nfc'">NFC</radio> | <radio class="as-weight" value="nfc" :checked="state.transWay === 'nfc'">NFC</radio> | ||||
</radio-group> | |||||
</radio-group> --> | |||||
<u-input @click="state.transWayTypeShow = true" inputAlign="center" | |||||
v-model="state.transWayName" type="select" /> | |||||
</view> | </view> | ||||
<view class="tab-tit">在线充值</view> | <view class="tab-tit">在线充值</view> | ||||
<view class="btn btn-primary" @click="rechargeAction">立即充值</view> | <view class="btn btn-primary" @click="rechargeAction">立即充值</view> | ||||
</view> | </view> | ||||
<u-select v-model="state.transWayTypeShow" :list="state.transWayTypeList" @confirm="selectConfirm"></u-select> | |||||
<!-- <bluetooth :routeType="2" :cardId="state.cardId" v-if="state.isShowBlue" @submit="getParams"></bluetooth> --> | <!-- <bluetooth :routeType="2" :cardId="state.cardId" v-if="state.isShowBlue" @submit="getParams"></bluetooth> --> | ||||
</template> | </template> | ||||
const NFCAPI = require('../../static/nfc/NFCAPI.js'); | const NFCAPI = require('../../static/nfc/NFCAPI.js'); | ||||
const state = reactive({ | const state = reactive({ | ||||
transWayTypeShow: false, | |||||
transWayTypeList: [{ | |||||
label: "蓝牙", | |||||
value: "blu", | |||||
}, { | |||||
label: "NFC", | |||||
value: "nfc", | |||||
} | |||||
], | |||||
isShowBlue: false, | isShowBlue: false, | ||||
moneryArray: [{ | moneryArray: [{ | ||||
name: '50元', | name: '50元', | ||||
fee: 5000, | fee: 5000, | ||||
money: 50, | money: 50, | ||||
orderNum: "", | orderNum: "", | ||||
transWayName:"蓝牙", | |||||
transWay: "blu", //“blu”为蓝牙充值方式、“nfc”为NFC充值方式 | transWay: "blu", //“blu”为蓝牙充值方式、“nfc”为NFC充值方式 | ||||
cardId: "", //卡号 需要传参 | cardId: "", //卡号 需要传参 | ||||
mockpreBalance: 2000, //fix:模拟余额 目前没有检测状态接口,第一次会模拟圈层检测来检测状态 | mockpreBalance: 2000, //fix:模拟余额 目前没有检测状态接口,第一次会模拟圈层检测来检测状态 | ||||
current: 0 | current: 0 | ||||
}); | }); | ||||
const selectConfirm = (item: any) => { | |||||
// item.map((val, index) => { | |||||
// state.form.useUserType = val.value; | |||||
// state.form.useUserTypeName = val.label; | |||||
// }); | |||||
state.transWayName=item[0].label | |||||
state.transWay= item[0].value | |||||
}; | |||||
//读卡信息 | //读卡信息 | ||||
const card : any = reactive({ | const card : any = reactive({ | ||||
cardId: "", | cardId: "", |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
orderStatus: '1', | orderStatus: '1', |
<view class="nickname">{{state.accountInfoVo.nickName}}</view> | <view class="nickname">{{state.accountInfoVo.nickName}}</view> | ||||
<view class="user-id"> | <view class="user-id"> | ||||
<view class="phone">{{state.accountInfoVo.mobile}}</view> | <view class="phone">{{state.accountInfoVo.mobile}}</view> | ||||
<view @click="$util.navTo('/subpackage/personal-center/setting/change-phone', true)" | |||||
<view v-if="false" @click="$util.navTo('/subpackage/personal-center/setting/change-phone', true)" | |||||
class="btn-change">已关联</view> | class="btn-change">已关联</view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="setting" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)"> | |||||
<view v-if="false" class="setting" @click="$util.navTo('/subpackage/personal-center/setting/setting', true)"> | |||||
<!-- <image :src="`${$imgUrl}user/icon-setting.png`"></image> --> | <!-- <image :src="`${$imgUrl}user/icon-setting.png`"></image> --> | ||||
<text>签到</text> | <text>签到</text> | ||||
</view> | </view> | ||||
<text class="num">{{state.userVehicleInfoSumQueryVo.orderStatus0}}</text> | <text class="num">{{state.userVehicleInfoSumQueryVo.orderStatus0}}</text> | ||||
<text class="type">待办</text> | <text class="type">待办</text> | ||||
</view> | </view> | ||||
<view class="panel-item"> | |||||
<view class="panel-item" v-if="false"> | |||||
<view class="panel-text"><text class="num">2</text><text class="txt">张</text></view> | <view class="panel-text"><text class="num">2</text><text class="txt">张</text></view> | ||||
<text class="type">卡券</text> | <text class="type">卡券</text> | ||||
</view> | </view> | ||||
<view class="panel-item"> | |||||
<view class="panel-item" v-if="false"> | |||||
<view class="panel-text"><text class="num">2555</text><text class="txt">分</text></view> | <view class="panel-text"><text class="num">2555</text><text class="txt">分</text></view> | ||||
<text class="type">积分</text> | <text class="type">积分</text> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="notice"> | |||||
<view class="notice" v-if="false"> | |||||
<image :src="`${$imgUrl}user/icon-tips.png`" class="icon-notice" mode="aspectFill"></image> | <image :src="`${$imgUrl}user/icon-tips.png`" class="icon-notice" mode="aspectFill"></image> | ||||
<view class="notice-content">您有一笔成功交易,点击查看详情</view> | <view class="notice-content">您有一笔成功交易,点击查看详情</view> | ||||
</view> | </view> |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
isValueCard: "", | isValueCard: "", |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: "WECHAT", | |||||
source: source, | |||||
tabIndex: "0", | tabIndex: "0", | ||||
orderStep: "11", | orderStep: "11", | ||||
isValueCard: "", | isValueCard: "", |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
isValueCard: "", | isValueCard: "", |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
}; | }; |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
}; | }; |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
isValueCard: "", | isValueCard: "", |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
isValueCard: '1', | isValueCard: '1', |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
}; | }; |
<image style="width: 100%; height: 170rpx; border-radius: 20rpx" | <image style="width: 100%; height: 170rpx; border-radius: 20rpx" | ||||
:src="`${$imgUrl}applyCard/product-bg.png`"></image> | :src="`${$imgUrl}applyCard/product-bg.png`"></image> | ||||
<view class="item-value"> | <view class="item-value"> | ||||
<image class="icon-tip" :src="`${$imgUrl}applyCard/wechat.png`"></image> | |||||
<image class="icon-tip" :src="state.sysType === 'WECHAT'?`${$imgUrl}applyCard/wechat.png` : `${$imgUrl}applyCard/alibaba.png`"></image> | |||||
<view class="content"> | <view class="content"> | ||||
<view class="title"> | <view class="title"> | ||||
{{ item.promoteName }} | {{ item.promoteName }} | ||||
}; | }; | ||||
onLoad((option : any) => { | onLoad((option : any) => { | ||||
// #ifdef MP-ALIPAY | |||||
state.sysType = 'ALI'; | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
state.sysType = 'WECHAT'; | |||||
// #endif | |||||
// state.orderId = option.orderId; | // state.orderId = option.orderId; | ||||
// state.userType = option.userType; | // state.userType = option.userType; | ||||
// state.vehiclePlateColor = option.vehiclePlateColor; | // state.vehiclePlateColor = option.vehiclePlateColor; | ||||
state.type = option.type; | state.type = option.type; | ||||
var data = { | var data = { | ||||
type: state.type, | type: state.type, | ||||
source: 'WECHAT' //请求方来源 | |||||
source: state.sysType //请求方来源 | |||||
}; | }; | ||||
const options = { | const options = { | ||||
type: 2, | type: 2, | ||||
radiolist1: [], //选择卡的数据列表 | radiolist1: [], //选择卡的数据列表 | ||||
choiceCardShow: false, //选择卡的弹出框 | choiceCardShow: false, //选择卡的弹出框 | ||||
isSign: '', | isSign: '', | ||||
sysType:"", | |||||
orderId: "", | orderId: "", | ||||
userType: 1, //1 个人 2单位 | userType: 1, //1 个人 2单位 | ||||
type: 0, //0 客车 1货车 | type: 0, //0 客车 1货车 |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
}; | }; |
//获取微信小程序openid | //获取微信小程序openid | ||||
const getOpenID = () => { | const getOpenID = () => { | ||||
// #ifdef MP-WEIXIN | |||||
uni.login({ | uni.login({ | ||||
provider: "weixin", | provider: "weixin", | ||||
success: function (e) { | success: function (e) { | ||||
}); | }); | ||||
}, | }, | ||||
}); | }); | ||||
//#endif | |||||
}; | }; | ||||
const savaHandle = () => { | const savaHandle = () => { |
<image style="width: 100%; height: 170rpx; border-radius: 20rpx" | <image style="width: 100%; height: 170rpx; border-radius: 20rpx" | ||||
:src="`${$imgUrl}applyCard/product-bg.png`"></image> | :src="`${$imgUrl}applyCard/product-bg.png`"></image> | ||||
<view class="item-value"> | <view class="item-value"> | ||||
<image class="icon-tip" :src="`${$imgUrl}applyCard/wechat.png`"></image> | |||||
<image class="icon-tip" :src="`${$imgUrl}applyCard/alibaba.png`"></image> | |||||
<view class="content"> | <view class="content"> | ||||
<view class="title"> | <view class="title"> | ||||
{{ item.payName }} | {{ item.payName }} | ||||
console.log(data); | console.log(data); | ||||
// console.log(typeof(data)); | // console.log(typeof(data)); | ||||
if(data.paymentStatus == 'ALLSUCCESS'){ | if(data.paymentStatus == 'ALLSUCCESS'){ | ||||
uni.redirectTo({ | |||||
url: `/subpackage/orders/sign-up-ali?orderId=${state.orderId}`, | |||||
}); | |||||
gotoEditUserOrUnitInfo() | |||||
// uni.redirectTo({ | |||||
// url: `/subpackage/orders/sign-up-ali?orderId=${state.orderId}`, | |||||
// }); | |||||
} | } | ||||
state.dataArray = data.datas; | state.dataArray = data.datas; | ||||
// HANDLE("办理费",1){}, | // HANDLE("办理费",1){}, | ||||
onLoad((option : any) => { | onLoad((option : any) => { | ||||
state.orderId = option.orderId; | state.orderId = option.orderId; | ||||
state.isValueCard = option.isValueCard; | |||||
// state.userType = option.userType; | // state.userType = option.userType; | ||||
// state.vehiclePlateColor = option.vehiclePlateColor; | // state.vehiclePlateColor = option.vehiclePlateColor; | ||||
// state.userType = option.userType; | // state.userType = option.userType; | ||||
console.log(data); | console.log(data); | ||||
// console.log(typeof(data)); | // console.log(typeof(data)); | ||||
if(data.paymentStatus == 'ALLSUCCESS'){ | if(data.paymentStatus == 'ALLSUCCESS'){ | ||||
uni.redirectTo({ | |||||
url: `/subpackage/orders/sign-up-ali?orderId=${state.orderId}`, | |||||
}); | |||||
gotoEditUserOrUnitInfo(state) | |||||
// uni.redirectTo({ | |||||
// url: `/subpackage/orders/sign-up-ali?orderId=${state.orderId}`, | |||||
// }); | |||||
} | } | ||||
state.dataArray = data.datas; | state.dataArray = data.datas; | ||||
// HANDLE("办理费",1){}, | // HANDLE("办理费",1){}, | ||||
reject(error); | reject(error); | ||||
}); | }); | ||||
}; | }; | ||||
const gotoEditUserOrUnitInfo = () => { | |||||
let url = ''; | |||||
if (state.isValueCard != 1) { | |||||
url = `/subpackage/orders/release-products`; | |||||
} else { | |||||
// #ifdef MP-ALIPAY | |||||
url = `/subpackage/orders/sign-up-ali`; | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
url = `/subpackage/orders/essential-information`; | |||||
// #endif | |||||
} | |||||
console.log("url", url) | |||||
uni.redirectTo({ | |||||
url: `${url}?orderId=${state.orderId}`, | |||||
}); | |||||
} | |||||
const state = reactive({ | const state = reactive({ | ||||
isValueCard: 1, //卡的类型 | isValueCard: 1, //卡的类型 | ||||
radiolist1: [], //选择卡的数据列表 | radiolist1: [], //选择卡的数据列表 |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', //渠道为小程序 | |||||
source: source, //渠道为小程序 | |||||
tabIndex: '0', //0全部 | tabIndex: '0', //0全部 | ||||
orderStep: '11', //11 为已完成” | orderStep: '11', //11 为已完成” | ||||
}; | }; |
request(etcQyList, options).then((res) => { | request(etcQyList, options).then((res) => { | ||||
const data = stringToJson(res.bizContent); | const data = stringToJson(res.bizContent); | ||||
// state.list = data.data | // state.list = data.data | ||||
// #ifdef MP-ALIPAY | |||||
state.list = [ | |||||
{ | |||||
bg: imgURL + "applyCard/product-bg.png", | |||||
icon: imgURL + "applyCard/alibaba.png", | |||||
title: "支付宝代扣", | |||||
// tip: "服务费是每笔交易金额的0.05%", | |||||
tag1: "支付宝代付", | |||||
tag2: "支付宝便捷支付", | |||||
tag: "tag1", | |||||
channelId: data.data[0].channelId, | |||||
}, | |||||
] | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
state.list = [ | state.list = [ | ||||
{ | { | ||||
bg: imgURL + "applyCard/product-bg.png", | bg: imgURL + "applyCard/product-bg.png", | ||||
channelId: data.data[0].channelId, | channelId: data.data[0].channelId, | ||||
}, | }, | ||||
]; | ]; | ||||
// #endif | |||||
}); | }); | ||||
}); | }); | ||||
show: false, | show: false, | ||||
src: imgURL + "applyCard/edit.png", | src: imgURL + "applyCard/edit.png", | ||||
}, | }, | ||||
list: [ | |||||
{ | |||||
bg: imgURL + "applyCard/product-bg.png", | |||||
icon: imgURL + "applyCard/wechat.png", | |||||
title: "微信支付", | |||||
tip: "服务费是每笔交易金额的0.05%", | |||||
tag1: "微信代付", | |||||
tag2: "微信便捷支付", | |||||
tag: "tag1", | |||||
}, | |||||
], | |||||
list: [], | |||||
id: "", | id: "", | ||||
clientFee: "", | clientFee: "", | ||||
orderId: "", | orderId: "", |
}); | }); | ||||
}else if (data.signStatus === "SIGNED") { | }else if (data.signStatus === "SIGNED") { | ||||
//已签约 | //已签约 | ||||
msg("已签约"); | |||||
// msg("已签约"); | |||||
confirm( | confirm( | ||||
"您已完成签约,等待业务员审核发货", | "您已完成签约,等待业务员审核发货", | ||||
() => { | () => { | ||||
uni.$emit("refreshOrder"); | |||||
uni.navigateBack(); | |||||
uni.switchTab({ | |||||
url: "/pages/order/order" | |||||
}) | |||||
// uni.$emit("refreshOrder"); | |||||
// uni.navigateBack(); | |||||
}, | }, | ||||
"已完成签约", | "已完成签约", | ||||
false | false | ||||
); | ); | ||||
}else if (data.signStatus === "UNSIGN") { | }else if (data.signStatus === "UNSIGN") { | ||||
//已解约 | //已解约 | ||||
msg("已解约"); | |||||
// msg("已解约"); | |||||
confirm( | confirm( | ||||
"您已解约!", | "您已解约!", | ||||
() => { | () => { | ||||
uni.$emit("refreshOrder"); | |||||
uni.navigateBack(); | |||||
uni.switchTab({ | |||||
url: "/pages/order/order" | |||||
}) | |||||
}, | }, | ||||
"您已解约", | "您已解约", | ||||
false | false |
//获取微信小程序openid | //获取微信小程序openid | ||||
const getOpenID = () => { | const getOpenID = () => { | ||||
// #ifdef MP-WEIXIN | |||||
uni.login({ | uni.login({ | ||||
provider: "weixin", | provider: "weixin", | ||||
success: function (e) { | success: function (e) { | ||||
}); | }); | ||||
}, | }, | ||||
}); | }); | ||||
// #endif | |||||
}; | }; | ||||
const addInterestsList=()=>{ | const addInterestsList=()=>{ |
uni.stopPullDownRefresh(); | uni.stopPullDownRefresh(); | ||||
return; | return; | ||||
} | } | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
let res : any = null; | let res : any = null; | ||||
const options = { | const options = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { | ||||
"opId": getItem(StorageKeys.OpenId), | "opId": getItem(StorageKeys.OpenId), | ||||
"source": "WECHAT", | |||||
"source": source, | |||||
"vehiclePlate": "", | "vehiclePlate": "", | ||||
"tabIndex": '0', | "tabIndex": '0', | ||||
"pageNo": params.pageNum, | "pageNo": params.pageNum, |
}); | }); | ||||
const quanCheckActionTrue = () => { | const quanCheckActionTrue = () => { | ||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source ="ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source ="WECHAT" | |||||
// #endif | |||||
var data = { | var data = { | ||||
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
source: 'WECHAT', | |||||
source: source, | |||||
tabIndex: '0', | tabIndex: '0', | ||||
orderStep: '11', | orderStep: '11', | ||||
isValueCard: '', | isValueCard: '', |
<image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`"> | <image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.vehPosImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.vehPosImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="picture-wrapper" @click="cardImageOcr('2')"> | <view class="picture-wrapper" @click="cardImageOcr('2')"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`"> | <image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.vehNegImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.vehNegImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="picture-wrapper" @click="cardFileImageUpdate()"> | <view class="picture-wrapper" @click="cardFileImageUpdate()"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}applyCard/chetou.png`"> | <image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}applyCard/chetou.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.vehBodyUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.vehBodyUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="shibie-wrapper"> | <view class="shibie-wrapper"> | ||||
etcCarOcrCard, | etcCarOcrCard, | ||||
fileUpload, | fileUpload, | ||||
createCarInfo, | createCarInfo, | ||||
envs | |||||
} from "@/utils/network/api.js"; | } from "@/utils/network/api.js"; | ||||
import { | import { | ||||
request | request | ||||
}, | }, | ||||
}); | }); | ||||
}; | }; | ||||
const strReplace = (str : string) => { | |||||
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); | |||||
return imgUrl; | |||||
}; | |||||
const state = reactive({ | const state = reactive({ | ||||
actionSheetShow: false, | actionSheetShow: false, |
</view> | </view> | ||||
<image v-if="!state.form.userPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | <image v-if="!state.form.userPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.userPosImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.userPosImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="picture-wrapper" @click="cardImageOcr('2')"> | <view class="picture-wrapper" @click="cardImageOcr('2')"> | ||||
</view> | </view> | ||||
<image v-if="!state.form.userNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`"> | <image v-if="!state.form.userNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`"> | ||||
</image> | </image> | ||||
<image v-else class="icon" :src="state.form.userNegImgUrl"></image> | |||||
<image v-else class="icon" :src="strReplace(state.form.userNegImgUrl)"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="shibie-wrapper"> | <view class="shibie-wrapper"> | ||||
import { | import { | ||||
etcOcrCard, | etcOcrCard, | ||||
userInfoChange, | userInfoChange, | ||||
sendCode | |||||
sendCode, | |||||
envs, | |||||
} from "@/utils/network/api.js"; | } from "@/utils/network/api.js"; | ||||
import { | import { | ||||
// agentIdVld: '', | // agentIdVld: '', | ||||
} | } | ||||
}) | }) | ||||
const strReplace = (str : string) => { | |||||
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); | |||||
return imgUrl; | |||||
}; | |||||
const getCode = () => { | const getCode = () => { | ||||
console.log(123); | console.log(123); |