Commit 780cc0e9 by liwk

挪车码

1 parent 671e7035
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %> <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script" /> <link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script" />
<% } %> <% } %>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<title>权益中心</title> <title>权益中心</title>
</head> </head>
......
...@@ -8,8 +8,6 @@ export const equity = { ...@@ -8,8 +8,6 @@ export const equity = {
getCardInfo() { getCardInfo() {
return request({}, 'ddh.carlife.equity.h5.card.get') return request({}, 'ddh.carlife.equity.h5.card.get')
}, },
}
export const common = {
/** 根据卡号激活权益卡 */ /** 根据卡号激活权益卡 */
activateByCardNo(data) { activateByCardNo(data) {
return request(data, 'ddh.carlife.equity.h5.card.enable.by.cardno') return request(data, 'ddh.carlife.equity.h5.card.enable.by.cardno')
...@@ -18,6 +16,9 @@ export const common = { ...@@ -18,6 +16,9 @@ export const common = {
activateBySn(data) { activateBySn(data) {
return request(data, 'ddh.carlife.equity.h5.card.enable.by.sn') return request(data, 'ddh.carlife.equity.h5.card.enable.by.sn')
}, },
}
export const common = {
getSessionId(data) { getSessionId(data) {
return request(data, 'ddh.carlife.user.login.by.wechat', 'GET') return request(data, 'ddh.carlife.user.login.by.wechat', 'GET')
}, },
...@@ -33,4 +34,21 @@ export const common = { ...@@ -33,4 +34,21 @@ export const common = {
getWxConfig(data) { getWxConfig(data) {
return request(data, 'ddh.carlife.common.wechat.jsconfig', 'get') return request(data, 'ddh.carlife.common.wechat.jsconfig', 'get')
}, },
/**上传图片 */
uploadImage(data) {
return request(data, 'ddh.carlife.common.upload.image')
}
}
export const device = {
/**VIN OCR扫描 */
scanVin(data) {
return request(data, 'ddh.carlife.common.ocr.vin.scan')
}
}
export const car = {
/**行驶证OCR扫描 */
scanVehicle(data) {
return request(data, 'ddh.carlife.common.ocr.vehicle.license')
}
} }
\ No newline at end of file \ No newline at end of file

1.11 MB | W: | H:

1.18 MB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
.sprite-icon { background-image: url(../images/sprite.png);background-size: 721px 602px;} .sprite-icon { background-image: url(../images/sprite.png);background-size: 721px 710px;}
.icon-400 { width: 59px; height: 16px; background-position: -544px -484px;} .icon-400 { width: 59px; height: 16px; background-position: -456px -484px;}
.icon-10000 { width: 80px; height: 16px; background-position: -454px -484px;} .icon-10000 { width: 80px; height: 16px; background-position: -366px -484px;}
.icon-banner { width: 375px; height: 240px; background-position: 0px 0px;} .icon-banner { width: 375px; height: 240px; background-position: 0px 0px;}
.icon-btn { width: 362px; height: 63px; background-position: -330px -340px;} .icon-btn { width: 362px; height: 63px; background-position: -330px -340px;}
.icon-card { width: 23px; height: 18px; background-position: 0px -554px;} .icon-card { width: 23px; height: 18px; background-position: -696px -414px;}
.icon-city { width: 60px; height: 60px; background-position: -440px -414px;} .icon-city { width: 60px; height: 60px; background-position: 0px -600px;}
.icon-default-avatar { width: 50px; height: 50px; background-position: -344px -484px;} .icon-default-avatar { width: 50px; height: 50px; background-position: -627px -515px;}
.icon-didi { width: 60px; height: 60px; background-position: -510px -414px;} .icon-didi { width: 60px; height: 60px; background-position: -70px -600px;}
.icon-equity-card { width: 336px; height: 216px; background-position: -385px 0px;} .icon-equity-card { width: 336px; height: 216px; background-position: -385px 0px;}
.icon-gas { width: 60px; height: 60px; background-position: -580px -414px;} .icon-gas { width: 60px; height: 60px; background-position: -140px -600px;}
.icon-halou { width: 60px; height: 60px; background-position: -650px -414px;} .icon-halou { width: 60px; height: 60px; background-position: -210px -600px;}
.icon-kfc { width: 100px; height: 60px; background-position: 0px -414px;} .icon-kfc { width: 100px; height: 60px; background-position: -366px -414px;}
.icon-m { width: 100px; height: 60px; background-position: -110px -414px;} .icon-m { width: 100px; height: 60px; background-position: -476px -414px;}
.icon-more { width: 20px; height: 20px; background-position: 0px -582px;} .icon-more { width: 20px; height: 20px; background-position: -696px -442px;}
.icon-partner { width: 320px; height: 154px; background-position: 0px -250px;} .icon-partner { width: 320px; height: 154px; background-position: 0px -250px;}
.icon-qingji { width: 60px; height: 60px; background-position: 0px -484px;} .icon-qingji { width: 60px; height: 60px; background-position: -280px -600px;}
.icon-ruixing { width: 100px; height: 60px; background-position: -220px -414px;} .icon-ruixing { width: 100px; height: 60px; background-position: -586px -414px;}
.icon-scan { width: 18px; height: 18px; background-position: -702px -340px;} .icon-scan { width: 18px; height: 18px; background-position: -702px -340px;}
.icon-tickets { width: 60px; height: 60px; background-position: -70px -484px;} .icon-tickets { width: 60px; height: 60px; background-position: -350px -600px;}
.icon-today { width: 60px; height: 60px; background-position: -140px -484px;} .icon-today { width: 60px; height: 60px; background-position: -420px -600px;}
.icon-tuanyou { width: 60px; height: 60px; background-position: -210px -484px;} .icon-tuanyou { width: 60px; height: 60px; background-position: -490px -600px;}
.icon-vip { width: 20px; height: 18px; background-position: -33px -554px;} .icon-vip { width: 20px; height: 18px; background-position: -684px -630px;}
.icon-xbk { width: 100px; height: 60px; background-position: -330px -414px;} .icon-xbk { width: 100px; height: 60px; background-position: -185px -515px;}
.icon-device-add { width: 40px; height: 40px; background-position: -404px -484px;} .icon-device-add { width: 40px; height: 40px; background-position: 0px -670px;}
.icon-device-bg { width: 375px; height: 80px; background-position: -330px -250px;} .icon-device-bg { width: 375px; height: 80px; background-position: -330px -250px;}
.icon-device-bind { width: 54px; height: 54px; background-position: -280px -484px;}
.icon-device-scan { width: 20px; height: 20px; background-position: -30px -582px;}
.icon-device-sn { width: 20px; height: 16px; background-position: -613px -484px;}
.icon-device-vin { width: 20px; height: 16px; background-position: -643px -484px;}
\ No newline at end of file \ No newline at end of file
.icon-device-bind { width: 54px; height: 54px; background-position: -560px -600px;}
.icon-device-scan { width: 20px; height: 20px; background-position: -687px -515px;}
.icon-device-sn { width: 20px; height: 16px; background-position: -525px -484px;}
.icon-device-vin { width: 20px; height: 16px; background-position: -555px -484px;}
.icon-car-add { width: 175px; height: 176px; background-position: 0px -414px;}
.icon-car-err { width: 11px; height: 11px; background-position: -385px -226px;}
.icon-car-photo-0 { width: 73px; height: 51px; background-position: -295px -515px;}
.icon-car-photo-1 { width: 73px; height: 51px; background-position: -378px -515px;}
.icon-car-photo-2 { width: 73px; height: 51px; background-position: -461px -515px;}
.icon-car-photo-3 { width: 73px; height: 51px; background-position: -544px -515px;}
.icon-car-success { width: 11px; height: 11px; background-position: -406px -226px;}
.icon-car-camera { width: 20px; height: 20px; background-position: -687px -545px;}
.icon-car-bind { width: 50px; height: 50px; background-position: -624px -600px;}
.icon-car-edit { width: 20px; height: 20px; background-position: -684px -600px;}
.icon-car-tips { width: 171px; height: 91px; background-position: -185px -414px;}
\ No newline at end of file \ No newline at end of file
<template>
<div class="input-group">
<template v-for="(i,index) in length">
<div
:key="index"
:class="['input',{'active':values[index]},{'error':error}]"
>
<input
v-model="values[index]"
type="text"
maxlength="1"
@input="input(index)"
:ref="`focus-${index}`"
>
</div>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'InputGroup',
data () {
return {
values: [],
flag: false,
focusList: []
}
},
props: {
length: {
type: Number,
default: 6
},
value: {
type: String,
default: ''
},
error: {
type: Boolean,
default: false
}
},
watch: {
'values' (newVal) {
this.$emit('input', newVal.join(''))
},
},
mounted () {
let { value, length } = this
if (value) {
value = value.substring(0, length)
this.values = value.split('')
} else {
this.values = new Array(6).fill('')
this.focusList = new Array(6).fill(false)
}
},
methods: {
input (index) {
let { length } = this
if (index < length - 1 && this.values[index]) this.$refs[`focus-${index + 1}`][0].focus()
}
}
}
</script>
<style scoped lang='scss'>
.input-group {
display: flex;
.input {
width: 36px;
height: 36px;
background: #ffffff;
border: 1px solid #dbdbdb;
padding: 0 12px;
box-sizing: border-box;
margin-right: 24px;
input {
width: 100%;
height: 100%;
border: none;
}
&:last-of-type {
margin-right: 0;
}
}
.active {
border-color: #008fff;
}
.error {
border-color: #fa5151;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -8,9 +8,11 @@ const pages = { ...@@ -8,9 +8,11 @@ const pages = {
{ name: 'explain', title: '常见疑问' }, { name: 'explain', title: '常见疑问' },
{ name: 'phoneLogin', title: '登录' } { name: 'phoneLogin', title: '登录' }
], ],
car: [ car: [{
{ name: 'index', hasAuth: true } name: 'index',
], // hasAuth: true,
title: '绑定挪车码'
}],
device: [{ device: [{
name: 'index', name: 'index',
title: '设备关联' title: '设备关联'
......
...@@ -25,8 +25,15 @@ class WxConfig { ...@@ -25,8 +25,15 @@ class WxConfig {
...obj ...obj
}) })
} }
scanQRCode(needResult = 0) { ready(callBack) {
return new Promise(resolve => { return new Promise(resolve => {
wx.ready(() => {
callBack(resolve)
})
})
}
scanQRCode(needResult = 0) {
return this.ready(resolve => {
wx.scanQRCode({ wx.scanQRCode({
needResult, needResult,
scanType: ['qrCode', 'barCode'], scanType: ['qrCode', 'barCode'],
...@@ -37,7 +44,7 @@ class WxConfig { ...@@ -37,7 +44,7 @@ class WxConfig {
}) })
} }
chooseImage(count = 1) { chooseImage(count = 1) {
return new Promise(resolve => { return this.ready(resolve => {
wx.chooseImage({ wx.chooseImage({
count, // 默认9 count, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
...@@ -58,6 +65,16 @@ class WxConfig { ...@@ -58,6 +65,16 @@ class WxConfig {
}) })
}) })
} }
getLocation(type = 'wgs84') {
return this.ready(resolve => {
wx.getLocation({
type, // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
success(res) {
resolve(res)
}
})
})
}
} }
......
<template> <template>
<div> <div class="main">
123 <div class="step-box">
<template v-for="(i,index) in stepList">
<div
:key="index"
:class="['step',{'active':index <= step},{'hideArc':index != step}]"
>
<div class="step-arc">
<div class="inset"></div>
<div
class="line"
v-if="index > 0"
></div>
</div>
{{i}}
</div>
</template>
</div>
<template v-if="step == 0">
<step-one></step-one>
</template>
<template v-if="step == 1">
<step-two></step-two>
</template>
<template v-if="step == 2">
<step-done></step-done>
</template>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import stepOne from './step-one'
import stepTwo from './step-two'
import stepDone from './step-done'
export default { export default {
name: '', name: 'index',
data () { data () {
return { return {
step: 0,
stepList: ['绑定车架号', '绑定挪车码', '完成'],
} }
}, },
components: {
'step-one': stepOne,
'step-two': stepTwo,
'step-done': stepDone
},
mounted () { mounted () {
}, },
methods: { methods: {
} }
} }
</script> </script>
<style scoped lang='scss'> <style lang='scss'>
html,
body {
background-color: rgb(247, 247, 247);
}
.step-box {
display: grid;
grid-template-columns: repeat(3, 1fr);
background: #ffffff;
box-shadow: 0 2px 8px 0 rgba(59, 147, 217, 0.1);
height: 100px;
align-items: center;
position: sticky;
top: 0;
z-index: 2;
.step {
display: flex;
flex-direction: column;
align-items: center;
font-size: 12px;
color: #b9b9b9;
&-arc {
width: 24px;
height: 24px;
background-color: rgba($color: #dddddd, $alpha: 0.2);
display: flex;
align-items: center;
justify-content: center;
border-radius: 100%;
margin-bottom: 14px;
position: relative;
.inset {
width: 16px;
height: 16px;
border-radius: 100%;
background: #dddddd;
}
.line {
position: absolute;
width: 90px;
height: 2px;
background: #dddddd;
border-radius: 1px;
top: 50%;
transform: translateY(-50%);
left: -94px;
}
}
}
.step.active {
color: #008fff;
.step-arc {
.inset {
background: #008fff;
}
.line {
background: #008fff;
}
background-color: rgba($color: #008fff, $alpha: 0.2);
}
}
.step.active.hideArc {
.step-arc {
background-color: transparent;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="step-done">
<div class="bind-img">
<div class="sprite-icon icon-car-bind"></div>
挪车贴已绑定
</div>
<div class="tips">
注意:
<ul>
<li><span>1、</span>请将挪车码贴放在挡风玻璃附近,并确保挪车码清晰无遮挡。</li>
<li><span>2、</span>他人拨打挪车贴上的400服务热线并输入挪车码后,系统将自动转接到您的号码(1355545869)</li>
</ul>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'step-done',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.step-done {
.bind-img {
padding: 40px 0 24px;
font-size: 14px;
color: #008eff;
text-align: center;
.sprite-icon {
margin: 0 auto 16px;
}
}
.tips {
width: 236px;
margin: 0 auto 50px;
font-size: 12px;
color: #3b3b3b;
line-height: 24px;
li {
display: flex;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="step-one">
<template v-if="inputType">
<div class="user-orc">
<div class="title">上传驾驶证自动识别VIN码</div>
<div
class="img-box"
@click="chooseImage"
>
<template v-if="vinImg">
<img :src="vinImg">
</template>
<template v-else>
<div class="sprite-icon icon-car-add"></div>
</template>
</div>
<div
class="input-items"
v-show="vinImg"
>
<div class="item">
<div class="label">所有人:</div>
<div :class="['item-input',{'active':userName}]">
<input
type="text"
maxlength="20"
v-model="userName"
>
</div>
</div>
<div class="item">
<div class="label">VIN码:</div>
<div :class="['item-input',{'active':vin}]">
<input
type="text"
maxlength="17"
v-model="vin"
>
</div>
</div>
<div class="item">
<div class="label">车牌号:</div>
<div :class="['item-input',{'active':carNo}]">
<input
type="text"
maxlength="10"
v-model="carNo"
>
</div>
</div>
</div>
<div class="line"></div>
<div class="subtitle">拍照要求</div>
<div class="photo-list">
<template v-for="(i,index) in photoList">
<div
:key="index"
class="photo-item"
>
<div :class="['sprite-icon',index == 0 ?'icon-car-success':'icon-car-err']"></div>
<div :class="['sprite-icon',`icon-car-photo-${index}`,'photo']"></div>
{{i}}
</div>
</template>
</div>
<div
:class="['btn']"
v-show="vinImg"
>
提交
</div>
<div :class="['tips',{'clearMargin':vinImg}]">
行驶证不在身边?
<div
class="change"
@click="changeType"
>
手动填写
<div class="sprite-icon icon-car-edit"></div>
</div>
</div>
</div>
</template>
<template v-else>
<div class="user-input">
<div class="title">请输入17位车辆VIN码信息</div>
<div class="input-items">
<div class="item">
<div class="label">所有人:</div>
<div :class="['item-input',{'active':userName}]">
<input
type="text"
maxlength="20"
v-model="userName"
>
</div>
</div>
<div class="item">
<div class="label">VIN码:</div>
<div :class="['item-input',{'active':vin}]">
<input
type="text"
maxlength="17"
v-model="vin"
>
</div>
</div>
<div class="item">
<div class="label">车牌号:</div>
<div :class="['item-input',{'active':carNo}]">
<input
type="text"
maxlength="10"
v-model="carNo"
>
</div>
</div>
</div>
<div :class="['btn']">
提交
</div>
<div
class="tips"
@click="changeType"
>
证件识别
<div class="sprite-icon icon-car-camera"></div>
</div>
</div>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
import WxConfig from '@u/WxConfig'
const WX = new WxConfig(['chooseImage'])
export default {
name: 'step-one',
data () {
return {
inputType: true,
photoList: ['正常拍摄', '照片模糊', '边框缺失', '照片反光'],
vinImg: '',
userName: '',
vin: '',
carNo: ''
}
},
mounted () {
},
methods: {
chooseImage () {
WX.chooseImage().then(res => {
let [data] = res
let { localData } = data
this.vinImg = localData
})
},
changeType () {
let { inputType } = this
this.inputType = !inputType
}
}
}
</script>
<style scoped lang='scss'>
.step-one {
padding: 0 20px 20px;
.title {
font-size: 14px;
padding-top: 20px;
}
.input-items {
padding: 20px 26px 6px 17px;
.item {
display: flex;
align-items: center;
font-size: 12px;
color: #333333;
margin-bottom: 24px;
.label {
margin-right: 10px;
text-align: right;
width: 40px;
}
&-input {
background: #ffffff;
border: 1px solid #d8d8d8;
height: 28px;
width: 216px;
padding: 0 12px;
transition: all 0.2s;
input {
border: none;
width: 100%;
height: 100%;
font-size: 14px;
}
}
.active {
border-color: #008fff;
}
.err {
border-color: #fa5151;
}
}
}
.btn {
display: flex;
align-items: center;
justify-content: center;
width: 226px;
height: 30px;
background: #008fff;
border-radius: 18.5px;
font-size: 14px;
color: #ffffff;
margin: 30px auto;
}
.user-orc {
color: #3b3b3b;
text-align: center;
.subtitle {
font-size: 12px;
margin: 16px 0 10px;
}
.img-box {
width: 300px;
height: 180px;
margin: 10px auto 20px;
background: #ffffff;
box-shadow: 0 2px 8px 0 rgba(59, 147, 217, 0.1);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
}
.line {
background: #e9e9e9;
border-radius: 1px;
width: 100%;
height: 2px;
}
.photo-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
font-size: 12px;
.photo-item {
display: flex;
flex-direction: column;
align-items: center;
.photo {
margin: 5px 0;
}
}
}
.tips {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
color: #666666;
margin-top: 90px;
.change {
display: flex;
align-items: center;
color: #008fff;
.sprite-icon {
margin-left: 6px;
}
}
}
.clearMargin {
margin-top: 0;
}
}
.user-input {
text-align: center;
padding-top: 20px;
.tips {
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 12px;
color: #008fff;
.sprite-icon {
margin-left: 6px;
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="step-two">
<div class="input-group-box">
<input-group
:value="value"
@input="input"
:error="error"
></input-group>
<div
class="err-box"
v-show="error"
>提示:当前输入的挪车码不可用</div>
</div>
<div class="line"></div>
<div class="title">如何查找挪车码</div>
<div class="tips-box">
<div class="sprite-icon icon-car-tips"></div>
<div class="tips-text">请在<span>挪车贴</span>上寻找“挪车码”</div>
</div>
<div :class="['btn',{'btn-disabled':value.length < 6}]">提交</div>
</div>
</template>
<script type='text/ecmascript-6'>
import InputGroup from '@c/InputGroup'
export default {
name: 'step-two',
data () {
return {
value: '',
error: false
}
},
components: {
'input-group': InputGroup,
},
mounted () {
},
methods: {
input (val) {
this.value = val
}
}
}
</script>
<style scoped lang='scss'>
.step-two {
padding: 0 20px;
.input-group-box {
padding: 40px 0 66px;
position: relative;
.err-box {
font-size: 12px;
color: #fa5151;
position: absolute;
top: 90px;
left: 0;
}
}
.line {
width: 100%;
height: 2px;
background: #e9e9e9;
border-radius: 1px;
}
.title {
font-size: 14px;
color: #3b3b3b;
margin: 20px 0 10px;
text-align: center;
}
.tips-box {
width: 100%;
height: 119px;
background: #ffffff;
box-shadow: 0 1px 4px 0 rgba(59, 147, 217, 0.3);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: flex-end;
box-sizing: border-box;
padding-right: 10px;
.sprite-icon {
transform: translateX(38px);
}
.tips-text {
font-size: 12px;
color: #2a2a2a;
span {
color: #52e8ff;
}
}
}
.btn {
display: flex;
align-items: center;
justify-content: center;
width: 226px;
height: 30px;
background: #008fff;
border-radius: 18.5px;
margin: 81px auto 0;
font-size: 14px;
color: #ffffff;
}
.btn-disabled {
background: #e0e0e0;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { common } from '@r/api.js' import { equity } from '@r/api.js'
export default { export default {
name: '', name: '',
data () { data () {
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
delete params.sn delete params.sn
} }
this.showLoading('激活中...') this.showLoading('激活中...')
common[target](params).then(res => { equity[target](params).then(res => {
this.hideLoading() this.hideLoading()
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import DeviceTabBar from '@c/DeviceTabBar' import DeviceTabBar from '@c/DeviceTabBar'
import WxConfig from '@u/WxConfig' import WxConfig from '@u/WxConfig'
const wx_config = new WxConfig(['scanQRCode', 'chooseImage']) const WX = new WxConfig(['scanQRCode', 'chooseImage', 'getLocation'])
export default { export default {
name: 'index', name: 'index',
data () { data () {
...@@ -92,16 +92,19 @@ export default { ...@@ -92,16 +92,19 @@ export default {
'device-tabbar': DeviceTabBar 'device-tabbar': DeviceTabBar
}, },
mounted () { mounted () {
WX.getLocation().then(res => {
console.log(res)
})
}, },
methods: { methods: {
scanQRCode () { scanQRCode () {
wx_config.scanQRCode(1).then(res => { WX.scanQRCode(1).then(res => {
let { resultStr } = res let { resultStr } = res
this.sn = resultStr.split(',')[1] this.sn = resultStr.split(',')[1]
}) })
}, },
chooseImage () { chooseImage () {
wx_config.chooseImage().then(res => { WX.chooseImage().then(res => {
let [data] = res let [data] = res
let { localData } = data let { localData } = data
this.vinImg = localData this.vinImg = localData
......
...@@ -90,7 +90,7 @@ body { ...@@ -90,7 +90,7 @@ body {
transform: translateY(-50%); transform: translateY(-50%);
left: 62px; left: 62px;
background: #ffffff; background: #ffffff;
border: 3px solid #ededed; border: 2px solid #ededed;
content: ""; content: "";
width: 10px; width: 10px;
height: 10px; height: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!