| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067 |
- <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>
- </vie>
- </view>
- <view class="arrow-box">
- <image
- src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/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="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow_gray.png"
- mode=""></image>
- </view>
- </view>
- <!-- 药品列表 -->
- <view class="shopbox" v-for="(shop,idx) in carts" :key="idx">
- <view class="shopbox-name" v-if="shop.storeName && shop.storeName != 'null'">
- <text>{{shop.storeName}}</text>
- </view>
- <view class="goods-list">
- <view v-for="(item,index) in shop.list" :key="index" class="item">
- <view class="img-box">
- <image :src="item.productAttrImage || item.productImage" mode="aspectFill"></image>
- </view>
- <view class="info-box">
- <view>
- <view class="name-box ellipsis2">
- <view class="myotctxt" style="margin-right: 10rpx;" :style="{background:_background(item.productType)}">
- {{$getDictLabelName("storeProductType",item.productType)}}</view>
- {{item.commonName&&item.commonName!=='-'?item.commonName:item.productName}}
- </view>
- <view class="spec ellipsis2">{{item.productAttrName}}</view>
- </view>
- <view class="price-num">
- <view class="price">
- <text class="unit">¥</text>
- <text class="num">{{item.price? item.price.toFixed(2): '0.00'}}</text>
- </view>
- <view class="num">x{{item.cartNum}}</view>
- </view>
- </view>
- </view>
- <!-- 运费 -->
- <view class="points">
- <view class="left">
- <text class="text">运费</text>
- </view>
- <view class="right" v-if="price&&price.length > 0">
- <text
- class="text">{{price[idx].payPostage==null||price[idx].payPostage==0?'免运费':price[idx].payPostage.toFixed(2)}}</text>
- </view>
- </view>
- <!-- 备注 -->
- <view class="points">
- <view class="left">
- <text class="text">备注</text>
- </view>
- <view class="remarks">
- <input type="text" v-model="shop.markinfo" placeholder="备注留言(选填)"
- placeholder-class="input" />
- </view>
- </view>
- </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">{{priceAll.totalPrice.toFixed(2)}}</text>
- </view>
- </view>
- <view class="points">
- <view class="left">
- <image
- src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/points.png"
- mode=""></image>
- <text class="text">可用积分</text>
- </view>
- <view class="right">
- <text class="text">{{priceAll.usedIntegral}}积分</text>
- <evan-switch @change="integralChange" v-model="checked" activeColor="#0bb3f2"
- inactiveColor="rgba(0, 0, 0, 0.1)"></evan-switch>
- </view>
- </view>
- <view class="points" @click="openCoupon()">
- <view class="left">
- <text class="text">优惠券</text>
- </view>
- <view class="right">
- <text class="text">{{couponText}}</text>
- <image
- src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/arrow4.png"
- mode=""></image>
- </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">{{priceAll.payPrice.toFixed(2)}}</text>
- </view>
- </view>
- </view>
- <!-- <view class="points">
- <view class="left">
- <text class="text">服务费</text>
- </view>
- <view class="right">
- <text class="text">{{price.serviceFee? price.serviceFee.toFixed(2):'0.00'}}</text>
- </view>
- </view> -->
- <!-- 备注 -->
- <!-- <view class="remarks">
- <input type="text" v-model="form.mark" placeholder="备注留言(选填)" placeholder-class="input" />
- </view> -->
- <view class="agreement">
- <label>
- <checkbox :checked="isAgreement" color="#2583EB" style="transform:scale(0.7)"
- @click="handleAgreement()" />药品属于特殊商品除药品质量问题外,一经售出,不得退换
- </label>
- </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">{{priceAll.payPrice.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;">
- <view class="coupon-list" v-if="couponsList.length > 0">
- <view class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
- <view class="money">
- <image v-if="item.status==0" class="img"
- src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/coupon1.png"
- mode="widthFix"></image>
- <image v-if="item.status!=0" class="img"
- src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/coupon2.png"
- mode="widthFix"></image>
- <view style="z-index: 999;">
- ¥<span class="num">{{ item.couponPrice }}</span>
- </view>
- <view class="pic-num">满{{ item.useMinPrice }}元可用</view>
- </view>
- <view class="text">
- <view class="condition line1">
- {{ item.couponTitle }}
- </view>
- <view class="data acea-row row-between-wrapper">
- <view>{{ item.limitTime }}到期</view>
- <view class="bnt bg-color-red" @click="couponSelect(item)">选择</view>
- </view>
- </view>
- </view>
- </view>
- <view v-if="couponsList.length == 0" class="no-data-box">
- <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/empty_icon.png"
- mode="aspectFit"></image>
- <view class="empty-title">暂无数据</view>
- </view>
- </view>
- </popupBottom>
- </view>
- </template>
- <script>
- import {getWeixinOrderTemps} from '@/api/common'
- import { confirm, computed, create,selectCacheAddress } from '@/api/myStoreOrder.js'
- import {getMyEnableCouponList} from './api/coupon'
- import popupBottom from '@/components/px-popup-bottom.vue'
- export default {
- components: {
- popupBottom
- },
- data() {
- return {
- isAgreement: true,
- temps: [],
- couponUserId: null,
- couponText: "请选择",
- couponsList: [],
- couponVisible: false,
- price: [],
- address: null,
- carts: [],
- checked: false,
- type: null,
- cartIds: null,
- form: {
- useIntegral: 0,
- orderKey: null,
- addressId: null,
- mark: null,
- companyId: null,
- companyUserId: null,
- createOrderKey: null,
- },
- storeId: '',
- priceAll: {
- payPrice: 0,
- totalPostage: 0,
- usedIntegral: 0,
- totalPrice: 0.00,
- },
- confirmParam: [],
- dataKey: '',
- dataPrescribeKey:''
- }
- },
- computed: {
- _background() {
- //productType: 1:OTC,2:Rx,3:非药品,4:器械
- return (productType) => {
- switch (productType) {
- case 1:
- return '#37E2EA' // OTC
- case 2:
- return 'red' // Rx
- case 3:
- return '#2583EB' // 非药品
- case 4:
- return '#999' // 器械
- default:
- return '#ccc'
- }
- }
- }
- },
- onLoad(option) {
- console.log('option.dataKey',option.confirmParam)
- this.dataKey = option.dataKey||'';
- this.dataPrescribeKey = option.dataPrescribeKey||'';
- this.form.createOrderKey = option.createOrderKey;
- this.form.companyId = option.companyId;
- this.form.companyUserId = option.companyUserId;
- if(this.dataKey) {
- this.getAddress()
- }
- // this.cartIds=option.cartIds;
- this.type = option.type;
- this.storeId = option.storeId;
- this.confirmParam = JSON.parse(decodeURIComponent(decodeURIComponent(option.confirmParam)))
- this.confirm();
- uni.$on('updateAddress', (e) => {
- if(e&&e.addressId) {
- this.dataKey = ''
- this.address = e;
- this.form.addressId = e.addressId;
- this.computed()
- }
- })
- this.getWeixinOrderTemps();
- },
- onUnload() {
- uni.$off('updateAddress')
- },
- methods: {
- getAddress() {
- const param = {
- dataKey: this.dataKey,
- companyUserId:this.form.companyUserId
- }
- selectCacheAddress(param).then(res=>{
- if(res.code==200) {
- this.address = res.data;
- this.form.addressId = res.data.addressId;
- }else{
- uni.showToast({
- icon:'none',
- title: res.msg,
- });
- }
- })
- },
- handleAgreement() {
- this.isAgreement = !this.isAgreement;
- },
- getWeixinOrderTemps: function() {
- getWeixinOrderTemps().then(
- res => {
- if (res.code == 200) {
- this.temps = res.temp
- console.log(this.temps)
- } else {
- }
- },
- rej => {}
- );
- },
- couponSelect(item) {
- this.couponText = "-¥" + item.couponPrice.toFixed(2);
- this.couponUserId = item.id;
- this.couponVisible = false;
- this.computed();
- },
- openCoupon() {
- let that = this;
- var data = {
- couponType: 0,
- useMinPrice: this.price.payPrice
- };
- getMyEnableCouponList(data).then(res => {
- this.couponVisible = true;
- that.couponsList = res.data
- })
- },
- integralChange(e) {
- console.log(e)
- this.form.useIntegral = e ? 1 : 0
- this.computed()
- },
- confirm() {
- if (this.confirmParam && this.confirmParam.length > 0) {
- confirm(this.confirmParam).then(
- res => {
- if (res.code == 200) {
- this.carts = res.carts.map(item => ({
- ...item,
- markinfo: ""
- }));
- this.form.orderKey = res.orderKeys;
- if (res.address != null) {
- this.form.addressId = res.address.id;
- this.address = res.address;
- }
- this.computed()
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- }
- },
- rej => {}
- )
- } else {
- uni.showToast({
- icon: 'none',
- title: '订单参数不存在~',
- });
- }
- },
- computed() {
- let data = {
- companyId: this.form.companyId,
- couponUserId: this.couponUserId,
- orderKeys: this.form.createOrderKey ? [this.form.createOrderKey] : this.form.orderKey,
- addressId: this.form.addressId,
- useIntegral: this.form.useIntegral,
- // createOrderKey:this.form.createOrderKey
- };
- computed(data).then(
- res => {
- if (res.code == 200) {
- this.price = res.data && res.data.length > 0 ? res.data : []
- this.priceAll = res.data && res.data.length > 0 ? res.data[res.data.length - 1] : {
- payPrice: 0,
- totalPostage: 0,
- usedIntegral: 0,
- totalPrice: 0.00,
- }
- } else {
- if (res.code == 501) {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- setTimeout(function() {
- uni.navigateBack({
- delta: 1
- })
- }, 500);
- return;
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- }
- }
- },
- rej => {}
- );
- },
- // 提交订单
- submitOrder() {
- var that = this;
- if (this.form.orderKey == null || this.form.orderKey.length == 0) {
- uni.showToast({
- icon: 'none',
- title: '订单KEY不存在',
- });
- return;
- }
- if (this.form.addressId == null) {
- uni.showToast({
- icon: 'none',
- title: '收货地址不能为空',
- });
- return;
- }
- if (!this.isAgreement) {
- uni.showToast({
- icon: 'none',
- title: '购买前请同意相关须知',
- });
- return;
- }
- uni.requestSubscribeMessage({
- tmplIds: this.temps,
- success(res) {
- that.createOrder();
- },
- fail(res) {
- that.createOrder();
- }
- })
- },
- createOrder() {
- const mark = this.carts.map(item => item.markinfo)
- var that = this;
- var data = null;
- var tuiUserId = uni.getStorageSync('tuiUserId');
- uni.showLoading({
- title: '正在处理中...'
- });
- // if(tuiUserId!=null&&tuiUserId!=undefined&&tuiUserId>0){
- // data = {orderCreateType:1,tuiUserId:tuiUserId,companyId:this.form.companyId,companyUserId:this.form.companyUserId,couponUserId:this.couponUserId,mark:mark,orderKeys:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral,payType:1,appId: getApp().globalData.appId};
- // }
- // else{
- // data = {orderCreateType:1,companyId:this.form.companyId,companyUserId:this.form.companyUserId,couponUserId:this.couponUserId,mark:mark,orderKeys:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral,payType:1,appId: getApp().globalData.appId};
- // }
- if (tuiUserId != null && tuiUserId != undefined && tuiUserId > 0) {
- data = {
- createOrderKey: '',
- orderCreateType: 3,
- tuiUserId: tuiUserId,
- companyId: this.form.companyId,
- companyUserId: this.form.companyUserId,
- couponUserId: this.couponUserId,
- mark: mark,
- orderKeys: this.form.createOrderKey ? [this.form.createOrderKey] : this.form.orderKey,
- addressId: this.form.addressId,
- useIntegral: this.form.useIntegral,
- payType: 1,
- appId: getApp().globalData.appId,
- };
- } else {
- data = {
- createOrderKey: '',
- orderCreateType: 3,
- companyId: this.form.companyId,
- companyUserId: this.form.companyUserId,
- couponUserId: this.couponUserId,
- mark: mark,
- orderKeys: this.form.createOrderKey ? [this.form.createOrderKey] : this.form.orderKey,
- addressId: this.form.addressId,
- useIntegral: this.form.useIntegral,
- payType: 1,
- appId: getApp().globalData.appId,
- dataKey: this.dataKey
- };
- }
- if (this.storeId != null && this.storeId > 0) {
- data.storeId = this.storeId;
- }
- if (this.dataKey) {
- data.dataKey = this.dataKey;
- }
- create(data).then(
- res => {
- uni.hideLoading()
- if (res.code == 200) {
- uni.hideLoading()
- if (res.data.some(item => item.order.isPrescribe) == 1) {
- setTimeout(function() {
- let orderIds = res.data.filter(item => item.order.isPrescribe == 1).map(
- it => it.order.id)
- orderIds = orderIds.join(',')
- uni.redirectTo({
- url: "/pages_shopping/prescribe?orderId=" + orderIds+"&dataPrescribeKey="+that.dataPrescribeKey +"&dataKey="+that.dataKey+
- "&combinationOrderId=" + encodeURIComponent(res.data[0]
- .order.combinationOrderId)
- })
- }, 200);
- } else {
- setTimeout(function() {
- uni.redirectTo({
- url: '/pages_shopping/paymentOrder?combinationOrderId=' +
- encodeURIComponent(res.data[0].order.combinationOrderId)
- })
- }, 200);
- }
- // if(res.order.isPrescribe==1){
- // setTimeout(function(){
- // uni.redirectTo({
- // url:"/pages_shopping/prescribe?orderId="+res.order.id
- // })
- // },200);
- // }
- // else{
- // setTimeout(function(){
- // uni.redirectTo({
- // url: '/pages_shopping/paymentOrder?orderId='+res.order.id
- // })
- // },200);
- // }
- return;
- } else {
- if (res.code == 501) {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- setTimeout(function() {
- uni.navigateBack({
- delta: 1
- })
- }, 200);
- return;
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- }
- }
- },
- rej => {}
- );
- },
- openAddress() {
- uni.navigateTo({
- url: '/pages_user/address'
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .inner-box {
- padding: 20upx 20upx 140upx;
- .address-box {
- box-sizing: border-box;
- min-height: 171upx;
- background: #FFFFFF;
- border-radius: 16upx;
- background-image: url(https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/address_bg.png);
- background-repeat: no-repeat;
- background-size: 100% 30upx;
- background-position: left bottom;
- padding: 38upx 30upx 36upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- width: 92%;
- .name-box {
- display: flex;
- align-items: center;
- .text {
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- line-height: 1;
- &.name {
- margin-right: 30upx;
- }
- }
- }
- .address {
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- line-height: 42upx;
- text-align: left;
- margin-top: 23upx;
- }
- }
- .arrow-box {
- width: 12upx;
- height: 23upx;
- display: flex;
- align-items: cenetr;
- justify-content: cenetr;
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
- .shopbox {
- background: #FFFFFF;
- border-radius: 16rpx;
- margin: 20rpx 0;
- .points {
- padding: 0 !important;
- }
- .remarks {
- padding: 0 !important;
- }
- }
- .shopbox-name {
- padding: 30rpx 30rpx 0 30rpx;
- font-family: PingFang SC, PingFang SC;
- font-weight: bold;
- font-size: 30rpx;
- color: #111;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .goods-list {
- // margin-top: 20upx;
- padding: 0 30upx;
- background-color: #FFFFFF;
- border-radius: 16upx;
- .item {
- padding: 30upx 0;
- border-bottom: 1px solid #EDEEEF;
- display: flex;
- align-items: center;
- .img-box {
- width: 160upx;
- height: 160upx;
- margin-right: 30upx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .info-box {
- width: calc(100% - 190upx);
- height: 160upx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .name-box {
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 40upx;
- .tag {
- display: inline-block;
- padding: 0 6upx;
- height: 30upx;
- background: linear-gradient(90deg, #66b2ef 0%, #0bb3f2 100%);
- border-radius: 4upx;
- margin-right: 10upx;
- font-size: 22upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 30upx;
- float: left;
- margin-top: 7upx;
- }
- }
- .spec {
- margin-top: 10upx;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- }
- .price-num {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .price {
- display: flex;
- align-items: flex-end;
- .unit {
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 1.2;
- margin-right: 4upx;
- }
- .num {
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- line-height: 1;
- }
- }
- .num {
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- }
- }
- }
- }
- .sub-total {
- height: 88upx;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .label {
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- .price {
- display: flex;
- align-items: flex-end;
- .unit {
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF6633;
- line-height: 1.2;
- margin-right: 4upx;
- }
- .num {
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1;
- }
- }
- }
- }
- .price-info {
- background: #FFFFFF;
- border-radius: 16upx;
- &-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: 88upx;
- width: 100%;
- padding: 0 30upx;
- box-sizing: border-box;
- background: #FFFFFF;
- border-radius: 16upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- display: flex;
- align-items: center;
- image {
- width: 28upx;
- height: 28upx;
- margin-right: 20upx;
- }
- .text {
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .right {
- display: flex;
- align-items: center;
- .text {
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #111111;
- }
- image {
- margin-left: 15upx;
- width: 14upx;
- height: 24upx;
- }
- }
- }
- .remarks {
- height: 88upx;
- padding: 0 30upx;
- background: #FFFFFF;
- border-radius: 16upx;
- display: flex;
- align-items: center;
- input {
- width: 100%;
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #000000;
- }
- .input {
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- }
- }
- .agreement {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: red;
- padding: 30rpx 0;
- }
- .btn-foot {
- box-sizing: border-box;
- width: 100%;
- height: 121upx;
- background: #FFFFFF;
- padding: 16upx;
- 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: 36upx;
- .label {
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1.5;
- }
- .price {
- display: flex;
- align-items: flex-end;
- .unit {
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1.2;
- margin-right: 10upx;
- }
- .num {
- font-size: 50upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1;
- }
- }
- }
- .btn {
- width: 200upx;
- height: 88upx;
- line-height: 88upx;
- text-align: center;
- font-size: 30upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- background: #0bb3f2;
- border-radius: 44upx;
- }
- }
- }
- //
- </style>
- // <style lang="less" scoped>
- .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;
- }
- .coupon-list .item .text .data .bnt.gray {
- background-color: #ccc;
- }
- </style>
|