Commit fce20f06 authored by 程新智's avatar 程新智 👽

scn

parent 63e9a270
......@@ -268,10 +268,8 @@ button::after {
.binding {
.login__logo {
padding-top: 80rpx;
padding-top: 206rpx;
text-align: center;
padding-bottom: 100rpx;
image {
width: 174rpx;
height: 174rpx;
......@@ -302,7 +300,7 @@ button::after {
opacity: 0.96;
letter-spacing: .5em;
margin-bottom: 32rpx;
margin-top: 200rpx;
margin-top: 100rpx;
}
.login__read {
......
......@@ -178,7 +178,7 @@ export default {
mounted() {
setTimeout(() => {
this.isShow = true
}, 100);
}, 200);
this.getMallList()
this.getRotationList()
//this.getBoutiqueMallList()
......
......@@ -69,7 +69,7 @@
</div> -->
</div>
</div>
<u-gap bgColor="transparent" height="100"></u-gap>
<u-gap bgColor="transparent" height="160"></u-gap>
<div class="address" v-if="addressShow" @click="goAddress">
<div class="address__left">
<div class="right__title">
......@@ -446,7 +446,10 @@ export default {
left: 0;
right: 0;
margin: 0 auto;
justify-content: space-between;
box-shadow: 0rpx 0rpx 28rpx 1rpx rgba(232, 232, 232, 0.16);
border-radius: 40rpx;
border: 1rpx solid #ffeddc;
.address__left {
width: 600rpx;
......
......@@ -34,7 +34,7 @@
</u-form-item>
<u-form-item label="行驶里程" prop="carInfo.mileage" borderBottom ref="item3">
<div class="self__input__km">
<u--input v-model="model1.carInfo.mileage" placeholder="请输入" border="none"></u--input>KM
<u--input v-model="model1.carInfo.mileage" placeholder="请输入" border="none"></u--input><span>KM</span>
</div>
</u-form-item>
<u-form-item label="车牌号" prop="carInfo.carNo" ref="item1"> </u-form-item>
......
......@@ -19,7 +19,7 @@
</u-form-item>
<u-form-item label="行驶里程" prop="carInfo.mileage" borderBottom ref="item1">
<div class="self__input__km">
<u--input v-model="model1.carInfo.mileage" placeholder="请输入" border="none"></u--input>KM
<u--input v-model="model1.carInfo.mileage" placeholder="请输入" border="none"></u--input><span>KM</span>
</div>
</u-form-item>
<u-form-item label="车牌号" prop="carInfo.carNo" ref="item1"> </u-form-item>
......
......@@ -19,7 +19,7 @@
</u-form-item>
<u-form-item label="行驶里程" prop="carInfo.mileage" borderBottom ref="item3">
<div class="self__input__km">
<u--input v-model="model1.carInfo.mileage" placeholder="请输入" border="none"></u--input>KM
<u--input v-model="model1.carInfo.mileage" placeholder="请输入" border="none"></u--input><span>KM</span>
</div>
</u-form-item>
<u-form-item label="车牌号" prop="carInfo.carNo" ref="item1"> </u-form-item>
......
......@@ -8,7 +8,7 @@
<div class="contentMoveCar">
<div class="car_item__one">
<div class="item__content">
{{moveCode}}
{{moveCode}}
</div>
</div>
<div class="car_item__three">
......@@ -19,7 +19,11 @@
<div class="scan__tips">
<div>请填写以下信息</div>
<div @click="goLoveCar">从爱车选择<span>
<image src="@/static/move-car/scan_right.png" /></span></div>
<image src="@/static/move-car/scan_right.png" /></span></div>
</div>
<div class="car__num__self">
<div class="car__num">车牌号:</div>
<car-number v-model="moveCodeInfo.carNo"></car-number>
</div>
<active-form :formDate.sync="formData"></active-form>
</div>
......@@ -32,28 +36,33 @@
</template>
<script>
import CarNumber from "@/common/codecook-carnumber/codecook-carnumber.vue";
export default {
components: {
CarNumber,
},
data() {
return {
model1: {
carInfo: {},
},
formData: [{
id: "kjjns", //id必须唯一 可以是数字
placeholder: "请输入",
label: "车牌号", // 提示输入名
type: "text", //类型
rules: {
name: "carNo", //字段名 即提交给后端的字段
value: "",
verify: false, //是否开启校验
errMess: "车牌号未填写", //校验不通过的错误提示
},
},
formData: [
// {
// id: "kjjns", //id必须唯一 可以是数字
// placeholder: "请输入",
// label: "车牌号", // 提示输入名
// type: "text", //类型
// rules: {
// name: "carNo", //字段名 即提交给后端的字段
// value: "",
// verify: false, //是否开启校验
// errMess: "车牌号未填写", //校验不通过的错误提示
// },
// },
{
id: "kjjns", //id必须唯一 可以是数字
placeholder: "请输入",
label: "品牌", // 提示输入名
label: "品牌", // 提示输入名
type: "text", //类型
rules: {
name: "brand", //字段名 即提交给后端的字段
......@@ -65,7 +74,7 @@ export default {
{
id: "kjjns", //id必须唯一 可以是数字
placeholder: "请输入",
label: "车型", // 提示输入名
label: "车型", // 提示输入名
type: "text", //类型
rules: {
name: "carModel", //字段名 即提交给后端的字段
......@@ -77,7 +86,7 @@ export default {
{
id: "kjjns", //id必须唯一 可以是数字
placeholder: "请输入",
label: "手机号", // 提示输入名
label: "手机号", // 提示输入名
type: "text", //类型
rules: {
name: "phone", //字段名 即提交给后端的字段userMobile
......@@ -89,7 +98,7 @@ export default {
{
id: "uisdfjks",
placeholder: "请输入验证码",
label: "验证码",
label: "验证码",
type: "text",
// oneKeyPhone:true,
rules: {
......@@ -100,79 +109,85 @@ export default {
},
},
],
//挪车码
moveCode: '',
//绑定挪车码信息
moveCodeInfo: {},
//选择车辆id
carId: '',
//挪车码
moveCode: '',
//绑定挪车码信息
moveCodeInfo: {},
//选择车辆id
carId: '',
}
},
methods: {
goLoveCar() {
uni.navigateTo({
url: '/pagesB/pages/move-car/loveCar?price=1'
});
},
confirmBinding(){
for(let i in this.formData){
let name = this.formData[i].rules.name
if(name == 'yzm'){
this.moveCodeInfo.verificationCode = this.formData[i].rules.value
}else if(name == 'phone'){
this.moveCodeInfo.userMobile = this.formData[i].rules.value
}else{
this.moveCodeInfo[name] = this.formData[i].rules.value
}
}
//console.log(this.moveCodeInfo)
goLoveCar() {
uni.navigateTo({
url: '/pagesB/pages/move-car/loveCar?price=1'
});
},
confirmBinding() {
for (let i in this.formData) {
let name = this.formData[i].rules.name
if (name == 'yzm') {
this.moveCodeInfo.verificationCode = this.formData[i].rules.value
} else if (name == 'phone') {
this.moveCodeInfo.userMobile = this.formData[i].rules.value
} else {
this.moveCodeInfo[name] = this.formData[i].rules.value
}
}
//console.log(this.moveCodeInfo)
this.moveCodeInfo.moveCode = this.moveCode
let opts = { url: '/app/moveCode/binding/', method: 'put' };
this.http.httpTokenRequest(opts, this.moveCodeInfo).then(res => {
if (res.data.code == 200) {
//展示绑定成功
uni.showToast({
title: "绑定成功",
icon: "success",
});
uni.navigateTo({
url: '/pagesB/pages/move-car/myMoveCar'
})
}else{
//绑定失败,展示失败信息
uni.showToast({
title: res.data.msg,
icon: "error",
});
}
})
},
getCarInfo(){
if(this.carId){
let opts = { url: '/app/vehicleAdmin/' + this.carId, method: 'get' };
this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) {
this.model1.carInfo = res.data.data
}
})
this.formData.forEach(e=>{
if(e.label == '车牌号'){
e.rules.value = this.model1.carInfo.carNo
}else if(e.label == '品牌'){
e.rules.value = this.model1.carInfo.brand
}else if(e.label == '车型'){
e.rules.value = this.model1.carInfo.carModel
let opts = {
url: '/app/moveCode/binding/',
method: 'put'
};
this.http.httpTokenRequest(opts, this.moveCodeInfo).then(res => {
if (res.data.code == 200) {
//展示绑定成功
uni.showToast({
title: "绑定成功",
icon: "success",
});
uni.navigateTo({
url: '/pagesB/pages/move-car/myMoveCar'
})
} else {
//绑定失败,展示失败信息
uni.showToast({
title: res.data.msg,
icon: "error",
});
}
})
},
getCarInfo() {
if (this.carId) {
let opts = {
url: '/app/vehicleAdmin/' + this.carId,
method: 'get'
};
this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) {
this.model1.carInfo = res.data.data
}
})
this.formData.forEach(e => {
if (e.label == '车牌号') {
e.rules.value = this.model1.carInfo.carNo
} else if (e.label == '品牌') {
e.rules.value = this.model1.carInfo.brand
} else if (e.label == '车型') {
e.rules.value = this.model1.carInfo.carModel
}
})
console.log(this.formData)
}
},
}
},
},
onLoad(option) {
this.moveCode = option.moveCode
this.moveCode = option.moveCode
},
onShow:function(){
onShow: function () {
this.getCarInfo()
//console.log( this.$store.state.selectedCar);
}
......@@ -283,6 +298,19 @@ export default {
position: relative;
top: -56rpx;
.car__num__self {
display: flex;
align-items: center;
justify-content: space-between;
.car__num {
width: 160rpx;
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 500;
color: #666666;
}
}
.scan__tips {
display: flex;
align-items: center;
......
......@@ -211,10 +211,10 @@ export default {
<style lang="scss" scoped>
.addAddress {
.app__gps {
padding-left: 20rpx;
image {
width: 34rpx;
height: 36rpx;
padding-left: 20rpx;
}
}
......
......@@ -251,7 +251,7 @@ export default {
.editAddress {
.app__gps {
display: inline-block;
padding-left: 20rpx;
image {
width: 34rpx;
height: 36rpx;
......
......@@ -107,7 +107,7 @@
</div>
<div class="order__btn">
<span @click="goCarTime(item.id)">查看物流</span>
<span @click="orderDetail(item.id)">查看详情</span>
<span class="btn__two" @click="orderDetail(item.id)">查看详情</span>
</div>
</div>
</div>
......@@ -448,6 +448,7 @@ export default {
font-family: PingFang SC;
font-weight: 500;
color: #999999;
margin-left: 20rpx;
}
.btn__two {
......
......@@ -18,4 +18,9 @@
.self__input__km{
display: flex;
align-items: center;
}
/deep/ .self__input__km span{
padding-left: 10rpx;
width: 70rpx !important;
}
\ 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