| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127 |
- <template>
- <view>
- <view class="inner-box">
- <!-- 收货人 -->
- <view class="address-box" v-if="address==null" @click="openAddress()">
- <view class="left">
- <view class="name-box">
- <text class="text name">添加收货地址</text>
- </view>
- </view>
- <view class="arrow-box">
- <image src="/static/images/arrow_gray.png" mode=""></image>
- </view>
- </view>
- <view class="address-box" v-if="address!=null" @click="openAddress()">
- <view class="left">
- <view class="name-box">
- <text class="text name">{{address.realName}}</text>
- <text class="text" v-if="address.phone!=null">{{address.phone}}</text>
- </view>
- <view class="address">
- {{address.province}}{{address.city}}{{address.district}}{{address.detail}}
- </view>
- </view>
- <view class="arrow-box">
- <image src="/static/images/arrow_gray.png" mode=""></image>
- </view>
- </view>
- <!-- 积分 -->
- <view class="price-info">
- <view class="price-info-title">价格明细</view>
- <view class="points">
- <view class="left">
- <text class="text">商品总价</text>
- </view>
- <view class="right" style="align-items: baseline;">
- <text class="price-info-unit">¥</text>
- <text class="price-info-num">{{(orderData.totalPrice||0).toFixed(2)}}</text>
- </view>
- </view>
- <view class="points" @click="couponVisible = true;">
- <view class="left">
- <text class="text">优惠券</text>
- </view>
- <view class="right">
- <text class="text">{{couponText}}</text>
- <image src="/static/images/arrow4.png" mode=""></image>
- </view>
- </view>
- <view class="points">
- <view class="left">
- <text class="text">运费</text>
- </view>
- <view class="right">
- <text class="text"
- v-if="address!=null">{{orderData.payDelivery==null||orderData.payDelivery==0?'免运费':orderData.payDelivery.toFixed(2)}}</text>
- <text class="text" v-if="address==null">--</text>
- </view>
- </view>
- <view class="points">
- <view class="left">
- <text class="text">合计</text>
- </view>
- <view class="right" style="align-items: baseline;">
- <text class="price-info-unit">¥</text>
- <text class="price-info-num">{{(orderData.payPrice||0).toFixed(2)}}</text>
- </view>
- </view>
- </view>
- </view>
- <view class="btn-foot">
- <view class="right">
- <view class="total">
- <text class="label">合计:</text>
- <view class="price">
- <text class="unit">¥</text>
- <text class="num">{{(orderData.payPrice||0).toFixed(2)}}</text>
- </view>
- </view>
- <view class="btn" @click="submitOrder">提交订单</view>
- </view>
- </view>
- <popupBottom ref="popup" :visible.sync="couponVisible" title=" " bgColor="#f5f5f5" radius="30" maxHeight="60%">
- <view class="coupon" style="height:650rpx;">
- <div class="coupon-list" v-if="couponsList.length > 0">
- <div class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
- <div class="money">
- <image v-if="item.status==0&&item.useMinPrice<=orderData.totalPrice" class="img"
- src="../../static/images/coupon1.png" mode="widthFix"></image>
- <image v-if="item.status!=0||item.useMinPrice>orderData.totalPrice" class="img"
- src="../../static/images/coupon2.png" mode="widthFix"></image>
- <div style="z-index: 999;">
- ¥<span class="num">{{ item.couponPrice }}</span>
- </div>
- <div class="pic-num">满{{ item.useMinPrice }}元可用</div>
- </div>
- <div class="text">
- <div class="condition line1">
- {{ item.couponTitle }}
- </div>
- <div class="data acea-row row-between-wrapper">
- <div>{{ item.limitTime }}到期</div>
- <div v-if=" item.status==0&&item.useMinPrice<=orderData.totalPrice"
- class="bnt bg-color-red" @click="couponSelect(item)">选择</div>
- <div v-else-if="item.status!=0" class="bnt " style="background-color: #878787;">已失效
- </div>
- <div v-else-if="item.useMinPrice>orderData.totalPrice" class="bnt "
- style="background-color: #878787;">未达门槛</div>
- </div>
- </div>
- </div>
- </div>
- <view v-if="couponsList.length == 0" class="no-data-box">
- <image src="/static/images/no_data.png" mode="aspectFit"></image>
- <view class="empty-title">暂无数据</view>
- </view>
- </view>
- </popupBottom>
- </view>
- </template>
- <script>
- import {
- createliveOrder, // 创建订单
- createReward, // 创建中奖订单
- userAddr, // 获取用户收货地址
- computed,
- computedReward,
- liveOrderKey, // 生成订单key
- } from "@/api/order.js"
- import {
- curCoupon
- } from "@/api/living.js"
- import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
- export default {
- components: {
- popupBottom
- },
- data() {
- return {
- orderData: {},
- cityId: null,
- address: null,
- addressId: null,
- totalNum: null,
- orderKey: null,
- goodsId: null,
- liveId: null,
- orderList: [],
- temps: [],
- couponUserId: null,
- couponText: "请选择",
- couponsList: [],
- couponVisible: false,
- carts: [],
- checked: false,
- cartIds: null,
- confirmParam: [],
- type: '',
- isFirstLoad: true,
- }
- },
- onLoad(options) {
- console.log("确认订单", options)
- this.orderKey = options.orderKey;
- this.liveId = options.liveId
- this.goodsId = options.goodsId
- this.productId = options.productId
- this.totalNum = Number(options.totalNum) || 0
- this.type = options.type
- this.isFirstLoad = true;
- <<<<<<< HEAD
- =======
-
- >>>>>>> 8c8ec24aaf25141f3a66af3c1d21e5415ce32117
- if (options.type == 'win') {
- this.getKey()
- }
- },
- onShow() {
- this.openCoupon()
- this.getUserAddr()
- uni.$on('updateAddress', (e) => {
- this.address = e;
- this.addressId = e.addressId;
- this.cityId = e.cityId;
- });
- },
- mounted() {
- // uni.$on('updateAddress', (e) => {
- // this.address = e;
- // this.addressId = e.addressId;
- // });
- },
- onUnload() {
- uni.$off('updateAddress', this.handleAddressUpdate);
- },
- beforeDestroy() {
- uni.$off('updateAddress');
- },
- methods: {
- handleAddressUpdate(item) {
- console.log('接收到地址数据:', item);
- this.cityId = item.cityId;
- this.address = item;
- this.addressId = item.addressId;
- if (this.type == 'win') {
- this.computedRewardOrder()
- } else {
- this.computedOrder()
- }
- },
- // 获取用户收货地址
- getUserAddr() {
- userAddr().then(res => {
- if (res.code == 200) {
- //console.log("用户收货地址>>>>", res.data)
- if (res.data && !this.address) {
- this.address = res.data;
- }
- if (res.data && res.data.cityId) {
- this.cityId = res.data.cityId;
- }
- if (this.type == 'win') {
- this.computedRewardOrder()
- } else {
- this.computedOrder()
- }
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- // 获得key
- getKey() {
- liveOrderKey().then(res => {
- if (res.code == 200) {
- this.orderKey = res.orderKey
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- // 查询创建订单信息
- computedOrder() {
- let data = {
- cityId: this.cityId || '',
- totalNum: this.totalNum,
- productId: this.productId,
- orderKey: this.orderKey,
- couponUserId: this.couponUserId || ''
- }
- computed(data).then(res => {
- if (res.code == 200) {
- console.log("查询创建订单信息>>>>", res.data)
- this.orderData = res.data
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- // 查询中奖创建订单信息
- computedRewardOrder() {
- let data = {
- cityId: this.cityId || '',
- productId: this.productId ,
- orderKey: this.orderKey,
- totalNum: 1,
- }
- computedReward(data).then(res => {
- if (res.code == 200) {
- console.log("查询创建订单信息>>>>", res.data)
- <<<<<<< HEAD
- this.orderData = res.data || {}
- =======
- this.orderData = res.data||{}
- >>>>>>> 8c8ec24aaf25141f3a66af3c1d21e5415ce32117
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- // 创建订单
- createLiveOrder() {
- let data = {
- cityId: this.cityId,
- liveId: this.liveId,
- orderKey: this.orderKey,
- userName: this.address.realName,
- userPhone: this.address.phone,
- userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' +
- this.address
- .detail,
- cartId: "5",
- productId: this.productId,
- totalNum: this.totalNum,
- couponUserId: this.couponUserId
- }
- <<<<<<< HEAD
- return createliveOrder(data).then(res => {
- if (res.code == 200) {
- this.orderList = res.order;
- return res.order;
- =======
- return createliveOrder(data).then(res => {
- if (res.code == 200) {
- this.orderList = res.order;
- return res.order;
- >>>>>>> 8c8ec24aaf25141f3a66af3c1d21e5415ce32117
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- <<<<<<< HEAD
- throw new Error(res.msg);
- =======
- throw new Error(res.msg);
- >>>>>>> 8c8ec24aaf25141f3a66af3c1d21e5415ce32117
- }
- });
- },
- // 创建抽奖订单
- createRewardOrder() {
- <<<<<<< HEAD
- let data = {
- cityId: this.cityId,
- liveId: this.liveId,
- orderKey: this.orderKey,
- userName: this.address.realName,
- userPhone: this.address.phone,
- userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' +
- this.address.detail,
- cartId: "5",
- productId: this.productId,
- totalNum: 1,
- couponUserId: this.couponUserId
- }
- return createReward(data).then(res => {
- if (res.code == 200) {
- this.orderList = res.order || {};
- return res.order || {};
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- throw new Error(res.msg);
- }
- });
- =======
- let data = {
- cityId: this.cityId,
- liveId: this.liveId,
- orderKey: this.orderKey,
- userName: this.address.realName,
- userPhone: this.address.phone,
- userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' + this.address.detail,
- cartId: "5",
- productId: this.productId,
- totalNum: this.totalNum,
- couponUserId: this.couponUserId
- }
-
- return createReward(data).then(res => {
- if (res.code == 200) {
- this.orderList = res.order || {};
- return res.order || {};
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- });
- throw new Error(res.msg);
- }
- });
- >>>>>>> 8c8ec24aaf25141f3a66af3c1d21e5415ce32117
- },
- couponSelect(item) {
- this.couponText = "-¥" + (item.couponPrice || 0).toFixed(2);
- this.couponUserId = item.id;
- this.couponVisible = false;
- if (this.type == 'win') {
- this.computedRewardOrder()
- } else {
- this.computedOrder()
- }
- },
- // 自动选择最大优惠券
- autoSelectMaxCoupon() {
- if (this.couponsList.length === 0 || !this.isFirstLoad) {
- return;
- }
- <<<<<<< HEAD
- const availableCoupons = this.couponsList.filter(item =>
- =======
- const availableCoupons = this.couponsList.filter(item =>
- >>>>>>> 8c8ec24aaf25141f3a66af3c1d21e5415ce32117
- item.status === 0 && item.useMinPrice <= (this.orderData.totalPrice || 0)
- );
- if (availableCoupons.length === 0) {
- return;
- }
- availableCoupons.sort((a, b) => b.couponPrice - a.couponPrice);
- const maxCoupon = availableCoupons[0];
- this.couponText = "-¥" + (maxCoupon.couponPrice || 0).toFixed(2);
- this.couponUserId = maxCoupon.id;
- <<<<<<< HEAD
- =======
-
- >>>>>>> 8c8ec24aaf25141f3a66af3c1d21e5415ce32117
- console.log('自动选择最大优惠券:', maxCoupon);
- this.isFirstLoad = false;
- // 重新计算订单价格
- if (this.type == 'win') {
- this.computedRewardOrder()
- } else {
- this.computedOrder()
- }
- },
- openCoupon() {
- console.log("点了优惠券列表")
- if (!this.liveId || !this.goodsId) {
- console.log('缺少必要参数,跳过优惠券请求');
- return;
- }
- const data = {
- liveId: this.liveId,
- goodsId: this.goodsId
- };
- curCoupon(data).then(res => {
- this.couponsList = res.data || [];
- if (this.isFirstLoad) {
- setTimeout(() => {
- this.autoSelectMaxCoupon();
- }, 100);
- }
- })
- },
- openAddress() {
- uni.navigateTo({
- url: '/pages_user/user/address'
- })
- },
- // 提交订单
- async submitOrder() {
- <<<<<<< HEAD
- try {
- if (this.orderKey == null) {
- uni.showToast({
- icon: 'none',
- title: '订单KEY不存在',
- });
- return;
- }
- if (this.address == null) {
- uni.showToast({
- icon: 'none',
- title: '收货地址不能为空',
- });
- return;
- }
- let orderList;
- if (this.type == "win") {
- orderList = await this.createRewardOrder(); // 中奖订单
- } else {
- orderList = await this.createLiveOrder(); // 购买订单
- }
- console.log("orderList>>", orderList)
- const orderListStr = encodeURIComponent(JSON.stringify(orderList));
- uni.navigateTo({
- url: `/pages_shopping/live/paymentOrder?orderList=${orderListStr}&couponUserId=${this.couponUserId}&type=${this.type}`
- });
- } catch (error) {
- console.error('提交订单错误:', error);
- uni.showToast({
- title: error.message || '提交订单失败',
- icon: 'none'
- });
- }
- },
- }
- }
- </script>
- <style lang="scss">
- .inner-box {
- padding: 20rpx 20rpx 140rpx;
- .address-box {
- margin-bottom: 20rpx;
- box-sizing: border-box;
- min-height: 171rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- background-repeat: no-repeat;
- background-size: 100% 30rpx;
- background-position: left bottom;
- padding: 38rpx 30rpx 36rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- width: 92%;
- .name-box {
- display: flex;
- align-items: center;
- .text {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- line-height: 1;
- &.name {
- margin-right: 30rpx;
- }
- }
- }
- .address {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- line-height: 42rpx;
- text-align: left;
- margin-top: 23rpx;
- }
- }
- .arrow-box {
- width: 12rpx;
- height: 23rpx;
- display: flex;
- align-items: cenetr;
- justify-content: cenetr;
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
- .price-info {
- background: #FFFFFF;
- border-radius: 16rpx;
- &-title {
- padding: 30rpx 30rpx 20rpx 30rpx;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 30rpx;
- color: #111;
- }
- &-unit {
- font-size: 24rpx;
- }
- &-num {
- font-size: 28rpx;
- }
- }
- .points {
- height: 88rpx;
- padding: 0 30rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- display: flex;
- align-items: center;
- image {
- width: 28rpx;
- height: 28rpx;
- margin-right: 20rpx;
- }
- .text {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .right {
- display: flex;
- align-items: center;
- .text {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- }
- image {
- margin-left: 15rpx;
- width: 14rpx;
- height: 24rpx;
- }
- }
- }
- }
- .btn-foot {
- box-sizing: border-box;
- width: 100%;
- height: 121rpx;
- background: #FFFFFF;
- padding: 16rpx 30rpx 16rpx 60rpx;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- position: fixed;
- left: 0;
- bottom: 0;
- z-index: 99;
- .right {
- display: flex;
- align-items: center;
- .total {
- display: flex;
- align-items: flex-end;
- margin-right: 36rpx;
- .label {
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1.5;
- }
- .price {
- display: flex;
- align-items: flex-end;
- .unit {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1.2;
- margin-right: 10rpx;
- }
- .num {
- font-size: 50rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1;
- }
- }
- }
- .btn {
- width: 200rpx;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- background: #2BC7B9;
- border-radius: 44rpx;
- }
- }
- }
- .coupon {
- height: 100%;
- }
- /*优惠券列表公共*/
- .coupon-list {}
- .coupon-list .item {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 1.7 * 100rpx;
- margin-bottom: 0.16 * 100rpx;
- }
- .coupon-list .item .money {
- background-size: 100% 100%;
- width: 2.4 * 100rpx;
- height: 100%;
- color: #fff;
- font-size: 0.36 * 100rpx;
- font-weight: bold;
- text-align: center;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- position: relative;
- }
- .coupon-list .item .money .img {
- position: absolute;
- width: 2.4 * 100rpx;
- height: 100%;
- color: #fff;
- }
- .coupon-list .item .money .num {
- font-size: 0.6 * 100rpx;
- }
- .coupon-list .item .money .pic-num {
- font-size: 20rpx;
- z-index: 99;
- }
- .coupon-list .item .text {
- width: 4.5 * 100rpx;
- padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
- background-color: #fff;
- box-sizing: border-box;
- }
- .coupon-list .item .text .condition {
- font-size: 0.3 * 100rpx;
- color: #282828;
- height: 0.93 * 100rpx;
- line-height: 0.93 * 100rpx;
- border-bottom: 1px solid #f0f0f0;
- }
- .coupon-list .item .text .data {
- font-size: 0.2 * 100rpx;
- color: #999;
- height: 0.76 * 100rpx;
- }
- .coupon-list .item .text .data .bnt {
- width: 1.36 * 100rpx;
- height: 0.44 * 100rpx;
- border-radius: 0.22 * 100rpx;
- font-size: 0.22 * 100rpx;
- color: #fff;
- text-align: center;
- line-height: 0.44 * 100rpx;
- background-color: red;
- }
- =======
- try {
- if (this.orderKey == null) {
- uni.showToast({
- icon: 'none',
- title: '订单KEY不存在',
- });
- return;
- }
- if (this.address == null) {
- uni.showToast({
- icon: 'none',
- title: '收货地址不能为空',
- });
- return;
- }
- let orderList;
- if (this.type == "win") {
- orderList = await this.createRewardOrder(); // 中奖订单
- } else {
- orderList = await this.createLiveOrder(); // 购买订单
- }
- console.log("orderList>>", orderList)
- const orderListStr = encodeURIComponent(JSON.stringify(orderList));
- uni.navigateTo({
- url: `/pages_shopping/live/paymentOrder?orderList=${orderListStr}&couponUserId=${this.couponUserId}&type=${this.type}`
- });
- } catch (error) {
- console.error('提交订单错误:', error);
- uni.showToast({
- title: error.message || '提交订单失败',
- icon: 'none'
- });
- }
- },
- }
- }
- </script>
- <style lang="scss">
- .inner-box {
- padding: 20rpx 20rpx 140rpx;
- .address-box {
- margin-bottom: 20rpx;
- box-sizing: border-box;
- min-height: 171rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- background-repeat: no-repeat;
- background-size: 100% 30rpx;
- background-position: left bottom;
- padding: 38rpx 30rpx 36rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- width: 92%;
- .name-box {
- display: flex;
- align-items: center;
- .text {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- line-height: 1;
- &.name {
- margin-right: 30rpx;
- }
- }
- }
- .address {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- line-height: 42rpx;
- text-align: left;
- margin-top: 23rpx;
- }
- }
- .arrow-box {
- width: 12rpx;
- height: 23rpx;
- display: flex;
- align-items: cenetr;
- justify-content: cenetr;
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
- .price-info {
- background: #FFFFFF;
- border-radius: 16rpx;
- &-title {
- padding: 30rpx 30rpx 20rpx 30rpx;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 30rpx;
- color: #111;
- }
- &-unit {
- font-size: 24rpx;
- }
- &-num {
- font-size: 28rpx;
- }
- }
- .points {
- height: 88rpx;
- padding: 0 30rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- display: flex;
- align-items: center;
- image {
- width: 28rpx;
- height: 28rpx;
- margin-right: 20rpx;
- }
- .text {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .right {
- display: flex;
- align-items: center;
- .text {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- }
- image {
- margin-left: 15rpx;
- width: 14rpx;
- height: 24rpx;
- }
- }
- }
- }
- .btn-foot {
- box-sizing: border-box;
- width: 100%;
- height: 121rpx;
- background: #FFFFFF;
- padding: 16rpx 30rpx 16rpx 60rpx;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- position: fixed;
- left: 0;
- bottom: 0;
- z-index: 99;
- .right {
- display: flex;
- align-items: center;
- .total {
- display: flex;
- align-items: flex-end;
- margin-right: 36rpx;
- .label {
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1.5;
- }
- .price {
- display: flex;
- align-items: flex-end;
- .unit {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1.2;
- margin-right: 10rpx;
- }
- .num {
- font-size: 50rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1;
- }
- }
- }
- .btn {
- width: 200rpx;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- background: #2BC7B9;
- border-radius: 44rpx;
- }
- }
- }
- .coupon {
- height: 100%;
- }
- /*优惠券列表公共*/
- .coupon-list {}
- .coupon-list .item {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 1.7 * 100rpx;
- margin-bottom: 0.16 * 100rpx;
- }
- .coupon-list .item .money {
- background-size: 100% 100%;
- width: 2.4 * 100rpx;
- height: 100%;
- color: #fff;
- font-size: 0.36 * 100rpx;
- font-weight: bold;
- text-align: center;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- position: relative;
- }
- .coupon-list .item .money .img {
- position: absolute;
- width: 2.4 * 100rpx;
- height: 100%;
- color: #fff;
- }
- .coupon-list .item .money .num {
- font-size: 0.6 * 100rpx;
- }
- .coupon-list .item .money .pic-num {
- font-size: 20rpx;
- z-index: 99;
- }
- .coupon-list .item .text {
- width: 4.5 * 100rpx;
- padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
- background-color: #fff;
- box-sizing: border-box;
- }
- .coupon-list .item .text .condition {
- font-size: 0.3 * 100rpx;
- color: #282828;
- height: 0.93 * 100rpx;
- line-height: 0.93 * 100rpx;
- border-bottom: 1px solid #f0f0f0;
- }
- .coupon-list .item .text .data {
- font-size: 0.2 * 100rpx;
- color: #999;
- height: 0.76 * 100rpx;
- }
- .coupon-list .item .text .data .bnt {
- width: 1.36 * 100rpx;
- height: 0.44 * 100rpx;
- border-radius: 0.22 * 100rpx;
- font-size: 0.22 * 100rpx;
- color: #fff;
- text-align: center;
- line-height: 0.44 * 100rpx;
- background-color: red;
- }
- >>>>>>> 8c8ec24aaf25141f3a66af3c1d21e5415ce32117
- </style>
|