作者 李芳银

红包样式修改

... ... @@ -271,7 +271,8 @@ Page({
},
changeBarn() {
wx.navigateTo({
url: '/pages/MyGarage/MyGarage?tdTap=2'
// url: '/pages/MyGarage/MyGarage?tdTap=2'
url: '/pages/Vmore4SList/Vmore4SList'
})
},
goCarDetails(e) {
... ...
... ... @@ -7,7 +7,8 @@ page {
.header {
width: 100%;
background: #f53526;
// background: #f53526;
background: linear-gradient(180deg, #F53526 100%, #FD7F2E 100%);
.left_img {
width: 100%;
... ... @@ -151,11 +152,10 @@ page {
image {
width: 32rpx;
height: 32rpx;
margin-left: 5rpx;
}
.ress_c_name {
margin-left: 8rpx;
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
... ...
... ... @@ -37,7 +37,9 @@
<image src="{{imagesUrl}}assets/static/img/x_i.png" />
</view>
<view class="ress_c" bindtap="clickAttention">
<image src="{{imagesUrl}}assets/static/img/ress_m.png" />
<image src="../../static/img/red_star.png" wx:if="{{decorations.guan_id == 1}}" />
<!-- <image src="{{imagesUrl}}assets/static/img/ress_m.png" wx:else /> -->
<image src="../../static/img/hui_star.png" wx:else />
<view class="ress_c_name">{{decorations.guan_id == 1? '已关注' :'关注'}}</view>
</view>
</view>
... ...
... ... @@ -6,7 +6,7 @@ page {
}
.container .header {
width: 100%;
background: #f53526;
background: linear-gradient(180deg, #F53526 100%, #FD7F2E 100%);
}
.container .header .left_img {
width: 100%;
... ... @@ -129,9 +129,9 @@ page {
.container .health .btd .btd_box .ress_btd .ress_a .ress_c image {
width: 32rpx;
height: 32rpx;
margin-left: 5rpx;
}
.container .health .btd .btd_box .ress_btd .ress_a .ress_c .ress_c_name {
margin-left: 8rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC-Regular;
font-weight: 400;
... ...
... ... @@ -10,12 +10,12 @@ page {
.search_box {
display: block;
margin-top: 15rpx;
margin: 15rpx 0 30rpx;
width: 100%;
height: 70rpx;
.search {
width: 78%;
width: 84%;
background-color: #fff;
border-radius: 15rpx;
display: flex;
... ... @@ -41,11 +41,17 @@ page {
.search_btn {
float: right;
height: 70rpx;
color: #E8370F;
font-weight: 700;
line-height: 70rpx;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
background-color: transparent;
.new_image {
width: 48rpx;
height: 48rpx;
}
}
}
... ... @@ -63,6 +69,7 @@ page {
align-items: baseline;
border: 1rpx solid #ccc;
margin-right: 10rpx;
border-radius: 8rpx;
.nam {
font-size: 28rpx;
... ... @@ -82,6 +89,7 @@ page {
justify-content: center;
border: 1rpx solid #ccc;
margin-left: 10rpx;
border-radius: 8rpx;
.nam {
font-size: 28rpx;
... ...
<view class="container">
<form class="search_box" catchsubmit="bindconfirm">
<view class="search">
<image src="{{imagesUrl}}assets/static/img/searchone.png"></image>
<input type="text" placeholder="请输入搜索内容" value="{{searchValue}}" confirm-type="search" bindinput="getInput" bindconfirm="bindconfirm" name="input"></input>
</view>
<button class="search_btn" style="width:100rpx!important" formType='submit'>搜索</button>
</form>
<view class="changeTitle">
<view class="l_box" bindtap="goCityList">
<view class="nam">{{cityName}}</view>
... ... @@ -16,6 +9,15 @@
<image src="{{imagesUrl}}assets/static/img/xiala_icon@2x.png" />
</view>
</view>
<form class="search_box" catchsubmit="bindconfirm">
<view class="search">
<image src="{{imagesUrl}}assets/static/img/searchone.png"></image>
<input type="text" placeholder="请输入搜索内容" value="{{searchValue}}" confirm-type="search" bindinput="getInput" bindconfirm="bindconfirm" name="input"></input>
</view>
<button class="search_btn" style="width:100rpx!important" formType='submit'>
<image src="../../static/img/new_search.png" class="new_image" />
</button>
</form>
<view class="listList">
<block wx:if="{{moreList.length != 0}}">
<block wx:for="{{moreList}}" wx:key="index" wx:for-index="index" wx:for-item="item">
... ...
... ... @@ -8,12 +8,12 @@ page {
}
.container .search_box {
display: block;
margin-top: 15rpx;
margin: 15rpx 0 30rpx;
width: 100%;
height: 70rpx;
}
.container .search_box .search {
width: 78%;
width: 84%;
background-color: #fff;
border-radius: 15rpx;
display: flex;
... ... @@ -36,12 +36,16 @@ page {
.container .search_box .search_btn {
float: right;
height: 70rpx;
color: #E8370F;
font-weight: 700;
line-height: 70rpx;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
background-color: transparent;
}
.container .search_box .search_btn .new_image {
width: 48rpx;
height: 48rpx;
}
.container .changeTitle {
margin: 30rpx 0;
display: flex;
... ... @@ -55,6 +59,7 @@ page {
align-items: baseline;
border: 1rpx solid #ccc;
margin-right: 10rpx;
border-radius: 8rpx;
}
.container .changeTitle .l_box .nam {
font-size: 28rpx;
... ... @@ -71,6 +76,7 @@ page {
justify-content: center;
border: 1rpx solid #ccc;
margin-left: 10rpx;
border-radius: 8rpx;
}
.container .changeTitle .r_box .nam {
font-size: 28rpx;
... ...
... ... @@ -317,7 +317,8 @@ Page({
},
changeBarn() {
wx.navigateTo({
url: '/pages/MyGarage/MyGarage?tdTap=4'
// url: '/pages/MyGarage/MyGarage?tdTap=4'
url: '/pages/Vmore4SList/Vmore4SList?home=1'
})
},
goSearch() {
... ...
... ... @@ -155,11 +155,10 @@ page {
image {
width: 32rpx;
height: 32rpx;
margin-left: 5rpx;
}
.ress_c_name {
margin-left: 8rpx;
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
... ...
... ... @@ -37,7 +37,9 @@
<image src="{{imagesUrl}}assets/static/img/x_i.png" />
</view>
<view class="ress_c" bindtap="clickAttention">
<image src="{{imagesUrl}}assets/static/img/ress_m.png" />
<image src="../../static/img/red_star.png" wx:if="{{decorations.guan_id == 1}}" />
<!-- <image src="{{imagesUrl}}assets/static/img/ress_m.png" wx:else /> -->
<image src="../../static/img/hui_star.png" wx:else />
<view class="ress_c_name">{{decorations.guan_id == 1? '已关注' :'关注'}}</view>
</view>
</view>
... ...
... ... @@ -131,9 +131,9 @@ page {
.container .health .btd .btd_box .ress_btd .ress_a .ress_c image {
width: 32rpx;
height: 32rpx;
margin-left: 5rpx;
}
.container .health .btd .btd_box .ress_btd .ress_a .ress_c .ress_c_name {
margin-left: 8rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC-Regular;
font-weight: 400;
... ...
... ... @@ -34,6 +34,7 @@ Page({
CarBrandName: '',
s4_id: '',
color: 1,
che_id: '',
},
onLoad: function (options) {
let that = this
... ... @@ -60,29 +61,28 @@ Page({
let that = this
let carNum = e.detail.value
let sheng_id = that.data.sheng_id
let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
const careg = reg.test(carNum);
if (!careg) {
wx.showToast({
icon: 'none',
title: '请输入正确车牌号',
})
return;
} else {
that.setData({
pai: carNum
})
console.log(that.data.shengItem, "shengItem");
if (sheng_id != '') {
that.getRegister()
}
}
// let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
// const careg = reg.test(carNum);
// if (!careg) {
// wx.showToast({
// icon: 'none',
// title: '请输入正确车牌号',
// })
// return;
// } else {
// that.setData({
// pai: carNum
// })
// console.log(that.data.shengItem, "shengItem");
// if (sheng_id != '') {
// that.getRegister()
// }
// }
},
paiInput(e) { // c车牌号
let that = this
let carNum = e.detail.value
// let sheng_id = that.data.sheng_id
let sheng_id = that.data.sheng_id
let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
const careg = reg.test(carNum);
if (!careg) {
... ... @@ -96,10 +96,9 @@ Page({
pai: carNum
})
console.log(that.data.shengItem, "shengItem");
// if (sheng_id != '') {
// that.getRegister()
// }
if (sheng_id != '') {
that.getRegister()
}
}
},
... ... @@ -118,29 +117,56 @@ Page({
console.log(data, "注册");
if (data.code == 1) {
let msg = data.msg
a.popSuccessTest(msg)
a.popTest(msg)
}
} catch (err) {
let msg = err.msg
// a.popTest(msg)
// a.popTest(err.msg)
console.log(err);
wx.showModal({
title: '提示',
content: '该车已被注册,是否申请加入车辆管理?',
success: function (res) {
if (res.confirm) {
} else {
if (err.code == -1) {
if (err.data.che_id != '') {
that.setData({
che_id: err.data.che_id
})
that.sendShen()
}
} else if (err.code == 0) {
a.popTest(err.msg)
}
}
},
sendShen() {
let that = this
wx.showModal({
title: '提示',
content: '该车已被注册,是否申请加入车辆管理?',
success: async function (res) {
if (res.confirm) {
try {
const {
data
} = await request({
url: 'api/new2/sendShen',
data: {
che_id: that.data.che_id
}
})
console.log(data);
a.popTest(data.msg)
} catch (err) {
console.log(err);
a.popTest(err.msg)
}
} else {
// a.popTest('该车已被注册过,您不能绑定该车牌号')
}
})
}
}
})
},
bindTimeChange(e) { // 时间
this.setData({
buy_time: e.detail.value
... ... @@ -176,7 +202,6 @@ Page({
})
that.popTest()
}
},
onShow: function () {
... ... @@ -329,15 +354,15 @@ Page({
obj.buy_time = that.data.buy_time
obj.km = that.data.km
console.log(obj);
let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
let careg = reg.test(obj.pai);
if (!careg) {
wx.showToast({
icon: 'none',
title: '请输入正确车牌号',
})
return;
}
// let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
// let careg = reg.test(obj.pai);
// if (!careg) {
// wx.showToast({
// icon: 'none',
// title: '请输入正确车牌号',
// })
// return;
// }
if (that.data.selected) {
try {
const {
... ...
... ... @@ -41,7 +41,7 @@
</view>
<view class="card_km ">
<label for="行驶里程" class="labelsitem">行驶里程:</label>
<input type="number" class="flex_km inputitem" placeholder="请输入公里数" placeholder-class="text_car" name="km" bindblur="kmInput" />
<input type="number" class="flex_km inputitem" placeholder="请输入公里数" placeholder-class="text_car" name="km" bindinput="kmInput" />
<view class="km">km</view>
</view>
<view class="card_time car4S car">
... ...
... ... @@ -32,7 +32,8 @@ Page({
idx: '',
shengItem: '',
CarBrandName: '',
color: 1
color: 1,
che_id: '',
},
onLoad: function (options) {
let that = this
... ... @@ -80,25 +81,28 @@ Page({
bindinputed(e) {
let that = this
let carNum = e.detail.value
let sheng_id = that.data.sheng_id
let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
const careg = reg.test(carNum);
if (!careg) {
wx.showToast({
icon: 'none',
title: '请输入正确车牌号',
})
return;
} else {
that.setData({
pai: carNum
})
console.log(that.data.shengItem, "shengItem");
if (sheng_id != '') {
that.getRegister()
}
}
that.setData({
pai: carNum
})
// let sheng_id = that.data.sheng_id
// let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
// const careg = reg.test(carNum);
// if (!careg) {
// wx.showToast({
// icon: 'none',
// title: '请输入正确车牌号',
// })
// return;
// } else {
// that.setData({
// pai: carNum
// })
// console.log(that.data.shengItem, "shengItem");
// if (sheng_id != '') {
// that.getRegister()
// }
// }
},
async getRegister() { // 注册
let that = this
... ... @@ -119,20 +123,49 @@ Page({
}
} catch (err) {
wx.showModal({
title: '提示',
content: '该车已被注册,是否申请加入车辆管理?',
success: function (res) {
if (res.confirm) {
console.log(err);
if (err.code == -1) {
if (err.data.che_id != '') {
that.setData({
che_id: err.data.che_id
})
that.sendShen()
}
} else if (err.code == 0) {
a.popTest(err.msg)
}
}
} else {
},
sendShen() {
let that = this
wx.showModal({
title: '提示',
content: '该车已被注册,是否申请加入车辆管理?',
success: async function (res) {
if (res.confirm) {
try {
const {
data
} = await request({
url: 'api/new2/sendShen',
data: {
che_id: that.data.che_id
}
})
console.log(data);
a.popTest(data.msg)
} catch (err) {
console.log(err);
a.popTest(err.msg)
}
} else {
// a.popTest('该车已被注册过,您不能绑定该车牌号')
}
})
}
}
})
},
bindTimeChange(e) { // 时间
... ... @@ -208,7 +241,6 @@ Page({
go4Ssearch() {
wx.navigateTo({
url: '/pages/4Ssearch/4Ssearch?pin_id=' + this.data.pin_id + '&city_id=' + this.data.city_id
// url: '/pages/4Ssearch/4Ssearch?pin_id=' + this.data.pin_id + '&city_id=' + 871
})
},
async getAddGuiZhe() { // 获取规则说明
... ...
... ... @@ -49,7 +49,7 @@
<view class="card_km car4S car">
<view class="car_title">行驶里程:</view>
<view class="bos">
<input type="number" class="inputs" placeholder="请输入公里数" placeholder-class="text_car" name="km" bindblur="kmInput" />
<input type="number" class="inputs" placeholder="请输入公里数" placeholder-class="text_car" name="km" bindinput="kmInput" />
<view class="kms">km</view>
</view>
</view>
... ...
... ... @@ -22,6 +22,39 @@ Page({
url: '/pages/homeNologin/homeNologin?id=' + id
})
},
cancelRefund(e) { // 取消退款
let that = this
wx.showModal({
title: '提示',
content: '确定要取消退款吗?',
success: async function (res) {
if (res.confirm) {
try {
const {
data
} = await request({
url: 'api/active/qvTui',
data: {
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "取消退款");
if (data.code == 1) {
a.popSuccessTest(data.msg)
setTimeout(() => {
that.getMyorder()
}, 800);
}
} catch (err) {
a.popTest(err.msg)
}
} else {
}
}
})
},
async getMyorder() { // 获取订单
let that = this;
try {
... ...
... ... @@ -21,6 +21,9 @@
</view>
</view>
<view class="btns">
<button class="btn" style="margin-right:20rpx" wx:if="{{item.state_name =='退款中'}}" catchtap="cancelRefund" data-order_no="{{item.order_no}}">
取消退款
</button>
<button class="btn" catchtap="tomyOrderObligation" data-id="{{item.id}}">查看订单</button>
<button class="btn delbtn" disabled="{{deltrue}}" catchtap="delOrder" data-id="{{item.id}}">
删除
... ...
... ... @@ -7,6 +7,7 @@ page {
.header {
width: 100%;
background: linear-gradient(270deg, #f53526 0%, #fd7f2e 99%);
box-shadow: 0rpx -4rpx 4rpx 0rpx rgba(235, 85, 33, 0.18);
... ...
... ... @@ -31,7 +31,8 @@ Page({
idx: '',
s4_id: '',
buy_time2: '',
s4_ID: ''
s4_ID: '',
che_id: '',
},
onShow: function () {
... ... @@ -149,47 +150,34 @@ Page({
pai: carNum
})
}
// let value = (e.detail.value || '').trim()
// console.log(value);
// if (value) {
// const reg = /[\u4e00-\u9fa5]/ig
// if ((reg.test(value))) {
// value = value.replace(reg, '')
// that.setData({
// msg: '不允许输入中文',
// pai: ''
// })
// that.popTest()
// } else {
// that.setData({
// pai: value
// })
// }
// }
},
bindinputed(e) {
let that = this
let carNum = e.detail.value
let sheng_id = that.data.sheng_id
let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
const careg = reg.test(carNum);
if (!careg) {
wx.showToast({
icon: 'none',
title: '请输入正确车牌号',
})
return;
} else {
that.setData({
pai: carNum
})
console.log(that.data.shengItem, "shengItem");
if (sheng_id != '') {
that.getRegister()
}
that.setData({
pai: carNum
})
// let sheng_id = that.data.sheng_id
// let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
// const careg = reg.test(carNum);
// if (!careg) {
// wx.showToast({
// icon: 'none',
// title: '请输入正确车牌号',
// })
// return;
// } else {
// that.setData({
// pai: carNum
// })
// console.log(that.data.shengItem, "shengItem");
// if (sheng_id != '') {
// that.getRegister()
// }
}
// }
},
async getRegister() { // 注册
let that = this
... ... @@ -210,20 +198,49 @@ Page({
}
} catch (err) {
wx.showModal({
title: '提示',
content: '该车已被注册,是否申请加入车辆管理?',
success: function (res) {
if (res.confirm) {
console.log(err);
if (err.code == -1) {
if (err.data.che_id != '') {
that.setData({
che_id: err.data.che_id
})
that.sendShen()
}
} else if (err.code == 0) {
a.popTest(err.msg)
}
}
},
} else {
sendShen() {
let that = this
wx.showModal({
title: '提示',
content: '该车已被注册,是否申请加入车辆管理?',
success: async function (res) {
if (res.confirm) {
try {
const {
data
} = await request({
url: 'api/new2/sendShen',
data: {
che_id: that.data.che_id
}
})
console.log(data);
a.popTest(data.msg)
} catch (err) {
console.log(err);
a.popTest(err.msg)
}
} else {
// a.popTest('该车已被注册过,您不能绑定该车牌号')
}
})
}
}
})
},
bindTimeChange(e) { // 时间
... ...
... ... @@ -40,7 +40,7 @@
</view>
<view class="card_km car">
<view class="labelsItem">行驶里程:</view>
<input type="number" placeholder="请输入公里数" value="{{km}}" placeholder-class="text_car" bindblur="kmInput" name="km" />
<input type="number" placeholder="请输入公里数" value="{{km}}" placeholder-class="text_car" bindinput="kmInput" name="km" />
<text>km</text>
</view>
<view class="card_time abdcar car">
... ...
... ... @@ -43,6 +43,41 @@ Page({
that.popMaskTest()
}
},
cancelRefund(e) { // 取消退款
let that = this
wx.showModal({
title: '提示',
content: '确定要取消退款吗?',
success: async function (res) {
if (res.confirm) {
try {
const {
data
} = await request({
url: 'api/active/qvTui',
data: {
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "取消退款");
if (data.code == 1) {
a.popSuccessTest(data.msg)
setTimeout(() => {
// that.getMyorder()
wx.navigateBack()
}, 800);
}
} catch (err) {
a.popTest(err.msg)
}
} else {
}
}
})
},
async cancelOrder(e) {
let that = this
let id = e.currentTarget.dataset.id
... ...
... ... @@ -65,6 +65,9 @@
</view>
<!-- 底部按钮 -->
<view class="downbtn" wx:if="{{swiperList.info.price != 0}}">
<button class="btn btn2" style="margin-right:20rpx; " wx:if="{{swiperList.state_name =='退款中'}}" catchtap="cancelRefund" data-order_no="{{swiperList.order_no}}">
取消退款
</button>
<button class="btn1 btn " catchtap="cancelOrder" data-id="{{swiperList.id}}" wx:if="{{swiperList.state == 1}}">
退款
</button>
... ...
... ... @@ -27,6 +27,10 @@ Page({
this.getMyOrderObligation()
},
godetails(e) {
let id = e.currentTarget.dataset.id
console.log(id);
},
async getMyOrderObligation() { // 获取
let that = this;
try {
... ...
... ... @@ -35,6 +35,7 @@ Page({
color: 1,
Address: {},
scene: '',
che_id: '',
},
... ... @@ -263,25 +264,28 @@ Page({
bindinputed(e) {
let that = this
let carNum = e.detail.value
let sheng_id = that.data.sheng_id
let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
const careg = reg.test(carNum);
if (!careg) {
wx.showToast({
icon: 'none',
title: '请输入正确车牌号',
})
return;
} else {
that.setData({
pai: carNum
})
console.log(that.data.shengItem, "shengItem");
if (sheng_id != '') {
that.getRegister()
}
}
that.setData({
pai: carNum
})
// let sheng_id = that.data.sheng_id
// let reg = /^(([A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
// const careg = reg.test(carNum);
// if (!careg) {
// wx.showToast({
// icon: 'none',
// title: '请输入正确车牌号',
// })
// return;
// } else {
// that.setData({
// pai: carNum
// })
// console.log(that.data.shengItem, "shengItem");
// if (sheng_id != '') {
// that.getRegister()
// }
// }
},
async getRegister() { // 注册
let that = this
... ... @@ -302,20 +306,49 @@ Page({
}
} catch (err) {
wx.showModal({
title: '提示',
content: '该车已被注册,是否申请加入车辆管理?',
success: function (res) {
if (res.confirm) {
console.log(err);
if (err.code == -1) {
if (err.data.che_id != '') {
that.setData({
che_id: err.data.che_id
})
that.sendShen()
}
} else if (err.code == 0) {
a.popTest(err.msg)
}
}
} else {
},
sendShen() {
let that = this
wx.showModal({
title: '提示',
content: '该车已被注册,是否申请加入车辆管理?',
success: async function (res) {
if (res.confirm) {
try {
const {
data
} = await request({
url: 'api/new2/sendShen',
data: {
che_id: that.data.che_id
}
})
console.log(data);
a.popTest(data.msg)
} catch (err) {
console.log(err);
a.popTest(err.msg)
}
} else {
// a.popTest('该车已被注册过,您不能绑定该车牌号')
}
})
}
}
})
},
formSubmit(e) { // 保存时
let that = this
... ...
... ... @@ -53,7 +53,7 @@
</view>
<view class="card_km car4S car">
<label for="行驶里程" class="labelsitem">行驶里程:</label>
<input type="number" class="flex_km inputitem" placeholder="请输入公里数" placeholder-class="text_car" name="km" bindblur="kmInput" />
<input type="number" class="flex_km inputitem" placeholder="请输入公里数" placeholder-class="text_car" name="km" bindinput="kmInput" />
<view class="km">km</view>
</view>
</view>
... ...
... ... @@ -7,21 +7,38 @@
width: 100%;
display: flex;
align-items: center;
height: 140rpx;
// height: 140rpx;
height: 88rpx;
border-top: 1rpx solid #f9f9f9;
.tab_ {
flex: 1;
text-align: center;
line-height: 100rpx;
height: 100rpx;
line-height: 88rpx;
height: 88rpx;
font-size: 28rpx;
border-radius: 0 0 6rpx 6rpx;
}
.active {
background-color: #E8370F;
color: #fff;
// background-color: #E8370F;
// background: linear-gradient(270deg, #f53526 0%, #fd7f2e 99%);
color: #E8370F;
font-weight: bold;
position: relative;
&::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 50rpx;
height: 4rpx;
background-color: #E8370F;
}
}
}
... ... @@ -41,7 +58,8 @@
align-items: center;
padding: 20rpx;
box-sizing: border-box;
background-color: #e8370f;
background: url('https://car.goorcar.com/assets/static/img/bg_img02.png') no-repeat;
background-size: 100% 100%;
border-radius: 16rpx 16rpx 0 0;
.red_left {
... ... @@ -50,19 +68,19 @@
align-items: center;
justify-content: center;
flex-direction: column;
border-right: 1rpx solid #fff;
// border-right: 1rpx solid #fff;
padding: 20rpx 0;
box-sizing: border-box;
.red_money {
font-size: 36rpx;
color: #fff;
color: #ffffff;
font-weight: bold;
}
.manjian {
color: #fff;
color: #ffffff;
font-size: 28rpx;
margin-top: 20rpx;
}
... ... @@ -72,7 +90,7 @@
flex: 2;
height: 146rpx;
// border: 1rpx solid #fff;
padding: 0 20rpx;
padding: 0 20rpx 0 28rpx;
box-sizing: border-box;
display: flex;
flex-direction: column;
... ... @@ -80,7 +98,8 @@
.txt {
font-size: 28rpx;
color: #fff;
color: #06121E;
font-weight: 600;
display: -webkit-box;
-webkit-line-clamp: 1;
overflow: hidden;
... ... @@ -91,13 +110,15 @@
.validity {
font-size: 24rpx;
color: #fff;
color: #5B5E63;
}
.datetime {
font-size: 24rpx;
color: #fff;
color: #5B5E63;
padding-bottom: 15rpx;
box-sizing: border-box;
}
... ... @@ -227,6 +248,8 @@
.receive {
border-radius: 16rpx;
background: url('https://car.goorcar.com/assets/static/img/bg_img01.png') no-repeat;
background-size: 100% 100%;
}
}
... ...
<view class="container">
<view class="tabs_s ">
<view class="tab_ {{currentT == 1? 'active':''}}" bindtap="clickNum" data-num="1">红包领取</view>
<view class="tab_ {{currentT == 2? 'active':''}}" bindtap="clickNum" data-num="2">我的红包</view>
<view class="tab_ {{currentT == 1? 'active':''}}" bindtap="clickNum" data-num="1">抵用券领取</view>
<view class="tab_ {{currentT == 2? 'active':''}}" bindtap="clickNum" data-num="2">我的抵用券</view>
</view>
<view class="padding" wx:if="{{currentT == 1}}" :data="redPacket">
<view class="packets" wx:for="{{redPacket}}" wx:for-index="index" wx:for-item="item" wx:key="index">
... ... @@ -41,8 +41,8 @@
<view class="packets" wx:for="{{myPacket}}" wx:for-index="index1" wx:for-item="item1" wx:key="index1">
<view class="packet receive">
<view class="red_left">
<view class="red_money">{{item1.red.cheap}}元</view>
<view class="manjian">满{{item1.red.man}}元可用</view>
<view class="red_money" style="color:#E8370F">{{item1.red.cheap}}元</view>
<view class="manjian" style="color:#E8370F">满{{item1.red.man}}元可用</view>
</view>
<view class="red_right">
<view class="txt ">{{item1.red.name}}</view>
... ...
... ... @@ -6,20 +6,31 @@
width: 100%;
display: flex;
align-items: center;
height: 140rpx;
height: 88rpx;
border-top: 1rpx solid #f9f9f9;
}
.container .tabs_s .tab_ {
flex: 1;
text-align: center;
line-height: 100rpx;
height: 100rpx;
line-height: 88rpx;
height: 88rpx;
font-size: 28rpx;
border-radius: 0 0 6rpx 6rpx;
}
.container .tabs_s .active {
background-color: #E8370F;
color: #fff;
color: #E8370F;
font-weight: bold;
position: relative;
}
.container .tabs_s .active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 50rpx;
height: 4rpx;
background-color: #E8370F;
}
.container .padding {
width: 100%;
... ... @@ -36,7 +47,8 @@
align-items: center;
padding: 20rpx;
box-sizing: border-box;
background-color: #e8370f;
background: url('https://car.goorcar.com/assets/static/img/bg_img02.png') no-repeat;
background-size: 100% 100%;
border-radius: 16rpx 16rpx 0 0;
}
.container .padding .packets .packet .red_left {
... ... @@ -45,24 +57,23 @@
align-items: center;
justify-content: center;
flex-direction: column;
border-right: 1rpx solid #fff;
padding: 20rpx 0;
box-sizing: border-box;
}
.container .padding .packets .packet .red_left .red_money {
font-size: 36rpx;
color: #fff;
color: #ffffff;
font-weight: bold;
}
.container .padding .packets .packet .red_left .manjian {
color: #fff;
color: #ffffff;
font-size: 28rpx;
margin-top: 20rpx;
}
.container .padding .packets .packet .red_right {
flex: 2;
height: 146rpx;
padding: 0 20rpx;
padding: 0 20rpx 0 28rpx;
box-sizing: border-box;
display: flex;
flex-direction: column;
... ... @@ -70,7 +81,8 @@
}
.container .padding .packets .packet .red_right .txt {
font-size: 28rpx;
color: #fff;
color: #06121E;
font-weight: 600;
display: -webkit-box;
-webkit-line-clamp: 1;
overflow: hidden;
... ... @@ -79,11 +91,13 @@
}
.container .padding .packets .packet .red_right .validity {
font-size: 24rpx;
color: #fff;
color: #5B5E63;
}
.container .padding .packets .packet .red_right .datetime {
font-size: 24rpx;
color: #fff;
color: #5B5E63;
padding-bottom: 15rpx;
box-sizing: border-box;
}
.container .padding .packets .packet .red_right .stat_num {
display: flex;
... ... @@ -187,6 +201,8 @@
}
.container .padding .packets .receive {
border-radius: 16rpx;
background: url('https://car.goorcar.com/assets/static/img/bg_img01.png') no-repeat;
background-size: 100% 100%;
}
.container .padding .text_box {
width: 100%;
... ...
... ... @@ -163,6 +163,9 @@ Page({
showDialog: !this.data.showDialog
})
},
getSearchStoreList() {
},
... ...
<view class="container">
<view class="search_bot">
<form bindsubmit='getSearchStoreList'>
<form bindsubmit='getSearch'>
<view class="search_box">
<view class="search">
<image src="{{imagesUrl}}assets/static/img/searchone.png"></image>
... ...
... ... @@ -35,19 +35,28 @@
margin-top: 30rpx;
.address_name {
width: 100%;
display: flex;
flex-direction: column;
.item {
font-size: 28rpx;
line-height: 50rpx;
.ress_im {
width: 100%;
display: flex;
align-items: center;
}
.item2 {
font-size: 32rpx;
line-height: 60rpx;
font-weight: bold;
.item {
font-size: 32rpx;
line-height: 50rpx;
}
.item2 {
font-size: 32rpx;
line-height: 50rpx;
margin-left: 5rpx;
}
}
.per_name {
... ... @@ -67,17 +76,20 @@
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 20rpx;
margin-top: 20rpx;
box-sizing: border-box;
height: 40rpx;
.img_ {
display: flex;
align-items: center;
image {
width: 28rpx;
height: 28rpx;
}
text {
.set_mo {
margin-left: 20rpx;
font-size: 28rpx;
line-height: 40rpx;
... ...
... ... @@ -7,8 +7,10 @@
</view>
<view class="address" wx:for="{{AddressList}}" wx:for-item="item" wx:key="index">
<view class="address_name">
<text class="item">{{item.address}}</text>
<text class="item2">{{item.address2}}</text>
<view class="ress_im">
<view class="item">{{item.address}}</view>
<view class="item2">{{item.address2}}</view>
</view>
<view class="per_name">
<text class="item">{{item.name}}</text>
<text class="item">{{item.phone}}</text>
... ... @@ -18,7 +20,7 @@
<view class="img_" bindtap="setDefaults" data-id="{{item}}" data-index="{{index}}">
<image src="{{imagesUrl}}assets/static/img/select.png" wx:if="{{item.is_mo == 1}}" />
<image src="{{imagesUrl}}assets/static/img/radios.png" wx:if="{{item.is_mo == 0}}" />
<text>设为默认</text>
<view class="set_mo">设为默认</view>
</view>
<view class="editor">
<text bindtap="goEditor" data-id="{{item.id}}">编辑</text>
... ...
... ... @@ -30,17 +30,23 @@ page .container .address {
margin-top: 30rpx;
}
page .container .address .address_name {
width: 100%;
display: flex;
flex-direction: column;
}
page .container .address .address_name .item {
font-size: 28rpx;
page .container .address .address_name .ress_im {
width: 100%;
display: flex;
align-items: center;
}
page .container .address .address_name .ress_im .item {
font-size: 32rpx;
line-height: 50rpx;
}
page .container .address .address_name .item2 {
page .container .address .address_name .ress_im .item2 {
font-size: 32rpx;
line-height: 60rpx;
font-weight: bold;
line-height: 50rpx;
margin-left: 5rpx;
}
page .container .address .address_name .per_name {
display: flex;
... ... @@ -55,14 +61,19 @@ page .container .address .down_change {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 20rpx;
margin-top: 20rpx;
box-sizing: border-box;
height: 40rpx;
}
page .container .address .down_change .img_ {
display: flex;
align-items: center;
}
page .container .address .down_change .img_ image {
width: 28rpx;
height: 28rpx;
}
page .container .address .down_change .img_ text {
page .container .address .down_change .img_ .set_mo {
margin-left: 20rpx;
font-size: 28rpx;
line-height: 40rpx;
... ...
... ... @@ -5,6 +5,7 @@ const a = getApp()
Page({
data: {
imagesUrl: a.globalData.baseUrl,
statusTop: a.globalData.statusHeight,
active: 1,
_num: 1, // 1 车唛 2 4S店
S4sShopList: [], // 4s店
... ...
... ... @@ -3,5 +3,6 @@
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index"
},
"navigationBarTitleText": "商品列表"
"navigationBarTitleText": "商品列表", "navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
\ No newline at end of file
... ...
... ... @@ -7,6 +7,32 @@ page {
.container {
width: 100%;
.header {
width: 100%;
// background: #f53526;
background: linear-gradient(180deg, #F53526 100%, #FD7F2E 100%);
.left_img {
width: 100%;
display: flex;
align-items: center;
padding: 0 32rpx;
box-sizing: border-box;
height: 88rpx;
.title_oage {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 500;
}
}
}
.cateCart {
display: flex;
align-items: center;
... ... @@ -32,7 +58,8 @@ page {
font-size: 32rpx;
line-height: 100rpx;
text-align: center;
background-color: #E8370F;
background-color: #f53526;
// background: linear-gradient(270deg, #f53526 0%, #fd7f2e 99%);
color: #fff;
border-radius: 0 0 6rpx 6rpx;
}
... ...
<view class="container">
<view class="header">
<view class="s" style='height:{{statusTop}}px'></view>
<view class="left_img">
<view class="title_oage">车唛优选</view>
</view>
</view>
<view class="cateCart">
<view class="left_store " data-num="1" bindtap="changeTitle">
<!-- <view class="left_totd {{type == 1? 'item':''}}">车唛商品</view> -->
<view class="left_totd {{_num == 1? 'item':''}}">车唛商品</view>
</view>
<view class="right_store " data-num="2" bindtap="changeTitle">
<!-- <view class="right_totd {{type == 2? 'item':''}}">4S店商品</view> -->
<view class="right_totd {{_num == 2? 'item':''}}">4S店商品</view>
</view>
</view>
... ...
... ... @@ -6,6 +6,26 @@ page {
.container {
width: 100%;
}
.container .header {
width: 100%;
background: linear-gradient(180deg, #F53526 100%, #FD7F2E 100%);
}
.container .header .left_img {
width: 100%;
display: flex;
align-items: center;
padding: 0 32rpx;
box-sizing: border-box;
height: 88rpx;
}
.container .header .left_img .title_oage {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 500;
}
.container .cateCart {
display: flex;
align-items: center;
... ... @@ -28,7 +48,7 @@ page {
font-size: 32rpx;
line-height: 100rpx;
text-align: center;
background-color: #E8370F;
background-color: #f53526;
color: #fff;
border-radius: 0 0 6rpx 6rpx;
}
... ...
... ... @@ -7,7 +7,8 @@ page {
.header {
width: 100%;
background: #f53526;
// background: #f53526;
background: linear-gradient(180deg, #F53526 100%, #FD7F2E 100%);
.left_img {
width: 100%;
... ...
... ... @@ -6,7 +6,7 @@ page {
}
.container .header {
width: 100%;
background: #f53526;
background: linear-gradient(180deg, #F53526 100%, #FD7F2E 100%);
}
.container .header .left_img {
width: 100%;
... ...