作者 李芳银

代码提交

要显示太多修改。

为保证性能只显示 28 of 28+ 个文件。

... ... @@ -9,23 +9,23 @@ App({
let t = this;
wx.getSystemInfo({
success: (result) => {
// console.log(result);
// // console.log(result);
t.globalData.statusHeight = result.statusBarHeight;
},
})
if (wx.canIUse('getUpdateManager')) {
const updateManager = wx.getUpdateManager()
updateManager.onCheckForUpdate(function (res) {
// console.log('onCheckForUpdate====', res)
// // console.log('onCheckForUpdate====', res)
// 请求完新版本信息的回调
if (res.hasUpdate) {
console.log('res.hasUpdate====')
// console.log('res.hasUpdate====')
updateManager.onUpdateReady(function () {
wx.showModal({
title: '更新提示',
content: '新版本已经准备好,是否重启应用?',
success: function (res) {
console.log('success====', res)
// console.log('success====', res)
// res: {errMsg: "showModal: ok", cancel: false, confirm: true}
if (res.confirm) {
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
... ... @@ -50,7 +50,6 @@ App({
}
},
onShow: function (res) {
console.log(res);
qqmapsdk = new QQMapWX({
key: 'B4MBZ-3VICV-THBPQ-UCLHB-SLCEK-B7FIK'
});
... ... @@ -98,7 +97,7 @@ App({
longitude: res.longitude
},
success: function (res) { //成功后的回调
console.log(res);
// // console.log(res);
var res = res.result;
let city = res.ad_info.city
that.saveCity(city)
... ... @@ -107,13 +106,13 @@ App({
console.error(error);
},
complete: function (res) {
// console.log(res);
// // console.log(res);
}
})
},
fail: res => {
//如果用户点击了拒绝,就会走fail
// console.log("点击了拒绝,authorize--fail用户拒绝过");
// // console.log("点击了拒绝,authorize--fail用户拒绝过");
// that.setData({
//     add: false
// })
... ... @@ -125,7 +124,6 @@ App({
let that = this
wx.login({
success(res) {
console.log(res);
request({
url: 'api/common/getUnionid',
method: "POST",
... ... @@ -134,11 +132,9 @@ App({
}
})
.then(res => {
console.log(res, 'api/common/getUnionid');
console.log('新出的接口', res);
// console.log(res, 'api/common/getUnionid');
}).catch(err => {
console.log(err);
console.log('新出的接口出错', err);
// console.log(err);
})
}
})
... ... @@ -176,12 +172,13 @@ App({
url: '/pages/authorization/authorization'
})
} else {
console.log('点击取消回调')
// console.log('点击取消回调')
}
}
})
},
setPhone(mobile) {
// console.log(mobile);
var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/;
if (mobile == '') {
wx.showToast({
... ... @@ -221,10 +218,10 @@ App({
city: city
}
})
console.log(data, "全局城市定位");
// // console.log(data, "全局城市定位");
that.globalData.city_glob_id = data.city_id
} catch (err) {
console.log(err);
// console.log(err);
that.popTest(err.msg)
}
},
... ... @@ -232,6 +229,7 @@ App({
globalData: {
userInfo: null,
baseUrl: 'https://car.goorcar.com/',
// baseUrl: 'http://chemai.t.brotop.cn/',
imagesUrl: 'https://car.goorcar.com/',
statusHeight: 0,
stores_id: '', //进入4s店id
... ...
... ... @@ -164,7 +164,7 @@
"sitemapLocation": "sitemap.json",
"permission": {
"scope.userLocation": {
"desc": "车唛优选小程序请求获取您的位置信息"
"desc": "小象车孚小程序请求获取您的位置信息"
}
}
}
\ No newline at end of file
... ...
... ... @@ -61,7 +61,7 @@ Component({
}
},
keyboard(e) {
console.log(e)
// console.log(e)
if (e.target.dataset.value == undefined) {
return;
}
... ... @@ -71,7 +71,7 @@ Component({
this.setData({
inputContent: this.data.inputContent.substring(0, this.data.inputContent.length - 1)
})
console.log(this.data.inputContent, 'this.data.inputContent');
// console.log(this.data.inputContent, 'this.data.inputContent');
}
return
}
... ... @@ -107,7 +107,7 @@ Component({
inputContent: this.data.inputContent + e.target.dataset.value
})
console.log(this.data.inputContent);
// console.log(this.data.inputContent);
},
keyboardClick() {
this.setData({
... ...
... ... @@ -26,7 +26,7 @@ Component({
*/
methods: {
getLogin(dens) {
console.log(dens);
// console.log(dens);
if (wx.getUserProfile) {
this.setData({
canIUseGetUserProfile: true
... ... @@ -38,7 +38,7 @@ Component({
let that = this;
wx.login({
success(res) {
console.log(res);
// console.log(res);
that.setData({
code: res.code
})
... ... @@ -51,19 +51,19 @@ Component({
}
})
.then(res => {
console.log(res);
// console.log(res);
if (res.data.code == 1) {
wx.setStorageSync('token', res.data.data.userInfo.token);
wx.setStorageSync('avatar', res.data.data.userInfo.avatar);
wx.setStorageSync('name', res.data.data.userInfo.nickname);
wx.setStorageSync('user_id', res.data.data.userInfo.user_id);
}
console.log(res.data.data.userInfo.token);
// console.log(res.data.data.userInfo.token);
that.toggleDialog()
a.popSuccessTest(res.data.msg);
that.getDetailsContent()
}).catch(err => {
console.log(err);
// console.log(err);
})
}
})
... ... @@ -72,7 +72,7 @@ Component({
let that = this
wx.login({
success(res) {
console.log(res);
// console.log(res);
that.setData({
code: res.code
})
... ... @@ -81,7 +81,7 @@ Component({
wx.getUserProfile({
desc: '用于完善会员资料',
success: async (res) => {
console.log(res);
// console.log(res);
try {
const {
data
... ... @@ -93,7 +93,7 @@ Component({
code: that.data.code,
}
})
console.log(data);
// console.log(data);
wx.setStorageSync('token', data.data.userInfo.token);
wx.setStorageSync('avatar', data.data.userInfo.avatar);
wx.setStorageSync('name', data.data.userInfo.nickname);
... ... @@ -104,7 +104,7 @@ Component({
a.popSuccessTest(data.msg)
that.triggerEvent('istoken', '李四')
} catch (err) {
console.log(err);
// console.log(err);
}
}
})
... ...
... ... @@ -34,7 +34,7 @@ Component({
},
async getLeftCates() { // 左分类数据
let that = this;
console.log("我执行了");
// console.log("我执行了");
const {
data: {
data
... ... @@ -42,7 +42,7 @@ Component({
} = await request({
url: "api/shop/cate",
})
console.log(data, "左分类");
// console.log(data, "左分类");
that.setData({
leftMenuList: data
})
... ...
... ... @@ -46,7 +46,7 @@ Component({
methods: {
hanldeItemTap(e) {
console.log(e);
// console.log(e);
}
... ...
... ... @@ -37,7 +37,7 @@ Page({
onLoad: function (options) {
let that = this
console.log(options);
// console.log(options);
if (options.gui_arr) {
that.setData({
id: options.id,
... ... @@ -55,7 +55,7 @@ Page({
})
}
console.log(that.data.no, "no");
// console.log(that.data.no, "no");
that.getConfirmAnOrder()
},
onShow: function () {},
... ... @@ -77,7 +77,7 @@ Page({
s4_qiang_id: that.data.s4_qiang_id
}
}).then(res => {
console.log(res.data.data);
// console.log(res.data.data);
that.setData({
ConfirmAnOrder: res.data.data.order_good,
address: res.data.data.address ? res.data.data.address : {},
... ... @@ -88,7 +88,7 @@ Page({
use_fen_id: res.data.data.use_fen_id
})
}).catch(err => {
console.log(err);
// console.log(err);
if (err.code == 0) {
that.setData({
msg: err.msg
... ... @@ -132,13 +132,16 @@ Page({
signType: 'MD5',
paySign: res.data.data.paySign,
success(res) {
console.log(res);
// console.log(res);
wx.redirectTo({
url: '/pages/MyOrder/MyOrder',
})
},
fail(res) {
console.log(res)
wx.redirectTo({
url: '/pages/MyOrder/MyOrder',
})
// console.log(res)
}
})
} else {
... ... @@ -157,7 +160,7 @@ Page({
msg: err.msg
})
this.popTest()
console.log(err);
// console.log(err);
})
} else {
wx.showModal({
... ... @@ -179,7 +182,7 @@ Page({
})
}, 1300);
}).catch(err => {
console.log(err);
// console.log(err);
that.setData({
msg: err.msg
})
... ... @@ -188,7 +191,7 @@ Page({
})
} else {
console.log('点击取消回调')
// console.log('点击取消回调')
that.setData({
msg: '请重新选择付款方式'
})
... ... @@ -221,7 +224,7 @@ Page({
url: 'api/gou/buy2',
data: obj
})
console.log(data);
// console.log(data);
if (data.code == 1) {
wx.requestPayment({
timeStamp: data.data.timeStamp,
... ... @@ -230,19 +233,22 @@ Page({
signType: 'MD5',
paySign: data.data.paySign,
success(res) {
console.log(res);
// console.log(res);
wx.redirectTo({
url: '/pages/MyOrder/MyOrder',
})
},
fail(res) {
console.log(res)
wx.redirectTo({
url: '/pages/MyOrder/MyOrder',
})
// console.log(res)
}
})
}
} catch (err) {
console.log(err);
// console.log(err);
that.setData({
msg: err.msg
})
... ... @@ -254,7 +260,7 @@ Page({
that.popTest()
}
},
changeChe() { //车唛积分
changeChe() { //小象积分
if (this.data.img1) {
this.setData({
img1: false,
... ...
... ... @@ -49,9 +49,9 @@
<text class="remarks_ public_1">备注</text>
<text class="service_right public_2" bindtap="clickme">{{bei}}</text>
</view>
<!-- 车唛积分 -->
<!-- 小象积分 -->
<view class=" integrate public " wx:if="{{no==''}}">
<text class="integrate_che public_1">积分({{orderContent.ping_fen}})</text>
<text class="integrate_che public_1">小象积分({{orderContent.ping_fen}})</text>
<view class="red_imgs">
<text class="integrate_right public_2">{{orderContent.ping_money}}</text>
<view class="changeIMg" catchtap="changeChe">
... ... @@ -113,11 +113,11 @@
</view>
<!-- 说明 explain -->
<view class="explain" wx:if="{{no==''}}">
<text class="explain_ ">使用积分抵扣不享受积分赠送</text>
<text class="explain_ ">使用小象积分抵扣不享受积分赠送</text>
<view class="r_explain">
<text class="explain__right ">领取</text>
<text class="explain__red ">{{orderContent.fen}}</text>
<text class="explain__right ">积分</text>
<text class="explain__right ">小象积分</text>
</view>
</view>
</view>
... ...
... ... @@ -33,7 +33,7 @@ Page({
},
onLoad: function (options) {
console.log(options, "接口1");
// console.log(options, "接口1");
this.setData({
gou_arr: options.gouarr
})
... ... @@ -74,7 +74,7 @@ Page({
order_no: res.data.data.order_no
})
}).catch(err => {
console.log(err);
// console.log(err);
if (err.code == 0) {
that.setData({
msg: err.msg
... ... @@ -117,13 +117,16 @@ Page({
signType: 'MD5',
paySign: res.data.data.paySign,
success(res) {
console.log(res);
// console.log(res);
wx.redirectTo({
url: '/pages/MyOrder/MyOrder?order_no=' + that.data.order_no,
})
},
fail(res) {
console.log(res)
// console.log(res)
wx.redirectTo({
url: '/pages/MyOrder/MyOrder?order_no=' + that.data.order_no,
})
}
})
} else {
... ... @@ -142,7 +145,7 @@ Page({
msg: err.msg
})
this.popTest()
console.log(err);
// console.log(err);
})
} else {
wx.showModal({
... ... @@ -164,7 +167,7 @@ Page({
})
}, 2000);
}).catch(err => {
console.log(err);
// console.log(err);
that.setData({
msg: err.msg
})
... ... @@ -173,7 +176,7 @@ Page({
})
} else {
console.log('点击取消回调')
// console.log('点击取消回调')
that.setData({
msg: '请重新选择付款方式'
})
... ... @@ -187,7 +190,7 @@ Page({
}
},
changeChe() { //车唛积分
changeChe() { //小象积分
if (this.data.img) {
this.setData({
img: false,
... ... @@ -226,7 +229,7 @@ Page({
url: 'api/red/shiPay2',
data: obj
})
// console.log(data);
// // console.log(data);
that.setData({
shifu: data.data,
all_pay: data.data.shi
... ... @@ -302,7 +305,7 @@ Page({
wx.chooseAddress({ //首次调用
//同意授权
success: res => {
console.log(res) //地址列表信息
// console.log(res) //地址列表信息
},
fail: err => {
wx.getSetting({
... ... @@ -324,10 +327,10 @@ Page({
wx.chooseAddress({
success: res => {
//opensetting后同意
console.log(res)
// console.log(res)
},
fail: err => {
console.log(err)
// console.log(err)
}
})
},
... ... @@ -349,7 +352,7 @@ Page({
}
},
fail: err => {
console.log(err)
// console.log(err)
}
})
}
... ...
... ... @@ -61,9 +61,9 @@
<text class="remarks_ public_1">备注</text>
<text class="service_right public_2" bindtap="clickme">{{bei}}</text>
</view>
<!-- 车唛积分 -->
<!-- 小象积分 -->
<view class=" integrate public ">
<text class="integrate_che public_1">积分({{orderContent.ping_fen}})</text>
<text class="integrate_che public_1">小象积分({{orderContent.ping_fen}})</text>
<view class="red_imgs">
<text class="integrate_right public_2">{{orderContent.ping_money}}</text>
<view class="changeIMg" catchtap="changeChe">
... ... @@ -114,7 +114,7 @@
</view>
<!-- 说明 explain -->
<view class="explain">
<text class="explain_ ">使用积分抵扣不享受积分赠送</text>
<text class="explain_ ">使用小象积分抵扣不享受积分赠送</text>
<view class="r_explain">
<text class="explain__right ">领取</text>
<text class="explain__red ">{{orderContent.fen}}</text>
... ...
... ... @@ -24,7 +24,7 @@ Page({
},
onLoad: function (options) {
let that = this
console.log(options);
// console.log(options);
that.setData({
pin_id: options.pin_id,
city_id: options.city_id
... ... @@ -36,7 +36,7 @@ Page({
this.get4SPage()
},
async bindconfirm(e) {
console.log(e);
// console.log(e);
let that = this;
that.setData({
kw: e.detail.value.input || e.detail.value
... ... @@ -60,7 +60,7 @@ Page({
that.setData({
list: data
})
console.log(that.data.list, "搜索");
// console.log(that.data.list, "搜索");
} else {
that.setData({
msg: '为搜索到任何内容'
... ... @@ -70,13 +70,13 @@ Page({
}
} catch (err) {
console.log(err);
// console.log(err);
}
},
async get4SPin() { // 获取4S品牌
let that = this
console.log(that.data.city_id);
console.log(that.data.pin_id);
// console.log(that.data.city_id);
// console.log(that.data.pin_id);
const {
data: {
data
... ... @@ -97,7 +97,7 @@ Page({
arr4SList: data
})
console.log(that.data.arr4SList, "4s", obj, data);
// console.log(that.data.arr4SList, "4s", obj, data);
},
async get4SPage() {
let that = this
... ... @@ -112,7 +112,7 @@ Page({
city_id: that.data.city_id
}
})
console.log(data, "页面");
// console.log(data, "页面");
that.setData({
publicList: data,
city: data.city,
... ... @@ -131,7 +131,7 @@ Page({
},
changed4S(e) {
let that = this
console.log(e);
// console.log(e);
let id = e.currentTarget.dataset.id
that.data.list.forEach(value => {
if (value.id == id) {
... ... @@ -151,7 +151,7 @@ Page({
delta: 1, // 返回上一级页面。
success: function () {
// prevPage.getAddGuiZhe()
console.log('成功!')
// console.log('成功!')
}
})
... ...
... ... @@ -34,7 +34,7 @@ Page({
},
onLoad: function (options) {
console.log(options, "接口");
// console.log(options, "接口");
this.setData({
id: options.id,
num: options.num,
... ... @@ -78,9 +78,9 @@ Page({
all_pay: res.data.data.all_pay,
order_no: res.data.data.order_no
})
console.log(res.data.data, that.data.all_pay, "订单");
// console.log(res.data.data, that.data.all_pay, "订单");
}).catch(err => {
console.log(err);
// console.log(err);
if (err.code == 0) {
that.setData({
msg: err.msg
... ... @@ -121,13 +121,16 @@ Page({
signType: 'MD5',
paySign: res.data.data.paySign,
success(res) {
console.log(res);
// console.log(res);
wx.redirectTo({
url: '/pages/MyOrder/MyOrder?order_no=' + that.data.order_no,
})
},
fail(res) {
console.log(res)
// console.log(res)
wx.redirectTo({
url: '/pages/MyOrder/MyOrder?order_no=' + that.data.order_no,
})
}
})
} else {
... ... @@ -147,7 +150,7 @@ Page({
msg: err.msg
})
this.popTest()
console.log(err);
// console.log(err);
})
} else {
wx.showModal({
... ... @@ -176,7 +179,7 @@ Page({
})
}, 1700);
}).catch(err => {
console.log(err);
// console.log(err);
that.setData({
msg: err.msg
})
... ... @@ -184,7 +187,7 @@ Page({
})
} else {
console.log('点击取消回调')
// console.log('点击取消回调')
that.setData({
msg: '请重新选择付款方式'
})
... ... @@ -202,7 +205,7 @@ Page({
}
},
changeChe() { //车唛积分
changeChe() { //小象积分
if (this.data.img) {
this.setData({
img: false,
... ... @@ -239,7 +242,7 @@ Page({
url: 'api/red/shiPay2',
data: obj
})
console.log(data);
// console.log(data);
that.setData({
shifu: data.data,
all_pay: data.data.shi
... ... @@ -316,7 +319,7 @@ Page({
wx.chooseAddress({ //首次调用
//同意授权
success: res => {
console.log(res) //地址列表信息
// console.log(res) //地址列表信息
},
fail: err => {
wx.getSetting({
... ... @@ -338,10 +341,10 @@ Page({
wx.chooseAddress({
success: res => {
//opensetting后同意
console.log(res)
// console.log(res)
},
fail: err => {
console.log(err)
// console.log(err)
}
})
},
... ... @@ -363,7 +366,7 @@ Page({
}
},
fail: err => {
console.log(err)
// console.log(err)
}
})
}
... ...
... ... @@ -61,9 +61,9 @@
<text class="remarks_ public_1">备注</text>
<text class="service_right public_2" bindtap="clickme">{{bei}}</text>
</view>
<!-- 车唛积分 -->
<!-- 小象积分 -->
<view class=" integrate public ">
<text class="integrate_che public_1">积分({{orderContent.ping_fen}})</text>
<text class="integrate_che public_1">小象积分({{orderContent.ping_fen}})</text>
<view class="red_imgs">
<text class="integrate_right public_2">{{orderContent.ping_money}}</text>
<view class="changeIMg" catchtap="changeChe">
... ... @@ -114,7 +114,7 @@
</view>
<!-- 说明 explain -->
<view class="explain">
<text class="explain_ ">使用积分抵扣不享受积分赠送</text>
<text class="explain_ ">使用小象积分抵扣不享受积分赠送</text>
<view class="r_explain">
<text class="explain__right ">领取</text>
<text class="explain__red ">{{orderContent.fen}}</text>
... ...
... ... @@ -30,9 +30,7 @@ Page({
},
// 同 VehicleList Vnew4Sstore 是一个页面
onLoad: function (options) {
console.log(options);
},
onLoad: function (options) {},
onChange(e) {
this.setData({
timeData: e.detail,
... ... @@ -40,13 +38,13 @@ Page({
},
onShow: function () {
let that = this
// console.log(a.globalData.stores_id);
let s4_id = a.globalData.stores_id
a.globalData.stores_id = ''
if (s4_id == '') {
that.setData({
S4Spage: false
})
} else {
that.setData({
S4Spage: true,
... ... @@ -66,7 +64,7 @@ Page({
that.getDecorations()
that.getHotActivity()
that.getHotModels()
that.getgood3List()
// that.getgood3List()
that.getProducts()
that.getNewcar()
}, 100);
... ... @@ -91,7 +89,7 @@ Page({
id: decorations.id
}
})
console.log(data);
// console.log(data);
if (data.code == 1) {
that.setData({
msg: data.msg
... ... @@ -99,7 +97,7 @@ Page({
that.getDecorations()
}
} catch (err) {
console.log(err, "出错了");
// console.log(err, "出错了");
a.popTest(err.msg)
}
},
... ... @@ -116,7 +114,7 @@ Page({
s4_id: that.data.s4_id
}
})
console.log(data);
// console.log(data);
if (data != null) {
that.setData({
kefu: data.kefu,
... ... @@ -124,6 +122,7 @@ Page({
it_cloose: false,
s4_id: data.id
})
that.getgood3List()
} else {
that.setData({
S4Spage: false,
... ... @@ -134,7 +133,7 @@ Page({
decorations: data,
})
} catch (err) {
console.log(err, "出错了");
// console.log(err, "出错了");
a.popTest(err.msg)
that.setData({
S4Spage: false,
... ... @@ -156,13 +155,13 @@ Page({
s4_id: that.data.s4_id
}
})
console.log(data);
// console.log(data);
that.setData({
hotActivity: data,
})
} catch (err) {
console.log(err, "出错了");
// console.log(err, "出错了");
a.popTest(err.msg)
}
},
... ... @@ -179,13 +178,13 @@ Page({
s4_id: that.data.s4_id
}
})
console.log(data);
// console.log(data);
that.setData({
hotModel: data,
})
} catch (err) {
console.log(err, "出错了");
// console.log(err, "出错了");
a.popTest(err.msg)
}
... ... @@ -204,7 +203,7 @@ Page({
page: that.data.page
}
})
console.log(data);
// console.log(data);
that.setData({
last_page: data.last_page,
total: data.total,
... ... @@ -213,7 +212,7 @@ Page({
})
} catch (err) {
console.log(err, "出错了");
// console.log(err, "出错了");
a.popTest(err.msg)
}
... ... @@ -231,13 +230,13 @@ Page({
s4_id: that.data.s4_id
}
})
console.log(data);
// console.log(data);
that.setData({
hotModels: data,
})
} catch (err) {
console.log(err, "出错了");
// console.log(err, "出错了");
a.popTest(err.msg)
}
... ... @@ -255,19 +254,19 @@ Page({
s4_id: that.data.s4_id
}
})
console.log(data, "新接口");
// console.log(data, "新接口");
that.setData({
goodDetal: data
})
} catch (err) {
console.log(err, "出错了");
// console.log(err, "出错了");
a.popTest(err.msg)
}
},
freeTell(e) {
console.log(e);
// console.log(e);
let phone = e.currentTarget.dataset.phone
wx.makePhoneCall({
phoneNumber: phone,
... ... @@ -301,7 +300,7 @@ Page({
let token = wx.getStorageSync("token")
let decorations = that.data.decorations
let s4_id = decorations.id
console.log(s4_id);
// console.log(s4_id);
if (token) {
wx.navigateTo({
url: '/pages/VehicleList/VehicleList?id=' + s4_id
... ... @@ -352,13 +351,13 @@ Page({
},
lookMorePartsList() {
let id = this.data.s4_id
console.log(id);
// console.log(id);
wx.navigateTo({
url: '/pages/goAccessories/goAccessories?id=' + id
})
},
bindMakePhone(e) {
console.log(e);
// console.log(e);
let phone = e.currentTarget.dataset.phone
wx.makePhoneCall({
phoneNumber: phone
... ... @@ -455,7 +454,7 @@ Page({
onShareAppMessage(options) {
var that = this;
var shareObj = {
title: that.data.decorations.name || "车唛分享", // 默认是小程序的名称(可以写slogan等)
title: that.data.decorations.name || "小象分享", // 默认是小程序的名称(可以写slogan等)
path: '/pages/4Sstore/4Sstore', // 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
};
... ... @@ -471,7 +470,7 @@ Page({
},
publicDetails(type, good_type) {
let that = this
console.log(type, good_type, "珊瑚");
// console.log(type, good_type, "珊瑚");
let decorations = that.data.decorations
let s4_id = decorations.id
if (type == 1) { //可以跳转
... ... @@ -549,12 +548,12 @@ Page({
goods_id: that.data.goods_id
}
})
console.log(data);
// console.log(data);
that.setData({
public: data
})
} catch (err) {
console.log(err);
// console.log(err);
that.setData({
msg: err.msg
})
... ...
page {
background: #f9f9f9;
}
.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;
}
}
}
.health {
width: 100%;
.btd {
width: 100%;
height: 380rpx;
background: url('https://car.goorcar.com/assets/static/img/v-q.png') no-repeat;
background-size: 100% 100%;
padding: 0 32rpx;
box-sizing: border-box;
.searchbox {
width: 100%;
.searchinput {
width: 100%;
display: flex;
align-items: center;
border-radius: 28rpx;
background-color: #fff;
padding: 10rpx 20rpx;
box-sizing: border-box;
.searchicon {
width: 32rpx;
height: 32rpx;
}
input {
flex: 1;
text-indent: 20rpx;
height: 100%;
}
}
}
.top_tit {
width: 100%;
// padding: 0 32rpx;
// box-sizing: border-box;
.tit_list {
width: 100%;
height: 60rpx;
opacity: 0.6;
background: #db1d0e;
display: flex;
align-items: center;
margin-top: 14rpx;
.tit_item {
height: 60rpx;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
image {
width: 40rpx;
height: 40rpx;
margin-right: 12rpx;
}
.item_names {
font-size: 28rpx;
color: #fff;
}
}
}
}
.btd_box {
margin-top: 26rpx;
width: 100%;
background: #ffffff;
padding: 0 32rpx;
box-sizing: border-box;
border-radius: 12rpx;
box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(247, 77, 40, 0.09);
.ress_btd {
width: 100%;
padding-top: 32rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #f2f2f2;
.ress_a {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
.ress_b {
display: flex;
align-items: center;
.ress_b_name {
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Bold;
font-weight: bold;
text-align: left;
color: #06121f;
}
image {
width: 32rpx;
height: 32rpx;
margin-left: 5rpx;
}
}
.ress_c {
display: flex;
align-items: center;
justify-content: flex-end;
image {
width: 32rpx;
height: 32rpx;
}
.ress_c_name {
margin-left: 8rpx;
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
color: #06121e;
}
}
}
.ress_d {
width: 100%;
padding: 28rpx 0;
box-sizing: border-box;
display: flex;
align-items: center;
image {
width: 32rpx;
height: 32rpx;
margin-right: 16rpx;
}
.ress_d_name {
flex: 1;
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
text-align: left;
color: #5b5e63;
}
}
}
.kefus {
width: 100%;
.ress_bte {
width: 100%;
display: flex;
align-items: center;
padding: 30rpx 0 30rpx;
box-sizing: border-box;
.ress_btn {
flex: 1;
display: flex;
align-items: center;
padding: 10rpx 0;
box-sizing: border-box;
image {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.ress_r {
flex: 1;
padding-left: 16rpx;
box-sizing: border-box;
display: flex;
justify-content: space-between;
flex-direction: column;
height: 80rpx;
.ress_f {
width: 100%;
display: flex;
align-items: center;
.ress_f_name1 {
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Medium;
font-weight: 500;
text-align: left;
color: #06121e;
}
.ress_f_name2 {
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
color: #5b5e63;
margin-left: 16rpx;
}
}
.ress_g {
width: 100%;
padding: 0 10rpx;
box-sizing: border-box;
display: flex;
align-items: center;
.ress_m_box {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
position: relative;
image {
width: 40rpx;
height: 40rpx;
}
.transparent {
background: transparent;
position: absolute;
top: 0rpx;
left: 0;
width: 100%;
height: 40rpx;
padding: 0;
// border: 1rpx solid #f53526;
}
}
}
}
}
}
.kun_kfu {
width: 100%;
height: 160rpx;
font-size: 28rpx;
color: #5b5e63;
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
// 分类
.cate {
display: flex;
padding: 30rpx 32rpx;
box-sizing: border-box;
border-radius: 12rpx;
margin-top: 100rpx;
.catePublic {
width: 128rpx;
height: 128rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #fff;
margin-right: 12rpx;
border-radius: 8rpx;
box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.08);
.publicImg {
width: 52rpx;
height: 52rpx;
}
.cate_public {
font-size: 24rpx;
margin-top: 14rpx;
}
&:last-child {
margin: 0;
}
}
}
.wai_star {
width: 100%;
padding: 0 32rpx;
box-sizing: border-box;
.star_chan {
width: 100%;
border-radius: 8rpx;
.star_names {
width: 100%;
position: relative;
font-size: 32rpx;
color: #06121F;
font-weight: 600;
padding-left: 12rpx;
padding-bottom: 20rpx;
box-sizing: border-box;
&::after {
content: '';
position: absolute;
top: 8rpx;
left: 0;
width: 6rpx;
height: 30rpx;
background: #E8370F;
border-radius: 4rpx;
}
}
.star_list {
width: 100%;
// padding: 20rpx 0 20rpx 20rpx;
// box-sizing: border-box;
.scroll_view_H {
.buyclassimgs {
width: 750rpx;
display: flex;
align-items: center;
flex-wrap: nowrap;
.imgzU {
margin-right: 24rpx;
width: 382rpx;
height: 180rpx;
flex-shrink: 0;
image {
width: 100%;
border-radius: 8rpx;
}
}
}
}
}
}
}
.week_hot {
width: 100%;
padding: 0 32rpx;
box-sizing: border-box;
.star_name {
font-size: 32rpx;
font-family: PingFang SC,
PingFang SC-Medium;
font-weight: 600;
text-align: left;
color: #06121f;
position: relative;
width: 100%;
padding: 28rpx 0 28rpx 16rpx;
box-sizing: border-box;
&::after {
content: '';
position: absolute;
top: 36rpx;
left: 0;
width: 6rpx;
height: 30rpx;
background-color: #E8370F;
border-radius: 4rpx;
}
}
.week_box {
width: 100%;
display: flex;
align-items: center;
.left_big {
width: 50%;
margin-right: 20rpx;
border-radius: 24rpx;
.car_name {
width: 100%;
font-size: 24rpx;
color: #06121F;
text-align: center;
}
.car_name_price {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.pt {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 20rpx;
color: #E8370F;
}
.pt_price {
font-size: 28rpx;
color: #E8370F;
}
}
}
.car_down_img {
width: 100%;
image {
width: 304rpx;
height: 172rpx;
// width: 100%;
}
}
image {
width: 100%;
height: 336rpx;
border-radius: 24rpx;
}
}
.rt_box {
width: 50%;
.ry_top {
border-radius: 24rpx;
.set_ti {
width: 100%;
display: flex;
align-items: center;
.ti_img {
width: 138rpx;
height: 78rpx;
image {
width: 100%;
}
}
.ti_text {
flex: 1;
font-size: 24rpx;
color: #06121F;
padding: 0 15rpx;
box-sizing: border-box;
}
}
image {
width: 100%;
height: 162rpx;
border-radius: 24rpx;
}
}
.ry_down {
width: 100%;
margin-top: 20rpx;
border-radius: 24rpx;
.set_ti {
width: 100%;
display: flex;
align-items: center;
.ti_img {
width: 138rpx;
height: 78rpx;
image {
width: 100%;
}
}
.ti_text {
flex: 1;
padding: 0 15rpx;
box-sizing: border-box;
font-size: 24rpx;
color: #06121F;
}
}
image {
width: 100%;
height: 142rpx;
border-radius: 24rpx;
}
}
}
}
}
.hot_stores {
width: 100%;
padding: 0 32rpx;
box-sizing: border-box;
.love_car {
width: 100%;
padding: 32rpx 0rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.car_name {
font-size: 32rpx;
font-family: PingFang SC,
PingFang SC-Medium;
font-weight: 600;
text-align: left;
color: #06121f;
position: relative;
padding-left: 16rpx;
box-sizing: border-box;
&::after {
content: '';
position: absolute;
top: 8rpx;
left: 0;
width: 6rpx;
height: 30rpx;
background-color: #E8370F;
border-radius: 4rpx;
}
}
.car_more {
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
color: #5b5e63;
}
}
.list_ {
width: 100%;
display: flex;
justify-content: space-between;
padding: 30rpx 32rpx;
background: #ffffff;
border-radius: 8rpx;
margin-bottom: 20rpx;
.list_store {
display: flex;
flex-direction: column;
.store_content {
margin-bottom: 20rpx;
.item_name {
font-size: 28rpx;
line-height: 40rpx;
font-weight: 600;
}
}
.store_price {
font-size: 32rpx;
line-height: 44rpx;
color: #E8370F;
font-weight: 600;
}
}
.change {
display: flex;
flex-direction: column;
.btn_1 {
width: 164rpx;
height: 60rpx;
margin: 10rpx 0;
line-height: 60rpx;
padding: 0;
font-weight: 400;
font-size: 28rpx;
}
.btn_3 {
background-color: #E8370F;
color: #fff;
}
.btn_2 {
border: 2rpx solid #E8370F;
color: #E8370F;
}
}
}
.new_car {
width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
.nv_item {
width: 48%;
padding: 0 0 20rpx;
box-sizing: border-box;
margin-bottom: 20rpx;
background-color: #fff;
border-radius: 20rpx;
image {
width: 100%;
height: 280rpx;
flex-shrink: 0;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
}
.big_titles {
width: 100%;
padding: 5rpx 10rpx 0;
box-sizing: border-box;
font-size: 28rpx;
color: #323233;
font-weight: 600;
}
.pri_box {
width: 100%;
padding: 5rpx 10rpx;
box-sizing: border-box;
.store_guide_price {
width: 100%;
display: flex;
align-items: center;
.think_price {
font-size: 24rpx;
line-height: 34rpx;
margin-right: 10rpx;
color: #5b5e63;
}
.imgs_downArrow {
margin-top: 5rpx;
height: 24rpx;
line-height: 44rpx;
display: flex;
align-items: center;
flex-shrink: 0;
.imgs_down {
width: 33rpx;
height: 100%;
}
text {
font-size: 24rpx;
color: #00C116;
}
}
}
.store_price {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 24rpx;
color: #E8370F;
font-weight: 600;
}
.pt_price {
font-size: 32rpx;
color: #E8370F;
font-weight: 600;
}
}
}
&:nth-child(2n+1) {
margin-right: 24rpx;
}
&:nth-child(2n+2) {
margin-right: 0;
}
}
}
}
.car_love,
.armature_love {
width: 100%;
padding: 0 18rpx;
box-sizing: border-box;
margin-top: 20rpx;
.love_car {
width: 100%;
padding: 32rpx 14rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.car_name {
font-size: 32rpx;
font-family: PingFang SC,
PingFang SC-Medium;
font-weight: 600;
text-align: left;
color: #06121f;
position: relative;
padding-left: 16rpx;
box-sizing: border-box;
&::after {
content: '';
position: absolute;
top: 8rpx;
left: 0;
width: 6rpx;
height: 30rpx;
background-color: #E8370F;
border-radius: 4rpx;
}
}
.car_more {
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
color: #5b5e63;
}
}
.car_list {
width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
.item_car {
width: 48%;
background: #ffffff;
border-radius: 20rpx;
margin-bottom: 24rpx;
image {
width: 100%;
height: 332rpx;
border-radius: 20rpx 20rpx 0 0;
}
.down_car_box {
width: 100%;
padding: 16rpx;
box-sizing: border-box;
.car_text {
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
text-align: left;
color: #06121e;
line-height: 40rpx;
}
.pt_box {
width: 100%;
display: flex;
align-items: baseline;
.pt {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 26rpx;
color: #E8370F;
font-weight: 600;
}
.pt_price {
font-size: 36rpx;
color: #E8370F;
font-weight: 600;
}
}
.del {
margin-left: 30rpx;
font-size: 24rpx;
color: #8C9198;
text-decoration: line-through;
}
}
}
&:nth-child(2n+1) {
margin-right: 24rpx;
}
&:nth-child(2n+2) {
margin-right: 0;
}
}
}
.car_liss {
width: 100%;
.footlist_a {
width: 100%;
position: relative;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
.foot_left_a {
float: left;
width: 50%;
padding: 24rpx 14rpx;
box-sizing: border-box;
.footbox {
width: 100%;
margin: 0 auto 20rpx;
background: #fff;
position: relative;
border-radius: 20rpx;
image {
width: 100%;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
}
.text_bx {
width: 100%;
padding: 0 18rpx 20rpx;
box-sizing: border-box;
.ster_nams {
width: 100%;
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
text-align: left;
color: #06121e;
line-height: 40rpx;
}
.cen_tite {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 0;
box-sizing: border-box;
.lis_title {
padding: 5rpx 14rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #fff;
background-color: #F02928;
border-radius: 4rpx;
}
.stay {
display: flex;
align-items: center;
justify-content: flex-end;
.numbe {
font-size: 22rpx;
color: #E8370F;
}
.ber_name {
font-size: 22rpx;
color: #06121E;
}
}
}
.price_bx {
width: 100%;
display: flex;
align-items: center;
.pt {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 22rpx;
color: #FF4444;
font-weight: 500;
}
.pt_price {
font-size: 28rpx;
color: #FF4444;
font-weight: 500;
}
}
.del {
margin-left: 30rpx;
font-size: 24rpx;
color: #5B5E63;
text-decoration: line-through;
}
}
}
}
}
.foot_right_a {
float: left;
width: 50%;
padding: 24rpx 14rpx;
box-sizing: border-box;
.footbox {
width: 100%;
margin: 0 auto 20rpx;
background: #fff;
position: relative;
border-radius: 20rpx;
image {
width: 100%;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
}
.text_bx {
width: 100%;
padding: 0 18rpx 20rpx;
box-sizing: border-box;
.ster_nams {
width: 100%;
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
text-align: left;
color: #06121e;
line-height: 40rpx;
}
.cen_tite {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 0;
box-sizing: border-box;
.lis_title {
padding: 5rpx 14rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #fff;
background-color: #F02928;
border-radius: 4rpx;
}
.stay {
display: flex;
align-items: center;
justify-content: flex-end;
.numbe {
font-size: 22rpx;
color: #E8370F;
}
.ber_name {
font-size: 22rpx;
color: #06121E;
}
}
}
.price_bx {
width: 100%;
display: flex;
align-items: center;
.pt {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 22rpx;
color: #FF4444;
font-weight: 500;
}
.pt_price {
font-size: 28rpx;
color: #FF4444;
font-weight: 500;
}
}
.del {
margin-left: 30rpx;
font-size: 24rpx;
color: #5B5E63;
text-decoration: line-through;
}
}
}
}
}
&::after {
content: '';
clear: both;
display: block;
}
}
.tesst {
width: 100%;
padding: 20rpx 0;
text-align: center;
font-size: 28rpx;
color: #8C9198;
}
}
}
}
.noBinding {
width: 100%;
.s_empty {
width: 100%;
.banner_img {
margin: 200rpx 130rpx 100rpx 130rpx;
height: 346rpx;
image {
width: 100%;
}
}
.banner_img_title {
margin-bottom: 100rpx;
width: 100%;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0 70rpx;
.text_title {
font-size: 28rpx;
font-weight: 400;
line-height: 60rpx;
color: #3D444C;
}
}
.slj {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.btn {
color: #fff;
background-color: #E8370F;
width: 378rpx;
height: 88rpx;
margin: 50rpx auto;
padding: 0;
font-weight: 400;
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
page {
background: #f9f9f9;
}
.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;
}
}
}
.health {
width: 100%;
.btd {
width: 100%;
height: 380rpx;
background: url('https://car.goorcar.com/assets/static/img/v-q.png') no-repeat;
background-size: 100% 100%;
padding: 0 32rpx;
box-sizing: border-box;
.searchbox {
width: 100%;
.searchinput {
width: 100%;
display: flex;
align-items: center;
border-radius: 28rpx;
background-color: #fff;
padding: 10rpx 20rpx;
box-sizing: border-box;
.searchicon {
width: 32rpx;
height: 32rpx;
}
input {
flex: 1;
text-indent: 20rpx;
height: 100%;
}
}
}
.top_tit {
width: 100%;
// padding: 0 32rpx;
// box-sizing: border-box;
.tit_list {
width: 100%;
height: 60rpx;
display: flex;
align-items: center;
margin-top: 14rpx;
.tit_item {
height: 60rpx;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
image {
width: 40rpx;
height: 40rpx;
margin-right: 12rpx;
}
.item_names {
font-size: 28rpx;
color: #FCCD56;
font-weight: 600;
}
}
}
}
.btd_box {
margin-top: 16rpx;
width: 100%;
background: #ffffff;
padding: 0 32rpx;
box-sizing: border-box;
border-radius: 12rpx;
box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(247, 77, 40, 0.09);
.ress_btd {
width: 100%;
padding-top: 32rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #f2f2f2;
.ress_a {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
.ress_b {
display: flex;
align-items: center;
.ress_b_name {
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Bold;
font-weight: bold;
text-align: left;
color: #06121f;
}
image {
width: 32rpx;
height: 32rpx;
margin-left: 5rpx;
}
}
.ress_c {
display: flex;
align-items: center;
justify-content: flex-end;
image {
width: 32rpx;
height: 32rpx;
}
.ress_c_name {
margin-left: 8rpx;
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
color: #06121e;
}
}
}
.ress_d {
width: 100%;
padding: 28rpx 0;
box-sizing: border-box;
display: flex;
align-items: center;
image {
width: 32rpx;
height: 32rpx;
margin-right: 16rpx;
}
.ress_d_name {
flex: 1;
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
text-align: left;
color: #5b5e63;
}
}
}
.kefus {
width: 100%;
.ress_bte {
width: 100%;
display: flex;
align-items: center;
padding: 30rpx 0 30rpx;
box-sizing: border-box;
.ress_btn {
flex: 1;
display: flex;
align-items: center;
padding: 10rpx 0;
box-sizing: border-box;
image {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.ress_r {
flex: 1;
padding-left: 16rpx;
box-sizing: border-box;
display: flex;
justify-content: space-between;
flex-direction: column;
height: 80rpx;
.ress_f {
width: 100%;
display: flex;
align-items: center;
.ress_f_name1 {
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Medium;
font-weight: 500;
text-align: left;
color: #06121e;
}
.ress_f_name2 {
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
color: #5b5e63;
margin-left: 16rpx;
}
}
.ress_g {
width: 100%;
padding: 0 10rpx;
box-sizing: border-box;
display: flex;
align-items: center;
.ress_m_box {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
position: relative;
image {
width: 40rpx;
height: 40rpx;
}
.transparent {
background: transparent;
position: absolute;
top: 0rpx;
left: 0;
width: 100%;
height: 40rpx;
padding: 0;
// border: 1rpx solid #f53526;
}
}
}
}
}
}
.kun_kfu {
width: 100%;
height: 160rpx;
font-size: 28rpx;
color: #5b5e63;
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
// 分类
.cate {
display: flex;
padding: 30rpx 32rpx;
box-sizing: border-box;
border-radius: 12rpx;
margin-top: 100rpx;
.catePublic {
width: 128rpx;
height: 128rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #fff;
margin-right: 12rpx;
border-radius: 8rpx;
box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.08);
.publicImg {
width: 52rpx;
height: 52rpx;
}
.cate_public {
font-size: 24rpx;
margin-top: 14rpx;
}
&:last-child {
margin: 0;
}
}
}
.wai_star {
width: 100%;
padding: 0 32rpx;
box-sizing: border-box;
.star_chan {
width: 100%;
border-radius: 8rpx;
.star_names {
width: 100%;
position: relative;
font-size: 32rpx;
color: #06121F;
font-weight: 600;
padding-left: 12rpx;
padding-bottom: 20rpx;
box-sizing: border-box;
&::after {
content: '';
position: absolute;
top: 8rpx;
left: 0;
width: 6rpx;
height: 30rpx;
background: #E8370F;
border-radius: 4rpx;
}
}
.star_list {
width: 100%;
// padding: 20rpx 0 20rpx 20rpx;
// box-sizing: border-box;
.scroll_view_H {
.buyclassimgs {
width: 750rpx;
display: flex;
align-items: center;
flex-wrap: nowrap;
.imgzU {
margin-right: 24rpx;
width: 382rpx;
height: 180rpx;
flex-shrink: 0;
image {
width: 100%;
border-radius: 8rpx;
}
}
}
}
}
}
}
.week_hot {
width: 100%;
padding: 0 32rpx;
box-sizing: border-box;
.star_name {
font-size: 32rpx;
font-family: PingFang SC,
PingFang SC-Medium;
font-weight: 600;
text-align: left;
color: #06121f;
position: relative;
width: 100%;
padding: 28rpx 0 28rpx 16rpx;
box-sizing: border-box;
&::after {
content: '';
position: absolute;
top: 36rpx;
left: 0;
width: 6rpx;
height: 30rpx;
background-color: #E8370F;
border-radius: 4rpx;
}
}
.week_box {
width: 100%;
display: flex;
align-items: center;
.left_big {
width: 50%;
margin-right: 20rpx;
border-radius: 24rpx;
.car_name {
width: 100%;
font-size: 24rpx;
color: #06121F;
text-align: center;
}
.car_name_price {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.pt {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 20rpx;
color: #E8370F;
}
.pt_price {
font-size: 28rpx;
color: #E8370F;
}
}
}
.car_down_img {
width: 100%;
image {
width: 304rpx;
height: 172rpx;
// width: 100%;
}
}
image {
width: 100%;
height: 336rpx;
border-radius: 24rpx;
}
}
.rt_box {
width: 50%;
.ry_top {
border-radius: 24rpx;
.set_ti {
width: 100%;
display: flex;
align-items: center;
.ti_img {
width: 138rpx;
height: 78rpx;
image {
width: 100%;
}
}
.ti_text {
flex: 1;
font-size: 24rpx;
color: #06121F;
padding: 0 15rpx;
box-sizing: border-box;
}
}
image {
width: 100%;
height: 162rpx;
border-radius: 24rpx;
}
}
.ry_down {
width: 100%;
margin-top: 20rpx;
border-radius: 24rpx;
.set_ti {
width: 100%;
display: flex;
align-items: center;
.ti_img {
width: 138rpx;
height: 78rpx;
image {
width: 100%;
}
}
.ti_text {
flex: 1;
padding: 0 15rpx;
box-sizing: border-box;
font-size: 24rpx;
color: #06121F;
}
}
image {
width: 100%;
height: 142rpx;
border-radius: 24rpx;
}
}
}
}
}
.hot_stores {
width: 100%;
padding: 0 32rpx;
box-sizing: border-box;
.love_car {
width: 100%;
padding: 32rpx 0rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.car_name {
font-size: 32rpx;
font-family: PingFang SC,
PingFang SC-Medium;
font-weight: 600;
text-align: left;
color: #06121f;
position: relative;
padding-left: 16rpx;
box-sizing: border-box;
&::after {
content: '';
position: absolute;
top: 8rpx;
left: 0;
width: 6rpx;
height: 30rpx;
background-color: #E8370F;
border-radius: 4rpx;
}
}
.car_more {
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
color: #5b5e63;
}
}
.list_ {
width: 100%;
display: flex;
justify-content: space-between;
padding: 30rpx 32rpx;
background: #ffffff;
border-radius: 8rpx;
margin-bottom: 20rpx;
.list_store {
display: flex;
flex-direction: column;
.store_content {
margin-bottom: 20rpx;
.item_name {
font-size: 28rpx;
line-height: 40rpx;
font-weight: 600;
}
}
.store_price {
font-size: 32rpx;
line-height: 44rpx;
color: #E8370F;
font-weight: 600;
}
}
.change {
display: flex;
flex-direction: column;
.btn_1 {
width: 164rpx;
height: 60rpx;
margin: 10rpx 0;
line-height: 60rpx;
padding: 0;
font-weight: 400;
font-size: 28rpx;
}
.btn_3 {
background-color: #E8370F;
color: #fff;
}
.btn_2 {
border: 2rpx solid #E8370F;
color: #E8370F;
}
}
}
.new_car {
width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
.nv_item {
width: 48%;
padding: 0 0 20rpx;
box-sizing: border-box;
margin-bottom: 20rpx;
background-color: #fff;
border-radius: 20rpx;
image {
width: 100%;
height: 280rpx;
flex-shrink: 0;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
}
.big_titles {
width: 100%;
padding: 5rpx 10rpx 0;
box-sizing: border-box;
font-size: 28rpx;
color: #323233;
font-weight: 600;
}
.pri_box {
width: 100%;
padding: 5rpx 10rpx;
box-sizing: border-box;
.store_guide_price {
width: 100%;
display: flex;
align-items: center;
.think_price {
font-size: 24rpx;
line-height: 34rpx;
margin-right: 10rpx;
color: #5b5e63;
}
.imgs_downArrow {
margin-top: 5rpx;
height: 24rpx;
line-height: 44rpx;
display: flex;
align-items: center;
flex-shrink: 0;
.imgs_down {
width: 33rpx;
height: 100%;
}
text {
font-size: 24rpx;
color: #00C116;
}
}
}
.store_price {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 24rpx;
color: #E8370F;
font-weight: 600;
}
.pt_price {
font-size: 32rpx;
color: #E8370F;
font-weight: 600;
}
}
}
&:nth-child(2n+1) {
margin-right: 24rpx;
}
&:nth-child(2n+2) {
margin-right: 0;
}
}
}
}
.car_love,
.armature_love {
width: 100%;
padding: 0 18rpx;
box-sizing: border-box;
margin-top: 20rpx;
.love_car {
width: 100%;
padding: 32rpx 14rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.car_name {
font-size: 32rpx;
font-family: PingFang SC,
PingFang SC-Medium;
font-weight: 600;
text-align: left;
color: #06121f;
position: relative;
padding-left: 16rpx;
box-sizing: border-box;
&::after {
content: '';
position: absolute;
top: 8rpx;
left: 0;
width: 6rpx;
height: 30rpx;
background-color: #E8370F;
border-radius: 4rpx;
}
}
.car_more {
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
color: #5b5e63;
}
}
.car_list {
width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
.item_car {
width: 48%;
background: #ffffff;
border-radius: 20rpx;
margin-bottom: 24rpx;
image {
width: 100%;
height: 332rpx;
border-radius: 20rpx 20rpx 0 0;
}
.down_car_box {
width: 100%;
padding: 16rpx;
box-sizing: border-box;
.car_text {
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
text-align: left;
color: #06121e;
line-height: 40rpx;
}
.pt_box {
width: 100%;
display: flex;
align-items: baseline;
.pt {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 26rpx;
color: #E8370F;
font-weight: 600;
}
.pt_price {
font-size: 36rpx;
color: #E8370F;
font-weight: 600;
}
}
.del {
margin-left: 30rpx;
font-size: 24rpx;
color: #8C9198;
text-decoration: line-through;
}
}
}
&:nth-child(2n+1) {
margin-right: 24rpx;
}
&:nth-child(2n+2) {
margin-right: 0;
}
}
}
.car_liss {
width: 100%;
.footlist_a {
width: 100%;
position: relative;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
.foot_left_a {
float: left;
width: 50%;
padding: 24rpx 14rpx;
box-sizing: border-box;
.footbox {
width: 100%;
margin: 0 auto 20rpx;
background: #fff;
position: relative;
border-radius: 20rpx;
image {
width: 100%;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
}
.text_bx {
width: 100%;
padding: 0 18rpx 20rpx;
box-sizing: border-box;
.ster_nams {
width: 100%;
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
text-align: left;
color: #06121e;
line-height: 40rpx;
}
.cen_tite {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 0;
box-sizing: border-box;
.lis_title {
padding: 5rpx 14rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #fff;
background-color: #F02928;
border-radius: 4rpx;
}
.stay {
display: flex;
align-items: center;
justify-content: flex-end;
.numbe {
font-size: 22rpx;
color: #E8370F;
}
.ber_name {
font-size: 22rpx;
color: #06121E;
}
}
}
.price_bx {
width: 100%;
display: flex;
align-items: center;
.pt {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 22rpx;
color: #FF4444;
font-weight: 500;
}
.pt_price {
font-size: 28rpx;
color: #FF4444;
font-weight: 500;
}
}
.del {
margin-left: 30rpx;
font-size: 24rpx;
color: #5B5E63;
text-decoration: line-through;
}
}
}
}
}
.foot_right_a {
float: left;
width: 50%;
padding: 24rpx 14rpx;
box-sizing: border-box;
.footbox {
width: 100%;
margin: 0 auto 20rpx;
background: #fff;
position: relative;
border-radius: 20rpx;
image {
width: 100%;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
}
.text_bx {
width: 100%;
padding: 0 18rpx 20rpx;
box-sizing: border-box;
.ster_nams {
width: 100%;
font-size: 28rpx;
font-family: PingFang SC,
PingFang SC-Regular;
font-weight: 400;
text-align: left;
color: #06121e;
line-height: 40rpx;
}
.cen_tite {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 0;
box-sizing: border-box;
.lis_title {
padding: 5rpx 14rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #fff;
background-color: #F02928;
border-radius: 4rpx;
}
.stay {
display: flex;
align-items: center;
justify-content: flex-end;
.numbe {
font-size: 22rpx;
color: #E8370F;
}
.ber_name {
font-size: 22rpx;
color: #06121E;
}
}
}
.price_bx {
width: 100%;
display: flex;
align-items: center;
.pt {
display: flex;
align-items: baseline;
.pt_icon {
font-size: 22rpx;
color: #FF4444;
font-weight: 500;
}
.pt_price {
font-size: 28rpx;
color: #FF4444;
font-weight: 500;
}
}
.del {
margin-left: 30rpx;
font-size: 24rpx;
color: #5B5E63;
text-decoration: line-through;
}
}
}
}
}
&::after {
content: '';
clear: both;
display: block;
}
}
.tesst {
width: 100%;
padding: 20rpx 0;
text-align: center;
font-size: 28rpx;
color: #8C9198;
}
}
}
}
.noBinding {
width: 100%;
.s_empty {
width: 100%;
.banner_img {
margin: 200rpx 130rpx 100rpx 130rpx;
height: 346rpx;
image {
width: 100%;
}
}
.banner_img_title {
margin-bottom: 100rpx;
width: 100%;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0 70rpx;
.text_title {
font-size: 28rpx;
font-weight: 400;
line-height: 60rpx;
color: #3D444C;
}
}
.slj {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.btn {
color: #fff;
background-color: #E8370F;
width: 378rpx;
height: 88rpx;
margin: 50rpx auto;
padding: 0;
font-weight: 400;
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
}
\ No newline at end of file
... ...
... ... @@ -2,7 +2,7 @@
<view class="header">
<view class="s" style='height:{{statusTop}}px'></view>
<view class="left_img">
<view class="title_oage">车唛优选</view>
<view class="title_oage">小象车孚</view>
</view>
</view>
<view class="health" wx:if="{{S4Spage == true}}">
... ... @@ -16,15 +16,15 @@
<view class="top_tit">
<view class="tit_list">
<view class="tit_item">
<image src="{{imagesUrl}}assets/static/img/a_2.png" />
<image src="../../static/img/2_icon@2x.png" />
<view class="item_names">品牌授权</view>
</view>
<view class="tit_item">
<image src="{{imagesUrl}}assets/static/img/a_3.png" />
<image src="../../static/img/2_icon.png" />
<view class="item_names">品质保障</view>
</view>
<view class="tit_item">
<image src="{{imagesUrl}}assets/static/img/a_1.png" />
<image src="../../static/img/1_icon.png" />
<view class="item_names">服务担保</view>
</view>
</view>
... ... @@ -61,7 +61,7 @@
<view class="ress_g">
<view class="ress_m_box">
<button open-type="contact" class="transparent"></button>
<image src="{{imagesUrl}}assets/static/img/ress_b.png" />
<image src="{{imagesUrl}}assets/static/img/ress_b.png" style="padding-top:4rpx; box-sizing: border-box;" />
</view>
<view class="ress_m_box">
<image src="{{imagesUrl}}assets/static/img/ress_a.png" bindtap="freeTell" data-phone="{{item.phone}}" />
... ...
... ... @@ -62,8 +62,6 @@ page {
.container .health .btd .top_tit .tit_list {
width: 100%;
height: 60rpx;
opacity: 0.6;
background: #db1d0e;
display: flex;
align-items: center;
margin-top: 14rpx;
... ... @@ -82,10 +80,11 @@ page {
}
.container .health .btd .top_tit .tit_list .tit_item .item_names {
font-size: 28rpx;
color: #fff;
color: #FCCD56;
font-weight: 600;
}
.container .health .btd .btd_box {
margin-top: 26rpx;
margin-top: 16rpx;
width: 100%;
background: #ffffff;
padding: 0 32rpx;
... ...
... ... @@ -45,21 +45,21 @@ Page({
this.setData({
letterCITY: data
})
console.log(that.data.letterCITY, "车辆品牌", that.data.letterCITY);
// console.log(that.data.letterCITY, "车辆品牌", that.data.letterCITY);
},
letterTap(e) { //点击城市字母
console.log(e);
// console.log(e);
const Item = e.currentTarget.dataset.item;
this.setData({
cityListId: Item
});
console.log("..............." + this.data.cityListId);
// console.log("..............." + this.data.cityListId);
},
cityTap(e) { // 点击品牌名称
let that = this
let pinP = that.data.pin || ''
const Item = e.currentTarget.dataset.val.id;
console.log(pinP, Item, e);
// console.log(pinP, Item, e);
that.data.letterCITY.forEach((value, index) => {
value.pin.forEach((values, index) => {
... ... @@ -71,7 +71,7 @@ Page({
}
});
});
console.log(that.data.CarBrandName, );
// console.log(that.data.CarBrandName, );
let pages = getCurrentPages(); //获取当前页面pages里的所有信息。
let prevPage = pages[pages.length - 2]; //prevPage 是获取上一个页面的js里面的pages的所有信息。-2 是上一个页面,-3是上上个页面以此类推。
prevPage.setData({ // 将我们想要传递的参数在这里直接setData。上个页面就会执行这里的操作。
... ... @@ -95,7 +95,7 @@ Page({
CarBrandName3: that.data.CarBrandName,
})
} else {
console.log(1223);
// console.log(1223);
prevPage.setData({
pin_id: that.data.pin_id,
... ... @@ -107,18 +107,18 @@ Page({
wx.navigateBack({
delta: 1, // 返回上一级页面。
success: function () {
console.log('成功!')
// console.log('成功!')
}
})
},
async formSubmit(e) {
let that = this
// console.log(e);
// // console.log(e);
that.setData({
showedd: true
})
// console.log('form发生了submit事件,携带数据为:', e.detail.value)
// // console.log('form发生了submit事件,携带数据为:', e.detail.value)
try {
const {
data: {
... ... @@ -133,7 +133,7 @@ Page({
that.setData({
resultList: data
})
console.log(data, e);
// console.log(data, e);
} catch (err) {
that.setData({
msg: '未搜索到任何内容'
... ... @@ -154,7 +154,7 @@ Page({
clickResult(e) { // 点击搜索结果列表品牌
let that = this
console.log(e);
// console.log(e);
let id = e.currentTarget.dataset.id
that.data.resultList.forEach(value => {
if (value.id == id) {
... ... @@ -175,7 +175,7 @@ Page({
showedd: true
})
var discountName = e.detail.value['search - input'] ? e.detail.value['search - input'] : e.detail.value
console.log('e.detail.value', discountName)
// console.log('e.detail.value', discountName)
},
})
\ No newline at end of file
... ...
... ... @@ -56,7 +56,7 @@ Page({
way: that.data.way
}
})
// console.log(data);
// // console.log(data);
// if (data.length != 0) {
// that.setData({
... ... @@ -97,7 +97,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
}).then(res => {
console.log(res, "订单支付");
// console.log(res, "订单支付");
that.setData({
timeStamp: res.data.data.timeStamp,
nonceStr: res.data.data.nonceStr,
... ... @@ -112,13 +112,16 @@ Page({
signType: 'MD5',
paySign: that.data.paySign,
success(res) {
console.log(res);
// console.log(res);
wx.redirectTo({
url: '/pages/MyOrder/MyOrder?order_no=' + that.data.order_no,
})
},
fail(res) {
console.log(res)
// console.log(res)
wx.redirectTo({
url: '/pages/MyOrder/MyOrder?order_no=' + that.data.order_no,
})
}
})
}).catch(err => {
... ... @@ -126,7 +129,7 @@ Page({
msg: err.msg
})
this.popMaskTest()
console.log(err);
// console.log(err);
})
},
async cancelOrder(e) { // 取消订单
... ... @@ -136,7 +139,7 @@ Page({
content: '确认要取消吗?',
async success(res) {
if (res.confirm) {
console.log('点击确认回调')
// console.log('点击确认回调')
try {
const {
data
... ... @@ -146,7 +149,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data);
// console.log(data);
that.setData({
msg: data.msg
})
... ... @@ -162,7 +165,7 @@ Page({
}
} else {
console.log('点击取消回调')
// console.log('点击取消回调')
}
}
})
... ... @@ -175,7 +178,7 @@ Page({
content: '确认要删除吗?',
async success(res) {
if (res.confirm) {
console.log('点击确认回调')
// console.log('点击确认回调')
const {
data
} = await request({
... ... @@ -184,7 +187,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data);
// console.log(data);
that.setData({
msg: data.msg
})
... ... @@ -193,7 +196,7 @@ Page({
that.getPublicList()
}, 1000);
} else {
console.log('点击取消回调')
// console.log('点击取消回调')
}
}
})
... ... @@ -231,7 +234,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
// console.log(data, "保养项目");
// // console.log(data, "保养项目");
that.setData({
serviceItem: data
})
... ...
... ... @@ -24,7 +24,7 @@ Page({
},
onLoad: function (options) {
let that = this
console.log(options);
// console.log(options);
that.setData({
wait: options.wait || '',
tdTap: options.tdTap || '',
... ... @@ -112,12 +112,12 @@ Page({
} = await request({
url: 'api/my2/cheKu',
})
console.log(data, "再次");
// console.log(data, "再次");
that.setData({
MyGarage: data
})
} catch (err) {
console.log(err);
// console.log(err);
a.popTest(err.msg)
}
},
... ... @@ -244,7 +244,7 @@ Page({
that.getMyGarage()
}, 500);
}).catch(err => {
console.log(err, "出错了");
// console.log(err, "出错了");
a.popTest(err.msg)
})
} else {
... ...
... ... @@ -32,7 +32,7 @@ Page({
touchE: function (e) {
// console.log(e);
// // console.log(e);
var that = this
if (e.changedTouches.length == 1) {
//手指移动结束后触摸点位置的X坐标
... ... @@ -121,7 +121,7 @@ Page({
} else {
this.onShow()
}
console.log(this.data._num);
// console.log(this.data._num);
},
onLoad: function (options) {
... ... @@ -177,9 +177,9 @@ Page({
is_cloose: true
})
}
console.log(that.data.MyGarageNoCar, "有赞");
// console.log(that.data.MyGarageNoCar, "有赞");
} catch (err) {
console.log(err);
// console.log(err);
that.setData({
msg: err.msg
})
... ... @@ -204,7 +204,7 @@ Page({
id: e.currentTarget.dataset.id
}
})
console.log(data, "删除");
// console.log(data, "删除");
if (data.code == 1) {
let msg = data.msg
a.popSuccessTest(msg)
... ... @@ -233,7 +233,7 @@ Page({
},
storeDetail(e) {
console.log(e);
// console.log(e);
let id = e.currentTarget.dataset.id
wx.navigateTo({
url: '/pages/detail/detail?id=' + id
... ...
... ... @@ -46,7 +46,7 @@ Page({
this.getMyorder()
},
tomyOrderObligation(e) { // 进订单详情
console.log(e);
// console.log(e);
let StateWay = e.currentTarget.dataset.stateway
let order_no = e.currentTarget.dataset.order_no
let is_car = e.currentTarget.dataset.is_car
... ... @@ -94,10 +94,10 @@ Page({
that.setData({
myOrder: data,
})
console.log(that.data.myOrder, "订单");
// console.log(that.data.myOrder, "订单");
} catch (err) {
console.log(err);
// console.log(err);
that.setData({
msg: err.msg
})
... ... @@ -115,7 +115,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "取消订单");
// console.log(data, "取消订单");
that.setData({
msg: data.msg
})
... ... @@ -153,7 +153,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "取消订单");
// console.log(data, "取消订单");
if (data.code == 1) {
let msg = data.msg
a.popSuccessTest(msg)
... ... @@ -198,7 +198,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "已自提");
// console.log(data, "已自提");
that.setData({
msg: data.msg
})
... ... @@ -226,7 +226,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "申请退货");
// console.log(data, "申请退货");
that.setData({
msg: data.msg
})
... ... @@ -253,7 +253,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "申请退款");
// console.log(data, "申请退款");
that.setData({
msg: data.msg
})
... ... @@ -298,7 +298,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "取消退款");
// console.log(data, "取消退款");
that.setData({
msg: data.msg
})
... ... @@ -322,7 +322,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
}).then(res => {
console.log(res, "订单支付");
// console.log(res, "订单支付");
that.setData({
timeStamp: res.data.data.timeStamp,
nonceStr: res.data.data.nonceStr,
... ... @@ -337,13 +337,16 @@ Page({
signType: 'MD5',
paySign: that.data.paySign,
success(res) {
console.log(res);
// console.log(res);
wx.redirectTo({
url: '/pages/MyOrder/MyOrder?order_no=' + that.data.order_no,
})
},
fail(res) {
console.log(res)
// console.log(res)
wx.redirectTo({
url: '/pages/MyOrder/MyOrder?order_no=' + that.data.order_no,
})
}
})
}).catch(err => {
... ... @@ -351,7 +354,7 @@ Page({
msg: err.msg
})
this.popMaskTest()
console.log(err);
// console.log(err);
})
},
async sureShouOrder(e) { //确认收货
... ... @@ -367,7 +370,7 @@ Page({
order_no: e.currentTarget.dataset.order_no
}
})
console.log(data, "确认收货");
// console.log(data, "确认收货");
that.setData({
msg: data.msg
})
... ...
... ... @@ -3,5 +3,5 @@
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index"
},
"navigationBarTitleText": "车唛订单"
"navigationBarTitleText": "小象订单"
}
\ No newline at end of file
... ...
... ... @@ -39,9 +39,9 @@ Page({
onLoad: function (options) {
console.log(options);
// console.log(options);
let that = this
this.setData({
that.setData({
s4_id: options.s4_id || '',
CarBrandName1: options.CarBrandName1 || '',
CarBrandName2: options.CarBrandName2 || '',
... ... @@ -50,15 +50,7 @@ Page({
})
let token = wx.getStorageSync("token")
if (token) {
wx.showToast({
title: '加载中',
icon: "loading",
duration: 1300
})
setTimeout(() => {
this.getSugImage()
}, 1000);
that.getSugImage()
} else {
that.popConfirm()
}
... ... @@ -88,77 +80,87 @@ Page({
async formSubmit(e) {
let that = this
let nn = e.detail.value
let ajxtrue = this.data.ajxtrue
// console.log(that.data.s4_id, that.data.pin_id, that.data.CarBrandName1);
try {
if (ajxtrue == true) {
const {
data
} = await request({
url: 'api/shop4s/sugCar',
data: {
name: nn.nickename,
phone: nn.phone,
code: nn.pass,
yv_pay: nn.yv_pay,
pin1: nn.pin1,
pin2: nn.pin2,
pin3: nn.pin3,
s4_id: that.data.s4_id,
bei: nn.bei,
}
})
console.log(data);
that.setData({
msg: data.msg
})
that.popSuccessTest()
setTimeout(() => {
wx.navigateBack()
}, 2000);
} else {
wx.showToast({
title: '手机号有误',
icon: 'success',
duration: 2000
})
}
} catch (err) {
that.setData({
msg: err.msg
})
that.popMaskTest()
}
},
async sendmima() { // 获取code
let that = this
that.countDown()
try {
const {
data: {
data
}
data
} = await request({
url: 'api/shop4s/faCode',
url: 'api/shop4s/sugCar',
data: {
phone: that.data.phone
name: nn.nickename,
phone: nn.phone,
code: nn.pass,
yv_pay: nn.yv_pay,
pin1: nn.pin1,
pin2: nn.pin2,
pin3: nn.pin3,
s4_id: that.data.s4_id,
bei: nn.bei,
}
})
// console.log(data);
that.setData({
code: data.code
})
// console.log(data);
a.popSuccessTest(data.msg)
setTimeout(() => {
wx.navigateBack()
}, 1200);
} catch (err) {
that.setData({
msg: err.msg
})
that.popMaskTest()
// console.log(err);
a.popTest(err.msg)
}
},
sendmima() { // 获取code
let that = this,
phone = a.setPhone(that.data.phone);
if (phone) {
that.countown()
// console.log(phone);
// return
setTimeout(async () => {
try {
const {
data: {
data
}
} = await request({
url: 'api/shop4s/faCode',
data: {
phone: phone
}
})
// console.log(data);
that.setData({
code: data.code
})
} catch (err) {
clearInterval(that.data.timer);
that.setData({
sendNum: 0
})
// console.log(err);
a.popTest(err.msg)
}
}, 1000);
}
},
countown() {
let that = this;
let countDownNum = that.data.countDownNum; //获取倒计时初始值
that.setData({
sendNum: 1,
timer: setInterval(function () {
countDownNum--;
that.setData({
countDownNum: countDownNum
})
if (that.data.countDownNum == 0) {
clearInterval(timer);
that.setData({
countDownNum: 60,
sendNum: 0
})
}
}, 1000)
})
},
async getSugImage() { // 获取
let that = this;
... ... @@ -176,11 +178,8 @@ Page({
})
} catch (err) {
console.log(err);
that.setData({
msg: err.msg
})
that.popMaskTest()
// console.log(err);
a.popTest(err.msg)
}
},
goRuleBook() {
... ... @@ -190,13 +189,6 @@ Page({
url: '/pages/ruleBook/ruleBook?s4_id=' + s4_id
})
},
popSuccessTest() {
wx.showToast({
title: this.data.msg,
icon: 'none', //默认值是success,就算没有icon这个值,就算有其他值最终也显示success
duration: 1300, //停留时间
})
},
async getPinChe() { // 获取车辆品牌
let that = this
try {
... ... @@ -212,58 +204,28 @@ Page({
data.forEach((value) => {
obj.push(value.name)
})
this.setData({
that.setData({
intention: obj,
arrayChe: data
})
} catch (err) {
that.setData({
msg: err.msg
})
that.popMaskTest()
// console.log(err);
a.popTest(err.msg)
}
// console.log(that.data.intention, "车辆品牌", that.data.arrayChe);
},
blurPhone: function (e) {
blurPhone(e) {
let phone = e.detail.value;
let that = this
if (!(/^1[34578]\d{9}$/.test(phone))) {
that.setData({
ajxtrue: false,
phone: phone
})
if (phone.length >= 11) {
wx.showToast({
title: '手机号有误',
icon: 'success',
duration: 1300
})
}
} else {
that.setData({
ajxtrue: true,
phone: phone
})
}
that.setData({
phone
})
},
downBrand() {
this.setData({
brand: true,
downBrand: false
})
},
popMaskTest() {
wx.showToast({
title: this.data.msg,
duration: 1300,
icon: 'none',
mask: true //是否有透明蒙层,默认为false
//如果有透明蒙层,弹窗的期间不能点击文档内容
})
},
goCarBrand() {
wx.navigateTo({
... ... @@ -285,69 +247,16 @@ Page({
if (that.data.CarBrandName3 || that.data.CarBrandName2 || that.data.CarBrandName1) {
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
})
} else {
that.setData({
msg: '尚未选择意向品牌,请先选择意向品牌'
})
that.popMaskTest()
a.popTest('尚未选择意向品牌,请先选择意向品牌')
}
},
countDown: function () {
let that = this;
let countDownNum = that.data.countDownNum; //获取倒计时初始值
that.setData({
sendNum: 1,
timer: setInterval(function () { //这里把setInterval赋值给变量名为timer的变量
//每隔一秒countDownNum就减一,实现同步
countDownNum--;
//然后把countDownNum存进data,好让用户知道时间在倒计着
that.setData({
countDownNum: countDownNum
})
//在倒计时还未到0时,这中间可以做其他的事情,按项目需求来
if (that.data.countDownNum == 0) {
//这里特别要注意,计时器是始终一直在走的,如果你的时间为0,那么就要关掉定时器!不然相当耗性能
//因为timer是存在data里面的,所以在关掉时,也要在data里取出后再关闭
clearInterval(timer);
//关闭定时器之后,可作其他处理codes go here
that.setData({
countDownNum: 60,
sendNum: 0
})
}
}, 1000)
})
},
onShareAppMessage(options) {
var that = this;
var shareObj = {
title: "车唛分享", // 默认是小程序的名称(可以写slogan等)
title: "小象分享", // 默认是小程序的名称(可以写slogan等)
path: '/pages/RecommendCar/RecommendCar', // 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
};
... ...
.container {
.top_img {
width: 100%;
position: relative;
image {
width: 100%;
height: 442rpx;
}
.ruleBook {
position: absolute;
right: 0;
top: 38rpx;
z-index: 5;
width: 160rpx;
height: 50rpx;
font-size: 24rpx;
line-height: 50rpx;
background-color: #E8370F;
color: #fff;
text-align: center;
border-radius: 180rpx 0px 0px 180rpx;
}
}
.box {
padding: 0 32rpx 32rpx;
box-sizing: border-box;
background-color: #F9F9F9;
.person_data {
padding: 32rpx;
box-sizing: border-box;
position: relative;
top: -45rpx;
border-radius: 24rpx;
background-color: #fff;
z-index: 3;
.per_title {
font-size: 32rpx;
line-height: 44rpx;
font-weight: 600;
text-align: center;
margin-bottom: 60rpx;
}
.informaton_ {
display: flex;
align-items: center;
line-height: 100rpx;
.star {
color: #E8370F;
}
.input_placeholder {
color: #BDC4CE;
font-size: 24rpx;
line-height: 48rpx;
}
.input_ {
width: 305rpx;
}
.getpass {
font-size: 28rpx;
line-height: 48rpx;
text-decoration-line: underline;
}
}
.payBudget {
box-sizing: border-box;
background-color: #fff;
display: flex;
align-items: center;
line-height: 100rpx;
font-size: 32rpx;
.budgetMoney {
width: 285rpx;
}
.input_placeholder {
color: #BDC4CE;
font-size: 24rpx;
line-height: 48rpx;
}
.wan {
font-size: 28rpx;
line-height: 40rpx;
margin-left: 20rpx;
}
}
}
.brand {
width: 100%;
font-size: 32rpx;
line-height: 44rpx;
font-weight: 600;
margin: 30rpx 0rpx;
padding: 0 32rpx;
}
.change_brand {
width: 100%;
background-color: #fff;
border-radius: 24rpx;
.change_4S {
width: 100%;
padding: 32rpx 20rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.le {
flex: 1;
}
.rowimg {
width: 48rpx;
height: 48rpx;
image {
width: 48rpx;
height: 48rpx;
}
}
}
}
.look_btn {
margin: 10rpx 0;
width: 100%;
height: 88rpx;
border: 2rpx solid #F2F2F2;
text-align: center;
line-height: 88rpx;
margin: 40rpx 0 20rpx;
border-radius: 12px;
background-color: #fff;
}
.recommend_change {
background-color: #fff;
border-radius: 24rpx;
padding: 32rpx 20rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.recommend_change {
color: #BDC4CE;
font-size: 28rpx;
line-height: 40rpx;
}
image {
width: 30rpx;
height: 30rpx;
}
.change_4S {
flex: 1;
}
.rowimg {
width: 48rpx;
height: 48rpx;
image {
width: 48rpx;
height: 48rpx;
}
}
}
.remark {
width: 100%;
font-size: 32rpx;
line-height: 44rpx;
font-weight: 600;
margin: 30rpx 0rpx;
padding: 0 32rpx;
}
.remark_cont {
width: 100%;
background-color: #fff;
border-radius: 24rpx;
padding: 32rpx 20rpx;
box-sizing: border-box;
.placeholderStyle {
color: #BDC4CE;
font-size: 28rpx;
line-height: 40rpx;
padding-left: 16rpx;
}
}
.btn {
width: 100%;
color: #fff;
background-color: #E8370F;
font-weight: normal;
}
// 公共
.picker {
width: 100%;
display: flex;
align-items: center;
.picker_1 {
width: 600rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #BDC4CE;
padding-left: 16rpx;
}
.rowimg {
width: 48rpx;
height: 48rpx;
image {
width: 48rpx;
height: 48rpx;
}
}
}
.input_placeholder {
color: #BDC4CE;
font-size: 24rpx;
line-height: 48rpx;
}
}
.container {
.top_img {
width: 100%;
position: relative;
image {
width: 100%;
height: 442rpx;
}
.ruleBook {
position: absolute;
right: 0;
top: 38rpx;
z-index: 5;
width: 160rpx;
height: 50rpx;
font-size: 24rpx;
line-height: 50rpx;
background-color: #E8370F;
color: #fff;
text-align: center;
border-radius: 180rpx 0px 0px 180rpx;
}
}
.box {
padding: 0 32rpx 32rpx;
box-sizing: border-box;
background-color: #F9F9F9;
.person_data {
padding: 32rpx 32rpx 16rpx;
box-sizing: border-box;
position: relative;
top: -45rpx;
border-radius: 24rpx;
background-color: #fff;
z-index: 3;
.per_title {
font-size: 32rpx;
line-height: 44rpx;
font-weight: 600;
text-align: center;
margin-bottom: 60rpx;
}
.informaton_ {
display: flex;
align-items: center;
line-height: 100rpx;
.star {
color: #E8370F;
}
.input_placeholder {
color: #BDC4CE;
font-size: 24rpx;
line-height: 48rpx;
}
.input_ {
width: 305rpx;
}
.getpass {
font-size: 28rpx;
line-height: 48rpx;
text-decoration-line: underline;
}
}
.payBudget {
box-sizing: border-box;
background-color: #fff;
display: flex;
align-items: center;
line-height: 100rpx;
font-size: 32rpx;
.budgetMoney {
width: 285rpx;
}
.input_placeholder {
color: #BDC4CE;
font-size: 24rpx;
line-height: 48rpx;
}
.wan {
font-size: 28rpx;
line-height: 40rpx;
margin-left: 20rpx;
}
}
}
.brand {
width: 100%;
font-size: 32rpx;
line-height: 44rpx;
font-weight: 600;
margin: 30rpx 0rpx;
padding: 0 32rpx;
}
.change_brand {
width: 100%;
background-color: #fff;
border-radius: 24rpx;
.change_4S {
width: 100%;
padding: 32rpx 20rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.le {
flex: 1;
}
.rowimg {
width: 48rpx;
height: 48rpx;
image {
width: 48rpx;
height: 48rpx;
}
}
}
}
.look_btn {
margin: 10rpx 0;
width: 100%;
height: 88rpx;
border: 2rpx solid #F2F2F2;
text-align: center;
line-height: 88rpx;
margin: 40rpx 0 20rpx;
border-radius: 12px;
background-color: #fff;
}
.recommend_change {
background-color: #fff;
border-radius: 24rpx;
padding: 32rpx 20rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.recommend_change {
color: #BDC4CE;
font-size: 28rpx;
line-height: 40rpx;
}
image {
width: 30rpx;
height: 30rpx;
}
.change_4S {
flex: 1;
}
.rowimg {
width: 48rpx;
height: 48rpx;
image {
width: 48rpx;
height: 48rpx;
}
}
}
.remark {
width: 100%;
font-size: 32rpx;
line-height: 44rpx;
font-weight: 600;
margin: 30rpx 0rpx;
padding: 0 32rpx;
}
.remark_cont {
width: 100%;
background-color: #fff;
border-radius: 24rpx;
padding: 32rpx 20rpx;
box-sizing: border-box;
.placeholderStyle {
color: #BDC4CE;
font-size: 28rpx;
line-height: 40rpx;
padding-left: 16rpx;
}
}
.btn {
width: 100%;
color: #fff;
background-color: #E8370F;
font-weight: normal;
}
// 公共
.picker {
width: 100%;
display: flex;
align-items: center;
.picker_1 {
width: 600rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #BDC4CE;
padding-left: 16rpx;
}
.rowimg {
width: 48rpx;
height: 48rpx;
image {
width: 48rpx;
height: 48rpx;
}
}
}
.input_placeholder {
color: #BDC4CE;
font-size: 24rpx;
line-height: 48rpx;
}
}
}
\ No newline at end of file
... ...
... ... @@ -15,7 +15,7 @@
<view class="informaton_">
<text class="star">*</text>
<label for="联系方式" style="width:150rpx">联系方式:</label>
<input type="text" placeholder="请输入联系方式" type='number' placeholder-class="input_placeholder" maxlength="11" bindblur='blurPhone' name="phone" />
<input type="text" placeholder="请输入联系方式" type='number' placeholder-class="input_placeholder" maxlength="11" bindinput='blurPhone' name="phone" />
</view>
<view class="informaton_">
<label for="验证码" style="width:168rpx">验证码:</label>
... ... @@ -28,6 +28,7 @@
</view>
</view>
<view class="payBudget">
<text class="star" style="color: #E8370F">*</text>
<label for="购买预算" style="width:168rpx">购买预算:</label>
<input type="text" name="yv_pay" class="budgetMoney" placeholder="请输入意向金额" placeholder-class="input_placeholder" />
<text class="wan">万元</text>
... ...
... ... @@ -26,7 +26,7 @@
background-color: #F9F9F9;
}
.container .box .person_data {
padding: 32rpx;
padding: 32rpx 32rpx 16rpx;
box-sizing: border-box;
position: relative;
top: -45rpx;
... ...
... ... @@ -23,7 +23,7 @@ Page({
click_num: '',
more: true,
S4Spage: false,
contenttext: '该经销商尚未授权车唛平台的第三方担保服务',
contenttext: '该经销商尚未授权小象平台的第三方担保服务',
s4_id: ''
},
onShow: function () {
... ... @@ -75,7 +75,7 @@ Page({
url: 'api/shop4s/index',
method: 'GET'
})
console.log(data.s4, "4s店页面", );
// console.log(data.s4, "4s店页面", );
if (data.s4 !== null) {
that.setData({
S4SList: data.s4,
... ... @@ -106,7 +106,7 @@ Page({
that.setData({
cateList: res.data.data,
})
// console.log(res.data.data, that.data.cateList, "分类");
// // console.log(res.data.data, that.data.cateList, "分类");
})
},
getBanner() { // 广告
... ... @@ -205,7 +205,7 @@ Page({
},
storeDetail(e) { // 车型详情
let id = e.currentTarget.dataset.id
console.log(id);
// console.log(id);
let num = e.currentTarget.dataset.num
if (num == 1) {
wx.navigateTo({
... ... @@ -219,7 +219,7 @@ Page({
}
},
Toproductdetails(e) { // 精品详情
console.log(e, "禁品详情");
// console.log(e, "禁品详情");
let id = e.currentTarget.dataset.id
let num = e.currentTarget.dataset.num
if (num == 1) {
... ... @@ -295,15 +295,15 @@ Page({
},
onShareAppMessage(options) {
var that = this;
console.log(that.data.user_id)
// console.log(that.data.user_id)
// 设置菜单中的转发按钮触发转发事件时的转发内容
var shareObj = {
title: "车唛分享", // 默认是小程序的名称(可以写slogan等)
title: "小象分享", // 默认是小程序的名称(可以写slogan等)
path: '/pages/4Sstore/4Sstore', // 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
success: function (res) {
// 转发成功之后的回调
console.log(res);
// console.log(res);
that.setData({
msg: '易分享'
})
... ...