更换版本
This commit is contained in:
41
pages/saleindex/index.js
Normal file
41
pages/saleindex/index.js
Normal file
@@ -0,0 +1,41 @@
|
||||
var a;
|
||||
(a = getApp()),
|
||||
Page({
|
||||
data: { block: 0, saleinfo: [], unitid: 123 },
|
||||
onLoad: function (n) {
|
||||
var t = this;
|
||||
console.log(123),
|
||||
a.util.request({
|
||||
url: "entry/wxapp/Api",
|
||||
data: { m: "monai_market", r: "sale.index.salenew" },
|
||||
cachetime: "0",
|
||||
success: function (a) {
|
||||
console.log(a),
|
||||
t.setData({ saleinfo: a.data.data }),
|
||||
2 == a.data.data.sell_flow &&
|
||||
"" != a.data.data.flow_id &&
|
||||
t.setData({ unitid: a.data.data.flow_id }),
|
||||
wx.setNavigationBarTitle({ title: a.data.data.name });
|
||||
},
|
||||
});
|
||||
},
|
||||
saletap: function () {
|
||||
wx.navigateTo({ url: "../sale/index" });
|
||||
},
|
||||
gujia: function () {
|
||||
wx.navigateTo({ url: "/packageA/pages/caresgz/index" });
|
||||
},
|
||||
none_click: function () {
|
||||
this.setData({ block: 0 });
|
||||
},
|
||||
block_click: function () {
|
||||
wx.makePhoneCall({ phoneNumber: this.data.saleinfo.phone });
|
||||
},
|
||||
onReady: function () {},
|
||||
onShow: function () {},
|
||||
onHide: function () {},
|
||||
onUnload: function () {},
|
||||
onPullDownRefresh: function () {},
|
||||
onReachBottom: function () {},
|
||||
onShareAppMessage: function () {},
|
||||
});
|
1
pages/saleindex/index.json
Normal file
1
pages/saleindex/index.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "usingComponents": {} }
|
7
pages/saleindex/index.wxml
Normal file
7
pages/saleindex/index.wxml
Normal file
@@ -0,0 +1,7 @@
|
||||
<image class="banner" mode="scaleToFill" src="{{saleinfo['sale_logo']}}"></image>
|
||||
<view bindtap="saletap" class="sell_btn" wx:if="{{saleinfo['upload']==1}}">立即卖车</view>
|
||||
<view bindtap="block_click" class="zixun_btn">免费咨询</view>
|
||||
<view bindtap="gujia" class="zixun_gujia">爱车估价</view>
|
||||
<view class="guanggao_view" wx:if="{{unitid!=123}}">
|
||||
<ad unitId="{{unitid}}"></ad>
|
||||
</view>
|
83
pages/saleindex/index.wxss
Normal file
83
pages/saleindex/index.wxss
Normal file
@@ -0,0 +1,83 @@
|
||||
.banner {
|
||||
display: block;
|
||||
height: 375rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.sell_btn {
|
||||
background: #3d61f0;
|
||||
border-radius: 2rpx;
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
height: 88rpx;
|
||||
left: 0;
|
||||
line-height: 88rpx;
|
||||
margin: 0 auto;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
top: 455rpx;
|
||||
width: 690rpx;
|
||||
}
|
||||
.zixun_btn {
|
||||
left: 30rpx;
|
||||
}
|
||||
.zixun_btn,
|
||||
.zixun_gujia {
|
||||
border: 2rpx solid #3d61f0;
|
||||
border-radius: 2rpx;
|
||||
color: #3d61f0;
|
||||
font-size: 28rpx;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 570rpx;
|
||||
width: 335rpx;
|
||||
}
|
||||
.zixun_gujia {
|
||||
left: 385rpx;
|
||||
}
|
||||
.mengceng {
|
||||
align-items: center;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
top: 0rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.mengceng_modle {
|
||||
background: #fff;
|
||||
border-radius: 20rpx;
|
||||
height: 253rpx;
|
||||
width: 500rpx;
|
||||
}
|
||||
.mengceng_modle_title {
|
||||
border-bottom: 1rpx solid #f9f9f9;
|
||||
color: #333;
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
height: 165rpx;
|
||||
line-height: 165rpx;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.mengceng_modle_btn {
|
||||
border-right: 1rpx solid #f9f9f9;
|
||||
color: #555;
|
||||
display: inline-block;
|
||||
font-size: 28rpx;
|
||||
height: 87rpx;
|
||||
line-height: 87rpx;
|
||||
text-align: center;
|
||||
width: 249rpx;
|
||||
}
|
||||
.mengceng_modle_btn_sec {
|
||||
border-right: 0;
|
||||
color: #3d61f0;
|
||||
}
|
||||
.guanggao_view {
|
||||
margin-top: 350rpx;
|
||||
}
|
Reference in New Issue
Block a user