Commit f9268508 authored by lijiongliang's avatar lijiongliang

页面优化

parent 369d390f
<template> <template>
<view class="car-number"> <view class="car-number">
<view class="new-energy">新能源</view> <!-- <view class="new-energy">新能源</view> -->
<view class="wrap" @tap="focusHandler"> <view class="wrap" @tap="focusHandler">
<view <view
:class="[ :class="[
...@@ -65,6 +65,9 @@ ...@@ -65,6 +65,9 @@
this.$emit('change', val); this.$emit('change', val);
}, },
value(val){ value(val){
if(!val){
this.fill = new Array(this.length).fill('')
}
for (let i = 0 ; i < val.length; i++) { for (let i = 0 ; i < val.length; i++) {
this.fill[i] = val.substring(i,i+1) this.fill[i] = val.substring(i,i+1)
} }
......
...@@ -263,7 +263,13 @@ ...@@ -263,7 +263,13 @@
"style": { "style": {
"navigationBarTitleText": "退款成功" "navigationBarTitleText": "退款成功"
} }
} },
{
"path": "pages/personal/instructions",
"style": {
"navigationBarTitleText": ""
}
}
] ]
} }
], ],
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</u-checkbox-group> </u-checkbox-group>
</view> </view>
<view> <view>
已阅读并同意<span @click="goArticle(1)">《用户注册服务协议》</span><span @click="goArticle(2)">《京东挪车牌隐私权政策》</span> 已阅读并同意<span @click="goArticle(1)">《用户注册服务协议》</span><span @click="goArticle(2)">《京东汽车挪车牌隐私权政策》</span>
</view> </view>
</view> </view>
<div> <div>
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
}); });
} else { } else {
uni.showToast({ uni.showToast({
title: "请阅读并同意《用户注册服务协议》和《京东挪车牌隐私权政策》", title: "请阅读并同意《用户注册服务协议》和《京东汽车挪车牌隐私权政策》",
icon: 'none', icon: 'none',
duration: 2000, duration: 2000,
}); });
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox> <u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group> </u-checkbox-group>
已阅读并同意 <span @click="goArticle(1)">《用户注册服务协议》</span><span 已阅读并同意 <span @click="goArticle(1)">《用户注册服务协议》</span><span
@click="goArticle(2)">《京东挪车牌隐私权政策》</span>。若您的手机号未注册,将为您直接注册友众账号 @click="goArticle(2)">《京东汽车挪车牌隐私权政策》</span>。若您的手机号未注册,将为您直接注册友众账号
</div> </div>
</div> </div>
</view> </view>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
//登录 //登录
checkLogin() { checkLogin() {
uni.showToast({ uni.showToast({
title: "请先阅读并同意《用户注册服务协议》、《京东挪车牌隐私权政策》", title: "请先阅读并同意《用户注册服务协议》、《京东汽车挪车牌隐私权政策》",
icon: 'none', icon: 'none',
duration: 2000, duration: 2000,
}); });
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
领取优惠券 领取优惠券
</view> </view>
<view> <view>
免费购买京东挪车牌 免费购买京东汽车挪车牌
</view> </view>
</view> </view>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<u-checkbox-group placement="row"> <u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox> <u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group> </u-checkbox-group>
请先阅读并同意<span @click="goArticle">《京东挪车牌隐私权政策》</span> 请先阅读并同意<span @click="goArticle">《京东汽车挪车牌隐私权政策》</span>
</div> </div>
<div class="add__btn add__no__bind" @click="addCarInfo()"> <div class="add__btn add__no__bind" @click="addCarInfo()">
完成 完成
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
this.$refs.form1.validate().then(res => { this.$refs.form1.validate().then(res => {
if (!this.checked) { if (!this.checked) {
uni.showToast({ uni.showToast({
title: "请同意京东挪车牌隐私权政策", title: "请同意京东汽车挪车牌隐私权政策",
icon: 'none', icon: 'none',
duration: 2000, duration: 2000,
}); });
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<u-checkbox-group placement="row"> <u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox> <u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group> </u-checkbox-group>
请先阅读并同意<span @click="goArticle">《京东挪车牌隐私权政策》</span> 请先阅读并同意<span @click="goArticle">《京东汽车挪车牌隐私权政策》</span>
</div> </div>
<div class="add__btn add__no__bind" @click="editCarInfo"> <div class="add__btn add__no__bind" @click="editCarInfo">
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
this.$refs.form1.validate().then(res => { this.$refs.form1.validate().then(res => {
if (!this.checked) { if (!this.checked) {
uni.showToast({ uni.showToast({
title: "请同意京东挪车牌隐私权政策", title: "请同意京东汽车挪车牌隐私权政策",
icon: 'none', icon: 'none',
duration: 2000, duration: 2000,
}); });
......
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
<div class="love__btn" @click="addCar"> <div class="love__btn" @click="addCar">
<image src="@/static/move-car/love-car5.png"> 添加车辆 <image src="@/static/move-car/love-car5.png"> 添加车辆
</div> </div>
<view class="guide" @click="gotoExplanation">
如何修改爱车信息?
</view>
</div> </div>
</view> </view>
</template> </template>
...@@ -127,7 +131,13 @@ export default { ...@@ -127,7 +131,13 @@ export default {
delta: 1 delta: 1
}) })
} }
} },
// 跳转到使用说明页面
gotoExplanation() {
uni.navigateTo({
url: '/pagesD/pages/personal/instructions'
});
},
}, },
onShow(){ onShow(){
this.getCarList() this.getCarList()
...@@ -231,9 +241,9 @@ export default { ...@@ -231,9 +241,9 @@ export default {
color: #FFFFFF; color: #FFFFFF;
line-height: 76rpx; line-height: 76rpx;
text-align: center; text-align: center;
position: fixed; // position: fixed;
width: 670rpx; // width: 670rpx;
bottom: 60rpx; // bottom: 60rpx;
image { image {
width: 30rpx; width: 30rpx;
height: 30rpx; height: 30rpx;
...@@ -241,5 +251,13 @@ export default { ...@@ -241,5 +251,13 @@ export default {
} }
} }
.guide{
text-align: center;
font-size: 28rpx;
text-decoration: underline;
color: #3A86F7;
margin-top:30rpx;
}
} }
</style> </style>
...@@ -15,39 +15,43 @@ ...@@ -15,39 +15,43 @@
感谢您使用挪车二维码,请完成车牌号与手机的绑定以便享受挪车服务 感谢您使用挪车二维码,请完成车牌号与手机的绑定以便享受挪车服务
</div> </div>
</div> </div>
<div class="car_info" v-if="carInfo"> <div class="car_info">
<view class="select-car" @click="getCarList">
请选择爱车 &gt;
</view>
<view class="info_list"> <view class="info_list">
<view class="left"> <view class="left">
品牌 品牌车型:
</view> </view>
<view class="right"> <view class="right" style="width:500rpx;">
{{carInfo.brand}} {{carInfo ? carInfo.brand + " " + carInfo.carModel : ""}}
</view> </view>
</view> </view>
<view class="info_list"> <!-- <view class="info_list">
<view class="left"> <view class="left">
车型 车型
</view> </view>
<view class="right"> <view class="right">
{{carInfo.carModel}} {{carInfo.carModel}}
</view> </view>
</view> </view> -->
<view class="info_list"> <view class="info_list" style="padding:10rpx 0;">
<view class="left"> <view class="left">
车牌号 车牌号
</view> </view>
<view class="right"> <view class="right" style="width:500rpx;">
{{carInfo.carNo}} <!-- {{carInfo.carNo || ""}} -->
<car-number class="car__input" v-model="model1.carNo"></car-number>
</view> </view>
</view> </view>
<view class="info_list"> <!-- <view class="info_list">
<view class="left"> <view class="left">
行驶里程 行驶里程
</view> </view>
<view class="right"> <view class="right">
{{carInfo.mileage || 0}}KM {{carInfo.mileage || 0}}KM
</view> </view>
</view> </view> -->
<!-- <div class="scan__tips"> <!-- <div class="scan__tips">
<div>请填写以下信息</div> <div>请填写以下信息</div>
<div @click="goLoveCar">从爱车选择<span> <div @click="goLoveCar">从爱车选择<span>
...@@ -63,10 +67,10 @@ ...@@ -63,10 +67,10 @@
<u-checkbox-group placement="row"> <u-checkbox-group placement="row">
<u-checkbox :checked='checked' @change="changeBtn"></u-checkbox> <u-checkbox :checked='checked' @change="changeBtn"></u-checkbox>
</u-checkbox-group> </u-checkbox-group>
请先阅读并同意<span @click="goArticle(2)">《京东挪车牌隐私权政策》</span> 请先阅读并同意<span @click="goArticle(2)">《京东汽车挪车牌隐私权政策》</span>
</div> --> </div> -->
</div> </div>
<view class="no-car-info" v-else> <!-- <view class="no-car-info">
<view class="title"> <view class="title">
请完成以下操作 请完成以下操作
</view> </view>
...@@ -77,7 +81,7 @@ ...@@ -77,7 +81,7 @@
<view class="no-car-btn" @click="getCarList"> <view class="no-car-btn" @click="getCarList">
从爱车选择 从爱车选择
</view> </view>
</view> </view> -->
<view class="form-data"> <view class="form-data">
<view class="form-item"> <view class="form-item">
...@@ -107,7 +111,8 @@ ...@@ -107,7 +111,8 @@
<div class="view__btn view__no__bind" @click="confirmBinding"> <div class="view__btn view__no__bind" @click="confirmBinding">
绑定车辆 绑定车辆
</div> </div>
<div class="use__text" @click="gotoExplanation">使用说明</div> <!-- <div class="use__text" @click="gotoExplanation">使用说明</div> -->
<div class="use__text" @click="goArticle(2)">挪车牌使用安全说明</div>
<!-- 爱车选择弹框 --> <!-- 爱车选择弹框 -->
<u-popup :show="selectCar" mode="bottom" round="10" @close="selectCar = false"> <u-popup :show="selectCar" mode="bottom" round="10" @close="selectCar = false">
...@@ -118,7 +123,7 @@ ...@@ -118,7 +123,7 @@
</view> </view>
<view class="love_list"> <view class="love_list">
<view v-if="carList.length != 0"> <view v-if="carList.length != 0">
<view class="love_item" v-for="(item,i) in carList" :key="i" @click="radioChange(i)"> <view class="love_item" v-for="(item,i) in carList" :key="i" @click="radioChange(item)">
<image src="../../../static/move-car/love-car6.png"></image> <image src="../../../static/move-car/love-car6.png"></image>
<view class="love_info"> <view class="love_info">
<view> <view>
...@@ -129,7 +134,7 @@ ...@@ -129,7 +134,7 @@
</view> </view>
</view> </view>
<view class="radio"> <view class="radio">
<image src="../../../static/move-car/radio-active.png" v-if="i === radioValue"></image> <image src="../../../static/move-car/radio-active.png" v-if="item.id === radioValue"></image>
<image src="../../../static/move-car/radio.png" v-else></image> <image src="../../../static/move-car/radio.png" v-else></image>
</view> </view>
</view> </view>
...@@ -251,7 +256,7 @@ export default { ...@@ -251,7 +256,7 @@ export default {
// 跳转到使用说明页面 // 跳转到使用说明页面
gotoExplanation() { gotoExplanation() {
uni.navigateTo({ uni.navigateTo({
url: '/pagesD/pages/personal/help' url: '/pagesD/pages/personal/instructions'
}); });
}, },
goLoveCar() { goLoveCar() {
...@@ -260,12 +265,12 @@ export default { ...@@ -260,12 +265,12 @@ export default {
}); });
}, },
// 选择爱车 // 选择爱车
radioChange(index){ radioChange(item){
this.carInfo = this.carList[index] this.carInfo = item
this.radioValue = index this.radioValue = item.id
this.selectCar = false this.selectCar = false
this.model1.carNo = this.carList[index].carNo this.model1.carNo = item.carNo
this.model1.carId = this.carList[index].id this.model1.carId = item.id
}, },
// 获取爱车列表 // 获取爱车列表
getCarList(){ getCarList(){
...@@ -331,6 +336,14 @@ export default { ...@@ -331,6 +336,14 @@ export default {
}) })
}, },
confirmBinding() { confirmBinding() {
console.log(this.model1,22222222222)
if(!this.carInfo){
uni.showToast({
title: "请选择绑定的爱车!",
icon: "none",
});
return;
}
if(this.model1.userMobile.length == 0){ if(this.model1.userMobile.length == 0){
uni.showToast({ uni.showToast({
title: "联系方式不能为空!", title: "联系方式不能为空!",
...@@ -473,7 +486,7 @@ export default { ...@@ -473,7 +486,7 @@ export default {
height: 76rpx; height: 76rpx;
text-align: center; text-align: center;
line-height: 76rpx; line-height: 76rpx;
margin: 0 auto; margin: 50rpx auto 0;
font-size: 32rpx; font-size: 32rpx;
} }
...@@ -610,6 +623,12 @@ export default { ...@@ -610,6 +623,12 @@ export default {
padding:0 40rpx; padding:0 40rpx;
position: relative; position: relative;
top:-6rpx; top:-6rpx;
.select-car{
line-height:80rpx;
text-align: right;
font-size: 28rpx;
color: #E1251B;
}
.info_list{ .info_list{
line-height:90rpx; line-height:90rpx;
display: flex; display: flex;
...@@ -623,6 +642,12 @@ export default { ...@@ -623,6 +642,12 @@ export default {
.right{ .right{
font-size: 28rpx; font-size: 28rpx;
color: #666; color: #666;
line-height: 1.8;
word-wrap:break-word;
text-align: right;
.car__input{
width: 100%;
}
} }
} }
.car_btn{ .car_btn{
......
<!--
* @Author: euzhi
* @Description: 帮助使用
-->
<template>
<view class="appCotent">
<view class="instructions">
<view class="title">
如何修改爱车信息?
</view>
<view class="content">
<view>
1、京东汽车小程序内-我要挪车icon-爱车管理-添加车辆,重新填写正确信息,选择正确绑定的车辆信息即可。
</view>
<view>
2、京东app-首页-京东汽车-频道首页-汽车管家icon-切换车辆/编辑车辆信息。
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
image: '',
type:""
}
},
onLoad(e) {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.instructions {
padding: 20rpx 30rpx;
.title{
font-size: 38rpx;
font-family: PingFang SC;
font-weight: bold;
line-height:80rpx;
}
.content{
margin-top:20rpx;
font-size: 34rpx;
view{
line-height:1.5;
}
}
}
</style>
\ 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