123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907 |
- <template style="background-color: red">
- <div
- style="
- height: 100vh;
- background: linear-gradient(216deg, #fe854c 0%, #ff9a5a 100%);
- box-sizing: border-box;
- overflow: scroll;
- "
- >
- <div
- class="first2"
- :style="{
- background: 'url(https://file.rongcyl.cn/festatic/bkm/first2/bg.png)',
- height: 'calc(100vh - 160rpx)',
- 'background-repeat': 'no-repeat',
- 'background-position': 'center center',
- 'background-size': '100% 100%',
- 'box-sizing': 'border-box',
- overflow: 'scroll',
- 'padding-bottom': '160rpx',
- }"
- >
- <PageTitle color="#fff" title="LAST赏详情" />
- <div class="card relative">
- <div class="flex pt-3 px-3">
- <image :src="detail.icon" style="width: 168rpx; height: 169rpx; border-radius: 16rpx" mode="aspectFill" />
- <div class="flex-1 pl-2">
- <div class="" style="font-weight: 900">{{ detail.name }}</div>
- <div class="flex justify-between">
- <div>
- <span class="bold" style="color: #ff2c43; font-size: 24rpx">¥</span>
- <span class="bold" style="color: #ff2c43; font-size: 38rpx">
- {{ ('' + detail.price).split('.')[0] }}
- </span>
- <span class="bold" style="color: #ff2c43; font-size: 28rpx">
- .{{ ('' + detail.price).split('.')[1] }}
- </span>
- <span style="color: #4e504f; font-size: 28rpx">/张明信片</span>
- </div>
- <div class="pt-2">
- <img
- @click="$navigateTo('/pages/rule/rule', { type: 5 })"
- src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/first2/rule.png"
- style="width: 134rpx; height: 48rpx"
- />
- </div>
- </div>
- <div class="flex justify-between" style="margin-top: 10rpx">
- <div>
- <img
- src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
- style="
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- display: inline-block;
- border: 2rpx solid #fff;
- "
- />
- <img
- src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
- class="relative right-2"
- style="
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- display: inline-block;
- border: 2rpx solid #fff;
- "
- />
- <img
- src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
- class="relative right-4"
- style="
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- display: inline-block;
- border: 2rpx solid #fff;
- "
- />
- <img
- src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
- class="relative right-6"
- style="
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- display: inline-block;
- border: 2rpx solid #fff;
- "
- />
- <img
- src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/item.png"
- class="relative right-8"
- style="
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- display: inline-block;
- border: 2rpx solid #fff;
- "
- />
- </div>
- <div class="flex items-center">
- <img
- src="https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/first2/hot.png"
- class="relative right-2"
- style="width: 32rpx; height: 32rpx; display: inline-block"
- />
- <span style="color: #fc5b20" class="fs11">{{ detail.hotNum }}</span>
- </div>
- </div>
- </div>
- </div>
- <div
- class="absolute left-0 right-0 bottom-6 mx-auto"
- style="
- width: 670rpx;
- height: 128rpx;
- background: url(https://fudaanfang.oss-cn-hangzhou.aliyuncs.com/festatic/bkm/first2/notice_c.png) no-repeat
- center center;
- background-size: cover;
- "
- >
- <view
- class="absolute top-1 left-2"
- style="width: 106rpx; height: 28rpx; font-size: 24rpx; font-weight: 600; color: #ffff00"
- >
- {{ lockData.userId ? '锁箱中' : '' }}
- </view>
- <div class="text-white fs12 mt-5 px-2 pt-1 lockBox">
- <view class="text" v-if="!lockData.userId">本福袋连续购买10发,即开启保护机制</view>
- <view class="info" v-else>
- <image class="photo" :src="lockData.userAvtar" mode="aspectFill"></image>
- <view class="right">
- <view class="row">
- <view class="name">{{ lockData.userName }}</view>
- <view class="tip">目前已开启自动保护机制</view>
- </view>
- <view class="row">
- 保护倒计时:
- <span v-if="lockHour != '00'">
- <span class="time">{{ lockHour }}</span>
- :
- </span>
- <span>
- <span class="time">{{ lockMin }}</span>
- :
- </span>
- <span>
- <span class="time">{{ lockSecond }}</span>
- </span>
- </view>
- </view>
- </view>
- </div>
- </div>
- <div
- class="absolute left-0 right-0 bottom-1 mx-auto"
- style="
- width: 690rpx;
- height: 24rpx;
- background: #4f5150;
- box-shadow: inset 0rpx 8rpx 8rpx 0rpx rgba(0, 0, 0, 0.8);
- border-radius: 44rpx 44rpx 44rpx 44rpx;
- opacity: 1;
- "
- >
- <div
- class="absolute top-1 mx-auto"
- style="
- left: 10rpx;
- right: 10rpx;
- width: 670rpx;
- min-height: 890rpx;
- background: linear-gradient(180deg, #ccd3d9 0%, #ffffff 5%);
- border-radius: 0rpx 0rpx 0rpx 0rpx;
- opacity: 1;
- "
- >
- <div class="flex justify-around" style="margin: 20rpx 0">
- <img
- src="https://file.rongcyl.cn/festatic/bkm/first2/tab1.png"
- v-if="tabIndex !== 1"
- @click="tabIndex = 1"
- style="width: 126rpx; height: 32rpx"
- />
- <img
- v-if="tabIndex == 1"
- src="https://file.rongcyl.cn/festatic/bkm/first2/tab1a.png"
- @click="tabIndex = 1"
- style="width: 126rpx; height: 32rpx"
- />
- <img
- v-if="tabIndex !== 2"
- src="https://file.rongcyl.cn/festatic/bkm/first2/tab2.png"
- @click="tabIndex = 2"
- style="width: 126rpx; height: 32rpx"
- />
- <img
- v-if="tabIndex == 2"
- src="https://file.rongcyl.cn/festatic/bkm/first2/tab2a.png"
- @click="tabIndex = 2"
- style="width: 126rpx; height: 32rpx"
- />
- <img
- v-if="tabIndex != 3"
- src="https://file.rongcyl.cn/festatic/bkm/first2/tab3.png"
- @click="tabIndex = 3"
- style="width: 126rpx; height: 32rpx"
- />
- <img
- v-if="tabIndex == 3"
- src="https://file.rongcyl.cn/festatic/bkm/first2/tab3a.png"
- @click="tabIndex = 3"
- style="width: 126rpx; height: 32rpx"
- />
- </div>
- <div class="cardList list" style="padding: 10rpx 16rpx 20rpx 16rpx" v-if="tabIndex == 1">
- <div
- :class="['flex', 'items-center', 'justify-center', item.status == 0 ? 'c1' : 'c2']"
- v-for="(item, index) in cardList"
- @click="clickCard(item)"
- >
- <numImg v-if="item.status == 0" class="num" :value="item" :type="2" />
- <img
- v-if="item.status == 2"
- src="https://file.rongcyl.cn/festatic/bkm/first2/gift_a.png"
- style="width: 60rpx; height: 72rpx"
- />
- <img
- v-if="item.status == 1"
- src="https://file.rongcyl.cn/festatic/bkm/first2/lock.png"
- style="width: 60rpx; height: 60rpx"
- />
- <image
- v-if="item.check"
- class="checkBk"
- src="https://file.rongcyl.cn/festatic/bkm/imgv2/first/cardCheck.png"
- mode="widthFix"
- ></image>
- </div>
- </div>
- <div class="list pt-4" style="position: relative" v-if="tabIndex == 2">
- <div v-for="(item, index) in prizeList" :key="index">
- <div class="titleTip">概率:{{ item.probability }}%(此概率为当前赏级概率)</div>
- <Title :title="$selectDictLabel(rewardType, item.type).split('赏')[0]" />
- <div class="flex pl-3 pt-3 mb-3" style="background-color: #f6f0e9">
- <div
- v-for="(item2, index2) in item.prizeList"
- @click="showImg(item2)"
- :class="['mr-2', item2.leftNum == 0 ? 'grey' : '']"
- style="width: 168rpx; background-color: #f9f6f2; border-radius: 8rpx; margin-bottom: 20rpx"
- >
- <image
- :src="item2.icon"
- mode="aspectFill"
- style="width: 144rpx; height: 144rpx; border-radius: 10rpx; margin: auto"
- />
- <div class="fs13 pl-2 prizeName">{{ item2.name }}</div>
- <div style="color: #ea6636" class="pl-2">
- <span class="fs11">参考价</span>
- <span class="fs14 bold">{{ detail.price }}</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="list winningRecord" style="padding: 20rpx 0" v-if="tabIndex == 3">
- <view class="winningRecordCard" v-for="(item, index) in winningRecordList" :key="index">
- <image class="photo" :src="item.userAvtar" mode="aspectFill"></image>
- <view style="flex: 1">
- <view class="row">
- <view class="left">
- <span class="name">{{ item.userName }}</span>
- </view>
- <view class="right text1" style="flex: initial">
- <span>{{ item.creatTime }}</span>
- </view>
- </view>
- <view class="row" style="margin-top: 20rpx">
- <view class="left">
- <image class="img" :src="item.prizeIcon" mode="aspectFill"></image>
- </view>
- <view class="right" style="font-size: 28rpx">
- <view class="name">{{ item.prizeName }}</view>
- <view class="row">
- <view class="type">{{ $selectDictLabel(rewardType, item.prizeType) }} × 1</view>
- <span style="font-size: 24rpx">No.{{ item.id }}</span>
- </view>
- </view>
- </view>
- </view>
- </view>
- </div>
- <img
- src="https://file.rongcyl.cn/festatic/bkm/first2/dots.png"
- class="absolute mx-auto inline-block left-0 right-0"
- style="width: 612rpx; height: 24rpx; bottom: -12rpx"
- />
- </div>
- </div>
- </div>
- <div class="fixed right-2 bottom-20" style="height: 460rpx">
- <img
- v-if="detail.resultUrl"
- @click="toDloadFilePopup(detail.resultUrl)"
- src="https://file.rongcyl.cn/festatic/bkm/first2/fu.png"
- style="width: 88rpx; height: 88rpx; margin-bottom: 24rpx"
- />
- <img
- @click="toKnapsack"
- src="https://file.rongcyl.cn/festatic/bkm/first2/bag.png"
- style="width: 88rpx; height: 88rpx; margin-bottom: 24rpx"
- />
- <img
- @click="refresh"
- src="https://file.rongcyl.cn/festatic/bkm/first2/refresh.png"
- style="width: 88rpx; height: 88rpx; margin-bottom: 24rpx"
- />
- <button open-type="share" class="share_btn">
- <img
- src="https://file.rongcyl.cn/festatic/bkm/first2/share.png"
- style="width: 88rpx; height: 88rpx; margin-bottom: 24rpx"
- />
- </button>
- </div>
- <div class="buy items-center">
- <div class="pica ml-2" style="margin-top: -38rpx">
- <img src="https://file.rongcyl.cn/festatic/bkm/first2/pica.png" class="w-full h-full" />
- </div>
- <div class="flex-1 text-white fs12 ml12 relative bottom-3 pl-3">
- <span class="inline-block">已选{{ selectIndex.length }}个 合计:</span>
- <span class="inline-block" style="color: #ea6636">
- <span class="bold">¥</span>
- <span class="fs18 bold">{{ (selectIndex.length * detail.price).toFixed(2) }}</span>
- </span>
- </div>
- <img
- @click="submit"
- src="https://file.rongcyl.cn/festatic/bkm/first2/bug.png"
- class="b_btn relative bottom-3 right-2"
- />
- </div>
- </div>
- <paymentPopup ref="paymentPopup" @callBack="paymentSuccess" />
- <imgPopup ref="imgPopup" />
- </div>
- </template>
- <script>
- import imgPopup from '@/component/imgPopup.vue'
- import { rewardType } from '@/utils/commonConfig.js'
- import {
- prizePoolStatusApi,
- drawCardSubmitApi,
- raffleDetailApi,
- prizeListApi,
- prizeUserListApi,
- getLockInfoApi,
- } from '@/api/drawCard.js'
- import { cardType, formatSeconds, toDloadFilePopup } from '@/utils/utils.js'
- import numImg from '@/component/numImg.vue'
- import paymentPopup from '@/component/paymentPopup.vue'
- import Title from '@/component/title.vue'
- import PageTitle from '@/component/pageTitle.vue'
- const { v4: uuidv4 } = require('uuid')
- export default {
- data() {
- return {
- toDloadFilePopup: toDloadFilePopup,
- rewardType: rewardType,
- safeAreaTop: '0rpx',
- tabIndex: 1,
- params: {
- raffleId: '',
- limit: 999,
- page: 1,
- },
- detail: {},
- cardList: [],
- selectIndex: [],
- prizeList: [],
- winningRecordList: [],
- userId: wx.getStorageSync('userId'),
- uuid: '',
- socketTimer: null,
- lockTimeCountdown: null,
- lockData: null,
- lockTime: '',
- }
- },
- components: {
- Title,
- PageTitle,
- imgPopup,
- paymentPopup,
- numImg,
- },
- computed: {
- // 锁箱小时
- lockHour() {
- let tiem = this.lockTime * 1000
- let timeText = formatSeconds(tiem)
- timeText = timeText.split(':')[0]
- return timeText
- },
- // 锁箱分钟
- lockMin() {
- let tiem = this.lockTime * 1000
- let timeText = formatSeconds(tiem)
- timeText = timeText.split(':')[1]
- return timeText
- },
- // 锁箱秒
- lockSecond() {
- let tiem = this.lockTime * 1000
- let timeText = formatSeconds(tiem)
- timeText = timeText.split(':')[2]
- return timeText
- },
- },
- onLoad(query) {
- console.log(query, 'query')
- if (query.id) {
- this.params.raffleId = query.id
- this.init()
- }
- this.paymentSuccess()
- },
- mounted() {
- this.getSafeAreaTop()
- },
- methods: {
- init() {
- // 获取卡牌商品列表
- this.getCardList()
- // 获取卡包详情
- this.getDetail()
- //获取奖池
- this.getPrizeList()
- // 中奖记录
- this.getPrizeUserList()
- // 初始化锁箱
- this.initLock()
- // 连接锁箱Socket
- this.connectSocket()
- },
- leave() {
- console.log('离开页面')
- // 离开页面
- // 关闭倒计时
- clearInterval(this.lockTimeCountdown)
- // 关闭心跳测试
- clearInterval(this.socketTimer)
- // 关闭对话连接
- wx.closeSocket()
- },
- initLock() {
- // 获取锁箱信息
- let _this = this
- let params = {
- raffleId: this.params.raffleId,
- }
- getLockInfoApi(params).then(res => {
- console.log(res, '锁箱')
- if (res.data.userId) {
- _this.lockData = res.data
- _this.lockTime = res.data.expireTime
- _this.initLockTimeCountdown()
- } else {
- _this.lockData = {}
- _this.lockTime = ''
- }
- })
- },
- initLockTimeCountdown() {
- let _this = this
- if (_this.lockTimeCountdown) {
- clearInterval(_this.lockTimeCountdown)
- _this.lockTimeCountdown = null
- }
- _this.lockTimeCountdown = setInterval(() => {
- console.log('22')
- _this.lockTime = _this.lockTime - 1
- if (_this.lockTime <= 0) {
- clearInterval(_this.lockTimeCountdown)
- _this.lockTimeCountdown = null
- _this.initLock()
- }
- }, 1000)
- },
- connectSocket() {
- let _this = this
- let uuid = uuidv4()
- let url = 'wss://mall.rongtongh.cn/websocket/raffleId' + this.params.raffleId + ':' + uuid
- function connect() {
- wx.connectSocket({
- url: url,
- })
- wx.onSocketOpen(function (res) {
- console.log(res, 'WebSocket连接已打开!')
- // wx.sendSocketMessage({
- // data: JSON.stringify(user),
- // })
- _this.socketTimer = setInterval(function () {
- console.log('发送消息')
- wx.sendSocketMessage({
- data: '12313',
- })
- }, 30 * 1000)
- })
- wx.onSocketMessage(function (res) {
- console.log(data, 'WebSocket接受信息')
- let data = JSON.parse(res.data)
- if (res.data.userId) {
- _this.lockData = data
- _this.lockTime = data.expireTime
- _this.initLockTimeCountdown()
- }
- })
- wx.onSocketClose(function (res) {
- console.log('WebSocket连接已关闭!')
- setTimeout(() => {
- console.log('re connect')
- // connect()
- }, 2000)
- })
- }
- connect()
- },
- toKnapsack() {
- // 跳转背包界面
- wx.navigateTo({
- url: '/pages/knapsack/knapsack',
- })
- },
- showImg(value) {
- this.$refs.imgPopup.show(value)
- },
- getPrizeUserList() {
- let params = {
- limit: 9999,
- page: 1,
- raffleId: this.params.raffleId,
- }
- prizeUserListApi(params).then(res => {
- this.winningRecordList = res.data
- })
- },
- getCardList() {
- prizePoolStatusApi(this.params).then(res => {
- console.log(res, '卡牌分页')
- for (var i = 0; i < res.data.list.length; i++) {
- res.data.list[i].check = false
- }
- this.cardList = res.data.list
- this.selectFormat()
- })
- },
- // 标记已经选中卡牌
- selectFormat() {
- for (var i = 0; i < this.cardList.length; i++) {
- if (this.selectIndex.includes(this.cardList[i].number)) {
- this.cardList[i].check = true
- }
- }
- },
- getDetail() {
- let params = {
- raffleId: this.params.raffleId,
- }
- raffleDetailApi(params).then(res => {
- console.log(res, '详情')
- this.detail = res.data
- })
- },
- getPrizeList() {
- let params = {
- raffleId: this.params.raffleId,
- }
- prizeListApi(params).then(res => {
- console.log(res, '奖池预览')
- let newArray = res.data
- for (var i = 0; i < res.data.length; i++) {
- if (res.data[i].type == 21) {
- newArray = []
- newArray.push(res.data[i])
- res.data.splice(i, 1)
- newArray.push(...res.data)
- break
- }
- }
- this.prizeList = newArray
- })
- },
- // 选中取消选中卡牌
- clickCard(item) {
- if (item.status == 0) {
- item.check = !item.check
- }
- // 如果是选中
- let index = this.selectIndex.indexOf(item.number)
- if (item.check && index == -1) {
- this.selectIndex.push(item.number)
- } else if (!item.check && index != -1) {
- this.selectIndex.splice(index, 1)
- }
- },
- // 支付成功后回调
- paymentSuccess() {
- let _this = this
- console.log('刷新抽卡界面')
- // 刷新界面
- _this.refresh()
- },
- getSafeAreaTop() {
- wx.getSystemInfo({
- success: res => {
- this.safeAreaTop = res.safeArea.top + 'px'
- },
- })
- },
- refresh() {
- wx.showLoading()
- setTimeout(function () {
- wx.hideLoading()
- }, 1000)
- this.init()
- this.selectIndex = []
- for (var i = 0; i < this.cardList.length; i++) {
- this.cardList[i].check = false
- }
- },
- submit() {
- if (this.selectIndex.length == 0) {
- wx.showToast({
- title: '请选则要购买的卡牌。',
- icon: 'none',
- })
- return
- }
- let params = {
- raffleId: this.params.raffleId,
- }
- this.$refs.paymentPopup.show(params, this.selectIndex, this.detail)
- },
- back() {
- wx.navigateBack({ delta: 1 })
- },
- },
- }
- </script>
- <style scoped lang="scss">
- .first2 {
- padding-top: v-bind(safeAreaBottom);
- color: v-bind(color);
- .card {
- width: 710rpx;
- margin: auto;
- background-color: #fff;
- border-radius: 20rpx;
- height: 400rpx;
- margin-top: 36rpx;
- }
- .c1 {
- background-image: url(https://file.rongcyl.cn/festatic/bkm/imgv2/ka/kabk2.png);
- // width: 96rpx;
- height: 128rpx;
- background-repeat: no-repeat;
- background-position: center center;
- background-size: contain;
- margin-bottom: 14rpx;
- position: relative;
- .checkBk {
- position: absolute;
- width: 105%;
- }
- }
- .c2 {
- background-image: url(https://file.rongcyl.cn/festatic/bkm/imgv2/ka/kabk4.png);
- // width: 96rpx;
- height: 128rpx;
- background-repeat: no-repeat;
- background-position: center center;
- background-size: contain;
- margin-bottom: 14rpx;
- }
- .buy {
- position: fixed;
- left: 0;
- right: 0;
- bottom: 0;
- width: 750rpx;
- height: 160rpx;
- background: #000000;
- opacity: 1;
- display: flex;
- .pica {
- width: 88rpx;
- height: 88rpx;
- }
- .b_btn {
- width: 232rpx;
- height: 76rpx;
- }
- }
- }
- .cardList {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
- }
- .list {
- // height: calc(100% - 32rpx - 40rpx - 40rpx);
- // overflow: auto;
- }
- .prizeName {
- width: 100%;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .titleTip {
- position: absolute;
- z-index: 2;
- height: 64rpx;
- line-height: 84rpx;
- padding-left: 25vw;
- font-size: 24rpx;
- color: #fff;
- }
- .winningRecord {
- .winningRecordCard {
- margin-top: 20rpx;
- border-radius: 16rpx;
- background: #f7f0e8;
- padding: 20rpx;
- display: flex;
- // box-shadow: 2rpx 2rpx 6rpx #b7b7b7;
- .photo {
- // flex: 1;
- margin-right: 16rpx;
- width: 10vw;
- height: 10vw;
- border-radius: 50%;
- }
- .row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .left {
- display: flex;
- align-items: center;
- .name {
- font-size: 28rpx;
- font-weight: 600;
- }
- .img {
- width: 15vw;
- height: 15vw;
- border-radius: 4rpx;
- margin-right: 10rpx;
- }
- }
- .right {
- flex: 1;
- .name {
- font-size: 28rpx;
- height: 10vw;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- }
- .type {
- padding: 0 4rpx;
- background: #fc5b20;
- color: #fff;
- font-size: 22rpx;
- border-radius: 4rpx;
- }
- .text1 {
- color: #666666;
- font-size: 24rpx;
- }
- }
- }
- }
- .share_btn {
- background-color: transparent;
- border-width: 0 !important;
- border-radius: 0;
- overflow: initial;
- text-align: start;
- padding: 0;
- box-shadow: none !important;
- -webkit-tap-highlight-color: transparent;
- &::after {
- border: none;
- }
- }
- .lockBox {
- display: flex;
- justify-content: center;
- align-items: center;
- .text {
- color: #fff;
- font-weight: 600;
- font-size: 28rpx;
- }
- .info {
- display: flex;
- width: 100%;
- justify-content: center;
- .photo {
- width: 9vw;
- height: 9vw;
- border-radius: 50%;
- }
- .right {
- margin-left: 20rpx;
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- .row {
- width: 100%;
- color: #fff;
- font-size: 24rpx;
- margin-bottom: 4rpx;
- position: relative;
- display: flex;
- align-items: center;
- .time {
- padding: 4rpx;
- color: #565656;
- background: #ffff00;
- margin: 0 16rpx;
- border-radius: 10rpx;
- font-weight: 600;
- font-size: 24rpx;
- }
- .name {
- font-size: 26rpx;
- font-weight: 600;
- color: #fff;
- width: 40%;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- .tip {
- font-size: 22rpx;
- position: absolute;
- right: 0;
- font-weight: 500;
- color: #fff;
- }
- }
- }
- }
- }
- </style>
|