12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013 |
- <template>
- <view class="padding-t-30">
- <view class="qrimg">
- <tki-qrcode :cid="ciddk" ref="qrcodet" :val="valdk" :size="size" :unit="unit" :background="background"
- :foreground="foreground" :pdground="pdground" :icon="icon" :iconSize="iconSize" :lv="lv" :onval="onval"
- :showLoading="showLoading" :loadMake="loadMake" :usingComponents="usingComponents" @result="qrRdk" />
- <canvas :style="{ width:cw + 'rpx', height: ch+'rpx',}" canvas-id="myCanvass" id="myCanvass"
- class="hb"></canvas>
- </view>
- <!-- 地址 -->
- <navigator url="" class="address-section">
- <view class="order-content" v-if="userInfo.store_id">
- <view class="addAddress">
- <text class="iconfont iconaddition"></text>
- <text>推荐渠道</text>
- </view>
- </view>
- <view class="order-content" v-else>
- <view class="cen">
- <view class="top">
- <text class="name">{{ shopDetail.name }}</text>
- <text class="mobile">{{ shopDetail.phone }}</text>
- </view>
- <text
- class="address flex">{{ shopDetail.address.split(',')[0] + shopDetail.address.split(',')[1] }}{{ shopDetail.name }}</text>
- </view>
- <text class="iconfont iconenter"></text>
- </view>
- </navigator>
- <view class="goodsList">
- <view class="goods-section" v-for="(ls, ind) in shopList" :key="ind">
- <!-- 商品列表 -->
- <view class="g-item">
- <image :src="ls.productInfo.image"></image>
- <view class="right">
- <text class="title clamp">{{ ls.productInfo.store_name }}</text>
- <text class="spec">{{ ls.productInfo.attrInfo ? ls.productInfo.attrInfo.suk : '默认' }}</text>
- <view class="price-box">
- <text
- class="price">¥{{ ls.productInfo.attrInfo ? ls.productInfo.attrInfo.price : ls.productInfo.price }}</text>
- <text class="number">{{ 'x ' + ls.cart_num + (ls.productInfo.unit_name || '') }}</text>
- <!-- <view class="number">
- <uni-number-box class="step" :value="lss.number" :index="indx" @eventChange="numberChange"></uni-number-box>
- </view> -->
- </view>
- <view class="serverSet" v-if="ls.day>0">
- (<text>服务费:{{ls.day_deducted}}</text>
- <text class="margin-l-10">服务天数:{{ls.day}}天</text>)
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 金额明细 -->
- <view class="yt-list">
- <!-- <view class="yt-list-cell b-b">
- <text class="cell-tit clamp">运费</text>
- <text class="cell-tip disabled">{{ Postage }}</text>
- </view> -->
- <view class="yt-list-cell b-b" v-if="deposit">
- <text class="cell-tit clamp">押金</text>
- <text class="cell-tip disabled">{{ deposit }}</text>
- </view>
- <view class="yt-list-cell b-b">
- <text class="cell-tit clamp">备注</text>
- <input class="desc" type="text" v-model="desc" placeholder="请填写备注信息" placeholder-class="placeholder" />
- </view>
- <view class="yt-list-cell b-b" @click="userQxq()" >
- <view class="cell-tit flex" >
- <image class="orderIcon" src="../../static/icon/qxq.png" mode="widthFix"></image>
- <text class="margin-l-10">使用骑行券抵扣(可用骑行券({{userInfo.certificate}})</text>
- </view>
- <image class="checked" v-if="isqxq" src="../../static/icon/addressIconXz.png" mode="widthFix">
- </image>
- <view v-else class="noChecked"></view>
- </view>
- </view>
- <view class="yt-list">
- <view class="yt-list-cell b-b" @click="choosePayType('pxz')">
- <view class="cell-tit flex">
- <image class="orderIcon" src="../../static/icon/zqdk.png" mode="widthFix"></image>
- <text class="margin-l-10">使用代扣</text>
- </view>
- <image class="checked" v-if="payType=='pxz'" src="../../static/icon/addressIconXz.png"
- mode="widthFix"></image>
- <view v-else class="noChecked"></view>
- </view>
- <view class="yt-list-cell b-b" v-if="fx" @click="choosePayType('weixin')">
- <view class="cell-tit flex">
- <image class="orderIcon" src="../../static/icon/orderWx.png" mode="widthFix"></image>
- <text class="margin-l-10">微信支付</text>
- </view>
- <image class="checked" v-if="payType=='weixin'" src="../../static/icon/addressIconXz.png"
- mode="widthFix"></image>
- <view v-else class="noChecked"></view>
- </view>
- <!-- #ifdef APP-PLUS -->
- <view class="yt-list-cell b-b" @click="choosePayType('ali')">
- <view class="cell-tit flex">
- <image class="orderIcon" src="../../static/icon/orderAli.png" mode="widthFix"></image>
- <text class="margin-l-10">支付宝</text>
- </view>
- <image class="checked" v-if="payType=='ali'" src="../../static/icon/addressIconXz.png" mode="widthFix">
- </image>
- <view v-else class="noChecked"></view>
- </view>
- <!-- #endif -->
- <view class="yt-list-cell b-b" @click="choosePayType('yue')">
- <view class="cell-tit flex">
- <image class="orderIcon" src="../../static/icon/ye.png" mode="widthFix"></image>
- <text class="margin-l-10">余额({{now_money}})</text>
- </view>
- <image class="checked" v-if="payType=='yue'" src="../../static/icon/addressIconXz.png" mode="widthFix">
- </image>
- <view v-else class="noChecked"></view>
- </view>
-
- </view>
- <view class="myj-wrap" v-if="dkQrcodeUrl">
- <view class="ewm-wrap">
- <!-- <canvas :style="{ width:cw + 'rpx', height: ch+'rpx',}" canvas-id="myCanvass" id="myCanvass"
- class="hb"></canvas> -->
- <image :src="dkQrcodeUrl" mode="" :style="{ width:cw + 'rpx', height: ch+'rpx',}"></image>
- </view>
- <view class="bcewm" @click="saveShareQrcode('dkQrcodeUrl')">
- 保存二维码
- </view>
- </view>
- <!-- 底部 -->
- <view class="footer" v-show="!dkQrcodeUrl">
- <view class="price-content">
- <text>实付款</text>
- <text class="price-tip">¥</text>
- <text class="price">{{ payPrice }}</text>
- </view>
- <text class="submit" :class="{submitNo:payLoding}" @click="payLoding?'':submit()">{{payType == 'pxz'? '生成二维码': '提交订单'}}</text>
- </view>
- </view>
- </template>
- <script>
- import {loadIndexs,createSignFLow} from '@/api/index.js'
- import {
- mapState
- } from 'vuex';
- import {
- confirm,
- computedOrderkey,
- createOrderkey,
- orderPay
- } from '@/api/order.js';
- import {
- getUserInfo
- } from '@/api/user.js';
- // #ifdef H5
- import weixinObj from "@/plugin/jweixin-module/index.js";
- // #endif
- export default {
- data() {
- return {
- isqxq: false,//是否使用骑行券
- ewmw: 300, //二维码相对宽度
- cw: 702, //画布相对宽度
- ch: 600, //画布相对高度
- dkQrcodeUrl: '',
- canvasW: '', //画布宽度
- canvasH: '', //画布高度
- ewmImg: '', //二维码图片信息
- erweimasrc: '', //生成的二维码图片
- dkerweima: '',
- ciddk: 'dk-qrcode-canvas', //canvasId,页面存在多个二维码组件时需设置不同的ID
- size: 300, //生成的二维码大小
- unit: 'upx', //大小单位尺寸
- // show: true,//默认使用组件中的image标签显示二维码
- val: '', //要生成的内容
- valdk: '',
- background: '#ffffff', //二维码背景色
- foreground: '#333333', //二维码前景色
- pdground: '#333333', //二维码角标色
- icon: '', //二维码图标URL(必须是本地图片,网络图需要先下载至本地)
- iconSize: 40, //二维码图标大小
- lv: 3, //容错级别
- onval: true, //监听val值变化自动重新生成二维码
- loadMake: true, //组件初始化完成后自动生成二维码,val需要有值
- usingComponents: false, //是否使用了自定义组件模式(主要是为了修复非自定义组件模式时 v-if 无法生成二维码的问题)
- showLoading: false, //是否显示loading
- is_battery: 0,
- is_booster: 0,
- battery_deposit: 0,//押金
- userInfo: {},
- deposit_waiver: false,//是否免押
- payType: '',
- desc: '', //备注
- // 收货地址
- addressData: {},
- // 商品列表
- shopList: [],
- // 购物车id
- cartId: '',
- //购物金额详情
- moneyAll: {
- storeFreePostage: 0, //邮费优惠
- storePostage: 0, //邮费
- totalPrice: 0, //总支付金额
- vipPrice: 0 //vip优惠价
- },
- payPrice: 0, //总支付金额
- orderKey: '', //订单id
- payLoding: true, //判断是否支付中
- orderId: '', //订单id
- now_money: 0, //余额
- onShopId: -1, //默认-1为不存在商家id
- deposit: 0,//押金
- };
- },
- onLoad(option) {
- // 保存当前商品在购物车中的id
- this.cartId = option.id;
- // 判断是否要读取商家id
- if (option.shopId) {
- this.onShopId = option.shopId;
- }
- if(option.is_battery) {
- this.is_battery = option.is_battery
- }
- if(option.is_booster) {
- this.is_booster = option.is_booster
- }
- this.loadData();
- this.userinfo();
- this.loadIndexs()
- console.log('shopDetail',this.shopDetail);
- },
- watch:{
- isqxq(n,o) {
- this.payMoneyNub()
- }
- },
- computed: {
- Postage() {
- let money = +this.moneyAll.storePostage;
- if (money == 0) {
- return '免运费';
- } else {
- return '¥' + money;
- }
- },
- payAllMoney() {
- return +this.moneyAll.totalPrice + +this.moneyAll.vipPrice;
- },
- ...mapState('shop', ['shopDetail']),
- ...mapState(['fx'])
- },
- methods: {
- userQxq() {
- if(this.payType == 'pxz') {
- return this.$api.msg('周期代扣无法使用骑行券')
- }
- this.isqxq = !this.isqxq
- },
- choosePayType(payType) {
- if(payType == this.payType) {
- return
- }
- this.dkQrcodeUrl = ''
- if(payType == 'pxz' && this.userInfo.battery_deposit == 0) {
- return uni.showModal({
- title: '提示',
- content: '您未支付押金,暂无法使用代扣服务。',
- showCancel: false,
- });
- }
- this.payType = payType
- if(this.payType == 'pxz') {
- this.isqxq = false
- }
- },
- // 获取图片信息
- getImageInfo(image) {
- return new Promise((req, rej) => {
- uni.getImageInfo({
- src: image,
- success: function(res) {
- req(res)
- },
- });
- })
- },
- // 获取设备信息
- getSystemInfo() {
- return new Promise((req, rej) => {
- uni.getSystemInfo({
- success: function(res) {
- req(res)
- }
- });
- })
- },
- async createPoster(imgname, ewmimg, cavid, tit = '') {
- let that = this
- // 获取设备信息,主要获取宽度,赋值给canvasW 也就是宽度:100%
- that.SystemInfo = await that.getSystemInfo();
-
- that.ewmImg = await that.getImageInfo(ewmimg);
- // this.canvasW = this.SystemInfo.windowWidth; // 画布宽度
- that.ratio = that.SystemInfo.windowWidth / 750;
- that.canvasW = that.cw * that.ratio;
- this.canvasH = that.ch * that.ratio;
- that.ewmW = that.ewmw * that.ratio;
-
- // 如果主图,二维码图片,设备信息都获取成功,开始绘制海报,这里需要用setTimeout延时绘制,否则可能会出现图片不显示。
- if (that.ewmImg.errMsg == 'getImageInfo:ok' && that.SystemInfo.errMsg == 'getSystemInfo:ok') {
- console.log('二维码和屏幕信息加载完成')
- setTimeout(() => {
- var ctx = uni.createCanvasContext(cavid, that);
- // 填充背景色,白色
- ctx.setFillStyle('#fff'); // 默认白色
- ctx.fillRect(0, 0, this.canvasW, this.canvasH) // fillRect(x,y,宽度,高度)
- // drawImage(图片路径,x,y,绘制图像的宽度,绘制图像的高度)
- ctx.drawImage(this.ewmImg.path, (this.canvasW / 2 - this.ewmW / 2), 100 * that.ratio,
- this.ewmW, this.ewmW) // drawImage(图片路径,x,y,绘制图像的宽度,绘制图像的高度,二维码的宽,高)
- // 3、绘制商品标题,多余文字自动换行
- ctx.setFontSize(16); // setFontSize() 设置字体字号
- ctx.setFillStyle('#333'); // setFillStyle() 设置字体颜色
- ctx.setTextAlign('center')
- ctx.fillText('请使用支付宝扫描上方二维码', this.canvasW / 2, 200 * that.ratio + that.ewmW)
- ctx.fillText(tit, this.canvasW / 2, 260 * that.ratio + that.ewmW)
- ctx.draw(false, (ret) => { // draw方法 把以上内容画到 canvas 中。
- that.fina = true
- uni.canvasToTempFilePath({ // 保存canvas为图片
- canvasId: cavid,
- quality: 1,
- fileType: 'jpg',
- complete: function(res) {
- // 在H5平台下,tempFilePath 为 base64, // 图片提示跨域 H5保存base64失败,APP端正常输出临时路径
- console.log(res)
- // that.canvasShow = false
- that[imgname] = res.tempFilePath
- that.$forceUpdate()
- uni.hideLoading()
- that.payLoding = false;
- // setTimeout(function() {
- // console.log(that.shareQrcodeUrl, that
- // .canvasShow)
- // }, 2000)
- },
- })
- });
- }, 1500)
- } else {
- console.log('err')
- }
- },
- qrRdk(res) {
- this.dkerweima = res
- this.createPoster('dkQrcodeUrl', this.dkerweima, 'myCanvass', '完成代扣服务')
- },
- loadIndexs() {
- loadIndexs().then(res => {
- console.log(res);
- this.battery_deposit = (res.data.battery_deposit*1).toFixed(2)
- })
- },
- // 加载用户基础信息
- userinfo() {
- getUserInfo({}).then(({
- data
- }) => {
- this.userInfo = data
- this.now_money = data.now_money;
- });
- },
- // 计算支付金额
- payMoneyNub() {
- computedOrderkey({
- is_certificate: this.isqxq,
- orderkey: this.orderKey,
- useIntegral: 0, //是否积分抵扣
- addressId: this.addressData.id //地址编号
- })
- .then(({
- data
- }) => {
- this.integralShow = true;
- // 获取支付金额
- this.payPrice = +data.result.pay_price;
- this.integralMoney = data.result.deduction_price;
- this.payLoding = false
- this.deposit = +data.result.deposit
- })
- .catch(e => {
- console.log(e);
- this.payLoding = true
- this.integralShow = false;
- });
- },
- // 加载基础数据
- loadData() {
- let obj = this;
- confirm({
- cartId: obj.cartId + ''
- }).then(({
- data
- }) => {
- obj.addressData = data.addressInfo || {};
- obj.shopList = data.cartInfo; //商品列表
- obj.moneyAll = data.priceGroup; //金额数据
- obj.orderKey = data.orderKey; //订单key
- // 计算金额
- this.payMoneyNub();
- });
- },
- // 提交订单
- submit() {
- let obj = this;
- // if (!this.addressData.real_name) {
- // this.$api.msg('请选择收货地址');
- // return false;
- // }
- if(!obj.payType) {
- return obj.$api.msg('请选择支付方式')
- }
- // 判断是否余额不足
- if (obj.payType == 'yue' && +obj.now_money < obj.payPrice) {
- uni.showModal({
- title: '提示',
- content: '账户余额不足!',
- showCancel: false,
- });
- return;
- }
- if(obj.payType == 'pxz') {
- uni.showLoading({
- title: '二维码生成中',
- mask: true
- })
- }else {
- uni.showLoading({
- title: '支付中',
- mask: true
- })
- }
-
- // 支付中
- obj.payLoding = true;
- // 判断是否为未支付订单中跳转进入
- obj.firstCreateOrder();
- },
- // 订单金额支付
- orderMoneyPay() {
- let obj = this;
- orderPay({
- uni: obj.orderId,
- // #ifdef H5
- from: 'weixin', //来源
- // #endif
- // #ifdef MP-WEIXIN
- from: 'routine', //来源
- // #endif
- // #ifdef APP-PLUS
- from: 'app', //来源
- // #endif
- paytype: obj.payType //支付类型 weixin-微信 yue-余额
- })
- .then(e => {
- // 判断是否微信小程序支付
- if (obj.payType == 'weixin') {
- // #ifdef H5 || MP
- let da = e.data.result.jsConfig;
- let data = {
- nonceStr: da.nonceStr,
- package: da.package,
- signType: da.signType,
- paySign: da.paySign,
- success: function(res) {
- obj.paySuccessTo();
- },
- fail: () => {
- uni.navigateTo({
- url: '/pages/order/order?state=0'
- });
- }
- };
- // #endif
- // #ifdef H5
- data.timestamp = da.timestamp;
- weixinObj.chooseWXPay(data);
- // #endif
- // #ifdef MP-WEIXIN
- data.timeStamp = da.timestamp;
- wx.requestPayment(data);
- // #endif
- // #ifdef APP
- console.log( e.data.result.jsConfig,'返回数值');
- uni.requestPayment({
- provider: 'wxpay',
- orderInfo: e.data.result.jsConfig,
- success(e) {
- obj.paySuccessTo();
- },
- fail: (e) => {
- console.log(e,'支付失败');
- uni.navigateTo({
- url: '/pages/order/order?state=0'
- });
- }
- })
- // #endif
- }
- // #ifdef APP
- if(obj.payType == 'ali'){
- uni.requestPayment({
- provider: 'alipay',
- orderInfo: e.data.result.jsConfig,
- success(e) {
- obj.paySuccessTo();
- },
- fail: (e) => {
- console.log(e,'支付失败');
- uni.navigateTo({
- url: '/pages/order/order?state=0'
- });
- }
- })
- }
- // #endif
- uni.hideLoading();
- obj.payLoding = false;
- })
- .catch(e => {
- // 支付完成
- uni.hideLoading();
- obj.payLoding = false;
- console.log(e);
- });
- },
- // 支付成功跳转
- paySuccessTo() {
- uni.hideLoading();
- uni.redirectTo({
- url: '/pages/user/money/paySuccess?orderid=' + this.orderId,
- });
- },
- // 初次订单创建
- firstCreateOrder() {
- let obj = this;
- // 获取下单页面数据
- let prepage = obj;
- let data = {
- is_car: 0,
- is_certificate: obj.isqxq,
- is_booster: obj.is_booster,
- is_battery: obj.is_battery,
- real_name: prepage.addressData.real_name, //联系人名称
- phone: prepage.addressData.phone, //联系人号码
- addressId: prepage.addressData.id, //支付地址id
- useIntegral: 0, //是否积分抵扣1为是0为否
- payType: obj.payType, //支付类型 weixin-微信 yue-余额
- mark: prepage.desc, //备注
- // #ifdef H5
- from: 'weixin', //来源
- // #endif
- // #ifdef MP-WEIXIN
- from: 'routine', //来源
- // #endif
- // #ifdef APP-PLUS
- from: 'app', //来源
- // #endif
- shipping_type: 2, //提货方式 1 快递 2自提
- };
- // 判断是否需要读取非默认商家id
- if (obj.onShopId != -1) {
- data.store_id = obj.onShopId;
- } else {
- if(obj.userInfo.store_id) {
- data.store_id = obj.userInfo.store_id
- }else {
- data.store_id = obj.shopDetail.id;
- }
- }
- // 生成订单
- createOrderkey(data, obj.orderKey)
- .then(({
- data,
- status,
- msg
- }) => {
- // 判断是否支付失败
- if (data.status == 'ORDER_EXIST') {
- uni.showModal({
- title: '提示',
- content: msg,
- showCancel: false
- });
- uni.hideLoading();
- obj.payLoding = false;
- return;
- }
- // 保存订单号
- obj.orderId = data.result.orderId;
- // 判断是否为余额支付
- if (obj.payType == 'yue') {
- console.log('余额支付', status == 200 && data.status == 'SUCCESS');
- if (status == 200 && data.status == 'SUCCESS') {
- obj.paySuccessTo();
- } else {
- obj.$api.msg(msg);
- }
- } else if( obj.payType == 'pxz'){
- createSignFLow().then(res => {
-
- obj.valdk = res.data.result.link
- })
- }else {
- // 立即支付
- obj.orderMoneyPay();
- }
- })
- .catch(e => {
- uni.hideLoading();
- obj.payLoding = false;
- console.log(e);
- });
- }
- }
- };
- </script>
- <style lang="scss">
- page {
- background: $page-color-base;
- padding-bottom: 100rpx;
- }
- .address-section {
- border-radius: 20rpx;
- padding: 30rpx;
- margin: 0 $page-row-spacing;
- background: #fff;
- position: relative;
- .order-content {
- min-height: 100rpx;
- display: flex;
- align-items: center;
- .leftIcon {
- width: 36rpx;
- margin: 0 30rpx;
- }
- .addAddress {
- text-align: center;
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- .iconaddition {
- font-size: 55rpx;
- line-height: 1;
- border-radius: 100rpx;
- margin-right: 20rpx;
- }
- }
- }
- .iconlocation {
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 90rpx;
- color: #888;
- font-size: 44rpx;
- }
- .cen {
- display: flex;
- flex-direction: column;
- flex: 1;
- font-size: 28rpx;
- color: $font-color-dark;
- }
- .name {
- font-size: 34rpx;
- margin-right: 24rpx;
- }
- .address {
- margin-top: 16rpx;
- margin-right: 20rpx;
- color: $font-color-light;
- }
- .icon-you {
- font-size: 32rpx;
- color: $font-color-light;
- margin-right: 30rpx;
- }
- .a-bg {
- position: absolute;
- left: 0;
- bottom: 0;
- display: block;
- width: 100%;
- height: 5rpx;
- }
- }
- .goodsList {
- margin: 0 $page-row-spacing;
- padding: 30rpx;
- background: #fff;
- border-radius: 20rpx;
- margin-top: 30rpx;
- }
- .goods-section {
- .logo {
- display: block;
- width: 50rpx;
- height: 50rpx;
- border-radius: 100px;
- }
- .name {
- font-size: 30rpx;
- color: $font-color-base;
- margin-left: 24rpx;
- }
- .g-item {
- display: flex;
- image {
- flex-shrink: 0;
- display: block;
- width: 170rpx;
- height: 170rpx;
- border-radius: 4rpx;
- }
- .right {
- flex: 1;
- padding-left: 24rpx;
- overflow: hidden;
- .serverSet {
- font-size: 22rpx;
- color: $font-color-light;
- }
- }
- .title {
- font-size: 30rpx;
- color: $font-color-dark;
- }
- .spec {
- font-size: 26rpx;
- color: $font-color-light;
- }
- .price-box {
- display: flex;
- align-items: center;
- font-size: 32rpx;
- padding-top: 10rpx;
- color: $font-color-light;
- .price {
- margin-bottom: 4rpx;
- }
- .number {
- font-size: 26rpx;
- margin-left: 20rpx;
- }
- }
- .step-box {
- position: relative;
- }
- }
- }
- .yt-list {
- background: #fff;
- margin: 0 $page-row-spacing;
- margin-top: 30rpx;
- border-radius: 20rpx;
- }
- .yt-list-cell {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10rpx 30rpx 10rpx 40rpx;
- line-height: 70rpx;
- position: relative;
- .checked,
- .noChecked {
- width: 36rpx;
- height: 36rpx;
- }
- .noChecked {
- border: 1px solid $font-color-light;
- border-radius: 100rpx;
- }
- &.cell-hover {
- background: #fafafa;
- }
- &.b-b:after {
- left: 30rpx;
- }
- .cell-icon {
- height: 32rpx;
- width: 32rpx;
- font-size: 22rpx;
- color: #fff;
- text-align: center;
- line-height: 32rpx;
- background: #f85e52;
- border-radius: 4rpx;
- margin-right: 12rpx;
- &.hb {
- background: #ffaa0e;
- }
- &.lpk {
- background: #3ab54a;
- }
- }
- .cell-more {
- align-self: center;
- font-size: 24rpx;
- color: $font-color-light;
- margin-left: 8rpx;
- margin-right: -10rpx;
- }
- .cell-tit {
- font-size: 26rpx;
- color: $font-color-light;
- margin-right: 10rpx;
- .orderIcon {
- width: 48rpx;
- }
- }
- .cell-tip {
- font-size: 26rpx;
- color: $font-color-dark;
- &.disabled {
- color: $font-color-light;
- }
- &.active {
- color: $base-color;
- }
- &.red {
- color: $base-color;
- }
- }
- &.desc-cell {
- .cell-tit {
- max-width: 90rpx;
- }
- }
- .desc {
- text-align: right;
- font-size: $font-base;
- color: $font-color-light;
- }
- }
- /* 支付列表 */
- .pay-list {
- padding-left: 40rpx;
- margin-top: 16rpx;
- background: #fff;
- .pay-item {
- display: flex;
- align-items: center;
- padding-right: 20rpx;
- line-height: 1;
- height: 110rpx;
- position: relative;
- }
- .icon-weixinzhifu {
- width: 80rpx;
- font-size: 40rpx;
- color: #6bcc03;
- }
- .icon-alipay {
- width: 80rpx;
- font-size: 40rpx;
- color: #06b4fd;
- }
- .icon-xuanzhong2 {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 60rpx;
- height: 60rpx;
- font-size: 40rpx;
- color: $base-color;
- }
- .tit {
- font-size: 32rpx;
- color: $font-color-dark;
- flex: 1;
- }
- }
- .footer {
- position: fixed;
- left: 0;
- bottom: 0;
- z-index: 995;
- display: flex;
- align-items: center;
- width: 100%;
- height: 90rpx;
- justify-content: space-between;
- font-size: 30rpx;
- background-color: #fff;
- z-index: 998;
- color: $font-color-base;
- box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
- .price-content {
- padding-left: 30rpx;
- }
- .price-tip {
- color: $font-color-base;
- margin-left: 8rpx;
- }
- .price {
- font-size: 36rpx;
- color: $font-color-base;
- }
- .submit {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 280rpx;
- height: 100%;
- color: #fff;
- font-size: 32rpx;
- background-color: $base-color;
- &.submitNo {
- background-color: $font-color-disabled;
- }
- }
- }
- .qrimg {
- position: absolute;
- left: -9999rpx;
- top: -9999rpx;
- }
-
- .ewm-wrap {
- border-radius: 20rpx;
- overflow: hidden;
- }
-
- .bcewm {
- background-color: $base-color;
- color: #fff;
- text-align: center;
- height: 80rpx;
- width: 702rpx;
- border-radius: 40rpx;
- margin: auto;
- margin-top: 30rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- // margin-left: 75rpx;
- }
- .myj-wrap {
- width: 702rpx;
- margin: auto;
- margin-top: 20rpx;
- }
- </style>
|