You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1116 lines
27 KiB

2 years ago
<template>
1 year ago
<!-- <page-meta :page-style="'overflow:'+(showinfo?'hidden':'visible')"></page-meta> -->
2 years ago
<view class="cotainer">
2 years ago
1 year ago
<!-- <date-picker ref="datePickers" @refresh="backDate" :data="listDates" :express="listExpress"></date-picker> -->
<date-picker ref="datePickers" @refresh="backDate" :data="listDates"></date-picker>
2 years ago
<view class="orderForm">
<u-form :model="form" label-width="180" ref="uForm" :error-type="['toast']">
<view class="orderInfo">
<view class="orderInfo-title">
<view>{{cardInfo.sku?cardInfo.sku.name:''}}</view>
2 years ago
</view>
2 years ago
<view class="orderInfo-info">
1 year ago
<image
:src="cardInfo.sku?(cardInfo.sku.image_url?cardInfo.sku.image_url:require('@/static/logo-xietaitai.png')):require('@/static/logo-xietaitai.png')">
</image>
2 years ago
<view>
<view>
{{cardInfo.sku?cardInfo.sku.specs:''}}
</view>
1 year ago
<!-- <view>
2 years ago
<view>今日剩余可提货量</view>
<view>99</view>
1 year ago
</view> -->
2 years ago
<view>
<view>卡券状态</view>
1 year ago
<view class="status"
v-html="type=='edit'?cardInfo.first_card.status_label:cardInfo.status_label"></view>
2 years ago
</view>
2 years ago
2 years ago
</view>
2 years ago
</view>
2 years ago
<view class="orderInfo-status">
<u-form-item label="发货时间" :label-style="{'display':'none','width':0,'flex':0}"
:border-bottom="false" style="width:100%" prop="send_date" label-position="left">
<view style="display: flex;align-items: center;justify-content: space-between;">
<view>
<view>发货时间</view>
</view>
<view class="hh" @click="openDatePicker">
<view class="" v-if="form.send_date">
<!-- <view>{{form.express}}</view> -->
<view>{{form.ymd}} <text
style="color:#b62828;margin:0 10rpx">[{{form.week}}]</text>
<!-- {{form.hh}} -->
</view>
</view>
<view v-else>
<view>选择发货时间</view>
</view>
<view>
<u-icon name="arrow-down-fill" color="#ccc" size='28'></u-icon>
</view>
</view>
</view>
1 year ago
<view style="color:#b62828;font-size:24rpx">非到货时间预计发货后48小时左右可到货</view>
2 years ago
</u-form-item>
2 years ago
</view>
2 years ago
</view>
2 years ago
<view class="orderForm-wrap">
2 years ago
<u-form-item label="收货人" prop="contact" label-position="left">
2 years ago
<u-input v-model="form.contact" placeholder="请填写收货人姓名" />
</u-form-item>
2 years ago
<u-form-item label="手机号码" prop="mobile" label-position="left">
1 year ago
<u-input type="number" :maxlength="11" v-model="form.mobile" placeholder="请填写手机号码" />
2 years ago
</u-form-item>
2 years ago
<u-form-item label="备用号码" prop="mobile2" label-position="left">
<u-input v-model="form.mobile2" type="number" :maxlength="11" placeholder="请填写备用号码" />
2 years ago
</u-form-item>
2 years ago
<u-form-item label="所在地区" prop="area" label-position="left">
1 year ago
<u-input type="select" v-model="form.area" placeholder="请选择所在地区" @click="openArea" />
</u-form-item>
<u-form-item label="详细地址" prop="address" label-position="left">
<u-input v-model="form.address" placeholder="请填写详细地址" />
2 years ago
<view slot="right" class="arearight" @click="changeLocation">
<u-icon name="map"></u-icon>
定位
</view>
</u-form-item>
2 years ago
<u-form-item label="设置默认地址" :border-bottom="false" prop="defalut" label-position="left">
<u-switch slot="right" v-model="form.defalut" active-color="#ba8b45" inactive-color="#adadac"
2 years ago
size="40"></u-switch>
</u-form-item>
1 year ago
<u-form-item label="备注" prop="remark" label-position="top">
<u-input type="textarea" v-model="form.remark" placeholder="请填写备注" />
</u-form-item>
2 years ago
</view>
<view class="orderForm-wrap">
2 years ago
<u-form-item label="是否本人收货" prop="myself" label-position="left">
2 years ago
<u-input v-model="myself" placeholder="选填" @click="showIsMySelf = true" type="select" />
</u-form-item>
1 year ago
<u-form-item label="购卡人姓名" prop="buy_name" label-position="left">
2 years ago
<u-input v-model="form.buy_name" placeholder="选填" />
</u-form-item>
1 year ago
<u-form-item label="购卡人电话" :border-bottom="false" prop="buy_mobile" label-position="left">
<u-input v-model="form.buy_mobile" type="number" :maxlength="11" placeholder="选填" />
2 years ago
</u-form-item>
2 years ago
</view>
2 years ago
2 years ago
</u-form>
<view class="orderForm-btn">
1 year ago
<view @click="openShowInfo">{{type=='edit'?'':''}}</view>
2 years ago
</view>
2 years ago
</view>
2 years ago
<aui-picker ref="pickers" :title="'地区选择'" :data="listArea" @callback="changeArea"></aui-picker>
<u-select @confirm="changeIsMySelf" v-model="showIsMySelf" :list="listIsMySelf"></u-select>
1 year ago
<!-- 免责协议 -->
<view class="agreeinfo" v-if="showagree">
<view class="agreeinfo-wrap">
<view class="agreeinfo-title">温馨提示</view>
<view class="agreeinfo-content">
1 year ago
<view v-html="tips"></view>
1 year ago
</view>
<view class="agreeinfo-btn">
<view @click="closeAgree" :class="isAgree?'canAgree':''">我同意<text
v-if="isAgreeTime>0">({{isAgreeTime}})</text></view>
1 year ago
</view>
</view>
</view>
2 years ago
<!-- 确认信息 -->
2 years ago
<view class="ordercontainer" v-if="showinfo">
<view class="confirmbox">
<view class="confirmpicinfo">
<view class="imgbox">
1 year ago
<image
:src="cardInfo.sku?(cardInfo.sku.image_url?cardInfo.sku.image_url:require('@/static/logo-xietaitai.png')):require('@/static/logo-xietaitai.png')">
</image>
2 years ago
</view>
<view class="pictitle">{{cardInfo.sku?cardInfo.sku.name:''}}</view>
<text>{{cardInfo.sku?cardInfo.sku.specs:''}}</text>
2 years ago
</view>
2 years ago
</view>
<view class="confirmlist index0">
<view class="iconimg">
<image src="../../static/icon1.png" mode="widthFix"></image>
2 years ago
</view>
2 years ago
<view class="confirmright">
1 year ago
<text class="confirmmarker">发货时间</text>
2 years ago
<view class="flex-li confirmdate">
<text>{{form.ymd}}
<text class="smallfont" style="color:#b62828">[{{form.week}}]</text>
1 year ago
</text>
2 years ago
<text class="smallfont">{{form.lunarData}}</text>
</view>
<view class="flex-li confirmdate">
1 year ago
<!-- <text>{{form.hh}}</text> -->
2 years ago
</view>
</view>
</view>
<view class="confirmlist index1">
<view class="iconimg">
<image src="../../static/icon2.png" mode="widthFix"></image>
</view>
<view class="confirmright">
<text class="confirmmarker">收货地址</text>
<view class="flex-li confirmaddress">
<text>{{form.area}}{{form.address}}</text>
2 years ago
</view>
</view>
2 years ago
</view>
<view class="confirmlist index2">
<view class="iconimg">
<image src="../../static/icon3.png" mode="widthFix"></image>
</view>
<view class="confirmright">
<text class="confirmmarker">收货人</text>
<view class="flex-li confirmcontact">
<text>{{form.contact}}</text>
<text>{{form.mobile}}</text>
</view>
2 years ago
</view>
</view>
2 years ago
<view class="confirmbtn">
<text class="edit" @click="backShow"></text>
1 year ago
<text class="confirmtab" @click="submit">{{type=='edit'?'':''}}</text>
2 years ago
</view>
2 years ago
</view>
1 year ago
2 years ago
<!-- 选择地址 -->
<view class="addressinfo" v-if="showAddress">
2 years ago
<u-popup v-model="showAddress" mode="bottom">
<view class="content">
<view class="content-title">
选择地址
</view>
<view class="content-wrap">
<u-radio-group v-model="addressInfo" @change="changeAddress">
<u-radio v-for="(item, index) in listAddress" :key="index" :name="item.id">
<view class="content-contact">{{item.contact}} {{item.mobile}}</view>
<view class="content-address">{{item.area}}{{item.address}}</view>
</u-radio>
</u-radio-group>
</view>
2 years ago
</view>
2 years ago
</u-popup>
2 years ago
</view>
</view>
</template>
<script>
import {
toast,
isMobile,
isNull,
parseAddress
2 years ago
} from '@/common/util.js'
import solarLunar from '@/node_modules/solarlunar';
2 years ago
import auiPicker from '@/components/aui-picker.vue';
2 years ago
import datePicker from '@/components/date-picker/date-picker.vue'
2 years ago
export default {
components: {
2 years ago
auiPicker,
2 years ago
datePicker
2 years ago
},
data() {
return {
showinfo: false,
showagree: false,
isAgree: false,
isAgreeTime: 10,
agreeTimer: null,
2 years ago
showAddress: false,
listAddress: [],
addressInfo: '',
cardInfo: {},
tips: '',
1 year ago
type: '',
2 years ago
form: {
card_number: '',
password: '',
2 years ago
2 years ago
send_date: '',
2 years ago
ymd: '',
lunarData: '',
1 year ago
// express: '',
// hh: '',
2 years ago
week: '',
2 years ago
area: '',
address: '',
province_id: '',
city_id: '',
district_id: '',
contact: '',
mobile: '',
mobile2: '',
2 years ago
defalut: false,
2 years ago
myself: 1,
buy_name: '',
buy_mobile: ''
2 years ago
},
1 year ago
// listExpress: [{
// id: 0,
// value: '顺丰快递'
// }, {
// id: 1,
// value: '中通快递'
// }],
2 years ago
listDates: [],
date: '',
listArea: [],
showArea: false,
showIsMySelf: false,
myself: '是',
listIsMySelf: [{
value: 1,
label: '是'
}, {
value: 0,
label: '否'
}],
rules: {
send_date: [{
required: true,
1 year ago
message: '请选择发货时间',
2 years ago
trigger: ['change', 'blur'],
}],
area: [{
required: true,
1 year ago
message: '请选择所在地区',
2 years ago
trigger: ['change', 'blur'],
}],
address: [{
required: true,
message: '请填写详细地址',
trigger: ['blur'],
}],
contact: [{
required: true,
message: '请填写收货人姓名',
trigger: ['blur'],
}],
mobile: [{
required: true,
message: '请填写收货人电话',
trigger: ['blur'],
}, {
validator: (rule, value, callback) => {
return this.$u.test.mobile(value);
},
message: '手机号码不正确',
trigger: ['blur'],
}]
}
}
},
onReady() {
2 years ago
this.$refs.uForm.setRules(this.rules);
2 years ago
},
onUnload() {
if (this.agreeTimer) {
clearInterval(this.agreeTimer)
this.agreeTimer = null
}
2 years ago
},
1 year ago
onLoad(option) {
1 year ago
let that = this
1 year ago
if (option.hasCard) {
if (option.type == 'edit') {
this.type = 'edit'
this.form = uni.getStorageSync("vuex_update_card") ? uni.getStorageSync("vuex_update_card") : {},
this.cardInfo = uni.getStorageSync("vuex_update_card") ? uni.getStorageSync("vuex_update_card") :
{},
this.form.ymd = this.momentDay(this.form.send_date).ymd
uni.removeStorageSync("vuex_update_card")
uni.setNavigationBarTitle({
title: '修改订单',
success: function() {
console.log('标题设置成功');
that.showinfo = false
},
fail: function(err) {
console.error('标题设置失败', err);
}
});
// uni.removeStorageSync("vuex_update_card")
} else {
this.cardInfo = uni.getStorageSync("vuex_card") ? uni.getStorageSync("vuex_card").card : {}
this.form.card_number = uni.getStorageSync("vuex_card") ? uni.getStorageSync("vuex_card").card_number :
''
this.form.password = uni.getStorageSync("vuex_card") ? uni.getStorageSync("vuex_card").password : ''
// uni.removeStorageSync("vuex_card")
1 year ago
}
// 温馨提示
const configs = uni.getStorageSync("configs")
configs.map(item => {
if (item.key === 'tips') {
this.tips = item.value
}
1 year ago
})
2 years ago
this.getAddress()
this.getDates()
1 year ago
// this.getExpress()
2 years ago
this.getArea()
} else {
toast("未查询到卡券信息")
uni.removeStorageSync("vuex_card")
uni.redirectTo({
1 year ago
url: '/packages/change/change'
2 years ago
})
}
},
methods: {
async getAddress() {
const res = await this.$u.api.getUserAddress()
1 year ago
this.listAddress = res.address
if (!this.type == 'edit') {
this.showAddress = this.listAddress.length > 0 ? true : false
1 year ago
}
},
1 year ago
// async getExpress() {
// const res = await this.$u.api.getExpress()
// this.listExpress = res
// },
2 years ago
changeAddress(e) {
if (e) {
this.listAddress.map(item => {
if (item.id == e) {
this.form.address_id = item.id
this.form.area = item.area
this.form.address = item.address
this.form.province_id = item.province_id
this.form.city_id = item.city_id
this.form.district_id = item.district_id
this.form.contact = item.contact
this.form.mobile = item.mobile
this.showAddress = false
}
})
}
2 years ago
},
2 years ago
async getDates() {
await this.$u.api.getDates({
1 year ago
card_number: this.form.card_number
2 years ago
}).then(res => {
let data = res.card
if (data.open_dates) {
2 years ago
for (var k in data.open_dates) {
// 剩余数量大于0
if (data.open_dates[k]['quantity'] - data.open_dates[k]['booked'] > 0) {
if(this.isAfterTwoDays(k)){
let _k = this.momentDay(k)
this.listDates.push({
canUse: data.open_dates[k],
..._k
})
}
1 year ago
}
2 years ago
}
2 years ago
}
2 years ago
}).then(res => {
})
},
isAfterTwoDays(open_dates) {
const dateToCheck = this.$moment(open_dates, 'YYYY-MM-DD');
const today = this.$moment();
const twoDaysAfterToday = today.add(2, 'days');
return dateToCheck >= twoDaysAfterToday;
},
2 years ago
momentDay(date) {
if (date) {
const weeks = ["周日", '周一', '周二', '周三', '周四', '周五', '周六', ]
let dateArr = date.split("-")
let ymd = this.$moment(date).format("M月DD日")
let week = weeks[this.$moment(date).day()]
const solar2lunarData = solarLunar.solar2lunar(dateArr[0], dateArr[1], dateArr[2]);
1 year ago
2 years ago
return {
date: date,
ymd: ymd,
week: week,
lunarData: `农历${solar2lunarData.monthCn}${solar2lunarData.dayCn}`,
}
}
},
backDate(e) {
2 years ago
if (e) {
2 years ago
this.form.send_date = e.date
this.form.ymd = e.ymd
1 year ago
// this.form.express = e.expressname
// this.form.express_type_id = e.expressid
// this.form.hh = e.hhtime
2 years ago
this.form.week = e.week
this.form.lunarData = e.lunarData
2 years ago
}
},
2 years ago
openDatePicker() {
this.$refs.datePickers.show = true
},
2 years ago
async getArea() {
const res = await this.$u.api.getRegion()
this.listArea = res.regions
},
openArea() {
1 year ago
uni.hideKeyboard()
2 years ago
this.$refs.pickers.open().then(function() {
console.log('picker打开');
});
},
changeArea(e) {
// return
if (e) {
console.log("e",e)
2 years ago
let data = e.data
1 year ago
let _this = this
1 year ago
_this.form.area = ''
2 years ago
data.forEach(function(item, index) {
_this.form.area += item.value + ' ';
});
this.form.province_id = data[0] ? data[0].id : ''
this.form.city_id = data[1] ? data[1].id : ''
this.form.district_id = data[2] ? data[2].id : ''
}
},
changeIsMySelf(e) {
if (e) {
this.myself = e[0].label
this.form.myself = e[0].value
}
},
changeLocation() {
let _this = this
uni.authorize({
scope: 'scope.userLocation',
success: (res) => {
console.log("authorize", res)
uni.chooseLocation({
success(res) {
console.log("res", res)
1 year ago
// _this.form.area = res.address
_this.form.address = res.name
// 根据地址匹配 省市区
let pca = parseAddress(res.address)
if(pca.length>0){
_this.form.area = pca.join('')
_this.$u.api.matchRegion({
province: pca[0],
city: pca[1],
district: pca[2]
}).then(res => {
_this.form.province_id = res.province_id ? res.province_id.id : ''
_this.form.city_id = res.city_id ? res.city_id.id : ''
_this.form.district_id = res.district_id ? res.district_id.id : ''
})
}else{
uni.showToast({
title:'未获取到地址,重新获取',
icon:'none'
})
}
2 years ago
},
fail(res) {
console.log("fail", res)
}
})
},
fail(res) {
console.log("authorize-fail", res)
}
})
},
2 years ago
backShow() {
let that = this
1 year ago
that.showinfo = false
2 years ago
},
saveDefalutAddress() {
if (this.form.defalut) {
this.$u.api.saveUserAddress({
id: this.form.address_id ? this.form.address_id : '',
area: this.form.area,
address: this.form.address,
contact: this.form.contact,
mobile: this.form.mobile,
province_id: this.form.province_id,
city_id: this.form.city_id,
district_id: this.form.district_id,
defalut: 1
1 year ago
}).then(res => {
if (this.type == 'edit') {
uni.redirectTo({
url: '/packages/myorder/myorder'
})
} else {
uni.redirectTo({
url: '/packages/product/public'
})
1 year ago
}
1 year ago
2 years ago
}).then(res => {
1 year ago
if (this.type == 'edit') {
uni.redirectTo({
url: '/packages/myorder/myorder'
})
} else {
uni.redirectTo({
url: '/packages/product/public'
})
1 year ago
}
2 years ago
})
} else {
1 year ago
if (this.type == 'edit') {
uni.redirectTo({
url: '/packages/myorder/myorder'
})
} else {
uni.redirectTo({
url: '/packages/product/public'
})
1 year ago
}
2 years ago
}
},
openShowInfo() {
let that = this
if (!isNull(this.form.mobile2) && this.form.mobile2.length > 0) {
if (!isMobile(this.form.mobile2)) {
toast('备用电话不正确')
return
}
}
if (!isNull(this.form.buy_mobile) && this.form.buy_mobile.length > 0) {
if (!isMobile(this.form.buy_mobile)) {
toast('购买人电话不正确')
return
}
}
this.$refs.uForm.validate(valid => {
// console.log('验证通过');
if (valid) {
if (!this.showinfo) {
uni.setNavigationBarTitle({
title: '信息确认',
success: function() {
console.log('标题设置成功');
that.showinfo = true
},
fail: function(err) {
console.error('标题设置失败', err);
}
});
}
} else {
console.log('验证失败');
// toast('请填写完整信息')
}
});
},
closeAgree() {
if (this.isAgreeTime > 0) {
return
} else {
this.isAgree = true
this.showagree = false
}
},
reduceAgreeTime() {
2 years ago
let that = this
if (that.isAgreeTime > 0) {
this.agreeTimer = setInterval(function() {
that.isAgreeTime--
if (that.isAgreeTime === 0) {
that.isAgree = true
that.isAgreeTime = 0
clearInterval(that.agreeTimer)
that.agreeTimer = null
}
}, 1000)
}
},
submit() {
let that = this
if (!this.isAgree) {
this.showagree = true
this.isAgreeTime = 10
this.reduceAgreeTime()
} else {
if (this.isAgree) {
this.form.show = 0
if (this.type == 'edit') {
console.log("this.form", this.form)
this.$u.api.saveUserOrder(this.form).then(res => {
uni.removeStorageSync('vuex_update_card')
toast(res.msg, 1000, function() {
setTimeout(function() {
that.saveDefalutAddress()
}, 500)
})
}).then(res => {
console.log('res1', res)
})
} else {
this.$u.api.addUserOrder(this.form).then(res => {
console.log("res", res)
uni.removeStorageSync('vuex_card')
toast(res.msg, 1000, function() {
setTimeout(function() {
that.saveDefalutAddress()
}, 500)
})
}).then(res => {
console.log('res1', res)
})
}
}
1 year ago
}
2 years ago
}
}
}
</script>
<style lang="scss">
.cotainer {
1 year ago
padding: 30rpx;
2 years ago
background-color: #f0efed;
padding-bottom: 200rpx;
2 years ago
2 years ago
.addressinfo {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, .5);
z-index: 9999999;
display: flex;
align-items: center;
justify-content: center;
.content {
2 years ago
width: 100%;
height: 800rpx;
// overflow: scroll;
2 years ago
position: relative;
&-wrap {
box-sizing: border-box;
background: #fff;
border-radius: 20rpx;
overflow: scroll;
width: 100%;
2 years ago
height: 650rpx;
1 year ago
padding: 40rpx;
padding-top: 0;
2 years ago
}
2 years ago
&-title {
text-align: center;
padding: 30rpx;
1 year ago
font-size: 32rpx;
2 years ago
}
.u-radio {
align-items: baseline;
2 years ago
margin-bottom: 20rpx;
2 years ago
}
&-contact {}
&-address {
color: #ccc;
line-height: 1.2;
font-size: 28rpx;
}
}
}
.orderInfo {
2 years ago
padding: 40rpx 24rpx;
border-radius: 10rpx;
background-color: #fff;
font-size: 24rpx;
color: #000;
&-title {
2 years ago
>view {
2 years ago
font-size: 24rpx;
font-weight: bolder;
margin-bottom: 20rpx;
2 years ago
}
}
&-info {
display: flex;
2 years ago
font-weight: normal;
margin-bottom: 40rpx;
image {
width: 150rpx;
height: 150rpx;
border: 1px solid #ba8b45;
border-radius: 10rpx;
margin-right: 20rpx;
}
2 years ago
>view {
2 years ago
&:last-child {
width: calc(100% - 170rpx);
>view {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
.status {
background-color: #ba8b45;
color: #fff;
padding: 5rpx 20rpx;
border-radius: 10rpx;
}
}
}
2 years ago
}
}
&-status {
display: flex;
flex-wrap: wrap;
2 years ago
justify-content: space-between;
2 years ago
2 years ago
.u-form-item {
padding: 0;
.u-form-item__body {
align-items: baseline;
.u-form-item--left {
width: 0 !important;
flex: 0 !important;
1 year ago
}
2 years ago
}
}
2 years ago
.hh {
2 years ago
&:last-child {
2 years ago
text-align: right;
display: flex;
align-items: center;
2 years ago
justify-content: flex-end;
2 years ago
2 years ago
>view {
&:first-child {
view {
2 years ago
height: 50rpx;
line-height: 50rpx;
2 years ago
&:last-child {
margin-bottom: 0rpx
}
}
}
&:last-child {
margin-left: 20rpx
}
}
2 years ago
}
}
}
}
.orderForm {
2 years ago
&-wrap {
padding: 40rpx 24rpx;
border-radius: 10rpx;
background-color: #fff;
font-size: 24rpx;
color: #000;
margin-top: 24rpx;
.u-form-item {
padding-bottom: 0
}
.arearight {
color: #000
}
}
2 years ago
&-address {
height: 72rpx;
display: flex;
justify-content: space-between;
align-items: center;
line-height: 72rpx;
padding-top: 20rpx;
position: relative;
text {
text {
position: absolute;
left: -16rpx;
vertical-align: middle;
color: #fa3534;
padding-top: 6rpx;
}
}
}
&-btn {
2 years ago
background: #fff;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
padding: 40rpx;
z-index: 9;
>view {
background-color: #ba8b45;
color: #fff;
border-radius: 40rpx;
width: 60%;
margin: 0 auto;
height: 75rpx;
text-align: center;
line-height: 75rpx;
}
2 years ago
}
}
2 years ago
.ordercontainer {
background: #f0efed;
width: 100%;
height: 100vh;
padding: 42rpx 50rpx 300rpx;
overflow-y: scroll;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
1 year ago
z-index: 99;
2 years ago
}
.confirmbox {
width: 100%;
padding-top: 22rpx;
padding-bottom: 35rpx;
background: url(../../static/confirmbg1.jpg) no-repeat center top;
background-size: cover;
border-radius: 10rpx;
box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, .47);
}
.confirmpicinfo {
text-align: center;
font-size: 24rpx;
color: #d5c7b5;
line-height: 42rpx;
}
.imgbox {
width: 150rpx;
height: 150rpx;
2 years ago
margin: 0 auto;
border-radius: 10rpx;
border: 1px solid #ba8b45;
overflow: hidden;
margin-bottom: 14rpx;
}
.imgbox image {
width: 150rpx;
height: 150rpx;
2 years ago
vertical-align: middle;
}
.confirmpicinfo .pictitle {
color: #ba8b45;
}
.confirmlist {
margin-top: 30rpx;
border-radius: 10rpx;
overflow: hidden;
display: flex;
align-items: center;
justify-content: space-between;
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, .47);
padding: 10rpx 10rpx 10rpx 20rpx;
}
.confirmlist.index0 {
background-image: url(../../static/confirmbg2.jpg);
}
.confirmlist.index1 {
background-image: url(../../static/confirmbg3.jpg);
}
.confirmlist.index2 {
background-image: url(../../static/confirmbg4.jpg);
}
.confirmlist image {
width: 62rpx;
height: auto;
}
.confirmlist .confirmright {
width: 550rpx;
background: #fff;
border-radius: 10rpx;
padding: 45rpx 20rpx 25rpx;
}
.confirmmarker {
display: block;
1 year ago
font-size: 32rpx;
2 years ago
color: #000;
font-weight: bold;
margin-bottom: 8rpx;
1 year ago
text-align: center;
2 years ago
}
.flex-li {
display: flex;
justify-content: space-between;
color: #000;
font-size: 30rpx;
line-height: 60rpx;
}
.confirmdate text.smallfont {
font-size: 24rpx;
}
.confirmbtn {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
// height: 115rpx;
display: flex;
padding: 40rpx 0rpx;
justify-content: space-between;
background: #fff;
align-items: center;
}
.confirmbtn text {
display: inline-block;
width: 284rpx;
line-height: 74rpx;
height: 74rpx;
text-align: center;
border-radius: 74rpx;
border: 1rpx solid #d1d1d0;
margin: 0 38rpx;
font-size: 29rpx;
color: #000;
}
.confirmbtn text.confirmtab {
color: #fff;
border: 1rpx solid #ba8b45;
background: #ba8b45;
}
1 year ago
.agreeinfo {
position: fixed;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
width: 100vw;
height: 100vh;
1 year ago
z-index: 999;
1 year ago
padding: 0 50rpx;
&-wrap {
background: #fff;
padding: 60rpx 40rpx;
border-radius: 20rpx;
}
&-title {
font-size: 32rpx;
margin-bottom: 30rpx;
color: #b62828;
1 year ago
text-align: center;
1 year ago
}
&-content {
line-height: 1.8;
font-size: 30rpx;
height: 300rpx;
1 year ago
overflow: scroll;
1 year ago
}
&-btn {
>view {
background-color: rgba(0, 0, 0, 0.5);
1 year ago
color: #fff;
border-radius: 40rpx;
width: 60%;
margin: 0 auto;
height: 75rpx;
text-align: center;
line-height: 75rpx;
1 year ago
margin: 20rpx auto;
}
.canAgree {
background-color: #ba8b45;
1 year ago
}
}
}
2 years ago
}
</style>