} | } | ||||
// watch(() => props.index, () => { | |||||
// console.log("watch1111") | |||||
// refreshList(true); | |||||
// }); | |||||
watch(() => props.index, () => { | |||||
console.log("watch1111") | |||||
refreshList(true); | |||||
}); | |||||
// onMounted(() => { | // onMounted(() => { | ||||
// if (props.refresh) { | // if (props.refresh) { | ||||
// refreshList(false); | // refreshList(false); |
<view class="grey-txt"> | <view class="grey-txt"> | ||||
指令执行过程中,请勿关闭蓝牙,勿将手机远离电子标签,以免导致写卡、写签失败。</view> | 指令执行过程中,请勿关闭蓝牙,勿将手机远离电子标签,以免导致写卡、写签失败。</view> | ||||
</view> | </view> | ||||
<view class="btn"> | <view class="btn"> | ||||
<submit-button title="点击重新搜索蓝牙" @submit="load"></submit-button> | <submit-button title="点击重新搜索蓝牙" @submit="load"></submit-button> | ||||
</view> | </view> | ||||
orderNum: 0,//消费明细 传orderNum说明去支付 | orderNum: 0,//消费明细 传orderNum说明去支付 | ||||
payMoney: 0,//0 修复 1 支付 | payMoney: 0,//0 修复 1 支付 | ||||
accountId: "",//对公账户名称 | accountId: "",//对公账户名称 | ||||
difference: "", //routeType==5的区分 1重新激活 | |||||
difference: "",//区分routeType5 1二次激活 | |||||
}); | }); | ||||
const deviceList = ref([]); | const deviceList = ref([]); | ||||
const connectPrefixName = ref(null); | const connectPrefixName = ref(null); | ||||
state.accountId = option.accountId | state.accountId = option.accountId | ||||
} | } | ||||
if (option.difference) { | if (option.difference) { | ||||
state.difference = option.difference | |||||
state.difference = option.difference; | |||||
} | } | ||||
console.log("传过来的参数", option) | console.log("传过来的参数", option) | ||||
}); | }); | ||||
connectPrefixName.value = item.prefixName; | connectPrefixName.value = item.prefixName; | ||||
console.log(item); | console.log(item); | ||||
// datas.setData("connectPrefixName", connectPrefixName.value); | // datas.setData("connectPrefixName", connectPrefixName.value); | ||||
//断开蓝牙 | |||||
// //断开蓝牙 | |||||
// bluetoothUtil.disconnectDevice(); | // bluetoothUtil.disconnectDevice(); | ||||
tools.showLoadingAlert("蓝牙连接中"); | tools.showLoadingAlert("蓝牙连接中"); | ||||
console.info("连接的是" + prefixName, device); | console.info("连接的是" + prefixName, device); | ||||
break; | break; | ||||
case "TD": | case "TD": | ||||
console.info("连接的是=====456" + prefixName, device); | |||||
tdApi.connectDevice( | tdApi.connectDevice( | ||||
device, | device, | ||||
function (res) { | function (res) { | ||||
connectSuccess(res) | connectSuccess(res) | ||||
console.info("连接的是=====456", res); | |||||
}, function (res) { | }, function (res) { | ||||
listenStatus(res); | listenStatus(res); | ||||
console.info("连接的是=====456789", res); | |||||
} | } | ||||
); | ); | ||||
break; | break; | ||||
* 连接成功 | * 连接成功 | ||||
*/ | */ | ||||
const connectSuccess = (res) => { | const connectSuccess = (res) => { | ||||
console.log("连接回调函数func1===", routeType.value); | |||||
console.log("连接回调函数func1"); | |||||
console.log(res); | console.log(res); | ||||
if (res.code == 0) { | if (res.code == 0) { | ||||
console.log("连接成功"); | console.log("连接成功"); | ||||
url: "/subpackage/after-sale/activation-once-again/activation-once-again-ali?state=true&id=" + state.id, | url: "/subpackage/after-sale/activation-once-again/activation-once-again-ali?state=true&id=" + state.id, | ||||
}); | }); | ||||
// #endif | // #endif | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
if (state.difference == "1") { | if (state.difference == "1") { | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
delta: 1 | delta: 1 | ||||
}) | }) | ||||
} | } | ||||
// #endif | // #endif | ||||
} else if (routeType.value == "6") { | } else if (routeType.value == "6") { | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: "/subpackage/after-sale/activation-once-again/activation-once-again?state=true&id=" + state.id | url: "/subpackage/after-sale/activation-once-again/activation-once-again?state=true&id=" + state.id | ||||
margin: 70rpx 40rpx; | margin: 70rpx 40rpx; | ||||
} | } | ||||
} | } | ||||
.red { | |||||
display: inline-block; | |||||
color: red; | |||||
background-color: red; | |||||
width: 26rpx; | |||||
height: 26rpx; | |||||
border-radius: 100%; | |||||
} | |||||
</style> | </style> |
} else if (val == 2) { | } else if (val == 2) { | ||||
navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select', true) | navTo('/subpackage/after-sale/rescind-carId/rescind-carId-select', true) | ||||
} else if (val == 3) { | } else if (val == 3) { | ||||
navTo('/subpackage/after-sale/card-loss-reporting/select-car', true) | |||||
navTo('/subpackage/after-sale/ETC-log-off/select-car', true) | |||||
} | } | ||||
// #endif | // #endif | ||||
} | } |
<!-- 订单列表 --> | |||||
<template> | |||||
<!-- 搜索框 --> | |||||
<view class="as-layout-horizontal as-gravity-center-start search-layout"> | |||||
<view class="search-box"> | |||||
<image :src="`${$imgUrl}service/icon-search.png`" class="icon" mode="aspectFill"></image> | |||||
<input class="search" placeholder="请输入车牌号" @input="onKeyInput" /> | |||||
</view> | |||||
<view class="search-btn" @click="doSearch">搜索</view> | |||||
</view> | |||||
</template> --> | |||||
</template> | |||||
<script setup lang="ts"> | |||||
import orderListItemNew from "./order-list-item-new.vue"; | |||||
import orderListItemCardSign from "./order-list-item-card-sign.vue"; | |||||
import orderListItemObu from "./order-list-item-obu.vue"; | |||||
import orderListItemLogoffEtc from "./order-list-item-logoff-etc.vue"; | |||||
import orderListItemEditCar from "./order-list-item-edit-car.vue"; | |||||
import orderListItemCancelNumberplate from './order-list-item-cancel-numberplate.vue'; | |||||
import orderListItemRecharge from "./order-list-item-cancel-recharge.vue"; | |||||
import { OrderTypes } from "@/datas/enum"; | |||||
import useOrderListItem from "@/composables/order/useOrderListItem"; | |||||
import { reactive, watch } from "vue"; | |||||
import { onLoad } from "@dcloudio/uni-app"; | |||||
import { getItem, StorageKeys, setItem } from "@/utils/storage"; | |||||
import { hasLogin, msg, timesDiff } from "@/utils/utils"; | |||||
import { request } from "@/utils/network/request.js"; | |||||
import { orderList, appPage } from "@/utils/network/api"; | |||||
const tools = require("../../static/etcUtil/tools.js"); | |||||
import { stringToJson } from "@/utils/network/encryption"; | |||||
const state = reactive({ | |||||
triggered: false, //设置当前下拉刷新的状态 | |||||
freshing: true, | |||||
_freshing: false, | |||||
ordersList: [] | |||||
}) | |||||
const searchKeyWords = ref(''); | |||||
const props = defineProps({ | |||||
index: { | |||||
type: Number, | |||||
default() { | |||||
return 0 | |||||
} | |||||
}, | |||||
refresh: { //是否刷新列表 | |||||
type: Boolean, | |||||
default: true | |||||
} | |||||
}) | |||||
const { config, params, onKeyInput, refreshList } = useOrderListItem(props); | |||||
//自定义下拉刷新被触发 | |||||
const onRefresh = () => { | |||||
console.log("22222") | |||||
refreshList(true) | |||||
if (state._freshing) return; | |||||
state._freshing = true; | |||||
setTimeout(() => { | |||||
state.triggered = false; | |||||
state._freshing = false; | |||||
}, 1000) | |||||
} | |||||
const onPulling = (e) => { | |||||
console.log("11111") | |||||
if (e.detail.deltaY < 0) { | |||||
return | |||||
} | |||||
state.triggered = true | |||||
} | |||||
onLoad(() => { | |||||
getList() | |||||
}) | |||||
//搜索 | |||||
const doSearch = () => { | |||||
// #ifdef MP-WEIXIN | |||||
if (!searchKeyWords.value) { | |||||
msg('请输入需要搜索的车牌号!'); | |||||
return; | |||||
} | |||||
refreshList(true); | |||||
// #endif | |||||
// #ifdef MP-ALIPAY | |||||
tools.showLoadingAlert("加载中"); | |||||
refreshList(true); | |||||
tools.hideLoadingAlert(); | |||||
// #endif | |||||
} | |||||
</script> | |||||
<style lang="scss" scoped> | |||||
.setHight { | |||||
min-height: calc(100vh - 200rpx); | |||||
} | |||||
.search-layout { | |||||
padding-top: 180rpx; | |||||
.search-box { | |||||
margin: 30rpx 30rpx 0rpx 30rpx; | |||||
height: 80rpx; | |||||
background: #FFFFFF; | |||||
border: 1px solid #DCDCDC; | |||||
border-radius: 40rpx; | |||||
display: flex; | |||||
justify-content: center; | |||||
align-items: center; | |||||
box-sizing: border-box; | |||||
flex: 1; | |||||
} | |||||
.search-box .icon { | |||||
width: 48rpx; | |||||
height: 48rpx; | |||||
margin: 0 20rpx; | |||||
} | |||||
.search-box .search { | |||||
flex: 1; | |||||
margin-right: 20rpx; | |||||
height: 100%; | |||||
padding: 0 10rpx; | |||||
font-size: 28rpx; | |||||
color: #00b38b; | |||||
} | |||||
.search-btn { | |||||
color: white; | |||||
background-color: #00B38B; | |||||
width: 140rpx; | |||||
height: 75rpx; | |||||
line-height: 75rpx; | |||||
font-size: 32rpx; | |||||
border-radius: 40rpx; | |||||
text-align: center; | |||||
margin-right: 30rpx; | |||||
margin-top: 30rpx; | |||||
} | |||||
} | |||||
</style> |
import useOrderListItem from "@/composables/order/useOrderListItem"; | import useOrderListItem from "@/composables/order/useOrderListItem"; | ||||
import { reactive, watch } from "vue"; | import { reactive, watch } from "vue"; | ||||
import { onLoad } from "@dcloudio/uni-app"; | import { onLoad } from "@dcloudio/uni-app"; | ||||
const state = reactive({ | const state = reactive({ | ||||
triggered: false, //设置当前下拉刷新的状态 | triggered: false, //设置当前下拉刷新的状态 | ||||
freshing: true, | freshing: true, | ||||
default: true | default: true | ||||
} | } | ||||
}) | }) | ||||
console.log("props.index", props) | |||||
const { config, params, ordersList, doSearch, onKeyInput, refreshList, searchKeyWords } = useOrderListItem(props); | const { config, params, ordersList, doSearch, onKeyInput, refreshList, searchKeyWords } = useOrderListItem(props); | ||||
//自定义下拉刷新被触发 | //自定义下拉刷新被触发 | ||||
const onRefresh = () => { | const onRefresh = () => { |
OrderStatus | OrderStatus | ||||
} from "@/datas/enum"; | } from "@/datas/enum"; | ||||
import { | import { | ||||
reactive, watch | |||||
reactive, watch, ref | |||||
} from "vue"; | } from "vue"; | ||||
import { request } from "@/utils/network/request.js"; | import { request } from "@/utils/network/request.js"; | ||||
import { appPage } from "@/utils/network/api"; | import { appPage } from "@/utils/network/api"; | ||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
import { log } from "console"; | import { log } from "console"; | ||||
const tools = require("../../static/etcUtil/tools.js"); | const tools = require("../../static/etcUtil/tools.js"); | ||||
const state = reactive({ | |||||
tabActive: "小程序", | |||||
flowPathTabList: ["小程序", "线下网点"], | |||||
appOrdersList: [], | |||||
index: 0 | |||||
}) | |||||
const { | const { | ||||
data, | data, | ||||
tabbarRef | tabbarRef | ||||
status: 'more', | status: 'more', | ||||
reload: false, | reload: false, | ||||
}) | }) | ||||
const state = reactive({ | |||||
tabActive: "小程序", | |||||
flowPathTabList: ["小程序", "线下网点"], | |||||
appOrdersList: [], | |||||
index: 0 | |||||
}) | |||||
function test(index) { | function test(index) { | ||||
console.log("test", index) | |||||
console.log("test", index, data.tabIndex) | |||||
state.index = index | state.index = index | ||||
getList(); | |||||
if (state.tabActive == '小程序') { | |||||
changeTab(state.tabActive) | |||||
} else { | |||||
console.log("apppppppp",) | |||||
getList() | |||||
} | |||||
} | } | ||||
const props = defineProps({ | const props = defineProps({ | ||||
type: 2, | type: 2, | ||||
data: { | data: { | ||||
"opId": getItem(StorageKeys.OpenId), | "opId": getItem(StorageKeys.OpenId), | ||||
"vehiclePlate": "", | |||||
"vehiclePlate": searchKeyWords, | |||||
"tabIndex": state.index + '', | "tabIndex": state.index + '', | ||||
"pageNo": params.pageNum, | "pageNo": params.pageNum, | ||||
"pageSize": params.pageSize, | "pageSize": params.pageSize, |
provider: "weixin", | provider: "weixin", | ||||
success: function (e) { | success: function (e) { | ||||
getOpenid(e.code); | getOpenid(e.code); | ||||
// uni.request({ | |||||
// url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`, | |||||
// success: (res: any) => { | |||||
// state.openid = res.data.openid; | |||||
// }, | |||||
// }); | |||||
}, | }, | ||||
}); | }); | ||||
}; | }; | ||||
request(getOpenidApi, options).then((res) => { | request(getOpenidApi, options).then((res) => { | ||||
const result = stringToJson(res.bizContent); | const result = stringToJson(res.bizContent); | ||||
console.log("获取微信小程序openid", result); | console.log("获取微信小程序openid", result); | ||||
// setItem("QYorder", result.data); | |||||
const openidData = stringToJson(result.data); | const openidData = stringToJson(result.data); | ||||
state.openid = openidData.openid | state.openid = openidData.openid | ||||
}); | }); |
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="hint"> | |||||
<!-- <view class="hint"> | |||||
<image :src="`${$imgUrl}common/icon-hint.png`" class="icon"></image> | <image :src="`${$imgUrl}common/icon-hint.png`" class="icon"></image> | ||||
<view>激活时,确保OBU蓝牙和手机蓝牙处于打开状态。</view> | <view>激活时,确保OBU蓝牙和手机蓝牙处于打开状态。</view> | ||||
</view> --> | |||||
<view class="hint"> | |||||
<view class="orange-txt "> | |||||
<text class="red"></text> | |||||
<view style="margin: 0 24rpx;">重要提示</view> | |||||
<text class="red"></text> | |||||
</view> | |||||
<view class="grey-txt">1.激活前必须将ETC设备安装到相应车辆上,确保安装车辆信息与激活后OBU内信息一致后才能正常使用。</view> | |||||
<view class="grey-txt">2.如因激活的ETC设备未安装到对应车辆上产生的异常扣费,我司不承担任何赔偿责任。</view> | |||||
<view class="grey-txt">3.激活时,需要录入您的车牌号和手机号并确保OBU蓝牙和手机蓝牙处于打开状态。</view> | |||||
</view> | </view> | ||||
<view class="btn"> | <view class="btn"> | ||||
<submit-button @submit="gotoNextStep" title="已知悉,下一步"></submit-button> | <submit-button @submit="gotoNextStep" title="已知悉,下一步"></submit-button> | ||||
} | } | ||||
.hint { | .hint { | ||||
display: flex; | |||||
flex-direction: row; | |||||
justify-content: center; | |||||
font-size: 26rpx; | |||||
color: #666666; | |||||
padding: 0px 30rpx; | |||||
.icon { | |||||
width: 36rpx; | |||||
height: 36rpx; | |||||
margin-right: 10rpx; | |||||
margin: 0rpx 30rpx 0px; | |||||
.orange-txt { | |||||
font-size: 30rpx; | |||||
color: #ff8000; | |||||
text-align: center; | |||||
display: flex; | |||||
align-items: center; | |||||
justify-content: center; | |||||
margin-bottom: 50rpx; | |||||
image { | |||||
width: 30rpx; | |||||
height: 30rpx; | |||||
margin-right: 10rpx; | |||||
} | |||||
} | } | ||||
view { | |||||
width: calc(100% - 36rpx); | |||||
.grey-txt { | |||||
font-size: 26rpx; | |||||
color: #666666; | |||||
line-height: 40rpx; | |||||
margin-top: 16rpx; | |||||
} | } | ||||
} | } | ||||
.btn { | .btn { | ||||
margin: 150rpx 40rpx 60px; | |||||
margin: 70rpx 40rpx; | |||||
} | } | ||||
} | } | ||||
.grey-txt { | |||||
font-size: 26rpx; | |||||
color: #666666; | |||||
line-height: 40rpx; | |||||
margin-top: 16rpx; | |||||
} | |||||
.red { | |||||
display: inline-block; | |||||
color: red; | |||||
background-color: red; | |||||
width: 26rpx; | |||||
height: 26rpx; | |||||
border-radius: 100%; | |||||
} | |||||
</style> | </style> |
provider: "weixin", | provider: "weixin", | ||||
success: function (e) { | success: function (e) { | ||||
getOpenid(e.code) | getOpenid(e.code) | ||||
// uni.request({ | |||||
// url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`, | |||||
// success: (res: any) => { | |||||
// state.openid = res.data.openid; | |||||
// }, | |||||
// }); | |||||
}, | }, | ||||
}); | }); | ||||
}; | }; | ||||
const result = stringToJson(res.bizContent); | const result = stringToJson(res.bizContent); | ||||
console.log("获取微信小程序openid", result); | console.log("获取微信小程序openid", result); | ||||
const openidData = stringToJson(result.data); | const openidData = stringToJson(result.data); | ||||
// setItem("QYorder", result.data); | |||||
state.openid = openidData.openid | state.openid = openidData.openid | ||||
}); | }); | ||||
// #endif | // #endif |
provider: "weixin", | provider: "weixin", | ||||
success: function (e) { | success: function (e) { | ||||
getOpenid(e.code) | getOpenid(e.code) | ||||
// uni.request({ | |||||
// url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`, | |||||
// success: (res: any) => { | |||||
// state.openid = res.data.openid; | |||||
// }, | |||||
// }); | |||||
}, | }, | ||||
}); | }); | ||||
}; | }; | ||||
request(getOpenidApi, options).then((res) => { | request(getOpenidApi, options).then((res) => { | ||||
const result = stringToJson(res.bizContent); | const result = stringToJson(res.bizContent); | ||||
console.log("获取微信小程序openid", result); | console.log("获取微信小程序openid", result); | ||||
// setItem("QYorder", result.data); | |||||
const openidData = stringToJson(result.data); | const openidData = stringToJson(result.data); | ||||
state.openid = openidData.openid | state.openid = openidData.openid | ||||
}); | }); |
<template> | <template> | ||||
<view class="content" style="padding: 20rpx;overflow: hidden;padding-bottom: 160rpx;"> | <view class="content" style="padding: 20rpx;overflow: hidden;padding-bottom: 160rpx;"> | ||||
<rich-text :nodes="richText"> | |||||
</rich-text> | |||||
<!-- <view @click="addInterestsList(item)" class="ul-item" v-for="(item, index) in state.list" :key="index"> | |||||
<image style="width: 100%; height: 170rpx; border-radius: 20rpx" | |||||
:src="`${$imgUrl}applyCard/product-bg.png`"></image> | |||||
<view class="item-value"> | |||||
<image class="icon-tip" | |||||
:src="state.sysType === 'WECHAT'?`${$imgUrl}applyCard/wechat.png` : `${$imgUrl}applyCard/alibaba.png`"> | |||||
</image> | |||||
<view class="content"> | |||||
<view class="title"> | |||||
{{ item.productName }} | |||||
</view> | |||||
</view> | |||||
<view class="money"> | |||||
¥:{{ item.discountPrice * 0.01 }} | |||||
</view> | |||||
</view> | |||||
</view> --> | |||||
<rich-text :nodes="richText"></rich-text> | |||||
</view> | </view> | ||||
<view class="btn-wrap"> | <view class="btn-wrap"> | ||||
<button type="default" class="button" @click="addInterestsList()"> | <button type="default" class="button" @click="addInterestsList()"> | ||||
state.applyId = option.applyId; | state.applyId = option.applyId; | ||||
state.orderId = option.orderId; | state.orderId = option.orderId; | ||||
getInfo(); | getInfo(); | ||||
// getList(); | |||||
getOpenID(); | getOpenID(); | ||||
}) | }) | ||||
const addInterestsList = () => { | const addInterestsList = () => { | ||||
// state.totalAmount = Number(state.totalAmount) + Number(item.discountPrice) | |||||
if (state.changeCardType == "1") { | if (state.changeCardType == "1") { | ||||
navTo( | navTo( | ||||
`/subpackage/after-sale/to-bookkeeping-card/mailing_information?orderId=${state.orderId}&&applyId=${state.applyId}&&productId=${state.promoteId}&&totalAmount=${state.totalAmount}&&equityId=${state.equityId}` | `/subpackage/after-sale/to-bookkeeping-card/mailing_information?orderId=${state.orderId}&&applyId=${state.applyId}&&productId=${state.promoteId}&&totalAmount=${state.totalAmount}&&equityId=${state.equityId}` | ||||
richText.value = data.productIntro | richText.value = data.productIntro | ||||
}) | }) | ||||
} | } | ||||
const getList = () => { | |||||
const options = { | |||||
type: 2, | |||||
data: { | |||||
"promoteId": state.promoteId, | |||||
}, | |||||
method: 'POST', | |||||
showLoading: true, | |||||
} | |||||
request(equityProductsApi, options).then((res) => { | |||||
const data = stringToJson(res.bizContent); | |||||
for (var i = 0; i < data.data.length; i++) { | |||||
data.data[i]['isShow'] = false; | |||||
} | |||||
state.list = data.data | |||||
console.log("222", data.data) | |||||
}) | |||||
} | |||||
const change = (e) => { | |||||
console.log(e); | |||||
} | |||||
//获取微信小程序openid | //获取微信小程序openid | ||||
const getOpenID = () => { | const getOpenID = () => { | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
}); | }); | ||||
// #endif | // #endif | ||||
} | } | ||||
const changeIsShow = (index) => { | |||||
console.log(index, state.list[index]['isShow'], !state.list[index]['isShow']) | |||||
state.list[index]['isShow'] = !state.list[index]['isShow'] | |||||
console.log("state.list", state.list) | |||||
} | |||||
const getValue = (value) => { | |||||
if (state.choiceValue.length == 0) { | |||||
console.log("第一次") | |||||
state.choiceValue.push(value) | |||||
console.log("state.choiceValue", state.choiceValue) | |||||
} else { | |||||
var index = state.choiceValue.indexOf(value); | |||||
if (index > -1) {//大于0 代表存在, | |||||
state.choiceValue.splice(index, 1);//存在就删除 | |||||
} else { | |||||
state.choiceValue.push(value) | |||||
} | |||||
console.log("state.choiceValue", state.choiceValue) | |||||
} | |||||
} | |||||
</script> | </script> | ||||
<style scoped lang="scss"> | <style scoped lang="scss"> |
const result = stringToJson(res.bizContent); | const result = stringToJson(res.bizContent); | ||||
console.log("获取微信小程序openid", result); | console.log("获取微信小程序openid", result); | ||||
const openidData = stringToJson(result.data); | const openidData = stringToJson(result.data); | ||||
// setItem("QYorder", result.data); | |||||
state.openid = openidData.openid | state.openid = openidData.openid | ||||
/*读卡*/ | /*读卡*/ | ||||
getCardId(1); | getCardId(1); |