@@ -79,7 +79,7 @@ | |||||
}, | }, | ||||
"tabBar": { | "tabBar": { | ||||
"color": "#abb1be", | "color": "#abb1be", | ||||
"selectedColor": "#b2743d", | |||||
"selectedColor": "#FD782D", | |||||
"list": [ | "list": [ | ||||
{ | { | ||||
"pagePath": "pages/main/index", | "pagePath": "pages/main/index", | ||||
@@ -0,0 +1,5 @@ | |||||
[LocalizedFileNames] | |||||
user-b.png=@user-b,0 | |||||
park-b.png=@park-b,0 | |||||
mendian-b.png=@mendian-b,0 | |||||
home-b.png=@home-b,0 |
@@ -1,813 +0,0 @@ | |||||
var config = require("../../config/config.js"); | |||||
var app = getApp(); | |||||
const Http = require("../../utils/HttpBasics"); | |||||
const util = require("../../utils/util"); | |||||
const imgurl = require("../../utils/imgurl"); | |||||
Page({ | |||||
/** | |||||
* 页面的初始数据 | |||||
*/ | |||||
data: { | |||||
cancelH: imgurl.cancelH.url, | |||||
bannerUrl: imgurl.banner.url, | |||||
wmhome: imgurl.wmhome.url, | |||||
wmhelp: imgurl.wmhelp.url, | |||||
wmsuccess01: imgurl.wmsuccess01.url, | |||||
successHr: imgurl.successHr.url, | |||||
fail: imgurl.fail.url, | |||||
data: null, | |||||
from: null, | |||||
day: null, | |||||
hour: null, | |||||
min: null, | |||||
sec: null, | |||||
showPage: false, | |||||
discountStatus: null, | |||||
disabled: false, | |||||
display: "block!important", | |||||
showButton1: false | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面加载 | |||||
*/ | |||||
onLoad: function(options) { | |||||
let that = this; | |||||
if(options.orderId || options.orderId && options.from == 'discount') { | |||||
if (options.from) { | |||||
that.setData({ | |||||
orderId: options.orderId, | |||||
from: "discount" | |||||
}) | |||||
} else { | |||||
that.setData({ | |||||
orderId: options.orderId | |||||
}) | |||||
} | |||||
app.globalData.wmorder = options.orderId | |||||
that.pressOrderDetail(options.orderId); | |||||
} | |||||
this.getUserInfo() | |||||
}, | |||||
getUserInfo: function() { | |||||
let that = this; | |||||
// 获取用户信息 | |||||
Http.get({ | |||||
url: config.api.getScore, | |||||
data: {} | |||||
}) | |||||
.then(res => { | |||||
console.log(res) | |||||
that.setData({ | |||||
nickName: res.data.nickName, | |||||
avatarUrl: res.data.avatarUrl | |||||
}) | |||||
}) | |||||
}, | |||||
onShow: function() { | |||||
let that = this; | |||||
var todayDate = new Date().getTime(); | |||||
that.setData({ | |||||
todayDate: todayDate, | |||||
showButton1: false | |||||
}) | |||||
if (that.data.pressEndDate) { | |||||
that.countdown(that.data.pressEndDate) | |||||
} | |||||
}, | |||||
goback: function() { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
/** | |||||
* 更多砍价商品 | |||||
*/ | |||||
gotomore: function() { | |||||
wx.navigateTo({ | |||||
url: '/pages/bargain/bargain', | |||||
}) | |||||
}, | |||||
/** | |||||
* @param {砍价状态(1:我发起的砍价,2:未参与的砍价, 3:已参与的砍价)} orderId | |||||
*/ | |||||
getPressOrderStatus: function(orderId) { | |||||
let that = this; | |||||
Http.get({ | |||||
url: config.api.getPressOrderStatus, | |||||
data: { | |||||
orderId: orderId | |||||
} | |||||
}) | |||||
.then(res => { | |||||
if (res.data.status == 1) { | |||||
that.setData({ | |||||
discountStatus: 1 | |||||
}) | |||||
} else if (res.data.status == 2) { | |||||
that.setData({ | |||||
discountStatus: 2 | |||||
}) | |||||
} else if (res.data.status == 3) { | |||||
that.setData({ | |||||
discountStatus: 3 | |||||
}) | |||||
} | |||||
wx.stopPullDownRefresh(); | |||||
}) | |||||
.catch(err => { | |||||
console.log(err) | |||||
wx.stopPullDownRefresh(); | |||||
wx.showToast({ | |||||
title: err.errMsg, | |||||
icon: "none" | |||||
}) | |||||
}) | |||||
}, | |||||
helpDiscount: function() { | |||||
let that = this; | |||||
that.pressOrderJoin(that.data.orderId); | |||||
}, | |||||
//参与砍价 | |||||
pressOrderJoin: function(orderId) { | |||||
let that = this; | |||||
Http.post({ | |||||
url: config.api.pressOrderJoin, | |||||
data: { | |||||
orderId: orderId | |||||
} | |||||
}) | |||||
.then(res => { | |||||
console.log(res); | |||||
// id 是订单号 | |||||
that.pressOrderDetail(orderId); | |||||
}) | |||||
.catch(err => { | |||||
console.log(err) | |||||
wx.showToast({ | |||||
title: err.message, | |||||
icon: "none" | |||||
}) | |||||
}) | |||||
}, | |||||
// 订单详情 | |||||
pressOrderDetail: function(orderId) { | |||||
let that = this; | |||||
Http.get({ | |||||
url: config.api.pressOrderDetail, | |||||
data: { | |||||
orderId: orderId | |||||
} | |||||
}) | |||||
.then(res => { | |||||
console.log(res); | |||||
res.data.orderPressList.map(file => { | |||||
file.createDate = diffTime(file.createDate) | |||||
}) | |||||
that.countdown(res.data.pressEndDate); | |||||
that.setData({ | |||||
pressEndDate: res.data.pressEndDate | |||||
}) | |||||
res.data.orderPressList.map(file => { | |||||
compare(file.first); | |||||
}) | |||||
console.log(res.data.orderPressList.sort(compare('first'))) | |||||
that.setData({ | |||||
data: res.data, | |||||
already: (res.data.price / 100 - res.data.salePrice / 100 - res.data.pressCurrentValue / 100).toFixed(2), | |||||
remain: (res.data.pressCurrentValue / 100).toFixed(2), | |||||
showPage: true | |||||
}) | |||||
that.getPressOrderStatus(orderId); | |||||
}) | |||||
.catch(err => { | |||||
wx.showToast({ | |||||
title: err.message, | |||||
icon: "none" | |||||
}) | |||||
wx.stopPullDownRefresh(); | |||||
}) | |||||
}, | |||||
setIntervalTime(end_time) { | |||||
let that = this; | |||||
var EndTime = end_time; | |||||
var NowTime = new Date().getTime(); | |||||
var total_micro_second = EndTime - NowTime || []; | |||||
// 渲染倒计时时钟 | |||||
let obj = that.dateformat(total_micro_second); | |||||
if (total_micro_second > 0) { | |||||
that.setData({ | |||||
clock: obj, | |||||
day: obj.a1, | |||||
hour: obj.b1, | |||||
min: obj.c1, | |||||
sec: obj.d1, | |||||
}) | |||||
} else { | |||||
that.setData({ | |||||
clock: "00", | |||||
day: "00", | |||||
hour: "00", | |||||
min: "00", | |||||
sec: "00", | |||||
}) | |||||
//如果倒计时结束,需要重新查询一下券的状态 | |||||
// 给getDetail一个标识 | |||||
} | |||||
total_micro_second -= 1000; | |||||
}, | |||||
countdown: function(end_time) { | |||||
let that = this; | |||||
that.setIntervalTime(end_time); | |||||
that.data.setInterval = setInterval(function () { | |||||
that.setIntervalTime(end_time); | |||||
}, 1000) | |||||
}, | |||||
// 时间格式化输出,如11:03 25:19 每1s都会调用一次 | |||||
dateformat(micro_second) { | |||||
// 总秒数 | |||||
var second = Math.floor(micro_second / 1000); | |||||
// 天数 | |||||
var day = Math.floor(second / 3600 / 24) < 10 ? "0" + Math.floor(second / 3600 / 24) : Math.floor(second / 3600 / 24); | |||||
// 小时 | |||||
var hr = Math.floor(second / 3600 % 24) < 10 ? "0" + Math.floor(second / 3600 % 24) : Math.floor(second / 3600 % 24); | |||||
// 分钟 | |||||
var min = Math.floor(second / 60 % 60) < 10 ? "0" + Math.floor(second / 60 % 60) : Math.floor(second / 60 % 60); | |||||
// 秒 | |||||
var sec = Math.floor(second % 60) < 10 ? "0" + Math.floor(second % 60) : Math.floor(second % 60); | |||||
// return day + "天" + hr + "小时" + min + "分钟" + sec + "秒"; | |||||
return { | |||||
a1: day, | |||||
b1: hr, | |||||
c1: min, | |||||
d1: sec | |||||
} | |||||
}, | |||||
payOrderUpdate: (orderId, payOrderId, status, reason, type, _this) => { | |||||
let that = this; | |||||
console.log(that) | |||||
console.log(_this) | |||||
// 支付成功 | |||||
Http.post({ | |||||
url: config.api.payOrderUpdate, | |||||
data: { | |||||
payOrderId: payOrderId, | |||||
orderId: orderId, | |||||
status: status, | |||||
reason: reason | |||||
} | |||||
}) | |||||
.then(res => { | |||||
wx.hideLoading(); | |||||
_this.setData({ | |||||
display: "none!important", | |||||
}) | |||||
// 有价券 | |||||
if (!type && type != 'free') { | |||||
wx.navigateTo({ | |||||
url: `/pages/order/detail/index?orderId=${ | |||||
orderId | |||||
}` | |||||
}); | |||||
} else if (type == 'free') { | |||||
wx.navigateTo({ | |||||
url: `/pages/order/detail/index?orderId=${ | |||||
orderId | |||||
}` | |||||
}); | |||||
} | |||||
}) | |||||
.catch(err => { | |||||
console.log(err); | |||||
if (!type) { | |||||
setTimeout(function () { | |||||
_this.payOrderUpdate(orderId, payOrderId, status, reason, type, _this); | |||||
}, 2000) | |||||
} | |||||
}) | |||||
}, | |||||
/** | |||||
* 按原价付款 | |||||
*/ | |||||
// orderFunc1(e) { | |||||
// var that = this; | |||||
// let formId = e.detail.formId; | |||||
// that.setData({ | |||||
// showButton: true | |||||
// }) | |||||
// Http.get({ | |||||
// url: config.api.checkPhoneStatus, | |||||
// data: {} | |||||
// }) | |||||
// .then(res => { | |||||
// that.setData({ | |||||
// showButton: false | |||||
// }) | |||||
// /** | |||||
// * orderSave 下单 | |||||
// */ | |||||
// var data = { | |||||
// couponChannelId:e.currentTarget.dataset.couponchannelid, | |||||
// couponId:e.currentTarget.dataset.couponid, | |||||
// formId:formId | |||||
// } | |||||
// return Http.post({ | |||||
// url: config.api.orderSave, | |||||
// data: data | |||||
// }); | |||||
// }) | |||||
// .catch(err => { | |||||
// that.setData({ | |||||
// showButton: true | |||||
// }) | |||||
// if (err.code == 2011) { | |||||
// wx.showToast({ | |||||
// title: "商户信息没找到", | |||||
// image: './../../../assets/images/fail.png', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } else if (err.code == 2013) { | |||||
// wx.showToast({ | |||||
// title: "商户信息禁用", | |||||
// image: './../../../assets/images/fail.png', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } else if (err.code == 3000) { | |||||
// wx.showToast({ | |||||
// title: "库存不足", | |||||
// image: './../../../assets/images/fail.png', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } else if (err.code == 3001) { | |||||
// wx.showToast({ | |||||
// title: "您已超过限购", | |||||
// image: './../../../assets/images/fail.png', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } else if (err.code == 3002) { | |||||
// wx.showToast({ | |||||
// title: "订单失败", | |||||
// image: './../../../assets/images/fail.png', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } else if (err.code == 3003) { | |||||
// wx.showToast({ | |||||
// title: "订单不存在", | |||||
// image: './../../../assets/images/fail.png', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } else if (err.code == 3004) { | |||||
// wx.showToast({ | |||||
// title: "订单不存在", | |||||
// image: './../../../assets/images/fail.png', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } else if (err.code == 4003) { | |||||
// wx.showToast({ | |||||
// title: "卡券已作废", | |||||
// image: './../../../assets/images/fail.png', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } else if (err.code == 3012) { | |||||
// wx.showModal({ | |||||
// title: '提示', | |||||
// content: "您有未支付订单进行支付", | |||||
// showCancel: false, | |||||
// success: function (res) { | |||||
// console.log(res.confirm) | |||||
// if (res.confirm) { | |||||
// } | |||||
// } | |||||
// }) | |||||
// }else if (err.code == 11005) { | |||||
// /** | |||||
// * 将值传到用户手机号授权的页面 | |||||
// * | |||||
// */ | |||||
// wx.redirectTo({ | |||||
// url: "/pages/getphoneInfo/index?couponChannelId=" + | |||||
// that.data.couponChannelId + | |||||
// "&couponId=" + | |||||
// that.data.couponId | |||||
// }); | |||||
// } else if (err.code == 11006) { | |||||
// // 用户手机已加密 | |||||
// wx.redirectTo({ | |||||
// url: "/pages/phoneinput/phoneinput?couponChannelId=" + | |||||
// that.data.couponChannelId + | |||||
// "&couponId=" + | |||||
// that.data.couponId | |||||
// }); | |||||
// } else { | |||||
// wx.showToast({ | |||||
// title: err.message, | |||||
// icon: 'none', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// } | |||||
// }).then(res => { | |||||
// console.log(res); | |||||
// if (typeof(res) != "undefined") { | |||||
// let orderId = "" + res.data.id; | |||||
// that.setData({ | |||||
// orderId: orderId | |||||
// }); | |||||
// if (e.currentTarget.dataset.saleprice / 100 > 0 || e.currentTarget.dataset.price / 100 > 0) { | |||||
// /** | |||||
// * 支付订单创建 | |||||
// */ | |||||
// Http.post({ | |||||
// url: config.api.payOrderCreate, | |||||
// data: { | |||||
// orderId: orderId | |||||
// } | |||||
// }) | |||||
// .then(res => { | |||||
// var payOrderId = "" + res.data.payOrderId; | |||||
// wx.hideLoading(); | |||||
// wx.requestPayment({ | |||||
// timeStamp: res.data.timeStamp, | |||||
// nonceStr: res.data.nonceStr, | |||||
// package: res.data.package, | |||||
// signType: (res.data.signType) ? res.data.signType : "MD5", | |||||
// paySign: res.data.paySign, | |||||
// success: res => { | |||||
// wx.showLoading({ | |||||
// title: '订单正在处理中...', | |||||
// }) | |||||
// setTimeout(function() { | |||||
// wx.hideLoading() | |||||
// }, 5000) | |||||
// that.payOrderUpdate(that.data.orderId, payOrderId, 1, '', '', that); | |||||
// if (res.errMsg == "requestPayment:ok") { | |||||
// setTimeout(function() { | |||||
// wx.hideLoading(); | |||||
// }, 2000); | |||||
// /** | |||||
// * 用户支付成功以后跳转到券包列表 | |||||
// */ | |||||
// if (that.data.cardType == 100) { | |||||
// wx.setStorage({ | |||||
// key: 'couponNum2', | |||||
// data: "couponNum2" | |||||
// }) | |||||
// } else { | |||||
// wx.setStorage({ | |||||
// key: 'couponNum', | |||||
// data: "couponNum" | |||||
// }) | |||||
// } | |||||
// } | |||||
// }, | |||||
// fail: res => { | |||||
// /** | |||||
// * 支付失败,需要更新订单的状态 | |||||
// */ | |||||
// that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', 'fail', that); | |||||
// that.setData({ | |||||
// showbutton: false | |||||
// }) | |||||
// return; | |||||
// }, | |||||
// complete: res => {} | |||||
// }); | |||||
// /// End payment -------- | |||||
// }) | |||||
// .catch(err => { | |||||
// console.log(err); | |||||
// wx.showToast({ | |||||
// title: err.message, | |||||
// icon: 'none', | |||||
// duration: 2000, | |||||
// mask: false | |||||
// }); | |||||
// }) | |||||
// } else { | |||||
// // 免费券 | |||||
// that.payOrderUpdate(orderId, "0", 1, '', 'free', that); | |||||
// if (that.data.cardType == 100) { | |||||
// wx.setStorage({ | |||||
// key: 'couponNum2', | |||||
// data: "couponNum2" | |||||
// }) | |||||
// } else { | |||||
// wx.setStorage({ | |||||
// key: 'couponNum', | |||||
// data: "couponNum" | |||||
// }) | |||||
// } | |||||
// } | |||||
// } | |||||
// }) | |||||
// }, | |||||
/** | |||||
* 发起支付 | |||||
*/ | |||||
orderFunc(e) { | |||||
var that = this; | |||||
that.setData({ | |||||
showButton1: true | |||||
}) | |||||
Http.get({ | |||||
url: config.api.checkPhoneStatus, | |||||
data: {} | |||||
}) | |||||
.then(res => { | |||||
that.setData({ | |||||
showButton1: false | |||||
}) | |||||
if (typeof (res) != "undefined") { | |||||
let orderId = "" + e.currentTarget.dataset.orderid; | |||||
that.setData({ | |||||
orderId: orderId | |||||
}); | |||||
if (e.currentTarget.dataset.saleprice / 100 > 0 || e.currentTarget.dataset.price / 100 > 0) { | |||||
/** | |||||
* 支付订单创建 | |||||
*/ | |||||
Http.post({ | |||||
url: config.api.payOrderCreate, | |||||
data: { | |||||
orderId: orderId | |||||
} | |||||
}) | |||||
.then(res => { | |||||
var payOrderId = "" + res.data.payOrderId; | |||||
wx.hideLoading(); | |||||
wx.requestPayment({ | |||||
timeStamp: res.data.timeStamp, | |||||
nonceStr: res.data.nonceStr, | |||||
package: res.data.package, | |||||
signType: (res.data.signType) ? res.data.signType : "MD5", | |||||
paySign: res.data.paySign, | |||||
success: res => { | |||||
wx.showLoading({ | |||||
title: '订单正在处理中...', | |||||
}) | |||||
setTimeout(function () { | |||||
wx.hideLoading() | |||||
}, 5000) | |||||
that.payOrderUpdate(that.data.orderId, payOrderId, 1, '', '', that); | |||||
if (res.errMsg == "requestPayment:ok") { | |||||
setTimeout(function () { | |||||
wx.hideLoading(); | |||||
}, 2000); | |||||
/** | |||||
* 用户支付成功以后跳转到券包列表 | |||||
*/ | |||||
if (that.data.cardType == 100) { | |||||
wx.setStorage({ | |||||
key: 'couponNum2', | |||||
data: "couponNum2" | |||||
}) | |||||
} else { | |||||
wx.setStorage({ | |||||
key: 'couponNum', | |||||
data: "couponNum" | |||||
}) | |||||
} | |||||
} | |||||
}, | |||||
fail: res => { | |||||
/** | |||||
* 支付失败,需要更新订单的状态 | |||||
*/ | |||||
that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', 'fail', that); | |||||
that.setData({ | |||||
showbutton1: false | |||||
}) | |||||
return; | |||||
}, | |||||
complete: res => { } | |||||
}); | |||||
/// End payment -------- | |||||
}) | |||||
.catch(err => { | |||||
console.log(err); | |||||
wx.showToast({ | |||||
title: err.message, | |||||
icon: 'none', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
}) | |||||
} else { | |||||
// 免费券 | |||||
that.payOrderUpdate(orderId, "0", 1, '', 'free', that); | |||||
if (that.data.cardType == 100) { | |||||
wx.setStorage({ | |||||
key: 'couponNum2', | |||||
data: "couponNum2" | |||||
}) | |||||
} else { | |||||
wx.setStorage({ | |||||
key: 'couponNum', | |||||
data: "couponNum" | |||||
}) | |||||
} | |||||
} | |||||
} | |||||
}) | |||||
.catch(err => { | |||||
that.setData({ | |||||
showButton1: true | |||||
}) | |||||
if (err.code == 2011) { | |||||
wx.showToast({ | |||||
title: "商户信息没找到", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} else if (err.code == 2013) { | |||||
wx.showToast({ | |||||
title: "商户信息禁用", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} else if (err.code == 3000) { | |||||
wx.showToast({ | |||||
title: "库存不足", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} else if (err.code == 3001) { | |||||
wx.showToast({ | |||||
title: "您已超过限购", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} else if (err.code == 3002) { | |||||
wx.showToast({ | |||||
title: "订单失败", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} else if (err.code == 3003) { | |||||
wx.showToast({ | |||||
title: "订单不存在", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} else if (err.code == 3004) { | |||||
wx.showToast({ | |||||
title: "订单不存在", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} else if (err.code == 4003) { | |||||
wx.showToast({ | |||||
title: "卡券已作废", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} else if (err.code == 3012) { | |||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
} else if (err.code == 11005) { | |||||
/** | |||||
* 将值传到用户手机号授权的页面 | |||||
* | |||||
*/ | |||||
wx.redirectTo({ | |||||
url: "/pages/getphoneInfo/index?couponChannelId=" + | |||||
that.data.couponChannelId + | |||||
"&couponId=" + | |||||
that.data.couponId | |||||
}); | |||||
} else if (err.code == 11006) { | |||||
// 用户手机已加密 | |||||
wx.redirectTo({ | |||||
url: "/pages/phoneinput/phoneinput?couponChannelId=" + | |||||
that.data.couponChannelId + | |||||
"&couponId=" + | |||||
that.data.couponId | |||||
}); | |||||
} else { | |||||
wx.showToast({ | |||||
title: err.message, | |||||
icon: 'none', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
} | |||||
}) | |||||
}, | |||||
onUnload: function() { | |||||
let that = this; | |||||
clearInterval(that.data.setInterval) | |||||
}, | |||||
onHide: function() { | |||||
let that = this; | |||||
clearInterval(that.data.setInterval) | |||||
}, | |||||
/** | |||||
* | |||||
* @param {朋友邀请砍价} e | |||||
*/ | |||||
barginAgain: function(e) { | |||||
let that = this; | |||||
let couponChannelId = e.currentTarget.dataset.couponchannelid; | |||||
let couponId = e.currentTarget.dataset.couponid; | |||||
wx.navigateTo({ | |||||
url: `/pages/coupon/detail/index?couponChannelId=${couponChannelId}&couponId=${couponId}`, | |||||
}) | |||||
}, | |||||
/** | |||||
* 刷新 | |||||
*/ | |||||
onPullDownRefresh: function(e) { | |||||
let that = this; | |||||
console.log(app.globalData.wmorder); | |||||
if (app.globalData.wmorder) { | |||||
that.pressOrderDetail(app.globalData.wmorder); | |||||
} | |||||
}, | |||||
onShareAppMessage: function(options) { | |||||
var that = this; | |||||
var shareObj = { | |||||
title: that.data.nickName + '邀请您帮砍' + that.data.data.title, | |||||
path: `/pages/index/index?orderId=${that.data.data.id}&from=${"discount"}`, | |||||
success: function (res) { | |||||
if (res.errMsg == 'shareAppMessage:ok') { } | |||||
}, | |||||
fail: function (error) { | |||||
if (res.errMsg == 'shareAppMessage:fail cancel') { } else if (res.errMsg == 'shareAppMessage:fail') { } | |||||
} | |||||
}; | |||||
// 来自页面内的按钮的转发 | |||||
if (options.from == 'button') { | |||||
var orderId = options.target.dataset.orderid; | |||||
shareObj.path = `/pages/index/index?orderId=${orderId}&from=${"discount"}`; | |||||
} | |||||
// 返回shareObj | |||||
return shareObj; | |||||
}, | |||||
}) | |||||
function diffTime(startDate) { | |||||
var diff = new Date().getTime() - startDate; | |||||
var days = Math.floor(diff / (24 * 3600 * 1000)); | |||||
var leave1 = diff % (24 * 3600 * 1000); | |||||
var hours = Math.floor(leave1 / (3600 * 1000)); | |||||
var leave2 = leave1 % (3600 * 1000); | |||||
var minutes = Math.floor(leave2 / (60 * 1000)); | |||||
var leave3 = leave2 % (60 * 1000); | |||||
var seconds = Math.round(leave3 / 1000); | |||||
var returnStr = seconds + "秒"; | |||||
if (minutes > 0) { | |||||
returnStr = minutes + "分" + returnStr; | |||||
} | |||||
if (hours > 0) { | |||||
returnStr = hours + "小时" + returnStr; | |||||
} | |||||
if (days > 0) { | |||||
returnStr = days + "天" + returnStr; | |||||
} | |||||
if (returnStr.indexOf('-1') == -1) { | |||||
return returnStr; | |||||
} else { | |||||
return '1秒' | |||||
} | |||||
} | |||||
function compare(property) { | |||||
return function (a, b) { | |||||
var value1 = a[property]; | |||||
var value2 = b[property]; | |||||
return value2 - value1; | |||||
} | |||||
} |
@@ -1,3 +0,0 @@ | |||||
{ | |||||
"component": true | |||||
} |
@@ -1,83 +0,0 @@ | |||||
<!-- <button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> --> | |||||
<view class="bargainDetail" hover-class="none" hover-stop-propagation="false" wx:if="{{showPage}}"> | |||||
<view class='cancleH'> | |||||
<image src='{{cancelH}}' mode='aspectFit'></image> | |||||
<!-- <view class='line'></view> --> | |||||
</view> | |||||
<view class="listitem clearfix" hover-class="none" hover-stop-propagation="false"> | |||||
<view class='top'> | |||||
<image src="{{data.coverImg}}" lazy-load="true" binderror="" bindload="" mode='aspectFill'></image> | |||||
<view class="fl ri" hover-class="none" hover-stop-propagation="false"> | |||||
<text class="txt01">{{data.title}}</text> | |||||
<!-- <text class="txt02">{{data.subTitle}}</text> --> | |||||
<!-- <text class="txt03">{{data.price/100}}元</text> --> | |||||
<text class="txt04">可砍至<text class="money">{{data.salePrice/100}}</text>元</text> | |||||
</view> | |||||
</view> | |||||
<view class="progress" hover-class="none" hover-stop-propagation="false"> | |||||
<view class="clearfix progesstext" wx:if="{{data.orderStatus !=8&&data.orderStatus!=1&&data.orderStatus!=9}}" hover-class="none" hover-stop-propagation="false"> | |||||
<text class="fl">已砍 <text>{{already}}元</text></text> | |||||
<text class="fr" wx:if="{{data.pressCurrentValue/100!=0}}">还剩 <text>{{remain}}元</text></text> | |||||
</view> | |||||
<progress percent="{{((data.price-data.salePrice-data.pressCurrentValue)/(data.price-data.salePrice))*100}}" wx:if="{{data.orderStatus !=8&&data.orderStatus!=1&&data.orderStatus!=9}}" color="#FFB287" class="progressbar"border-radius="10px" backgroundColor="#FFF" stroke-width="10" /> | |||||
<view class="time" hover-class="none" wx:if="{{data.orderStatus !=8&&data.orderStatus!=1&&data.orderStatus!=9&&data.orderStatus != 7}}" hover-stop-propagation="false">还剩 <text>{{day}}</text>天:<text>{{hour}}</text>:<text>{{min}}</text>:<text>{{sec}}</text> 结束</view> | |||||
<view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{data.orderStatus==9}}"> | |||||
砍价已取消 | |||||
</view> | |||||
<view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{todayDate>data.pressEndDate && discountStatus !=1}}"> | |||||
好友的砍价已过期 | |||||
</view> | |||||
<view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{todayDate>data.pressEndDate && discountStatus ==1}}"> | |||||
您的砍价已过期 | |||||
</view> | |||||
<view class="status" hover-class="none" hover-stop-propagation="false" wx:if="{{discountStatus==3}}"> | |||||
<button bindtap="barginAgain" data-couponChannelId="{{data.couponChannelId}}" data-couponId="{{data.productId}}" data-id="{{data.id}}">发起砍价</button> | |||||
<button bindtap="gotomore">更多砍价商品</button> | |||||
</view> | |||||
<!-- <view class='help' wx:if="{{data.orderStatus != 7&&data.orderStatus != 1&&data.orderStatus != 9}}">还需邀请<text>{{data.pressLimitNum-data.orderPressList.length}}</text>位好友,帮忙砍至底价</view> --> | |||||
<view class="success" wx:if="{{data.orderStatus == 7||data.orderStatus == 1}}" hover-class="none" hover-stop-propagation="false"> | |||||
<image src="{{successHr}}" mode="widthFix"></image> | |||||
<text class="" selectable="false" space="false" decode="false"> | |||||
已砍至底价 | |||||
</text> | |||||
</view> | |||||
<view class='helpDiscount' wx:if="{{data.orderStatus == 6&&discountStatus == 2}}"> | |||||
<image bindtap='helpDiscount' src='{{wmhelp}}' mode='widthFix'></image> | |||||
</view> | |||||
</view> | |||||
<view class="people" hover-class="none" hover-stop-propagation="false" wx:if="{{data.orderStatus!=9}}"> | |||||
<view class='title'> | |||||
砍价人数{{data.orderPressList.length}}/{{data.pressLimitNum}}人 | |||||
</view> | |||||
<view class='kjr'> | |||||
<view class="clearfix person" wx:for="{{data.orderPressList}}" wx:key="index"> | |||||
<view class="head "> | |||||
<image class="headicon" src="{{item.avatarUrl}}" mode="widthFix" lazy-load="true" binderror="" bindload="" /> | |||||
<!-- <text wx:if="{{item.first==1}}">发起人</text> --> | |||||
</view> | |||||
<view class="text fl clearfix"> | |||||
<text class="text01 fl"><text>{{item.nickName}}</text></text> | |||||
<text class="text02 fl"><text class="fl">砍掉</text><text class="fl">{{item.pressValue/100}}元</text></text> | |||||
<text class="text03 fr">{{item.createDate}}前</text> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<form bindsubmit="submit" report-submit='true' > | |||||
<view class="btns clearfix" wx:if="{{data.orderStatus != 7&&discountStatus==1&&todayDate<=data.pressEndDate&&data.orderStatus!=1&&data.orderStatus != 9}}" hover-class="none" hover-stop-propagation="false"> | |||||
<!-- <button class="fl" form-type="submit" bindtap='orderFunc1' data-couponChannelId="{{data.couponChannelId}}" data-price="{{data.price/100}}" data-couponId="{{data.productId}}" disabled='{{showButton}}' data-rushtobuy='rushtobuy'> | |||||
<text>{{data.price/100}}元</text> | |||||
<text>立即购买</text> | |||||
</button> --> | |||||
<button class='share user-motto' data-orderId='{{data.id}}' id="shareBtn" open-type="share" hover-class="other-button-hover">邀请好友砍价</button> | |||||
</view> | |||||
</form> | |||||
<view style='display:{{display}}' wx:if="{{data.orderStatus == 7&&discountStatus == 1}}" class="btns01 clearfix" hover-class="none" hover-stop-propagation="false"> | |||||
<button bindtap='orderFunc' disabled='{{showButton1}}' data-orderId="{{data.id}}" data-salePrice="{{data.salePrice/100}}" hover-class="other-button-hover">{{data.salePrice/100}}元 底价购买</button> | |||||
</view> | |||||
</view> |
@@ -1,384 +0,0 @@ | |||||
page{ | |||||
width: 100%; | |||||
height: 100%; | |||||
position: fixed; | |||||
top: 0; | |||||
left: 0; | |||||
background: rgba(0, 0, 0, 0.5); | |||||
overflow: hidden; | |||||
/* z-index: 10000; */ | |||||
color: #fff; | |||||
} | |||||
.cancleH{ | |||||
width: 60rpx; | |||||
height: 120rpx; | |||||
position: absolute; | |||||
right: 92rpx; | |||||
top: 60rpx; | |||||
} | |||||
.cancleH image{ | |||||
width: 60rpx; | |||||
height: 60rpx; | |||||
/* margin-top: 20rpx; */ | |||||
} | |||||
.line{ | |||||
height: 50rpx; | |||||
width: 4rpx; | |||||
background:#ccc; | |||||
margin: 0 auto; | |||||
} | |||||
.bargainDetail { | |||||
padding: 0 33rpx 0; | |||||
} | |||||
.progress .fl { | |||||
/* width: 150rpx; */ | |||||
height: 60rpx; | |||||
border-radius:16rpx; | |||||
color: #FFF; | |||||
} | |||||
.listitem .icon { | |||||
width: 140rpx; | |||||
height: 116rpx; | |||||
position: absolute; | |||||
top: 12rpx; | |||||
right: 0; | |||||
} | |||||
.title{ | |||||
display: block; | |||||
font-size: 30rpx; | |||||
color: #fff; | |||||
height: 40rpx; | |||||
line-height: 40rpx; | |||||
padding-top: 40rpx; | |||||
} | |||||
.help{ | |||||
display: block; | |||||
text-align: center; | |||||
font-size: 28rpx; | |||||
height: 40rpx; | |||||
line-height: 40rpx; | |||||
margin-top: 47rpx; | |||||
} | |||||
.help text{ | |||||
color: red; | |||||
} | |||||
.listitem .ri { | |||||
margin-left: 26rpx; | |||||
width: 305rpx; | |||||
} | |||||
.ri text { | |||||
display: block; | |||||
text-align: left; | |||||
} | |||||
.ri .txt01 { | |||||
width: 100%; | |||||
color: #FFF; | |||||
line-height: 32rpx; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
overflow: hidden; | |||||
margin-top: 12rpx; | |||||
} | |||||
.ri .txt02 { | |||||
width: 100%; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
overflow: hidden; | |||||
font-size: 24rpx; | |||||
color: rgba(140, 140, 140, 1); | |||||
} | |||||
.ri .txt03 { | |||||
width: 100%; | |||||
font-size: 24rpx; | |||||
text-decoration: line-through; | |||||
color: rgba(140, 140, 140, 1); | |||||
} | |||||
.ri .txt04 { | |||||
width: 100%; | |||||
font-size: 24rpx; | |||||
color: #FFF; | |||||
line-height: 44rpx; | |||||
margin-top: 16rpx; | |||||
} | |||||
.money { | |||||
display: inline-block !important; | |||||
font-size: 50rpx; | |||||
font-weight: 500; | |||||
color: #FFF; | |||||
} | |||||
.listitem { | |||||
width: 538rpx; | |||||
/* height: 624rpx; */ | |||||
position: relative; | |||||
padding: 60rpx 40rpx; | |||||
border-radius: 15rpx; | |||||
background: linear-gradient(160deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||||
margin: 170rpx auto 30rpx; | |||||
display: flex; | |||||
flex-direction:column; | |||||
} | |||||
.top{ | |||||
width:548rpx; | |||||
height: 140rpx; | |||||
margin: 0 auto 20rpx; | |||||
padding: 0 20rpx; | |||||
} | |||||
.top image{ | |||||
width:120rpx; | |||||
height:120rpx; | |||||
border-radius:16rpx; | |||||
float: left; | |||||
} | |||||
.top tit{ | |||||
margin-left:26rpx; | |||||
width:305rpx; | |||||
} | |||||
.progress { | |||||
width: 519rpx; | |||||
height: 170rpx; | |||||
margin: 0 auto; | |||||
} | |||||
.progesstext>text { | |||||
font-size: 24rpx; | |||||
color: #FFF; | |||||
} | |||||
.progesstext text text { | |||||
color: #FFF; | |||||
} | |||||
.time { | |||||
margin-top: 20rpx; | |||||
font-size: 24rpx; | |||||
color: #FFF; | |||||
text-align:center; | |||||
} | |||||
.time text { | |||||
font-size: 30rpx; | |||||
color: #FD832D; | |||||
display: inline-block; | |||||
width: 40rpx; | |||||
text-align: center; | |||||
height: 40rpx; | |||||
line-height: 40rpx; | |||||
background: #FFF; | |||||
border-radius: 10rpx; | |||||
margin: 0 4px; | |||||
} | |||||
.head{ | |||||
width:52rpx; | |||||
height: 52rpx; | |||||
position: relative; | |||||
float: left | |||||
} | |||||
.head image{ | |||||
width: 52rpx; | |||||
height: 52rpx; | |||||
border-radius:26rpx; | |||||
} | |||||
.head text{ | |||||
width: 70rpx; | |||||
position: absolute; | |||||
bottom: 0; | |||||
left: 0; | |||||
right: 0; | |||||
font-size: 20rpx; | |||||
background: #ED3F2E; | |||||
color: #fff; | |||||
text-align: center; | |||||
border-radius: 20rpx; | |||||
} | |||||
.text{ | |||||
width: 85%; | |||||
padding-left: 3%; | |||||
display: inline-block; | |||||
height: 52rpx; | |||||
line-height: 52rpx; | |||||
font-size: 26rpx; | |||||
} | |||||
.text01{ | |||||
width: 70rpx; | |||||
margin-right: 6rpx; | |||||
} | |||||
.text01 text{ | |||||
width: 100rpx; | |||||
float: left; | |||||
height: 52rpx; | |||||
line-height: 52rpx; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
overflow: hidden; | |||||
} | |||||
.text02{ | |||||
display: inline-block; | |||||
} | |||||
.text02 .fl{ | |||||
color: #FFF!important; | |||||
} | |||||
.text03{ | |||||
/* width: 180rpx; */ | |||||
text-align: right; | |||||
font-size:24rpx; | |||||
height: 52rpx; | |||||
line-height: 52rpx; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
overflow: hidden; | |||||
} | |||||
.person{ | |||||
/* border-bottom: 1px solid #F0CDB3; */ | |||||
padding-bottom: 15rpx; | |||||
padding-top: 15rpx; | |||||
color: #fff; | |||||
} | |||||
.text02 text:nth-of-type(2){ | |||||
color: #FF3535; | |||||
text-align: left; | |||||
} | |||||
.people{ | |||||
border-radius:16rpx; | |||||
padding:0 20rpx; | |||||
} | |||||
.kjr{ | |||||
height: 300rpx; | |||||
overflow: auto; | |||||
} | |||||
.btns{ | |||||
padding:33rpx; | |||||
position: fixed; | |||||
left: 0; | |||||
right: 0; | |||||
bottom: 0; | |||||
z-index: 100; | |||||
/* background: #fff; */ | |||||
} | |||||
.btns button{ | |||||
width: 500rpx!important; | |||||
height: 92rpx; | |||||
border-radius:32rpx; | |||||
text-align: center; | |||||
margin: 0 auto; | |||||
font-size: 32rpx; | |||||
color: #fff; | |||||
line-height: 92rpx; | |||||
background:linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||||
/* box-shadow:0px 8px 8px 1px rgba(204,26,13,0.32); */ | |||||
} | |||||
.goback{ | |||||
position: fixed; | |||||
right: 50rpx; | |||||
top: 60rpx; | |||||
width:100rpx!important; | |||||
height:100rpx; | |||||
z-index: 100; | |||||
background:rgba(255,255,255,1); | |||||
line-height: 95rpx; | |||||
border:1rpx solid rgba(227,227,227,1); | |||||
border-radius:50%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} | |||||
.helpDiscount{ | |||||
display: block; | |||||
width: 200rpx; | |||||
height: 200rpx; | |||||
border-radius:50%; | |||||
font-size: 26rpx; | |||||
text-align: center; | |||||
line-height: 200rpx; | |||||
margin: 30rpx auto 0; | |||||
color: #fff!important; | |||||
} | |||||
.helpDiscount image{ | |||||
display: block; | |||||
width: 200rpx; | |||||
height: 200rpx; | |||||
} | |||||
.helpDiscount::after{ border: none; } | |||||
.success{ | |||||
margin-top: 15rpx; | |||||
} | |||||
.success image{ | |||||
display: block; | |||||
width: 74rpx; | |||||
height: 74rpx; | |||||
margin: 0 auto; | |||||
} | |||||
.success text{ | |||||
display: block; | |||||
text-align: center; | |||||
font-size:24rpx; | |||||
line-height: 24rpx; | |||||
color:#FFFFFF; | |||||
} | |||||
.btns01{ | |||||
position: fixed; | |||||
left: 0; | |||||
right: 0; | |||||
bottom: 0; | |||||
padding: 30rpx 0; | |||||
} | |||||
.btns01 button{ | |||||
color:rgba(254,254,254,1); | |||||
width:538rpx; | |||||
height:85rpx; | |||||
line-height: 85rpx; | |||||
background:linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||||
box-shadow:0px 8px 8px 1px rgba(246,93,51,0.32); | |||||
border-radius:43rpx; | |||||
} | |||||
.fail{ | |||||
height:166rpx; | |||||
background:rgba(226,226,226,1); | |||||
border-radius:10rpx; | |||||
font-size:30rpx; | |||||
text-align: center; | |||||
line-height: 166rpx; | |||||
color:rgba(51,51,51,1); | |||||
margin: 20rpx auto 0; | |||||
} | |||||
.status{ | |||||
width: 520rpx; | |||||
margin: 40rpx auto 0; | |||||
} | |||||
.status button{ | |||||
display: block; | |||||
width: 520rpx; | |||||
height: 95rpx; | |||||
line-height: 95rpx; | |||||
text-align: center; | |||||
border: none; | |||||
} | |||||
button::after{ border: none; } | |||||
.status button:nth-of-type(1){ | |||||
background:linear-gradient(90deg,rgba(236,59,45,1) 0%,rgba(248,98,52,1) 100%); | |||||
border:1px solid rgba(236,59,45,1); | |||||
border-radius:48rpx; | |||||
margin-bottom: 38rpx; | |||||
color: #fff; | |||||
} | |||||
.status button:nth-of-type(2){ | |||||
background:#fff; | |||||
border:1px solid rgba(190,190,190,1); | |||||
border-radius:48rpx; | |||||
color: #333; | |||||
} |
@@ -1,871 +0,0 @@ | |||||
@import "../../../app.wxss"; | |||||
page { | |||||
background: #F4F5F9; | |||||
} | |||||
button::after { | |||||
border: none; | |||||
} | |||||
.coupons { | |||||
width: 100%; | |||||
position: relative; | |||||
overflow: hidden; | |||||
padding-bottom: 170rpx; | |||||
background: #F4F5F9; | |||||
} | |||||
.banner { | |||||
position: relative; | |||||
width: 750rpx; | |||||
height: 454rpx; | |||||
} | |||||
.banner swiper { | |||||
width: 750rpx; | |||||
height: 454rpx; | |||||
} | |||||
.banner image { | |||||
width: 100%; | |||||
height: 454rpx; | |||||
} | |||||
.dots { | |||||
position: absolute; | |||||
left: 0; | |||||
right: 0; | |||||
bottom: 50rpx; | |||||
display: flex; | |||||
justify-content: center; | |||||
} | |||||
.dot { | |||||
margin: 0 8rpx; | |||||
width: 14rpx; | |||||
height: 14rpx; | |||||
background: #fff; | |||||
border-radius: 8rpx; | |||||
transition: all 0.6s; | |||||
} | |||||
.dot.active { | |||||
width: 24rpx; | |||||
background: #f80; | |||||
} | |||||
.refound { | |||||
border: 1rpx solid red; | |||||
padding: 3rpx 0; | |||||
display: block; | |||||
width: 130rpx; | |||||
text-align: center; | |||||
margin-left: 14rpx; | |||||
} | |||||
.coupons_info { | |||||
width: 92%; | |||||
padding: 0 4%; | |||||
background: #fff; | |||||
border-top-left-radius: 20rpx; | |||||
border-top-right-radius: 20rpx; | |||||
/* margin-top: -25rpx; */ | |||||
} | |||||
.fenxiang { | |||||
position: absolute; | |||||
right: 28rpx; | |||||
top: 27rpx; | |||||
width: 108rpx; | |||||
} | |||||
.fenxiang image { | |||||
width:48rpx; | |||||
height: 48rpx; | |||||
position: absolute; | |||||
top: 0; | |||||
right: 16rpx; | |||||
} | |||||
.gift{ | |||||
color: #3C3C3C; | |||||
font-size: 20rpx; | |||||
position: absolute; | |||||
top: 50rpx; | |||||
right: 0; | |||||
} | |||||
.user-motto { | |||||
width: 270rpx; | |||||
border: 0; | |||||
background: none; | |||||
height: 260rpx; | |||||
color: #fff; | |||||
position: fixed; | |||||
} | |||||
.user-motto::after { | |||||
border: none; | |||||
} | |||||
.title { | |||||
display: block; | |||||
font-weight: bold; | |||||
font-size: 32rpx; | |||||
color: #3C3C3C; | |||||
letter-spacing: 1.09rpx; | |||||
line-height: 45rpx; | |||||
width: 542rpx; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
padding-top: 30rpx; | |||||
} | |||||
.subTitle { | |||||
display: block; | |||||
width: 588rpx; | |||||
/* height: 37rpx; */ | |||||
font-size: 26rpx; | |||||
color: #A6A6A6; | |||||
letter-spacing: 1.16rpx; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
padding: 6rpx 0; | |||||
} | |||||
.rest { | |||||
font-size: 24rpx; | |||||
color: #919191; | |||||
letter-spacing: 0; | |||||
height: 50rpx; | |||||
line-height: 50rpx; | |||||
/* border-bottom: 1px solid #eee; */ | |||||
border-bottom: 1px solid #f9f9f9; | |||||
} | |||||
.restNum { | |||||
font-size: 24rpx; | |||||
color: #999; | |||||
letter-spacing: 1.16rpx; | |||||
text-align: right; | |||||
} | |||||
.time { | |||||
font-size: 24rpx; | |||||
color: #A6A6A6; | |||||
letter-spacing: 0; | |||||
line-height: 33rpx; | |||||
display: inline-block; | |||||
} | |||||
.txt01 { | |||||
font-size: 24rpx; | |||||
color: #919191; | |||||
letter-spacing: 0; | |||||
} | |||||
.price { | |||||
font-size: 24rpx; | |||||
color: #999; | |||||
letter-spacing: 0; | |||||
} | |||||
.salePriceStr { | |||||
font-size: 24rpx; | |||||
color: #999; | |||||
letter-spacing: 0; | |||||
} | |||||
.salePriceStr .rmb{ | |||||
color: #FD782D; | |||||
font-size: 24rpx; | |||||
float: left; | |||||
} | |||||
.salePriceStr .pri01 { | |||||
font-size: 40rpx; | |||||
color: #FD782D; | |||||
letter-spacing: 0; | |||||
line-height: 40rpx; | |||||
float: left; | |||||
} | |||||
.salePriceStr .pri01Hr { | |||||
font-size: 24rpx!important; | |||||
} | |||||
.use { | |||||
color: #FD782D; | |||||
margin-left: 10rpx; | |||||
} | |||||
.salePriceStr .yuan { | |||||
font-size: 24rpx; | |||||
color: #FD782D; | |||||
letter-spacing: 0; | |||||
} | |||||
.price text { | |||||
font-size: 24rpx; | |||||
color: #333; | |||||
letter-spacing: 0; | |||||
} | |||||
.throgh { | |||||
text-decoration: line-through; | |||||
margin-left: 10rpx; | |||||
color: #999 !important; | |||||
} | |||||
.fl { | |||||
float: left; | |||||
color: #FD782D; | |||||
} | |||||
.fr { | |||||
float: right; | |||||
} | |||||
.posi { | |||||
position: relative; | |||||
width: 100%; | |||||
background: #FFF; | |||||
margin: 18rpx 0 18rpx; | |||||
} | |||||
/* .posi>view:nth-child(2) text:nth-child(1) { | |||||
font-size: 30rpx; | |||||
color: #a9a9a9; | |||||
} */ | |||||
/* | |||||
.posi>view:nth-child(2) text:nth-child(2) { | |||||
font-size: 30rpx; | |||||
color: #a9a9a9; | |||||
} */ | |||||
.posi_logo { | |||||
position: relative; | |||||
width: 92%; | |||||
display: flex; | |||||
padding: 20rpx 0; | |||||
background: #fff; | |||||
z-index: 10; | |||||
margin: 0 auto; | |||||
} | |||||
.posi_logo view:nth-child(1) { | |||||
/* width: 100rpx; *//* margin-right: 16rpx; */ | |||||
border-radius: 16rpx; | |||||
/* height: 100rpx; */ | |||||
} | |||||
.posi_logo view:nth-child(1) image { | |||||
display: block; | |||||
width: 100rpx; | |||||
height: 100rpx; | |||||
border-radius: 16rpx; | |||||
margin-right: 16rpx; | |||||
border: 1px solid #e5e5e5; | |||||
} | |||||
.posi_logo view:nth-child(2) { | |||||
/* display: flex; *//* flex-direction: column; *//* flex: 8; */ | |||||
height: 100rpx; | |||||
/* padding-left: 30rpx; */ | |||||
} | |||||
.posi_logo view:nth-child(2) view:nth-child(1) { | |||||
font-size: 32rpx; | |||||
color: #333; | |||||
width: 90%; | |||||
letter-spacing: 0; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
overflow: hidden; | |||||
} | |||||
.shopVoList { | |||||
display: flex !important; | |||||
padding-left: 0 !important; | |||||
flex-direction: row !important; | |||||
} | |||||
.shopVoList text { | |||||
font-size: 20rpx !important; | |||||
display: inline-block !important; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
overflow: hidden; | |||||
color: #b8b8b8 !important; | |||||
} | |||||
.notes view:nth-child(1) { | |||||
height: 87rpx; | |||||
line-height: 87rpx; | |||||
background: #fff; | |||||
border-top: 1px solid #f9f9f9; | |||||
} | |||||
.notes { | |||||
width:100%; | |||||
background: #FFF; | |||||
} | |||||
.active { | |||||
opacity: 0.6; | |||||
} | |||||
.notes view:nth-child(1) text { | |||||
color: #333; | |||||
letter-spacing: 0; | |||||
font-size: 30rpx; | |||||
height: 70rpx; | |||||
line-height: 70rpx; | |||||
} | |||||
.notes view:nth-child(1) { | |||||
width: 92%; | |||||
margin: 0 auto; | |||||
} | |||||
.notes view:nth-child(2) { | |||||
display: flex; | |||||
flex-direction: column; | |||||
width: 92%; | |||||
margin: 0 auto; | |||||
} | |||||
.notes view:nth-child(2)>text { | |||||
font-size: 24rpx; | |||||
color: #919191; | |||||
letter-spacing: 0; | |||||
line-height: 42rpx; | |||||
} | |||||
.buy-view { | |||||
/* background: #fff; */ | |||||
height: 92rpx; | |||||
bottom: 0; | |||||
left: 0; | |||||
right: 0; | |||||
padding-bottom: 22rpx; | |||||
padding-top: 22rpx; | |||||
} | |||||
.buy { | |||||
position: relative; | |||||
background: linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||||
height: 94rpx; | |||||
width: 560rpx; | |||||
margin: 0 auto 30rpx; | |||||
color: #fff; | |||||
font-size: 36rpx; | |||||
line-height: 94rpx; | |||||
border-radius: 61rpx; | |||||
} | |||||
.buyHr{ | |||||
background: #CECECE!important; | |||||
} | |||||
.goback { | |||||
position: relative; | |||||
float: left; | |||||
width: 132rpx !important; | |||||
height: 96rpx; | |||||
background: rgba(255, 255, 255, 1)!important; | |||||
line-height: 95rpx; | |||||
border-radius: 32rpx; | |||||
margin-left: 20rpx; | |||||
} | |||||
.goback image { | |||||
position: absolute; | |||||
width:52rpx; | |||||
height: 50rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom:0; | |||||
margin:10rpx auto; | |||||
} | |||||
.tel { | |||||
position: absolute; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
width: 50rpx; | |||||
height: 50rpx; | |||||
} | |||||
.txt { | |||||
margin-right: 30rpx; | |||||
} | |||||
.distance { | |||||
border: none; | |||||
border-radius: 16rpx; | |||||
width: 600rpx; | |||||
padding: 16rpx 6rpx 0 0; | |||||
} | |||||
.distance .txt01 { | |||||
display: block; | |||||
font-size: 26rpx; | |||||
color: #ff4949; | |||||
} | |||||
.clock { | |||||
width: 116rpx !important; | |||||
vertical-align: middle; | |||||
margin-right: 10rpx; | |||||
margin-top: -4rpx; | |||||
} | |||||
.qiang { | |||||
position: inline-block; | |||||
width: 60rpx; | |||||
height: 40rpx; | |||||
line-height: 40rpx; | |||||
color: #ff4949; | |||||
text-align: center; | |||||
font-size: 28rpx; | |||||
margin-right: 10rpx; | |||||
} | |||||
.times { | |||||
display: inline-block; | |||||
color: #ff4949; | |||||
font-weight: bold; | |||||
font-size: 26rpx; | |||||
text-align: center; | |||||
} | |||||
.timess{ | |||||
color: #FD782D; | |||||
} | |||||
.times text { | |||||
display: inline-block; | |||||
margin: 6rpx; | |||||
height: 56rpx; | |||||
padding: 0 6rpx; | |||||
text-align: center; | |||||
font-size: 28rpx; | |||||
line-height: 60rpx; | |||||
border-radius: 12rpx; | |||||
color: #fff; | |||||
font-weight: bold; | |||||
background: #ff4949; | |||||
} | |||||
.b1 { | |||||
position: fixed; | |||||
top: 0px; | |||||
bottom: 0px; | |||||
left: 0px; | |||||
right: 0px; | |||||
background: rgba(0, 0, 0, 0.8); | |||||
overflow: hidden; | |||||
z-index: 10; | |||||
} | |||||
.con { | |||||
position: absolute; | |||||
top: 35rpx; | |||||
right: 0; | |||||
bottom: 0; | |||||
left: 0; | |||||
margin: auto; | |||||
width: 587rpx; | |||||
} | |||||
.con .image { | |||||
display: block; | |||||
width: 100%; | |||||
} | |||||
.img { | |||||
margin-top: -50rpx; | |||||
} | |||||
.question { | |||||
display: block; | |||||
width: 587rpx; | |||||
background: #fff; | |||||
border-bottom-left-radius: 22rpx; | |||||
border-bottom-right-radius: 22rpx; | |||||
overflow: hidden; | |||||
} | |||||
.ques { | |||||
display: block; | |||||
width: 511rpx; | |||||
margin: 0 auto; | |||||
height: 95rpx; | |||||
line-height: 95rpx; | |||||
font-size: 30rpx; | |||||
color: #333; | |||||
border-bottom: 1rpx solid #eee; | |||||
} | |||||
.titles { | |||||
width: 511rpx; | |||||
display: block; | |||||
text-align: center; | |||||
height: 50rpx; | |||||
margin: 0 auto; | |||||
padding-top: 10rpx; | |||||
padding-bottom: 20rpx; | |||||
font-size: 32rpx; | |||||
font-weight: bold; | |||||
line-height: 41rpx; | |||||
border-bottom: 1rpx solid #eee; | |||||
} | |||||
.quessss >view:last-child { | |||||
border-bottom: 0; | |||||
} | |||||
.wmclose { | |||||
position: relative; | |||||
z-index: 10000; | |||||
display: block; | |||||
width: 70rpx; | |||||
} | |||||
.ques_gou { | |||||
position: absolute; | |||||
width: 20rpx; | |||||
top: 160rpx; | |||||
left: 23rpx; | |||||
} | |||||
.btnss { | |||||
color: #f8755b; | |||||
font-weight: bold; | |||||
font-size: 30rpx !important; | |||||
text-align: center !important; | |||||
} | |||||
.radios { | |||||
display: block; | |||||
font-size: 28rpx; | |||||
height: 95rpx; | |||||
line-height: 95rpx; | |||||
color: #333; | |||||
text-indent: 0.5em; | |||||
} | |||||
.elecard { | |||||
display: inline-block; | |||||
margin-left: 6rpx; | |||||
color: #af6e34; | |||||
border: 1px solid #af6e34; | |||||
border-radius: 8rpx; | |||||
font-style: normal; | |||||
font-size: 30rpx; | |||||
line-height: 40rpx; | |||||
padding: 0 6rpx; | |||||
} | |||||
.applyshop { | |||||
font-size: 30rpx; | |||||
height: 70rpx; | |||||
line-height: 70rpx; | |||||
color: #333; | |||||
text-indent: 1em; | |||||
} | |||||
.btns { | |||||
/* padding: 0 33rpx; */ | |||||
position: fixed; | |||||
left: 0; | |||||
right: 0; | |||||
bottom: 0; | |||||
padding-bottom: 22rpx; | |||||
padding-top: 22rpx; | |||||
z-index: 12; | |||||
/* background: #fff; */ | |||||
} | |||||
.btnTxt{ | |||||
width: 50rpx; | |||||
height: 30rpx; | |||||
line-height: 50rpx; | |||||
color: #FD782D; | |||||
font-size: 20rpx; | |||||
position: absolute; | |||||
right:42rpx ; | |||||
bottom: 15rpx; | |||||
} | |||||
.btns .fr,.btns .fl { | |||||
width: 277rpx; | |||||
height: 95rpx; | |||||
border-radius: 48rpx; | |||||
text-align: center; | |||||
} | |||||
.btns .fl { | |||||
margin-left: 20rpx; | |||||
color: #fff; | |||||
background: linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||||
/* box-shadow: 0px 8px 8px 1px rgba(255, 169, 2, 0.32); */ | |||||
} | |||||
.btns .fl text { | |||||
display: block; | |||||
font-size: 30rpx; | |||||
line-height: 34rpx; | |||||
} | |||||
.btns .fl text:nth-of-type(1) { | |||||
margin-top: 12rpx; | |||||
} | |||||
.btns .fr { | |||||
font-size: 30rpx; | |||||
color: #fff; | |||||
margin-right: 20rpx; | |||||
line-height: 95rpx; | |||||
background: linear-gradient(90deg,rgba(40,179,255,1) 0%,rgba(48,103,255,1) 100%); | |||||
/* box-shadow: 0px 8px 8px 1px rgba(246, 93, 51, 0.32); */ | |||||
} | |||||
.support-tansfer { | |||||
width: 60%; | |||||
border-radius: 50rpx; | |||||
margin-top: 30rpx; | |||||
/* background: #02c0ff !important; */ | |||||
background: linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||||
} | |||||
.shaddow { | |||||
z-index: 100; | |||||
position: fixed; | |||||
width: 100%; | |||||
height: 100%; | |||||
top: 0px; | |||||
background: rgba(0, 0, 0, 0.8); | |||||
overflow: hidden; | |||||
} | |||||
.alert-box { | |||||
position: fixed; | |||||
top: 200rpx; | |||||
left: 10%; | |||||
width: 80%; | |||||
height: auto; | |||||
padding-bottom: 20rpx; | |||||
background: #fff; | |||||
z-index: 200; | |||||
border-radius: 20rpx; | |||||
} | |||||
.user-img { | |||||
position: absolute; | |||||
top: -50rpx; | |||||
left: 250rpx; | |||||
/* margin-left: -50rpx; */ | |||||
width: 100rpx; | |||||
height: 100rpx; | |||||
z-index: 300; | |||||
border-radius: 50rpx; | |||||
background: #fff; | |||||
overflow: hidden; | |||||
} | |||||
.user-img image { | |||||
width: 100rpx; | |||||
height: 100rpx; | |||||
} | |||||
.close { | |||||
position: absolute; | |||||
z-index: 300; | |||||
right: 0; | |||||
top: 0; | |||||
width: 100rpx; | |||||
height: 100rpx; | |||||
overflow: hidden; | |||||
} | |||||
.close image { | |||||
display: block; | |||||
width: 26rpx; | |||||
height: 26rpx; | |||||
margin: 20rpx 0 0 52rpx; | |||||
} | |||||
.a-title { | |||||
text-align: center; | |||||
margin-top: 76rpx; | |||||
font-size: 36rpx; | |||||
font-family: PingFang-SC-Medium; | |||||
font-weight: 500; | |||||
color: rgba(51, 51, 51, 1); | |||||
line-height: 44rpx; | |||||
} | |||||
.a-img { | |||||
position: relative; | |||||
width: 80%; | |||||
border-radius: 20rpx; | |||||
height: 294rpx; | |||||
overflow: hidden; | |||||
text-align: center; | |||||
margin: 30rpx auto 0; | |||||
} | |||||
.a-received { | |||||
position: absolute; | |||||
width: 100%; | |||||
height: 294rpx; | |||||
top: 0; | |||||
left: 0; | |||||
text-align: center; | |||||
line-height: 294rpx; | |||||
z-index: 320; | |||||
background: rgba(255, 255, 255, 1); | |||||
border: 0px solid rgba(151, 57, 117, 1); | |||||
opacity: 0.91; | |||||
font-size: 36rpx; | |||||
color: rgba(255, 51, 50, 1); | |||||
font-family: PingFang-SC-Medium; | |||||
} | |||||
.a-img image { | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.bottom { | |||||
text-align: center; | |||||
height: 70rpx; | |||||
line-height: 70rpx; | |||||
color: #999; | |||||
font-size: 32rpx; | |||||
} | |||||
.presslimit { | |||||
width: 300rpx; | |||||
height: 34rpx; | |||||
line-height: 34rpx; | |||||
margin-top: 8rpx; | |||||
margin-left: 12rpx; | |||||
color: #FD782D; | |||||
font-size: 20rpx; | |||||
letter-spacing: 1.16rpx; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
.presslimit text{ | |||||
margin-left: 22rpx; | |||||
background:rgba(201,201,201,0.1); | |||||
} | |||||
checkbox-group, radio-group { | |||||
height: 400rpx; | |||||
overflow-y: scroll; | |||||
} | |||||
.detailImg { | |||||
width: 100%; | |||||
background: #FFF; | |||||
margin: auto; | |||||
} | |||||
.detailImg image { | |||||
display: block; | |||||
width: 92%; | |||||
padding: 0 4% 0 4%; | |||||
margin-bottom: 20rpx; | |||||
} | |||||
.content { | |||||
margin: 0; | |||||
padding: 0; | |||||
width: 100%; | |||||
height: 100%; | |||||
background: #f3f3f3; | |||||
position: relative; | |||||
} | |||||
.poster{ | |||||
width: 100%; | |||||
height: 100%; | |||||
padding: 20rpx; | |||||
position: absolute; | |||||
top: 0; | |||||
left: 0; | |||||
} | |||||
.bottomsave { | |||||
width: 100%; | |||||
height: 140rpx; | |||||
line-height: 140rpx; | |||||
margin: auto 0; | |||||
bottom:0; | |||||
left: 0; | |||||
right: 0; | |||||
border-top: 1px solid #ccc; | |||||
box-shadow: 0 0rpx 150rpx #ccc; | |||||
background: #fff; | |||||
} | |||||
.saveposter { | |||||
color: #fff; | |||||
width: 380rpx; | |||||
height: 80rpx; | |||||
border-radius: 50rpx; | |||||
background: #f08f04; | |||||
margin-top: 30rpx; | |||||
font-size: 32rpx; | |||||
} | |||||
.modal { | |||||
width: 100%; | |||||
height: 100%; | |||||
position: fixed; | |||||
top: 0; | |||||
left: 0; | |||||
background: rgba(0, 0, 0, 0.5); | |||||
overflow: hidden; | |||||
z-index: 10000; | |||||
color: #fff; | |||||
} | |||||
.modal-content { | |||||
width: 540rpx; | |||||
height: 233rpx; | |||||
line-height: 60rpx; | |||||
overflow: hidden; | |||||
position: fixed; | |||||
top: 50%; | |||||
left: 0; | |||||
z-index: 11; | |||||
background: #f9f9f9; | |||||
margin: -130rpx 105rpx; | |||||
border-radius: 36rpx; | |||||
display: flex; | |||||
} | |||||
.modal-content view { | |||||
display: inline-block; | |||||
flex: 1; | |||||
text-align: center; | |||||
} | |||||
.modal-content view>text { | |||||
color: #000; | |||||
display: block; | |||||
font-size: 30rpx; | |||||
} | |||||
.modal-content view>image { | |||||
margin-top: 40rpx; | |||||
width: 90rpx; | |||||
height: 90rpx; | |||||
} | |||||
.wx-swiper-dots{ | |||||
margin-bottom: 30rpx; | |||||
} | |||||
.quan{ | |||||
float: left; | |||||
margin:18rpx 15rpx 0 0; | |||||
width: 12rpx; | |||||
height: 12rpx; | |||||
background: #E1E1E1; | |||||
border-radius: 50%; | |||||
} |