作者 李芳银

更改了倒计时

... ... @@ -18,13 +18,16 @@ Page({
city_id: '',
pin_id: '',
shortnameCity: '',
home_form: '', // 从首页搜索过来
},
onLoad: function (options) {
let that = this
console.log(options);
that.setData({
kw: options.kw || '',
searchValue: options.kw || '',
// kw: options.kw || '',
// searchValue: options.kw || '',
home_form: options.home || '',
})
},
onShow: function () {
... ... @@ -35,7 +38,10 @@ Page({
})
}
console.log(this.data.city_id);
that.getmoreList()
let home_form = that.data.home_form
if (home_form == '') {
that.getmoreList()
}
},
goback() {
wx.navigateBack()
... ... @@ -148,17 +154,15 @@ Page({
that.setData({
kw: kw
})
// console.log(kw);
console.log(kw);
that.getmoreList()
},
getInput(e) {
console.log(e);
let that = this
let kw = e.detail.value
that.setData({
kw: kw
})
that.getmoreList()
},
changed4S(e) { // 去4sd店
let that = this
... ...
... ... @@ -71,7 +71,7 @@ Page({
klist: data,
time_data: data.time_num,
content: data.content,
time: data.time_num * 1000,
time: data.time_num,
content2: that.text(data.say)
})
WxParse.wxParse('content', 'html', that.data.content, that, 5);
... ...
... ... @@ -92,7 +92,8 @@
display: flex;
.card_left {
flex: 1;
// flex: 1;
width: 60%;
align-items: center;
line-height: 55rpx;
... ... @@ -161,7 +162,8 @@
}
.card_right {
flex: 1;
// flex: 1;
width: 40%;
align-items: center;
line-height: 55rpx;
padding-left: 20rpx;
... ...
... ... @@ -82,7 +82,7 @@
display: flex;
}
.container .cards .card .card_box .card_left {
flex: 1;
width: 60%;
align-items: center;
line-height: 55rpx;
}
... ... @@ -137,7 +137,7 @@
line-height: 63rpx;
}
.container .cards .card .card_box .card_right {
flex: 1;
width: 40%;
align-items: center;
line-height: 55rpx;
padding-left: 20rpx;
... ...
... ... @@ -120,7 +120,7 @@ Page({
},
goSearch() {
wx.navigateTo({
url: '/pages/search/search?S4_num=1'
url: '/pages/Vmore4SList/Vmore4SList?home=1'
})
},
addLoveCared() { // 去添加车辆
... ... @@ -303,6 +303,9 @@ Page({
url: 'api/index2/indexUnder',
})
console.log(data, "4SD店列表");
if (data.length == 0) { // 如果是空数组,你调用的是【推荐4s店】这个接口
that.getCitied()
}
that.setData({
index4S: data
})
... ... @@ -321,7 +324,6 @@ Page({
let id = e.currentTarget.dataset.id
let token = wx.getStorageSync('token')
if (token) {
try {
const {
data
... ... @@ -646,6 +648,8 @@ Page({
default:
break;
}
} else {
a.popTest('该4s店暂未运营')
}
},
... ...