Commit c13a1a36 authored by 肖健's avatar 肖健

Merge remote-tracking branch 'origin/master' into dev_cd

# Conflicts:
#	pagesB/pages/move-car/scan.vue
#	unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
#	unpackage/dist/dev/.sourcemap/mp-weixin/pagesA/pages/index/getPrice.js.map
#	unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/pages/move-car/scan.js.map
#	unpackage/dist/dev/mp-weixin/pagesA/pages/index/getPrice.js
#	unpackage/dist/dev/mp-weixin/pagesA/pages/index/getPrice.wxml
#	unpackage/dist/dev/mp-weixin/pagesB/pages/move-car/scan.js
#	unpackage/dist/dev/mp-weixin/pagesB/pages/move-car/scan.wxml
#	unpackage/dist/dev/mp-weixin/static/public.css
parents df1fcde5 523e4531
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<u-form-item label="车牌号" ref="item1"> </u-form-item> <u-form-item label="车牌号" ref="item1"> </u-form-item>
<car-number v-model="carNumber"></car-number> <car-number v-model="carNumber"></car-number>
</u--form> </u--form>
<div class="select__car"> <div class="select__car" @click="goLoveCar">
从爱车选择 <image src="@/static/index/zhankai.png" alt=""> 从爱车选择 <image src="@/static/index/zhankai.png" alt="">
</div> </div>
</div> </div>
...@@ -98,6 +98,11 @@ export default { ...@@ -98,6 +98,11 @@ export default {
}, },
}, },
methods: { methods: {
goLoveCar(){
uni.navigateTo({
url: '/pagesB/pages/move-car/loveCar'
});
},
getCarCode() { getCarCode() {
//跳转到获取挪车码页面 //跳转到获取挪车码页面
uni.navigateTo({ uni.navigateTo({
......
...@@ -4,30 +4,30 @@ ...@@ -4,30 +4,30 @@
--> -->
<template> <template>
<view class="appCotent"> <view class="appCotent">
<div class="scan"> <div class="scan">
<div class="contentMoveCar"> <div class="contentMoveCar">
<div class="car_item__one"> <div class="car_item__one">
<div class="item__content"> <div class="item__content">
京A123G63 京A123G63
</div>
</div>
<div class="car_item__three">
感谢您使用挪车二维码,请完成车牌号与手机的绑定以便享受挪车服务
</div> </div>
</div> </div>
<div class="car_item__three"> <div class="moveCarMsg">
感谢您使用挪车二维码,请完成车牌号与手机的绑定以便享受挪车服务 <div class="scan__tips">
<div>请填写以下信息</div>
<div @click="goLoveCar">从爱车选择<span>
<image src="@/static/move-car/scan_right.png" /></span></div>
</div>
<active-form :formDate.sync="formData"></active-form>
</div> </div>
</div> <div class="view__btn view__no__bind" @click="confirmBinding">
<div class="moveCarMsg"> 确认绑定
<div class="scan__tips">
<div>请填写以下信息</div>
<div>从爱车选择<span>
<image src="@/static/move-car/scan_right.png" /></span></div>
</div> </div>
<active-form :formDate.sync="formData"></active-form> <div class="use__text">使用说明</div>
</div> </div>
<div class="view__btn view__no__bind" @click="confirmBinding">
确认绑定
</div>
<div class="use__text">使用说明</div>
</div>
</view> </view>
</template> </template>
...@@ -103,39 +103,44 @@ export default { ...@@ -103,39 +103,44 @@ export default {
}, },
}, },
], ],
moveCode: '', moveCode: '',
moveCodeInfo: {}, moveCodeInfo: {},
} }
}, },
methods: { methods: {
confirmBinding(){ goLoveCar() {
for(let i in this.formData){ uni.navigateTo({
let name = this.formData[i].rules.name url: '/pagesB/pages/move-car/loveCar'
this.moveCodeInfo[name] = this.formData[i].rules.value });
} },
console.log(this.moveCodeInfo) confirmBinding(){
let opts = { url: '/app/moveCode/binding/', method: 'put' }; for(let i in this.formData){
this.http.httpTokenRequest(opts, this.moveCodeInfo).then(res => { let name = this.formData[i].rules.name
if (res.data.code == 200) { this.moveCodeInfo[name] = this.formData[i].rules.value
//展示绑定成功 }
uni.showToast({ console.log(this.moveCodeInfo)
title: "绑定成功", let opts = { url: '/app/moveCode/binding/', method: 'put' };
icon: "success", this.http.httpTokenRequest(opts, this.moveCodeInfo).then(res => {
}); if (res.data.code == 200) {
this.goBack() //展示绑定成功
}else{ uni.showToast({
//绑定失败,展示失败信息 title: "绑定成功",
uni.showToast({ icon: "success",
title: res.data.msg, });
icon: "error", this.goBack()
}); }else{
} //绑定失败,展示失败信息
}) uni.showToast({
}, title: res.data.msg,
icon: "error",
});
}
})
},
},
onLoad(option) {
this.moveCode = option.moveCode
}, },
onLoad(option) {
this.moveCode = option.moveCode
},
} }
</script> </script>
......
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
.self__input__km{ .self__input__km{
display: flex; display: flex;
align-items: center; align-items: center;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment