Commit 054c4381 by null

init

parents
File added
App({
onLaunch: function() {},
globalData: {
app_id: 'wx3722cae0d0b62fff',
url: 'https://test-es.checheng.com/api/',
width: 0,
height: 0,
session_key: '',
enter: '',
result: '',
link: '2019062353971015',
provinceList: [],
tiantianpaiche_cityList: ['南京', '无锡', '合肥', '南昌', '苏州', '绍兴',
'天津', '上海', '杭州', '宁波', '成都', '武汉',
'重庆', '义乌', '东莞', '佛山', '金华', '深圳',
'南通', '温州', '济南', '嘉兴', '西安', '广州',
'北京', '济南', '青岛', '临沂'
],
chezhibao_cityList: ['北京', '上海', '天津', '重庆', '石家庄', '唐山', '邯郸', '保定', '张家口', '沧州', '廊坊', '福州',
'厦门', '泉州', '漳州', '南昌', '赣州', '济南', '青岛', '淄博', '枣庄', '烟台', '潍坊', '济宁', '泰安', '威海', '日照',
'临沂', '滨州', '太原', '大同', '运城', '赤峰', '郑州', '洛阳', '新乡', '南阳', '商丘', '沈阳', '大连', '鞍山', '抚顺',
'锦州', '营口', '铁岭', '葫芦岛', '武汉', '宜昌', '长春', '吉林', '松原', '长沙', '湘潭', '衡阳', '岳阳', '常德', '哈尔滨',
'齐齐哈尔', '大庆', '绥化', '广州', '深圳', '珠海', '汕头', '佛山', '惠州', '东莞', '中山', '南京', '无锡', '徐州', '常州',
'苏州', '南通', '连云港', '淮安', '盐城', '泰州', '宿迁', '南宁', '柳州', '桂林', '成都', '绵阳', '南充', '杭州', '宁波',
'温州', '嘉兴', '绍兴', '金华', '台州', '昆明', '合肥', '芜湖', '蚌埠', '贵阳', '西安', '兰州', '西宁', '银川', '襄阳'
],
renrenche_cityList: ['唐山', '廊坊', '青岛', '天津', '北京', '哈尔滨', '大连', '沈阳', '长春', '石家庄', '保定', '济南', '临沂',
'秦皇岛', '沧州', '菏泽', '杭州', '金华', '温州', '南昌', '福州', '宁波', '厦门', '嘉兴', '洛阳', '苏州', '无锡', '合肥', '泉州',
'台州', '湖州', '南通', '常州', '上海', '绍兴', '南京', '芜湖', '扬州', '漳州', '许昌', '南宁', '惠州', '郑州', '佛山', '广州', '东莞',
'深圳', '长沙', '桂林', '中山', '安阳', '襄阳', '绵阳', '兰州', '昆明', '重庆', '太原', '贵阳', '乌鲁木齐', '西安', '武汉', '成都',
'包头', '威海', '东营', '潍坊', '伊犁', '珠海', '新乡', '南阳', '大同', '呼和浩特', '咸阳', '辽源', '商丘', '赤峰', '德州', '清远',
'南平', '保山', '韶关', '遵义', '临汾', '漯河', '德阳', '大庆', '聊城', '阜新', '张家口', '抚顺', '延边', '渭南', '达州', '亳州',
'咸宁', '烟台'
],
},
onLaunch: function(e) {
wx.clearStorage();
let _this = this;
wx.getSystemInfo({
success: function(res) {
_this.globalData.width = res.windowWidth;
_this.globalData.height = res.windowHeight;
}
}),
wx.login({
success: function(res) {
if (res.errMsg === 'login:ok') {
let data = {
code: res.code,
app_id: _this.globalData.app_id
}
wx.request({
url: _this.globalData.url + 'user-code',
data: data,
success: function(res) {
let session_key = res.data.session_key
_this.globalData.session_key = session_key
}
})
}
}
}),
_this.getProvinceList()
},
// 获取省份
getProvinceList: function () {
let _this = this;
wx.request({
url: _this.globalData.url + 'assess/provinces',
success: function (res) {
if (res.data && res.data.length > 0) {
let data = res.data
let arr = []
for (let key in data) {
if (data[key].id === 32) {
continue
}
arr.push(data[key])
}
_this.globalData.provinceList = arr
}
}
})
},
})
\ No newline at end of file
{
"pages": [
"pages/index/index",
"pages/result/result",
"pages/sellcar/sellcar",
"pages/car-select/brand",
"pages/car-select/series",
"pages/car-select/specification",
"pages/advantage/advantage",
"pages/guide/guide",
"pages/submit/submit"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fe9527",
"navigationBarTitleText": "爱车估价",
"navigationBarTextStyle": "white"
},
"tabBar": {
"color": "#666",
"selectedColor": "#fe9527",
"list": [
{
"pagePath": "pages/index/index",
"text": "估值",
"iconPath": "images/valuation.png",
"selectedIconPath": "images/valuation-active.png"
},
{
"pagePath": "pages/sellcar/sellcar",
"text": "卖车",
"iconPath": "images/sellcar.png",
"selectedIconPath": "images/sellcar-active.png"
},
{
"pagePath": "pages/advantage/advantage",
"text": "卖车优势",
"iconPath": "images/advantage.png",
"selectedIconPath": "images/advantage-active.png"
},
{
"pagePath": "pages/guide/guide",
"text": "卖车指南",
"iconPath": "images/guide.png",
"selectedIconPath": "images/guide-active.png"
}
]
},
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
This diff is collapsed. Click to expand it.
File added
Page({
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<image mode="widthFix" src="../../images/advantage-1.png"></image>
<image mode="widthFix" src="../../images/advantage-2.jpg"></image>
<image mode="widthFix" src="../../images/advantage-3.jpg"></image>
/* pages/advantage/advantage.wxss */
image {
width: 100%;
}
\ No newline at end of file
const app = getApp();
Page({
data: {
list: {},
goto: "A",
ready: false,
touchStatus: false,
height: app.globalData.height
},
onShow: function() {
wx.showLoading({
title: '加载中',
})
let _this = this;
wx.request({
url: app.globalData.url + 'assess/brands',
success: function(res) {
if (res.data && Object.keys(res.data).length > 0) {
let data = res.data;
_this.setData({
list: data,
ready: true
}, () => {
wx.hideLoading()
})
}
}
})
},
setBrand: function(e) {
let brandId = e.currentTarget.dataset.brandId;
let brand_name = e.currentTarget.dataset.name;
wx.setStorageSync('brand_name', brand_name)
wx.navigateTo({
url: '/pages/car-select/series?id=' + brandId,
})
},
touchStart: function(e) {
this.setData({
touchStatus: true
})
},
touchEnd: function(e) {
let letter = e.currentTarget.dataset.letter;
if (this.data.touchStatus) {
this.setData({
goto: letter
})
}
},
touchMove: function(e) {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarBackgroundColor": "#fe9527",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "品牌选择",
"backgroundColor": "#fff",
"backgroundTextStyle": "light"
}
\ No newline at end of file
<scroll-view enable-back-to-top scroll-y class="brand-section" scroll-into-view="{{goto}}" style="height:{{height}}px">
<view class="letter-select common-padding" id="{{index}}" wx:for="{{list}}" wx:for-item="item" wx:key="{{index}}">
<text class="letter">{{index}}</text>
<view class="brand-items">
<view catchtap="setBrand" class="brand-row" data-brand-id="{{brand.id}}" data-name="{{brand.name}}" wx:for="{{item}}" wx:for-item="brand" wx:key="{{brand.id}}">
<view class="brand-name">{{brand.name}}</view>
</view>
</view>
</view>
</scroll-view>
<view class="navbar" wx:if="{{ready}}">
<view bindtouchstart="touchStart" catchtouchend="touchEnd" catchtouchmove="touchMove" class="tar" data-letter="{{index}}" wx:for="{{list}}" wx:for-item="item" wx:key="{{index}}">{{index}}</view>
</view>
\ No newline at end of file
page {
background-color: #f5f5f5;
}
.brand-items {
box-sizing: border-box;
width: 100%;
background: #fff;
padding: 0 20rpx;
}
.brand-row {
display: flex;
flex-flow: row;
align-items: center;
border-bottom: 1rpx solid #e5e5e5;
padding: 15rpx;
}
.brand-row:last-child {
border-bottom: none;
}
.logo image {
max-width: 100%;
max-height: 100%;
}
.letter {
font-size: 28rpx;
color: #999;
padding-left: 20rpx;
}
.brand-row .brand-name {
font-size: 30rpx;
color: #333;
line-height: 3;
margin-left: 30rpx;
}
.hot-brand {
padding: 10rpx 10rpx 0;
}
.logo {
width: 60rpx;
height: 60rpx;
}
.navbar {
position: fixed;
top: 50%;
transform: translate(0, -50%);
right: 0;
}
.navbar .tar {
width: 40px;
color: #3d7dff;
line-height: 42rpx;
text-align: center;
font-size: 28rpx;
}
const app = getApp();
Page({
data: {
list: []
},
onLoad: function(options) {
wx.showLoading({
title: '加载中',
})
let brand_id = options.id;
let _this = this;
wx.request({
url: app.globalData.url + 'assess/serials',
data: {
brand_id
},
success: function(res) {
if (res.data.data && res.data.data.length > 0) {
let data = res.data.data;
_this.setData({
list: data,
}, () => {
wx.hideLoading()
})
}
}
})
},
setSeries: function(e) {
let seriesId = e.currentTarget.dataset.seriesId;
let serial_name = e.currentTarget.dataset.name;
wx.setStorageSync('serial_name', serial_name)
wx.navigateTo({
url: '/pages/car-select/specification?id=' + seriesId,
})
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarBackgroundColor": "#fe9527",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "车系选择",
"backgroundColor": "#fff",
"backgroundTextStyle": "light"
}
\ No newline at end of file
<scroll-view enable-back-to-top scroll-y class="series-section">
<view class="series-items">
<view catchtap="setSeries" class="series-row" data-series-id="{{series.id}}" data-name="{{series.name}}" wx:for="{{list}}" wx:for-item="series" wx:key="{{series.id}}">
<view class="series-name">{{series.name}}</view>
</view>
</view>
</scroll-view>
\ No newline at end of file
page {
background-color: #f5f5f5;
}
.series-items {
box-sizing: border-box;
width: 100%;
background: #fff;
padding: 0 20rpx;
}
.series-row {
display: flex;
flex-flow: row;
align-items: center;
border-bottom: 1rpx solid #e5e5e5;
padding: 15rpx;
}
.series-row:last-child {
border-bottom: none;
}
.logo image {
max-width: 100%;
max-height: 100%;
}
.letter {
font-size: 28rpx;
color: #999;
padding-left: 20rpx;
}
.series-row .series-name {
font-size: 30rpx;
color: #333;
line-height: 3;
margin-left: 10px;
}
.hot-series {
padding: 10rpx 10rpx 0;
}
.logo {
width: 60rpx;
height: 60rpx;
}
const app = getApp();
Page({
data: {
list: {},
hasData: false,
noDataText: '暂无车型信息'
},
onLoad: function(options) {
wx.showLoading({
title: '加载中',
})
let _this = this;
let serial_id = options.id;
wx.request({
url: app.globalData.url + 'assess/models',
data: {
serial_id
},
success: function(res) {
if (res.data.data && res.data.data.length > 0) {
let data = res.data.data;
if (data.length > 0) {
let obj = {}
for (let key in data) {
obj[data[key].y] = []
}
for (let key in data) {
obj[data[key].y].push(data[key])
}
_this.setData({
list: obj,
hasData: true
}, () => {
wx.hideLoading()
})
} else {
wx.hideLoading()
}
}
}
})
},
setSpecification: function(e) {
let specification_id = e.currentTarget.dataset.specificationId;
let specification_name = e.currentTarget.dataset.name;
let years = e.currentTarget.dataset.years;
let brand_name = wx.getStorageSync('brand_name')
let serial_name = wx.getStorageSync('serial_name')
if (serial_name.indexOf(brand_name) > -1) {
specification_name = serial_name + ' ' + specification_name;
} else {
specification_name = brand_name + ' ' + serial_name + ' ' + specification_name;
}
wx.setStorageSync('specification_id', specification_id)
wx.setStorageSync('specification_name', specification_name)
wx.setStorageSync('years', years)
wx.setStorageSync('buy_time', '')
if (app.globalData.enter === 'index') {
wx.switchTab({
url: '/pages/index/index'
})
} else {
wx.switchTab({
url: '/pages/sellcar/sellcar'
})
}
},
onShow: function() {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarBackgroundColor": "#fe9527",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "车型选择",
"backgroundColor": "#fff",
"backgroundTextStyle": "light"
}
\ No newline at end of file
<scroll-view enable-back-to-top scroll-y class="specification-section">
<view class="letter-select common-padding" wx:for="{{list}}" wx:for-item="item" wx:key="{{index}}" wx:if="{{hasData}}">
<text class="letter">{{index}}</text>
<view class="specification-items">
<view catchtap="setSpecification" class="specification-row" wx:for="{{item}}" wx:for-item="specification" wx:key="{{specification.id}}" data-specification-id="{{specification.id}}" data-name="{{specification.name}}" data-years="{{specification.years}}">
<view class="specification-name">{{specification.name}}</view>
</view>
</view>
</view>
<view wx:if="{{!hasData}}" class='no-data'>{{noDataText}}</view>
</scroll-view>
\ No newline at end of file
page {
background-color: #f5f5f5;
}
.specification-items {
box-sizing: border-box;
width: 100%;
background: #fff;
padding: 0 20rpx;
}
.specification-row {
display: flex;
flex-flow: row;
align-items: center;
border-bottom: 1rpx solid #e5e5e5;
padding: 15rpx;
}
.specification-row:last-child {
border-bottom: none;
}
.logo image {
max-width: 100%;
max-height: 100%;
}
.letter {
font-size: 28rpx;
color: #999;
padding-left: 20rpx;
}
.specification-row .specification-name {
font-size: 30rpx;
color: #333;
line-height: 3;
margin-left: 10px;
}
.hot-specification {
padding: 10rpx 10rpx 0;
}
.logo {
width: 60rpx;
height: 60rpx;
}
.no-data {
padding: 20rpx;
font-size: 28rpx;
color: rgba(57, 66, 77, 0.40);
}
Page({
data: {
lists: [{
title: "卖车需要准备什么?",
txts: "1.身份证 \n 2.行驶证 \n 3.车辆登记证\n 4.车辆钥匙\n 5.车示标(环保标、检字标、交强险标)\n 6.交强险单\n 7.购置税本及购置税发票\n 8.购车发票/最近一次过户发票",
status: false
}, {
title: "卖车流程是怎样的?",
txts: "1.在本页填写卖车信息 24小时内会有客服专员电话回访 并预约验车时间和地点 2.接受专业评估师免费到店检测或上门检测。注:具体需要依照车商服务特点而定 3.车辆完成检测,车商安排网络竞拍,数千家经销商竞价收购,确保以最高价成交",
status: false
}, {
title: "大概多久能成交?",
txts: "最快48小时内成交,签约即可打款。",
status: false
}, {
title: "是否收取费用?",
txts: "二手车圈及合作车商不会向卖家收取任何费用,整个服务过程全部免费。",
status: false
}]
},
showStatus: function(e) {
let index = e.currentTarget.dataset.index;
this.data.lists[index].status = !this.data.lists[index].status;
this.setData({
lists: this.data.lists
});
}
});
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<view class="guide-banner">
<image mode="widthFix" src="../../images/guide-bg.png"></image>
</view>
<view class='guide-content'>
<view class="guide-item" wx:for="{{lists}}" wx:key="index">
<view catchtap="showStatus" class="title" data-index="{{index}}">
<view>
<text>0{{index + 1}}</text> {{item.title}}</view>
<view>
<image class="{{item.status ? 'current' : ''}}" src="../../images/arrow.png"></image>
</view>
</view>
<view class="txts" wx:if="{{item.status}}">{{item.txts}}</view>
</view>
</view>
\ No newline at end of file
/* pages/guide/guide.wxss */
.guide-banner {
width: 100%;
height: 180rpx;
}
.guide-banner image {
width: 100%;
}
.guide-item {
border-bottom: 2rpx solid rgb(242,242,242);
font-size: 28rpx;
}
.guide-item .title {
display: flex;
justify-content: space-between;
height: 120rpx;
padding: 0 36rpx;
line-height: 120rpx;
}
.guide-item .title image {
position: relative;
top: 8rpx;
width: 36rpx;
height: 36rpx;
transform: rotate(90deg);
}
.guide-item .title image.current {
transform: rotate(270deg);
}
.guide-item .title text {
padding-right: 10rpx;
font-size: 38rpx;
color: #fe9527;
}
.guide-item .txts {
padding: 36rpx;
color: rgb(102,102,102);
background-color: rgb(251,251,251);
}
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<view class="container">
<image class='banner' mode='widthFix' src='../../images/banner.png'></image>
</view>
<form>
<view class="form-section">
<view class="weui-cells weui-cells_after-title weui-fixed">
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">选择车型</view>
</view>
<view bindtap="selectBrand" class="weui-cell__bd weui-cell__ft_in-access">
<view class="input-content" wx:if="{{userForms.specification_name}}">{{userForms.specification_name}}</view>
<view class="placeholder" wx:else>请选择车型</view>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">上牌时间</view>
</view>
<view class="weui-cell__bd weui-cell__ft_in-access">
<picker bindchange="changeDate" mode="date" start="{{startTime}}" end="{{endTime}}" value="{{userForms.buy_time}}" disabled='{{!userForms.specification_name}}'>
<view class="input-content" wx:if="{{userForms.buy_time}}">{{userForms.buy_time}}</view>
<view class="placeholder" wx:else>请选择上牌时间</view>
</picker>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">所在省份</view>
</view>
<view class="weui-cell__bd weui-cell__ft_in-access">
<picker bindchange="changeProvince" mode="selector" range="{{provinceList}}" rangeKey="name" value="{{province_index}}">
<view class="input-content" wx:if="{{province}}">{{province}}</view>
<view class="placeholder" wx:else>请选择省份</view>
</picker>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">所在城市</view>
</view>
<view class="weui-cell__bd weui-cell__ft_in-access">
<picker bindchange="changeCity" mode="selector" range="{{cityList}}" rangeKey="name" value="{{city_index}}" disabled='{{cityList.length === 0}}'>
<view class="input-content" wx:if="{{userForms.city_name}}">{{userForms.city_name}}</view>
<view class="placeholder" wx:else>请选择城市</view>
</picker>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">行驶里程</view>
</view>
<view class="weui-cell__bd">
<input bindinput="mileageInput" maxlength="3" class="weui-input text-right" placeholder="请输入行驶里程" type="digit" value="{{userForms.mileage}}"></input>
</view>
<view class="weui-cell__ft">
<view class="weui-label mileage">万公里</view>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">手机号码</view>
</view>
<view class="weui-cell__bd">
<input bindinput="phoneInput" class="weui-input" maxlength="11" placeholder="11位手机号" type="number" value="{{userForms.phone}}"></input>
<!-- <input bindinput="phoneInput" class="weui-input" maxlength="11" placeholder="11位手机号" type="number" value="{{userForms.phone}}" wx:if="{{showPhoneInput}}"></input>
<button bindgetphonenumber="getPhone" id="get-phone" openType="getPhoneNumber" size="mini" type="primary" wx:else>11位手机号</button> -->
</view>
</view>
</view>
</view>
<view class="weui-cell submit-section">
<button bindtap="submit" type="primary" hover-class="none">快速估价</button>
</view>
</form>
\ No newline at end of file
page {
background-color: #f5f5f5;
}
.banner {
width: 100%;
}
.form {
background-color: #fff;
}
.form-input-item {
height: 100rpx;
color: #39424D;
font-size: 30rpx;
}
.form-input-left {
text-align: right;
}
.submit-section {
text-align: center;
padding: 40rpx 0;
}
.submit-section button {
width: 70%;
background-color: #fe560e;
}
.submit-section button:hover {
background-color: #fe560e;
}
.desc-section {
padding: 0 30rpx 40rpx;
}
.logo {
height: 120rpx;
display: flex;
align-items: center;
justify-content: center;
}
.logo image {
width: 100rpx;
height: 48rpx;
}
.logo-item {
margin: 0 8rpx;
color: #666;
}
.get-yzm {
padding-left: 0;
padding-right: 0;
margin-right: 30rpx;
margin-left: 20rpx;
margin-top: 10rpx;
}
#get-yzm {
background-color: #00CB7C!important;
}
#get-yzm.cur {
background-color: #B4B4B4!important;
}
#get-yzm:hover {
background-color: #00CB7C!important;
}
.question .q {
color: #666;
font-size: 32rpx;
font-weight: bold;
margin: 20rpx 0;
}
.question .a {
color: #999;
font-size: 28rpx;
padding-left: 30rpx;
}
.weui-fixed::before {
border-top-width: 0;
}
.accept {
padding: 12rpx 30rpx;
font-size: 28rpx;
color: #666;
}
.submit-section::before {
border-top-width: 0;
}
#get-phone {
background-color: white;
display: block;
color: rgba(57,66,77,0.40);
border-color: white;
font-size: 30rpx;
padding: 0;
text-align: right;
margin: 0;
}
#get-phone::after {
border-color: white;
}
.placeholder {
color: rgba(57,66,77,0.40);
text-align: right;
}
.input-content {
color: #39424D;
text-align: right;
}
.mileage {
width: 120rpx;
color: #39424D;
}
.phone-text {
color: #39424D;
}
.weui-input {
color: #39424D;
text-align: right;
}
\ No newline at end of file
const app = getApp();
Page({
data: {
specification_name: '',
buy_time: '',
mileage: '',
city_name: '',
active: 'condition_excellent',
tabs: [{
text: '车况优秀',
index: 'condition_excellent'
}, {
text: '车况良好',
index: 'condition_good'
}, {
text: '车况一般',
index: 'condition_average'
}],
merchant_price: '',
personal_price: '',
time: ''
},
onShow: function() {
if (app.globalData.result) {
wx.showLoading({
title: '查询中',
})
}
this.getItem('specification_name')
this.getItem('buy_time')
this.getItem('mileage')
this.getItem('city_name')
let carInfo = wx.getStorageSync('carInfo');
let valuation = wx.getStorageSync('valuation');
this.setData({
merchant_price: valuation['condition_excellent'].dealer_high_buy_price,
personal_price: valuation['condition_excellent'].individual_price,
time: carInfo.created_at.substr(0, 10)
}, () => {
if (app.globalData.result) {
wx.hideLoading()
wx.showToast({
icon: 'none',
title: '查询成功!',
})
}
})
},
getItem: function(value) {
this.setData({
[value]: wx.getStorageSync(value)
})
},
// 切换车况
changeTab: function(e) {
let index = e.currentTarget.dataset.index;
let valuation = wx.getStorageSync('valuation');
this.setData({
active: index
}, () => {
this.setData({
merchant_price: valuation[index].dealer_high_buy_price,
personal_price: valuation[index].individual_price,
})
})
},
reevaluate: function() {
let phone = wx.getStorageSync('phone')
wx.clearStorageSync();
wx.setStorageSync('phone', phone)
wx.switchTab({
url: '/pages/index/index',
})
},
sellcar: function() {
this.updateStatus();
},
// 更新卖车状态
updateStatus: function() {
wx.showLoading({
title: '请求加载中',
mask: true
})
let _this = this;
wx.request({
url: app.globalData.url + 'distributions/update-sale-type',
data: {
sale_type: 1,
car_id: wx.getStorageSync('carInfo').id
},
method: "POST",
success: function(res) {
if (res.data.message === 'ok') {
app.globalData.enter = 'index'
app.globalData.result = ''
wx.navigateTo({
url: '/pages/submit/submit',
})
} else {
wx.showToast({
icon: 'none',
title: '请求错误,请稍后重试!'
})
}
},
fail: function() {
wx.showToast({
icon: 'none',
title: '请求错误,请稍后重试!'
})
},
complete: function() {
}
})
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarBackgroundColor": "#fe9527",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "估值结果",
"backgroundColor": "#fff",
"backgroundTextStyle": "light"
}
\ No newline at end of file
<view class='car-container'>
<view class='car-info-content'>
<image class='car-img' src='../../images/avatar_car.png' mode='widthFix'></image>
<view class='car-desc'>
<view class='car-specification'>{{specification_name}}</view>
<view class='car-info'>
<text class='car-item'>{{buy_time}}</text>
<text class='car-item'>{{mileage}}万公里</text>
<text class='car-item'>{{city_name}}</text>
</view>
</view>
</view>
<view class='car-content'>
<view class='list'>
<view wx:for="{{tabs}}" wx:for-item="item" wx:key="{{index}}" class="item {{active === item.index ? 'active' : ''}}" data-index="{{item.index}}" bindtap='changeTab'>{{item.text}}</view>
</view>
</view>
<view class='tab-content'>
<view class='left'>
<image src='../../images/merchant.png' mode='widthFix'></image>
<view class='price-wrap'>
<text class='price-merchant'>{{merchant_price}}</text>万元
</view>
<view class='suggest-text'>建议售价</view>
</view>
<view class='right'>
<image src='../../images/personal.png' mode='widthFix'></image>
<view class='price-wrap'>
<text class='price-merchant'>{{personal_price}}</text>万元
</view>
<view class='suggest-text'>建议售价</view>
</view>
</view>
<view class='last-evaluate-time'>
上次报价时间: {{time}}
</view>
<view class="submit-section">
<button bindtap='sellcar' type="primary" hover-class="none">我要卖车</button>
<button bindtap='reevaluate' class='reevaluate' hover-class="none">再次估值</button>
</view>
</view>
\ No newline at end of file
page {
height: 100%;
background-color: #f5f5f5;
}
.car-info-content {
display: flex;
width: 100%;
height: 280rpx;
padding: 0 10rpx 0 30rpx;
box-sizing: border-box;
background: #ffa85d;
align-items: center;
}
.car-info-content .car-img {
width: 120rpx;
margin-right: 24rpx;
}
.car-info-content .car-desc {
flex: 1;
align-items: center;
}
.car-specification {
line-height: 44rpx;
margin-bottom: 20rpx;
font-size: 32rpx;
color: #fff;
}
.car-info {
margin-bottom: 20rpx;
line-height: 36rpx;
font-size: 28rpx;
color: #fff;
opacity: 0.8;
}
.car-info .car-item {
margin-right: 30rpx;
}
.car-content {
width: 100%;
}
.list {
display: flex;
justify-content: space-around;
line-height: 88rpx;
background-color: #fff;
}
.list .item {
text-align: center;
font-size: 28rpx;
color: rgba(57, 66, 77, 0.70);
}
.list .item.active {
font-size: 32rpx;
color: #39424d;
border-bottom: 4rpx solid #ffa85d;
}
.tab-content {
width: 100%;
padding: 30rpx;
overflow: hidden;
box-sizing: border-box;
}
.tab-content .left, .tab-content .right {
width: 48%;
height: 360rpx;
text-align: center;
background-color: #fff;
box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.10);
}
.tab-content image {
margin-top: 36rpx;
width: 188rpx;
}
.tab-content .price-wrap {
margin: 56rpx 0;
font-size: 32rpx;
color: #285bf6;
}
.tab-content .suggest-text {
font-size: 28rpx;
color: rgba(57, 66, 77, 0.40);
text-align: center;
}
.last-evaluate-time {
margin-top: 20rpx;
font-size: 24rpx;
color: rgba(57, 66, 77, 0.70);
text-align: center;
}
.submit-section {
margin-top: 60rpx;
text-align: center;
}
.submit-section button {
width: 70%;
background-color: #fe560e;
}
.submit-section button:hover {
background-color: #fe560e;
}
.submit-section .reevaluate {
margin-top: 30rpx;
color: #333;
background-color: #fff;
}
.submit-section .reevaluate:hover {
color: #333;
background-color: #fff;
}
{
"usingComponents": {}
}
\ No newline at end of file
<view class="container">
<image class='banner' mode='widthFix' src='../../images/banner-sell.png'></image>
</view>
<form class="form">
<view class="form-section">
<view class="weui-cells weui-cells_after-title weui-fixed">
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">选择车型</view>
</view>
<view bindtap="selectBrand" class="weui-cell__bd weui-cell__ft_in-access">
<view class="input-content" wx:if="{{userForms.specification_name}}">{{userForms.specification_name}}</view>
<view class="placeholder" wx:else>请选择车型</view>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">上牌时间</view>
</view>
<view class="weui-cell__bd weui-cell__ft_in-access">
<picker bindchange="changeDate" mode="date" start="{{startTime}}" end="{{endTime}}" value="{{userForms.buy_time}}" disabled='{{!userForms.specification_name}}'>
<view class="input-content" wx:if="{{userForms.buy_time}}">{{userForms.buy_time}}</view>
<view class="placeholder" wx:else>请选择上牌时间</view>
</picker>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">所在省份</view>
</view>
<view class="weui-cell__bd weui-cell__ft_in-access">
<picker bindchange="changeProvince" mode="selector" range="{{provinceList}}" rangeKey="name" value="{{province_index}}">
<view class="input-content" wx:if="{{province}}">{{province}}</view>
<view class="placeholder" wx:else>请选择省份</view>
</picker>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">所在城市</view>
</view>
<view class="weui-cell__bd weui-cell__ft_in-access">
<picker bindchange="changeCity" mode="selector" range="{{cityList}}" rangeKey="name" value="{{city_index}}" disabled='{{cityList.length === 0}}'>
<view class="input-content" wx:if="{{userForms.city_name}}">{{userForms.city_name}}</view>
<view class="placeholder" wx:else>请选择城市</view>
</picker>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">行驶里程</view>
</view>
<view class="weui-cell__bd">
<input bindinput="mileageInput" maxlength="3" class="weui-input text-right" placeholder="请输入行驶里程" type="digit" value="{{userForms.mileage}}"></input>
</view>
<view class="weui-cell__ft">
<view class="weui-label mileage">万公里</view>
</view>
</view>
<view class="weui-cell weui-cell_input form-input-item">
<view class="weui-cell__hd">
<view class="weui-label">手机号码</view>
</view>
<view class="weui-cell__bd">
<input bindinput="phoneInput" class="weui-input" maxlength="11" placeholder="11位手机号" type="number" value="{{userForms.phone}}"></input>
<!-- <input bindinput="phoneInput" class="weui-input" maxlength="11" placeholder="11位手机号" type="number" value="{{userForms.phone}}" wx:if="{{showPhoneInput}}"></input>
<button bindgetphonenumber="getPhone" id="get-phone" openType="getPhoneNumber" size="mini" type="primary" wx:else>11位手机号</button> -->
</view>
</view>
</view>
</view>
<view class='partner-wrap'>
<view class='partner'>
<view class='left'>
<view>选择卖车平台</view>
<view class='tips'>平台选择越多,高价卖车机会越多</view>
</view>
<view bindtap='showCollapse' class="collapse {{isShow ? 'collapse-up' : 'collapse-down'}}">
<text class='collapse-text'>{{collapseText}}</text>
</view>
</view>
<view class='collapse-content' wx:if="{{isShow}}" animation="{{animation}}">
<view wx:for="{{partner}}" wx:for-item="item" wx:key="{{item.id}}" class='collapse-item'>
<image src='{{item.logo}}'></image>
<view class='des'>{{item.des}}</view>
<view bindtap='handleSelect' data-index="{{item.id}}" data-selected='{{item.selected}}' class="{{item.selected ? 'selected' : 'unselected'}}"></view>
</view>
</view>
</view>
<view class="weui-cell submit-section">
<button bindtap="submit" type="primary" hover-class="none">一键卖车</button>
</view>
<view class='progress'>
<image src='../../images/maicheliucheng.png' class='progress-title'></image>
<image src='../../images/progress.jpg' mode='widthFix'></image>
</view>
</form>
\ No newline at end of file
page {
background-color: #f5f5f5;
}
.banner {
width: 100%;
}
.form {
display: block;
margin-top: -80rpx;
padding: 0 30rpx 40rpx 30rpx;
}
.form-section {
box-shadow: 0 4rpx 40rpx 0 rgba(57, 66, 77, 0.08);
}
.form-input-item {
height: 100rpx;
color: #39424d;
font-size: 30rpx;
}
.form-input-left {
text-align: right;
}
.submit-section {
text-align: center;
padding: 40rpx 0;
}
.submit-section button {
width: 70%;
background-color: #fe560e;
}
.submit-section button:hover {
background-color: #fe560e;
}
.desc-section {
padding: 0 30rpx 40rpx;
}
.logo {
height: 120rpx;
display: flex;
align-items: center;
justify-content: center;
}
.logo image {
width: 100rpx;
height: 48rpx;
}
.logo-item {
margin: 0 8rpx;
color: #666;
}
.get-yzm {
padding-left: 0;
padding-right: 0;
margin-right: 30rpx;
margin-left: 20rpx;
margin-top: 10rpx;
}
#get-yzm {
background-color: #00cb7c !important;
}
#get-yzm.cur {
background-color: #b4b4b4 !important;
}
#get-yzm:hover {
background-color: #00cb7c !important;
}
.question .q {
color: #666;
font-size: 32rpx;
font-weight: bold;
margin: 20rpx 0;
}
.question .a {
color: #999;
font-size: 28rpx;
padding-left: 30rpx;
}
.weui-fixed::before {
border-top-width: 0;
}
.accept {
padding: 12rpx 30rpx;
font-size: 28rpx;
color: #666;
}
.submit-section::before {
border-top-width: 0;
}
#get-phone {
background-color: white;
display: block;
color: rgba(57, 66, 77, 0.40);
border-color: white;
font-size: 30rpx;
padding: 0;
text-align: right;
margin: 0;
}
#get-phone::after {
border-color: white;
}
.placeholder {
color: rgba(57, 66, 77, 0.40);
text-align: right;
}
.input-content {
color: #39424d;
text-align: right;
}
.mileage {
width: 120rpx;
color: #39424d;
}
.weui-input {
color: #39424d;
text-align: right;
}
.partner-wrap {
margin: 30rpx 0;
}
.partner {
display: flex;
height: 100rpx;
align-items: center;
padding-left: 40rpx;
padding-right: 30rpx;
}
.partner .left {
flex: 1;
text-align: center;
font-size: 28rpx;
color: #39424d;
}
.partner .left .tips {
font-size: 24rpx;
color: #999;
}
.partner .collapse-down {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAp0lEQVR4AWMY1GAUjIJRMApGwf8wvpr/EQIN/9OMWcnSn6vCDtTf/D+Mv4x0zQmiEv/C+P6D8P9wvg0gR5BqOVDfNrgZUfyCZIQA/zJ0R5BleTj/PPKioMGBBah5FbojSLNcYMn/hgYmkByNHUHYcho6grDlNHQEYctp64gkEV58ltPeEWF8b3BZThdH0NFyTEeALIXlc6jl9AfgEm4og1EwCkbBKAAATe/cFey0HGkAAAAASUVORK5CYII=) 72rpx no-repeat;
background-size: 32rpx 32rpx;
}
.partner .collapse-up {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAmElEQVR4AWOgFIyCUTAKRsEo+J8gKjEwFqcZs/4P51/zL4zv//8w/mX/GxxY6Gw53waQ5TAMdMwqkCPobjmQ/YJOjkBYjmJhmhQXQgzhCBpbjrAInxwdLCeshg6WE1ZLM8tp7ghQPkc3iDyHCywhq4RDt5yi0IviFyTdERH8JUDLK0CWkx2FYXw1wBDIx6VmFIyCUTAKRgEAOJzaNq0wMsIAAAAASUVORK5CYII=) 72rpx no-repeat;
background-size: 32rpx 32rpx;
}
.partner .collapse {
width: 56rpx;
padding: 6rpx 40rpx 6rpx 20rpx;
border: 1px solid rgba(254, 86, 14, 0.4);
border-radius: 6rpx;
font-size: 24rpx;
color: #fe560e;
cursor: pointer;
}
.collapse-content .collapse-item {
display: flex;
margin-bottom: 30rpx;
padding: 24rpx;
align-items: center;
border: 2rpx solid #f0f0f0;
border-radius: 12rpx;
background: #fcfcfc;
}
.collapse-item image {
width: 120rpx;
height: 120rpx;
}
.collapse-item .des {
flex: 1;
padding: 0 24rpx;
font-size: 24rpx;
color: rgba(57, 66, 77, 0.70);
}
.collapse-item .selected {
flex: 0 0 80rpx;
width: 80rpx;
height: 80rpx;
text-align: center;
background: url(data:image/png;base64,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) no-repeat center;
background-size: 56rpx 56rpx;
}
.collapse-item .unselected {
flex: 0 0 80rpx;
width: 80rpx;
height: 80rpx;
text-align: center;
background: url(data:image/png;base64,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) no-repeat center;
background-size: 56rpx 56rpx;
}
.progress {
margin-bottom: 40rpx;
padding: 40rpx 0 10rpx 0;
background-color: #fff;
text-align: center;
}
.progress .progress-title {
width: 202rpx;
height: 32rpx;
}
const app = getApp();
Page({
data: {
submitText: ''
},
onShow: function() {
wx.showLoading({
title: '提交中',
})
if (app.globalData.enter === 'index') {
this.setData({
submitText: '爱车估值'
}, () => {
wx.hideLoading()
wx.showToast({
icon: 'none',
title: '提交成功!',
})
})
} else {
this.setData({
submitText: '高价卖车'
}, () => {
wx.hideLoading()
wx.showToast({
icon: 'none',
title: '提交成功!',
})
})
}
},
confirm: function() {
let phone = wx.getStorageSync('phone')
wx.clearStorageSync();
wx.setStorageSync('phone', phone)
if (app.globalData.enter === 'index') {
wx.switchTab({
url: '/pages/index/index',
})
} else {
wx.switchTab({
url: '/pages/sellcar/sellcar',
})
}
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarBackgroundColor": "#fe9527",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "提交成功",
"backgroundColor": "#fff",
"backgroundTextStyle": "light"
}
\ No newline at end of file
<view class='container'>
<view class='submit-success-content'>
<image class='success-img' src='../../images/successful.png' mode='widthFix'></image>
<view class='success-text'>提交成功</view>
<view class='success-tips'>请保持手机通畅,稍后将会有工作人员联系您</view>
<view class='resell' bindtap='confirm'>
<text class='resell-text'>{{submitText}}</text>
<image class='resell-img' src='../../images/right_arrow.png' mode='widthFix'></image>
</view>
</view>
<view class="submit-section">
<button bindtap='confirm' type="primary" hover-class="none">确认</button>
</view>
</view>
\ No newline at end of file
.container {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.submit-success-content {
margin-top: 160rpx;
text-align: center;
}
.success-img {
width: 200rpx;
}
.success-text {
margin-top: 24rpx;
line-height: 50rpx;
font-size: 36rpx;
color: #39424d;
font-weight: bold;
}
.success-tips {
margin-top: 24rpx;
line-height: 36rpx;
font-size: 26rpx;
color: rgba(57, 66, 77, 0.70);
}
.resell {
margin-top: 24rpx;
line-height: 36rpx;
font-size: 26rpx;
color: #fe560e;
}
.resell-img {
width: 32rpx;
vertical-align: -6rpx;
}
.submit-section {
width: 100%;
padding-bottom: 80rpx;
text-align: center;
}
.submit-section button {
width: 70%;
background-color: #fe560e;
}
.submit-section button:hover {
background-color: #fe560e;
}
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"autoAudits": false
},
"compileType": "miniprogram",
"libVersion": "2.7.2",
"appid": "wx3722cae0d0b62fff",
"projectname": "mp-car-evaluate-old",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
}
\ No newline at end of file
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
\ No newline at end of file
const formatDate = date => {
const year = date.getFullYear()
const month = (date.getMonth() + 1) >= 10 ? (date.getMonth() + 1) : ('0' + (date.getMonth() + 1))
const day = date.getDate()
return year + '-' + month + '-' + day
}
const formatTime = date => {
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
const hour = date.getHours()
const minute = date.getMinutes()
const second = date.getSeconds()
return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
}
const formatNumber = n => {
n = n.toString()
return n[1] ? n : '0' + n
}
module.exports = {
formatDate,
formatTime
}
\ 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 sign in to comment