12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145 |
- <template>
- <view>
- <ujp-navbar title="会员卡详情" :isBack="isMe">
- <view slot="right" style="margin-right: 10px;">
- <view class="iconfont qr-code" @click="openModalBl=true">
- 
- </view>
- </view>
- </ujp-navbar>
- <u-mask :show="show" @click="show = false">
- <u-image width="100%" :mode="'widthFix'" src="@/assets/static/img/guide_point2.png"></u-image>
- </u-mask>
- <u-modal v-model="show2" :content="content2" @confirm="confirmShow2" :show-cancel-button="true"
- confirm-color="#00b962"></u-modal>
- <u-modal v-model="show3" :content="content3" @confirm="confirmShow3" :show-cancel-button="true"
- confirm-color="#00b962"></u-modal>
- <u-modal v-model="openModalBl" @confirm="confirmPhone" confirm-text="拨打电话" confirm-color="#606266"
- :show-cancel-button="true" ref="uModal" :asyncClose="true" title="客服电话" :content="content"
- :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
- <!-- 头部 -->
- <view class="header4" v-if="item.type==4">
- <view class="discount-card-4" >
- <img v-if="regUserCard.status==2" class="corner-mark" src="@/assets/img/nonactivated.png" alt="">
- <view class="top" >
- <view class="right-corner">
- <img class="rightCorner" src="@/assets/img/rightCorner.png" alt="">
-
- </view>
- </view>
-
- <view class="img">
- {{item.name}}
- </view>
- <view class="card-number2" v-if="regUserCard.status==2" >
- 湖北省内平台自营站点充电通用
- </view>
- <view class="card-number" v-if="regUserCard.status==2">
- 卡号:{{regUserCard.cardNo}}
- </view>
- <view class="progress" v-if="regUserCard.status==1">
- <view class="time">
- {{thisendTime(regUserCard.endTime)}}到期 剩余{{setValidity(thisdaysDistance(regUserCard.endTime))}}
- </view>
- <view class="electric-quantity" v-if="regUserCard.classify==2">
- 已用{{regUserCard.chargedDegree}}度 / 共{{regUserCard.chargeDegreeLimit}}度
- </view>
- </view>
- <ujp-line-progress v-if="regUserCard.status==1" active-color="#2979ff"
- :percent="thispercent(regUserCard)"></ujp-line-progress>
-
- </view>
- <img class="cardCover" src="@/assets/img/cardCover.png" alt="">
-
- </view>
- <view :class="{
- header:regUserCard.status==1,
- header2:regUserCard.status==2
- }" v-else >
- <view class="discount-card" >
- <img v-if="regUserCard.status==2" class="corner-mark" src="@/assets/img/nonactivated.png" alt="">
- <view class="top" v-if="regUserCard.status==2">
- <view class="right-corner">
- <img class="rightCorner" src="@/assets/img/rightCorner.png" alt="">
- <img class="icon" v-if="item.type==3" src="@/assets/img/mb-times@3x.png" alt="">
- <img class="picc" v-if="item.type==3" src="@/assets/img/picc.png" alt="">
- </view>
- </view>
- <view class="img">
- <img v-if="item.classify==1" src="@/assets/img/monthCard.png" alt="">
- <img v-else-if="item.classify==2&&item.serviceFeeDiscountRate==60" src="@/assets/img/0.6off.png"
- alt="">
- <img v-else-if="item.classify==2&&item.serviceFeeDiscountRate==50" src="@/assets/img/halfoff.png"
- alt="">
- <img v-else src="@/assets/img/monthCard.png" alt="">
- </view>
- <view class="card-number" v-if="regUserCard.status==2">
- 卡号:{{regUserCard.cardNo}}
- </view>
- <view class="progress" v-if="regUserCard.status==1">
- <view class="time">
- {{thisendTime(regUserCard.endTime)}}到期 剩余{{setValidity(thisdaysDistance(regUserCard.endTime))}}
- </view>
- <view class="electric-quantity" v-if="regUserCard.classify==2">
- 已用{{regUserCard.chargedDegree}}度 / 共{{regUserCard.chargeDegreeLimit}}度
- </view>
- </view>
- <ujp-line-progress v-if="regUserCard.status==1" active-color="#2979ff"
- :percent="thispercent(regUserCard)"></ujp-line-progress>
- <view class="bottom" v-if="regUserCard.status==1">
- <view class="right-corner">
- <img class="rightCorner" src="@/assets/img/rightCorner.png" alt="">
- <img v-if="item.type==3" class="icon" src="@/assets/img/mb-times@3x.png" alt="">
- <img v-if="item.type==3" class="picc" src="@/assets/img/picc.png" alt="">
- </view>
- </view>
- </view>
-
- <img class="cardCover" src="@/assets/img/cardCover.png" alt="">
- </view>
- <!-- 卡片信息 -->
- <view class="main" v-if="regUserCard.status==2">
- <view class="details">
- <view class="headline">
- <view class="title">
- 卡片信息
- </view>
- <view class="show" v-if="!this.showHide" @click="showHide=true">
- 显示<u-icon name="eye"></u-icon>
- </view>
- <view class="hide" v-if="this.showHide" @click="showHide=false">
- 隐藏<u-icon name="eye-off"></u-icon>
- </view>
- </view>
- <view class="content" v-if="this.showHide">
- <view class="item">
- <view class="item-title">
- 卡名
- </view>
- <view class="item-value">
- {{item.name}}
- </view>
- </view>
- <view class="item" v-if="item.type==4">
- <view class="item-title">
- 折扣率
- </view>
- <view class="item-value" style="
-
- ">
- {{item.remark}}
- </view>
-
- </view>
- <view class="item" v-else >
- <view class="item-title">
- 折扣率
- </view>
- <view class="item-value">
- {{regUserCard.classify==1?"服务费全免":""}}
- {{regUserCard.classify==2?"服务费"+(item.serviceFeeDiscountRate/10)+"折":""}}
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 规格
- </view>
- <view class="item-value" v-if="regUserCard.classify==1">
- 服务费全免 (有效期{{setValidity(item.periodOfValidity)}})
- </view>
- <view class="item-value" v-if="regUserCard.classify==2">
- 可用{{item.chargeDegreeLimit}}度(有效期{{setValidity(item.periodOfValidity)}})
- </view>
-
- </view>
-
- </view>
- </view>
- <!-- 按钮 -->
- <view class="btn" v-if="isMe">
- <button class="share" @click="show=true">转赠分享<img class="icon"
- src="@/assets/img/riLine-gift-2-line@3x.png" alt=""></button>
- <button class="activate" @click="show2Btn">立即激活</button>
- </view>
- <view class="btn2" v-else>
- <button class="get" @click="show2Btn">领用会员卡</button>
- </view>
- </view>
- <!-- 卡片信息 -->
- <view class="main" v-if="regUserCard.status==1">
- <view class="title">
- 会员信息
- </view>
- <view class="details">
- <view class="item">
- <view class="item-title">
- 会员昵称
- </view>
- <view class="item-value">
- {{userInfo.nickName}}
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 绑定账号
- </view>
- <view class="item-value">
- {{getphone(userInfo.phone)}}
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 绑定车辆
- </view>
- <view class="item-value">
- {{userInfo.carNum}}
- </view>
- </view>
- </view>
- <view class="title">
- 卡片信息
- </view>
- <view class="details">
- <view class="item">
- <view class="item-title">
- 卡状态
- </view>
- <view class="item-value">
- 已激活
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 卡名
- </view>
- <view class="item-value">
- {{item.name}}
- </view>
- </view>
- <view class="item" v-if="item.type==4">
- <view class="item-title">
- 折扣率
- </view>
- <view class="item-value" style="
-
- ">
- {{item.remark}}
- </view>
-
- </view>
- <view class="item" v-else>
- <view class="item-title">
- 折扣率
- </view>
- <view class="item-value" v-if="item.classify==1">
- 服务费全免
- </view>
- <view class="item-value" v-if="item.classify==2">
- {{item.serviceFeeDiscountRate/10}}折
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 规格
- </view>
- <view class="item-value" v-if="regUserCard.classify==1">
- 服务费全免 (有效期{{setValidity(item.periodOfValidity)}})
- </view>
- <view class="item-value" v-if="regUserCard.classify==2">
- 可用{{item.chargeDegreeLimit}}度(有效期{{setValidity(item.periodOfValidity)}})
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 有效期
- </view>
- <view class="item-value">
- {{regUserCard.startTime.substring(0,10)}}至{{regUserCard.endTime.substring(0,10)}}
- </view>
- </view>
- <view class="item" v-if="regUserCard.classify==2">
- <view class="item-title">
- 剩余度数
- </view>
- <view class="item-value">
- {{(regUserCard.chargeDegreeLimit-regUserCard.chargedDegree).toFixed(0)}}度
- </view>
- </view>
- <view class="item">
- <view class="item-title">
- 卡号
- </view>
- <view class="item-value">
- {{regUserCard.cardNo}}
- </view>
- </view>
- </view>
- <!-- 按钮 -->
- <button class="check" @click="gotoUrl('pages/article/details?code=FWF6ZK')">查看使用规则</button>
- </view>
- </view>
- </template>
- <script>
- // import * as API from '@/apis/index.js'
- import * as API from '@/apis/order.js'
- import * as API_weixin from '@/apis/weixin.js'
- import wx from 'weixin-js-sdk'
- import {
- newDate,
- daysDistance
- } from '@/utils'
- export default {
- data() {
- return {
- id: "",
- item: {},
- regUserCard: {},
- orderInfo: {},
- content: "400-8899-619",
- openModalBl: false,
- expireUserCardList: [],
- showHide: false,
- show2: false,
- show: false,
- content2: '确认激活此会员卡吗?',
- content3: '领用会员卡需要注册成为会员,点击前往',
- show3: false,
- //userCard: {},
- isMe: false,
- projectName: "",
- userInfo: {},
- carNum: ""
- }
- },
- onLoad(op) {
-
- this.id = op.id
- this.get_wx_config();
- //this.userInfo=this.carhelp.getPersonInfo()
- this.projectName = process.car.ProjectName;
- var info = this.carhelp.getPersonInfo()
- if (info.id && info.userType == 2) {
- } else {
- this.show3 = true
- }
- this.getChargeList();
- },
- onReady() {
- var consumerPhone = "400-8899-619"
- // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
- if (consumerPhone) {
- this.content = consumerPhone
- }
- },
- methods: {
- getphone(phone) {
- var phoneget = ""
- if (phone) {
- var phone1 = phone.slice(0, 3);
- var phone2 = phone.slice(-4);
- phoneget = phone1 + '****' + phone2;
- }
- return phoneget;
- },
- show2Btn() {
- var info = this.carhelp.getPersonInfo()
- if (info.id && info.userType == 2) {
- this.show2 = true
- } else {
- this.show3 = true
- }
- },
- confirmShow3() {
- uni.navigateTo({
- url: "/pages/login/login?jpcode2=card&codeId=" + this.id
- })
- },
- confirmShow2() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.activateCard({
- id: this.id
- }).then((res) => {
- uni.hideLoading();
- uni.showToast({
- title: "领取成功"
- })
- this.getChargeList();
- //console.log(obj)
- //this.recordsTotal = res.data.recordsTotal;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- //获取微信jssdk配置信息
- get_wx_config() {
- //("get_wx_configget_wx_configget_wx_configget_wx_config")
- var _this = this
- API_weixin.getConfig().then(response => {
- var wxconfig = response.data.wxConfig;
- console.log(222)
- wx.config({
- debug: false, // 开启调试模式,
- appId: wxconfig.appId, // 必填,企业号的唯一标识,此处填写企业号corpid
- timestamp: wxconfig.timestamp, // 必填,生成签名的时间戳
- nonceStr: wxconfig.nonceStr, // 必填,生成签名的随机串
- signature: wxconfig.signature, // 必填,签名,见附录1
- jsApiList: ['updateAppMessageShareData',
- 'updateTimelineShareData', 'onMenuShareTimeline', 'onMenuShareAppMessage',
- 'onMenuShareQQ', 'onMenuShareQZone'
- ], // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
- });
- console.log(222)
- _this.wxShare()
- wx.error(function(res) {
- console.log('微信api配置出错');
- });
- }).catch(error => {
- //(error);
- })
- },
- //微信分享自定义
- wxShare() {
- console.log(111)
- var img =
- "http://oss.xiaoxinda.com/charging/chargingconfigure/2022/6/6/ec228c56-487a-4ae1-ac6f-37284060fbba/hongbao.jpg"
- // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
- // if (indexLogo) {
- // this.indexLogo = indexLogo;
- // }
- var info = this.carhelp.getPersonInfo()
- //var img=require("@/static/img/aboutus.png")
- ////(this.nowItem);
- var ProjectName = process.car.ProjectName; //info.nickName+
- var nickName = info.nickName ? info.nickName : '好友';
- var title = nickName + "赠送您一张"
- if(this.item.type==4){
- title += "'"+this.projectName+this.item.name+"'"
- }else if (this.item.classify == 1) {
- title += "'服务费月卡'"
- } else if (this.item.classify == 2 && this.item.serviceFeeDiscountRate == 60) {
- title += "'服务费6折卡'"
- } else if (this.item.classify == 2 && this.item.serviceFeeDiscountRate == 50 && this.item
- .periodOfValidity == 365) {
- title += "'充电5折卡年卡'"
- } else if (this.item.classify == 2 && this.item.serviceFeeDiscountRate == 50) {
- title += "'服务费5折卡'"
- }
- //"["+ProjectName+"]"+'和好友一起领5元红包'
- // <img v-if="item.classify==1" src="@/assets/img/monthCard.png" alt="">
- // <img v-else-if="item.classify==2&&item.serviceFeeDiscountRate==60" src="@/assets/img/0.6off.png" alt="">
- // <img v-else-if="item.classify==2&&item.serviceFeeDiscountRate==50" src="@/assets/img/halfoff.png" alt="">
- // <img v-else src="@/assets/img/monthCard.png" alt="">
- var desc = ProjectName
- let joinUrl = window.location.href.split("/team51/")[0] + "/team51/#/pages/cardBag/cardDetail?id=" + this
- .id
- //this.joinUrl=joinUrl;
- var _this = this;
- wx.ready(function() {
- wx.onMenuShareAppMessage({
- title: title,
- desc: desc,
- link: joinUrl,
- imgUrl: img,
- success: function() {
- // 设置成功
- _this.$emit("wxShare", null);
- }
- })
- wx.onMenuShareTimeline({
- title: title,
- desc: desc,
- link: joinUrl,
- imgUrl: img,
- success: function() {
- // 设置成功
- _this.$emit("wxShare", null);
- }
- })
- wx.updateAppMessageShareData({
- title: title,
- desc: desc,
- link: joinUrl,
- imgUrl: img,
- success: function() {
- //("updateAppMessageShareData")
- // 设置成功
- _this.$emit("wxShare", null);
- }
- })
- wx.updateTimelineShareData({
- title: title,
- desc: desc,
- link: joinUrl,
- imgUrl: img,
- success: function() {
- //("updateTimelineShareData")
- // 设置成功
- _this.$emit("wxShare", null);
- }
- })
- console.log("readyreadyreadyreadyready")
- });
- },
- thisendTime(endTime) {
- if (endTime) {
- var reg = new RegExp('-', 'gi')
- var str = endTime.substring(0, 10).replace(reg, '.')
- return str
- }
- return ''
- },
- thispercent(userCard) {
- if (userCard.classify == 1) {
- var k1 = daysDistance(userCard.startTime, userCard.endTime)
- var k2 = this.thisdaysDistance(userCard.endTime)
- var p = (k1 - k2) / k2 * 100
- if (p > 100) {
- p = 100
- }
- return p.toFixed(0)
- } else if (userCard.classify == 2) {
- var p = 0
- if (userCard && userCard.chargeDegreeLimit) {
- p = userCard.chargedDegree / userCard.chargeDegreeLimit * 100
- }
- if (p > 100) {
- p = 100
- }
- return p.toFixed(0)
- } else {
- return 0
- }
- },
- thisdaysDistance(endTime) {
- var date = new Date()
- var date2 = newDate(endTime);
- return daysDistance(date, date2)
- },
- thisdaysDistance2() {
- if (this.item.endTime) {
- var date = newDate(this.item.startTime)
- var date2 = newDate(this.item.endTime);
- return daysDistance(date, date2)
- }
- return 0
- },
- regUserCarList() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.regUserCarList({
- id: this.id
- }).then((res) => {
- uni.hideLoading();
- if (res.data && res.data.length) {
- this.carNum = res.data[0].carNum
- }
- //this.recordsTotal = res.data.recordsTotal;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- getChargeList() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.buyCardDetail({
- id: this.id
- }).then((res) => {
- uni.hideLoading();
- this.item = res.data.monthlyRentCard;
- this.regUserCard = res.data.regUserCard;
- // if(this.regUserCard.status==1){
- // this.regUserCarList()
- // }
- this.userInfo = res.data.buyUser;
- var info = this.carhelp.getPersonInfo()
- if (info && info.id && info.id == this.regUserCard.regUserId) {
- this.isMe = true
- }
- this.orderInfo = res.data.orderInfo;
- //console.log(obj)
- //this.recordsTotal = res.data.recordsTotal;
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- confirmPhone() {
- this.openModalBl = false;
- uni.makePhoneCall({
- phoneNumber: this.content //仅为示例
- });
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- page {
- background-color: #fff;
- }
-
- // 头部
- .header4 {
- padding: 24rpx 32rpx 0;
- opacity: 0.9;
- background: linear-gradient(30deg, rgba(59, 182, 254, 1) 13.4%, rgba(0, 185, 98, 1) 85.87%);
- position: relative;
-
- .discount-card-4 {
- background: url(@/assets/img/card/lovecn.jpg);
- background-size: 686rpx 400rpx;
- border-radius: 8px 8px 0 0;
- // background-color: #1D1F2A;
-
- padding: 40rpx;
- margin-top: 24rpx;
- height: 400rpx;
- position: relative;
-
- .corner-mark {
- width: 128rpx;
- height: 128rpx;
- position: absolute;
- top: 0;
- right: 0;
- }
-
- .img {
- margin-top: 120rpx;
- color: rgba(255, 214, 149, 1);
- font-size: 48rpx;
- font-family: "SimSun", Arial, sans-serif;
- font-weight: 400;
- text-shadow: 2px 1px 0px #800400 ;
- }
-
- .u-progress {
- //height: 20rpx !important;
- background-color: rgb(207, 76, 66) !important;
- color: #fff;
- }
-
- .progress {
- display: flex;
- justify-content: space-between;
- color: #FFF;
- font-size: 24rpx;
- margin-bottom: 16rpx;
- //margin-top: 24rpx;
-
- }
-
- /deep/.u-active {
- background: linear-gradient(84.49deg, rgba(59, 182, 254, 1) 4.25%, rgba(0, 185, 98, 1) 95.02%);
- }
-
- .top {
-
-
-
- .right-corner {
-
-
- display: flex;
- align-items: center;
- height: 36rpx;
-
- .rightCorner {
- width: 168rpx;
- margin-left: 8rpx;
-
- }
-
- .icon {
- width: 24rpx;
- height: 24rpx;
- margin-left: 8rpx;
-
-
- }
-
- .picc {
- width: 124rpx;
- height: 32rpx;
- margin-left: 8rpx;
- }
- }
- }
-
- // 右下角角标
- .bottom {
- position: absolute;
- bottom: 48rpx;
- right: 40rpx;
-
-
- .right-corner {
-
- display: flex;
- align-items: center;
- justify-content: flex-end;
- height: 32rpx;
-
- .rightCorner {
- width: 148rpx;
-
- }
-
- .icon {
- width: 24rpx;
- height: 24rpx;
- margin-left: 8rpx;
-
-
- }
-
- .picc {
- width: 124rpx;
-
- margin-left: 8rpx;
- }
- }
- }
-
- }
-
- .cardCover {
-
- width: 100%;
- height: 70rpx;
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0rpx;
- z-index: 999;
- }
- .card-number2{
- font-size: 24rpx;
- color: rgba(255, 255, 255, 1);
- }
- .card-number{
- font-size: 28rpx;
- color: rgba(255, 255, 255, 1);
- }
- }
-
- // 头部
- .header {
- padding: 24rpx 32rpx 0;
- opacity: 0.9;
- background: linear-gradient(30deg, rgba(59, 182, 254, 1) 13.4%, rgba(0, 185, 98, 1) 85.87%);
- position: relative;
- .discount-card {
- background: url(@/assets/img/cardDetail.png);
- background-size: 686rpx 400rpx;
- border-radius: 8px 8px 0 0;
- background-color: #1D1F2A;
- padding: 24rpx;
- margin-top: 24rpx;
- height: 400rpx;
- position: relative;
- .corner-mark {
- width: 128rpx;
- height: 128rpx;
- position: absolute;
- top: 0;
- right: 0;
- }
- .img {
- width: 262rpx;
- height: 56rpx;
- img {
- width: 100%;
- }
- }
- .u-progress {
- height: 20rpx !important;
- }
- .progress {
- display: flex;
- justify-content: space-between;
- color: rgba(219, 219, 219, 1);
- font-size: 24rpx;
- margin-bottom: 16rpx;
- margin-top: 24rpx;
- }
- /deep/.u-active {
- background: linear-gradient(84.49deg, rgba(59, 182, 254, 1) 4.25%, rgba(0, 185, 98, 1) 95.02%);
- }
- .top {
- .right-corner {
- display: flex;
- align-items: center;
- height: 36rpx;
- .rightCorner {
- width: 148rpx;
- margin-left: 8rpx;
- }
- .icon {
- width: 24rpx;
- height: 24rpx;
- margin-left: 8rpx;
- }
- .picc {
- width: 124rpx;
- height: 32rpx;
- margin-left: 8rpx;
- }
- }
- }
- // 右下角角标
- .bottom {
- position: absolute;
- bottom: 48rpx;
- right: 40rpx;
- .right-corner {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- height: 32rpx;
- .rightCorner {
- width: 148rpx;
- }
- .icon {
- width: 24rpx;
- height: 24rpx;
- margin-left: 8rpx;
- }
- .picc {
- width: 124rpx;
- margin-left: 8rpx;
- }
- }
- }
- }
- .cardCover {
- width: 100%;
- height: 70rpx;
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0rpx;
- z-index: 999;
- }
- }
- .header2 {
- padding: 24rpx 32rpx 0;
- opacity: 0.9;
- background: linear-gradient(30deg, rgba(59, 182, 254, 1) 13.4%, rgba(0, 185, 98, 1) 85.87%);
- position: relative;
- .discount-card {
- background: url(@/assets/img/cardDetail.png);
- background-size: 686rpx 400rpx;
- border-radius: 8px 8px 0 0;
- background-color: #1D1F2A;
- padding: 24rpx;
- margin-top: 24rpx;
- height: 400rpx;
- position: relative;
- .corner-mark {
- width: 128rpx;
- height: 128rpx;
- position: absolute;
- top: 0;
- right: 0;
- }
- .img {
- margin: 82rpx auto 0;
- width: 486rpx;
- height: 104rpx;
- img {
- width: 100%;
- }
- }
- .top {
- .right-corner {
- display: flex;
- align-items: center;
- height: 36rpx;
- .rightCorner {
- width: 148rpx;
- margin-left: 8rpx;
- }
- .icon {
- width: 24rpx;
- height: 24rpx;
- margin-left: 8rpx;
- }
- .picc {
- width: 124rpx;
- height: 32rpx;
- margin-left: 8rpx;
- }
- }
- }
- }
- .cardCover {
- width: 100%;
- height: 70rpx;
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0rpx;
- z-index: 999;
- }
- .card-number {
- color: rgba(209, 178, 121, 1);
- text-align: center;
- margin-top: 8rpx;
- }
-
- }
- // 卡片信息
- .main {
- background-color: #fff;
- padding: 32rpx;
- padding-bottom: 60px;
- .headline {
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 32rpx;
- .title {
- color: rgba(16, 16, 16, 1);
- }
- .show,
- .hide {
- color: rgba(119, 119, 119, 1);
- }
- }
- .title {
- color: rgba(16, 16, 16, 1);
- font-size: 32rpx;
- }
- .details {
- margin-top: 16rpx;
- border-radius: 12px;
- padding: 32rpx 24rpx;
- background-color: rgba(255, 255, 255, 1);
- text-align: center;
- border: 1px solid rgba(226, 226, 226, 1);
- margin-bottom: 40rpx;
- .item {
- display: flex;
- margin-top: 24rpx;
- .item-title {
- min-width: 128rpx;
- color: #777777;
- text-align: left;
- }
- .item-value {
- margin-left: 16rpx;
- color: #101010;
- text-align: start;
- }
- }
- }
- .btn2 {
- margin-top: 32rpx;
- .get {
- border-radius: 50px;
- background: linear-gradient(90deg, rgba(0, 171, 91, 1) 0%, rgba(0, 209, 66, 1) 100%);
- color: rgba(255, 255, 255, 1);
- font-size: 16px;
- text-align: center;
- }
- }
- //按钮
- .btn {
- margin-top: 32rpx;
- display: flex;
- justify-content: space-between;
- .share {
- width: 328rpx;
- height: 88rpx;
- line-height: 88rpx;
- border-radius: 50px;
- background-color: rgba(255, 255, 255, 1);
- text-align: center;
- border: 1px solid rgba(255, 150, 0, 1);
- color: rgba(255, 150, 0, 1);
- font-size: 32rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- .icon {
- width: 36rpx;
- height: 36rpx;
- }
- }
- .activate {
- width: 328rpx;
- height: 88rpx;
- line-height: 88rpx;
- border-radius: 50px;
- background: linear-gradient(90deg, rgba(0, 171, 91, 1) 0%, rgba(0, 209, 66, 1) 100%);
- color: rgba(255, 255, 255, 1);
- font-size: 32rpx
- }
- }
- }
- // 查看
- .check {
- position: fixed;
- bottom: 32rpx;
- left: 32rpx;
- right: 32rpx;
- font-size: 32rpx;
- border-radius: 50px;
- background-color: rgba(255, 255, 255, 1);
- color: rgba(0, 185, 98, 1);
- border: 1px solid rgba(0, 185, 98, 1);
- }
- </style>
|