|
@@ -0,0 +1,882 @@
|
|
|
+/* eslint-disable no-alert, no-console */
|
|
|
+<template>
|
|
|
+ <!-- eslint-disable-line -->
|
|
|
+
|
|
|
+ <div id="PaiMaiXiangQing">
|
|
|
+ <!-- <van-pull-refresh
|
|
|
+ :disabled="isDisableRefresh"
|
|
|
+ v-model="refreshing"
|
|
|
+ @refresh="onRefresh"
|
|
|
+ pulling-text="下拉开始刷新..."
|
|
|
+ loosing-text="释放刷新..."
|
|
|
+ loading-text="正在刷新"
|
|
|
+ head-height='50'
|
|
|
+ > -->
|
|
|
+ <div class="scroll-con">
|
|
|
+ <van-swipe class="my-swipe" :class="{has:imgs.length}" indicator-color="white" @change="change">
|
|
|
+ <van-swipe-item v-for="url in imgs" :key="url">
|
|
|
+ <div class="top-img" :style="'background-image:url('+url+')'"></div>
|
|
|
+ </van-swipe-item>
|
|
|
+ <template #indicator>
|
|
|
+ <div v-if="imgs.length" class="custom-indicator">
|
|
|
+ {{ current + 1 }}/{{imgs.length}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </van-swipe>
|
|
|
+ <div v-if="loading||infoData.auctionStatus" class="end-time"
|
|
|
+ :class="infoData.auctionStatus=='1'?'s1':infoData.auctionStatus=='2'?'s2':'s3'">
|
|
|
+ <div class="end-str">{{auctionStatus(infoData.auctionStatus)}}</div>
|
|
|
+ <div v-if="hasData" class="time-str">
|
|
|
+ // eslint-disable-next-line vue/html-quotes
|
|
|
+ <!-- eslint-disable-next-line vue/max-attributes-per-line -->
|
|
|
+ <span v-if="infoData.auctionStatus=="1"||infoData.auctionStatus=="3"||infoData.auctionStatus=="4"">{{$dateFormat(infoData.endTime)}} 结束</span>
|
|
|
+ <span v-else-if="infoData.auctionStatus=="2"">{{$dateFormat(infoData.startTime)}} 开拍</span>
|
|
|
+ <span v-else>本场拍卖{{auctionStatus(infoData.auctionStatus)}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="product-det">
|
|
|
+ <van-skeleton title :row="8" :loading="loading">
|
|
|
+ <div class="tags">
|
|
|
+ <span v-if="infoData.auctionStage">{{auctionStage(infoData.auctionStage)}}</span>
|
|
|
+ <span v-if="infoData.canLoan=="0"">可贷款</span>
|
|
|
+ <span v-if="infoData.unlimitedPurchase=="1"">不限购</span>
|
|
|
+ <span v-if="infoData.auctionTypeTwo" class="s">{{infoData.auctionTypeTwo}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="name">{{infoData.auctionTitle}}</div>
|
|
|
+ <div class="price">
|
|
|
+ <div>
|
|
|
+ 当前价: <span v-if="hasData&&infoData.currentPrice!=null" class="red">¥{{priceDouhao(infoData.currentPrice)}}</span>
|
|
|
+ <span v-if="hasData&&infoData.currentPrice==null" class="red">--</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ 评估价: <span v-if="hasData&&infoData.evaluationPrice!=null">¥{{priceDouhao(infoData.evaluationPrice)}}</span>
|
|
|
+ <span v-if="hasData&&infoData.evaluationPrice==null">--</span> <span v-if="hasData" class="line"></span> <span v-if="hasData">{{infoData.applyCount}}人报名</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="tip">
|
|
|
+ <img src="@/assets/img/sifapaimai/logo.png" alt="">
|
|
|
+ <div class="source-tips">
|
|
|
+ <span class="ms">赢火虫大数据提供数据支撑,数据源来自{{infoData.resource}}</span>
|
|
|
+ <span v-if="!share" class="gx" @click="updateData">更新数据</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="table">
|
|
|
+ <div class="t20">保证金</div><div class="t30"><span v-if="hasData&&infoData.cashDeposit!=null">¥{{priceDouhao(infoData.cashDeposit)}}</span><span v-if="hasData&&infoData.cashDeposit==null">--</span></div>
|
|
|
+ <div class="t30">加价幅度</div><div class="t20"><span v-if="hasData&&infoData.priceAdd!=null">¥{{priceDouhao(infoData.priceAdd)}}</span><span v-if="hasData&&infoData.priceAdd==null">--</span></div>
|
|
|
+ <div class="t20">起拍价</div><div class="t30"><span v-if="hasData&&infoData.initialPrice!=null">¥{{priceDouhao(infoData.initialPrice)}}</span><span v-if="hasData&&infoData.initialPrice==null">--</span></div>
|
|
|
+ <div class="t30">优选购买权人</div><div class="t20">{{infoData.preemptionClaimant=='0'?'无':infoData.preemptionClaimant||'--'}}</div>
|
|
|
+ <div class="t20">竞价周期</div><div class="t30"><span v-if="hasData">{{infoData.auctionPeriod==null?'--':infoData.auctionPeriod+'天'}}</span></div>
|
|
|
+ <div class="t30">延时周期</div><div class="t20"><span v-if="hasData">{{infoData.delayPeriod==null?'--':infoData.delayPeriod+'分钟/次'}}</span></div>
|
|
|
+ </div>
|
|
|
+ <div class="address" @click="showAddress">
|
|
|
+ <div>拍品地址</div>
|
|
|
+ <div class="text">{{infoData.address}}</div>
|
|
|
+ <img v-if="infoData.address" src="@/assets/img/sifapaimai/address.png">
|
|
|
+ </div>
|
|
|
+ <van-action-sheet
|
|
|
+ v-model="showAddr"
|
|
|
+ :actions="actions"
|
|
|
+ cancel-text="取消"
|
|
|
+ description="请选择相关地图"
|
|
|
+ close-on-click-action
|
|
|
+ get-container="body"
|
|
|
+ @select="onSelect"
|
|
|
+ />
|
|
|
+ </van-skeleton>
|
|
|
+ </div>
|
|
|
+ <div v-if="infoData.bidTimes&&infoData.bidTimes!=0" class="record">
|
|
|
+ <div class="text">
|
|
|
+ 已有 <span>{{infoData.bidTimes}}</span> 条竞拍记录
|
|
|
+ </div>
|
|
|
+ <div @click="record">查看</div>
|
|
|
+ <img src="@/assets/img/sifapaimai/right.png" @click="record">
|
|
|
+ </div>
|
|
|
+ <div v-else class="record">
|
|
|
+ <div v-if="hasData" class="text">
|
|
|
+ 暂无竞拍记录
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <van-tabs swipeable animated :lazy-render="false" sticky @change="tabChange">
|
|
|
+ <van-tab title="物品介绍" name="1">
|
|
|
+ <div class="html" v-html="infoData.auctionIntroduce"></div>
|
|
|
+ </van-tab>
|
|
|
+ <van-tab title="拍卖公告" name="2">
|
|
|
+ <div class="html html2" v-html="infoData.auctionNotice"></div>
|
|
|
+ </van-tab>
|
|
|
+ <van-tab title="拍卖须知" name="3">
|
|
|
+ <div class="html html3" v-html="infoData.auctionMustKnow"></div>
|
|
|
+ </van-tab>
|
|
|
+ </van-tabs>
|
|
|
+ </div>
|
|
|
+ <!-- </van-pull-refresh> -->
|
|
|
+ <div class="footer">
|
|
|
+ <div class="left" @click="baoming">
|
|
|
+ <img src="@/assets/img/sifapaimai/feiji.png">报名/分享
|
|
|
+ </div>
|
|
|
+ <div class="right" :class="{s:["1","2"].includes(infoData.auctionStatus)}" @click="tixing">
|
|
|
+ <img v-if="String(infoData.notice)==="true"" src="@/assets/img/sifapaimai/dui.png">
|
|
|
+ <img v-else src="@/assets/img/sifapaimai/clock.png">
|
|
|
+ <span v-if="["3","4","5","6","7"].includes(infoData.auctionStatus)">拍卖已结束</span>
|
|
|
+ <span v-else-if="String(infoData.notice)==="true"">已设置提醒</span>
|
|
|
+ <span v-else>设置提醒</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <van-popup v-model="showpop" position="bottom" class="pop-btm">
|
|
|
+ <div class="list" @click="copy">
|
|
|
+ <div class="left">
|
|
|
+ <img src="@/assets/img/sifapaimai/link.png">
|
|
|
+ </div>
|
|
|
+ <div class="center">复制链接,去{{infoData.resource}}报名</div>
|
|
|
+ <img src="@/assets/img/sifapaimai/right.png" class="right">
|
|
|
+ </div>
|
|
|
+ <div class="list" @click="goWeb">
|
|
|
+ <div class="left">
|
|
|
+ <img src="@/assets/img/sifapaimai/web.png">
|
|
|
+ </div>
|
|
|
+ <div class="center">查看源站网页</div>
|
|
|
+ <img src="@/assets/img/sifapaimai/right.png" class="right">
|
|
|
+ </div>
|
|
|
+ <div class="list" @click="goshare">
|
|
|
+ <div class="left">
|
|
|
+ <img src="@/assets/img/sifapaimai/wx.png">
|
|
|
+ </div>
|
|
|
+ <div class="center">分享到</div>
|
|
|
+ <img src="@/assets/img/sifapaimai/right.png" class="right">
|
|
|
+ </div>
|
|
|
+ </van-popup>
|
|
|
+ <van-popup v-model="showtixing" class="pop-tixing" :close-on-click-overlay="false">
|
|
|
+ <div class="con">
|
|
|
+ <div class="title">设置消息提醒成功</div>
|
|
|
+ <div class="content">小赢在此拍品<span v-if="infoData.auctionStatus=="2"">“开拍”与</span>“结束前30分钟”时,以短信方式为 <span class="c">{{$route.query.mobileNo}}</span> 发送提醒消息。</div>
|
|
|
+ <div class="btm">
|
|
|
+ <span @click="addMsgOk">好的</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-popup>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<!-- eslint-disable -->
|
|
|
+<script lang="ts">
|
|
|
+ import $axios from '@/api'
|
|
|
+ import { Toast } from 'vant'
|
|
|
+ import {$dateFormat} from '@/utils/utils'
|
|
|
+ export default {
|
|
|
+ name: 'PaiMaiXiangQing',
|
|
|
+ data() {
|
|
|
+ console.log(this.$route.query.type)
|
|
|
+ return {
|
|
|
+ share: this.$route.query.type === 'share',
|
|
|
+ showAddr: false,
|
|
|
+ actions: [
|
|
|
+ { name: '高德地图',type:'gd' },
|
|
|
+ { name: '百度地图',type:'bd' }
|
|
|
+ ],
|
|
|
+ infoData:{},
|
|
|
+ current:0,
|
|
|
+ imgs:[],
|
|
|
+ history:null,
|
|
|
+ showpop:false,
|
|
|
+ showtixing:false,
|
|
|
+ tixingId:null,
|
|
|
+ hasData:false,
|
|
|
+ loading:true,
|
|
|
+ taboffsetTop:0,
|
|
|
+ refreshing: false,
|
|
|
+ isDisableRefresh:false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+ document.title = '拍品详情'
|
|
|
+ this.getData()
|
|
|
+ document.querySelector('.scroll-con').addEventListener('scroll',(e) => {
|
|
|
+ const scrollTop = document.querySelector('.scroll-con').scrollTop
|
|
|
+ if(scrollTop < 50) {
|
|
|
+ this.isDisableRefresh = false
|
|
|
+ }else{
|
|
|
+ this.isDisableRefresh = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ onRefresh() {
|
|
|
+ setTimeout(() => {
|
|
|
+ if (this.refreshing) {
|
|
|
+ this.refreshing = false
|
|
|
+ }
|
|
|
+ },800)
|
|
|
+ this.current = 0
|
|
|
+ this.imgs = []
|
|
|
+ this.getData()
|
|
|
+
|
|
|
+ },
|
|
|
+ async updateData() {
|
|
|
+ try {
|
|
|
+ const res = await $axios.post('winhc-justice-service/auction/async',{auctionItemsId:this.$route.query.auctionItemsId})
|
|
|
+ Toast('正在后台更新, 完成后通知到你的手机')
|
|
|
+ } catch (error) {
|
|
|
+ Toast('正在后台更新, 完成后通知到你的手机')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async getData() {
|
|
|
+ console.log(this.$route.query,897897798897)
|
|
|
+ try {
|
|
|
+ let res={}
|
|
|
+ this.hasData=false
|
|
|
+ this.loading=true
|
|
|
+ if(this.share) {
|
|
|
+ res = await $axios.get('/auction/open/share/'+this.$route.query.secretId,{})
|
|
|
+ }else{
|
|
|
+ if(this.$route.query.source == 'H5') {
|
|
|
+ const params = {auctionItemsId:this.$route.query.auctionItemsId}
|
|
|
+ res = await $axios.get('winhc-justice-service/auction/detail',{params})
|
|
|
+ }else if(this.$route.query.fromBusiness == 'dynamic') {
|
|
|
+ res = await $axios.get('dynamic/v8/radar/detail', {
|
|
|
+ tn : this.$route.query.tn,
|
|
|
+ rowkey :this.$route.query.rowkey
|
|
|
+ })
|
|
|
+ }else if(this.$route.query.fromBusiness == 'caichan') {
|
|
|
+ res = await $axios.get(window.serviceNameCaiChan,{
|
|
|
+ bizId:this.$route.query.bizId,
|
|
|
+ dimensionType :this.$route.query.dimensionType
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ res = await $axios.get('/auction/'+this.$route.query.auctionItemsId,{})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.loading=false
|
|
|
+ this.hasData=true
|
|
|
+ //处理相对路径的图片(相对路径的图片无法显示)
|
|
|
+ // if(res.auctionIntroduce){
|
|
|
+ // res.auctionIntroduce=res.auctionIntroduce.replace(/src="\//g,'style="display:none;" src="/').replace(/src='\//g,"style='display:none;' src='/")
|
|
|
+ // }
|
|
|
+ // if(res.auctionNotice){
|
|
|
+ // res.auctionNotice=res.auctionNotice.replace(/src="\//g,'style="display:none;" src="/').replace(/src='\//g,"style='display:none;' src='/")
|
|
|
+ // }
|
|
|
+ if(res.auctionNotice) {
|
|
|
+ res.auctionNotice=res.auctionNotice.replace(/\?xml:namespace>/g,'')
|
|
|
+ }
|
|
|
+ // if(res.auctionMustKnow){
|
|
|
+ // res.auctionMustKnow=res.auctionMustKnow.replace(/src="\//g,'style="display:none;" src="/').replace(/src='\//g,"style='display:none;' src='/")
|
|
|
+ // }
|
|
|
+ res.auctionStatus = String(Number(res.auctionStatus))
|
|
|
+ this.infoData=res
|
|
|
+ if(res.auctionImg) {
|
|
|
+ const imgs = JSON.parse(res.auctionImg) || []
|
|
|
+ imgs.forEach((e) => {
|
|
|
+ this.imgs.push(e.replace(/http:/g,'https:'))
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // this.imgs=res.auctionImg?JSON.parse(res.auctionImg):[];
|
|
|
+ this.history=res.bidHistory?JSON.parse(res.bidHistory):[]
|
|
|
+ setTimeout(() => {
|
|
|
+ document.querySelectorAll('.html2 p').forEach((item) => {
|
|
|
+ if(item.innerText&&['拍卖公告','变卖公告','竞买公告'].includes(item.innerText.replace(/\s/g,''))) {
|
|
|
+ item.style.textIndent='0'
|
|
|
+ item.style.textAlign='center'
|
|
|
+ return
|
|
|
+ }
|
|
|
+ })
|
|
|
+ document.querySelectorAll('.html3 p').forEach((item) => {
|
|
|
+ if(item.innerText&&['拍卖须知','变卖须知','竞买须知'].includes(item.innerText.replace(/\s/g,''))) {
|
|
|
+ item.style.textIndent='0'
|
|
|
+ item.style.textAlign='center'
|
|
|
+ return
|
|
|
+ }
|
|
|
+ })
|
|
|
+ document.querySelectorAll('.van-tabs__content img').forEach((item) => { //去除相对路径的图片
|
|
|
+ var ImgObj = new Image()
|
|
|
+ ImgObj.src = item.src
|
|
|
+ ImgObj.onerror = () => {
|
|
|
+ // console.log(ImgObj.fileSize ,ImgObj.width,ImgObj.height)
|
|
|
+ item.style.display='none'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.taboffsetTop = document.querySelector('.van-tabs').offsetTop + 5
|
|
|
+ },700)
|
|
|
+ if(this.share) {
|
|
|
+ this.$methods.wx_shareConfig({
|
|
|
+ title:this.infoData.auctionTitle, // 分享标题
|
|
|
+ desc: '我在赢火虫的司法拍卖发现了还不错的拍品,快来看看吧~', // 分享描述
|
|
|
+ link: winhc_api_common + 'newMobile/#/PaiMaiXiangQing?type=share&pageType=H5&secretId=' + this.infoData.secretId+'&version='+this.$version, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
+ imgUrl: 'https://winhc.oss-cn-shanghai.aliyuncs.com/shareImg/logo256x256.png' // 分享图标
|
|
|
+ })
|
|
|
+ }
|
|
|
+ console.log('res=',res)
|
|
|
+ } catch (error) {
|
|
|
+ this.loading=false
|
|
|
+ this.hasData=false
|
|
|
+ Toast('查询失败')
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ record() {
|
|
|
+ if(this.history&&this.history.length>0) {
|
|
|
+ if(this.share) {
|
|
|
+ window.location.href= winhc_api_common + 'newMobile/#/AuctionRecord?type=share&pageType=H5&secretId=' + this.infoData.secretId + '&version='+this.version
|
|
|
+ } else {
|
|
|
+ this.$goDetail('AuctionRecord?auctionItemsId='+this.$route.query.auctionItemsId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ change(curr) {
|
|
|
+ this.current=curr
|
|
|
+ },
|
|
|
+ tabChange(name,title) {
|
|
|
+ // console.log(name,title)
|
|
|
+ document.querySelector('.scroll-con').style.transition = 'all 0.3s'
|
|
|
+ document.querySelector('.scroll-con').scrollTop = this.taboffsetTop
|
|
|
+
|
|
|
+ },
|
|
|
+ showAddress() {
|
|
|
+ if(!this.infoData.address) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.share) {
|
|
|
+ window.location.href = '../orgInformation/bdMap.html?address='+this.infoData.address
|
|
|
+ }else{
|
|
|
+ this.showAddr = true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //选择地图
|
|
|
+ onSelect(item) {
|
|
|
+ this.showAddr = false
|
|
|
+ try {
|
|
|
+ if (systemJudge() == 'Android') {
|
|
|
+ winhc.orgInfoMap(item.type,this.infoData.address||'')
|
|
|
+ } else {
|
|
|
+ ocMethod('orgInfoMap', {
|
|
|
+ 'type': item.type,//高德(gd)、百度(bd)
|
|
|
+ 'addr': this.infoData.address||''
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ baoming() {
|
|
|
+ if(this.share) {
|
|
|
+ window.location.href = this.$downYingYongBaoUrl()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.showpop=true
|
|
|
+ },
|
|
|
+ async tixing() {
|
|
|
+ if(['1','2'].includes(this.infoData.auctionStatus)&&String(this.infoData.notice)==='false') {
|
|
|
+ if(this.share) {
|
|
|
+ window.location.href = this.$downYingYongBaoUrl()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ const Timer=setTimeout(() => {
|
|
|
+ Toast.loading()
|
|
|
+ },300)
|
|
|
+ const res = await Axios('/auction/notice',{
|
|
|
+ auctionItemsId:this.$route.query.auctionItemsId
|
|
|
+ },'post')
|
|
|
+ clearTimeout(Timer)
|
|
|
+ Toast.clear()
|
|
|
+ // this.$toast.success('设置成功');
|
|
|
+ this.showtixing=true
|
|
|
+ this.tixingId=res
|
|
|
+ this.getData()
|
|
|
+ console.log('res=',res)
|
|
|
+ } catch (error) {
|
|
|
+ clearTimeout(Timer)
|
|
|
+ Toast('设置提醒失败')
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ addMsgOk() {
|
|
|
+ this.showtixing=false
|
|
|
+ },
|
|
|
+ copy() {
|
|
|
+ this.$copyText(this.infoData.url,() => {
|
|
|
+ this.showpop=false
|
|
|
+ Toast('链接复制成功')
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goshare() {
|
|
|
+ if(this.infoData.auctionTitle&&this.infoData.secretId) {
|
|
|
+ try {
|
|
|
+ const obj = {
|
|
|
+ title:this.infoData.auctionTitle, // 分享标题
|
|
|
+ desc: '我在赢火虫的司法拍卖发现了还不错的拍品,快来看看吧~', // 分享描述
|
|
|
+ link: winhc_api_common + 'newMobile/#/PaiMaiXiangQing?type=share&pageType=H5&secretId=' + this.infoData.secretId, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
+ imgUrl: 'https://winhc.oss-cn-shanghai.aliyuncs.com/shareImg/logo256x256.png' // 分享图标
|
|
|
+ }
|
|
|
+ if (systemJudge() === 'Android') {
|
|
|
+ console.log(winhc)
|
|
|
+ winhc.shareH5(JSON.stringify(obj))
|
|
|
+ } else {
|
|
|
+ console.log('ios')
|
|
|
+ ocMethod('shareH5', obj)
|
|
|
+ }
|
|
|
+ this.showpop=false
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ goWeb() {
|
|
|
+ if(this.infoData.url) {
|
|
|
+ this.showpop=false
|
|
|
+ this.$goOuterUrl(this.infoData.url)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed:{
|
|
|
+ auctionStatus() {
|
|
|
+ return (str) => {
|
|
|
+ switch (str) {
|
|
|
+ case '1' : return '拍卖中'
|
|
|
+ case '2' : return '预告中'
|
|
|
+ case '3' : return '拍卖成功'
|
|
|
+ case '4' : return '拍卖失败'
|
|
|
+ case '5' : return '已中止'
|
|
|
+ case '6' : return '已撤回'
|
|
|
+ case '7' : return '已暂缓'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ priceDouhao() {
|
|
|
+ return (p) => {
|
|
|
+ if(isNaN(p)) {
|
|
|
+ return p
|
|
|
+ }
|
|
|
+ if(p!=null&&p!=undefined) {
|
|
|
+ let after='',before=''
|
|
|
+ if(String(p).indexOf('.')!==-1) {
|
|
|
+ p=Number(p).toFixed(2)
|
|
|
+ after='.'+String(p).split('.')[1]
|
|
|
+ p=String(p).split('.')[0]
|
|
|
+ }
|
|
|
+ for (let i = String(p).length,j=1 ; i > 0 ; i--,j++) {
|
|
|
+ before=String(p)[i-1]+before
|
|
|
+ if(i!==1 && j%3===0) {
|
|
|
+ before=','+before
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return before+after
|
|
|
+ }else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ auctionStage() {
|
|
|
+ return (str) => {
|
|
|
+ switch (str) {
|
|
|
+ case '1' : return '一拍'
|
|
|
+ case '2' : return '二拍'
|
|
|
+ case '3' : return '三拍'
|
|
|
+ case '4' : return '变卖'
|
|
|
+ case '5' : return '重新拍卖'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang=scss>
|
|
|
+ /* @import "@/assets/scss/cover.scss"; */
|
|
|
+ #PaiMaiXiangQing{
|
|
|
+ user-select: none;
|
|
|
+ background: #F2F6F9;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ .scroll-con{
|
|
|
+ flex: 1;
|
|
|
+ overflow: auto;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .my-swipe{
|
|
|
+ height: 5rem;
|
|
|
+ background: url("@/assets/img/sifapaimai/zhanwei.png") no-repeat center;
|
|
|
+ background-size: 5.76rem 3.84rem;
|
|
|
+ &.has{
|
|
|
+ background: #fff;
|
|
|
+ }
|
|
|
+ .top-img{
|
|
|
+ height: 5rem;
|
|
|
+ background-size: contain;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: center;
|
|
|
+ }
|
|
|
+ .custom-indicator{
|
|
|
+ min-width: 0.86rem;
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
|
+ border-radius: 0.25rem;
|
|
|
+ font-size: 0.22rem;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: 0.38rem;
|
|
|
+ text-align: center;
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0.2rem;
|
|
|
+ right: 0.32rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .end-time{
|
|
|
+ height: 0.92rem;
|
|
|
+ .end-str{
|
|
|
+ font-size: 0.29rem;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: 0.92rem;
|
|
|
+ text-align: center;
|
|
|
+ width: 2.25rem;
|
|
|
+ height: 0.92rem;
|
|
|
+ float: left;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 2.25rem 0.92rem;
|
|
|
+ }
|
|
|
+ .time-str{
|
|
|
+ font-size: 0.24rem;
|
|
|
+ line-height: 0.92rem;
|
|
|
+ padding-left: 2.57rem;
|
|
|
+ color: #FFFFFF;
|
|
|
+ }
|
|
|
+ &.s1{
|
|
|
+ background: #F8EBEB;
|
|
|
+ .end-str{
|
|
|
+ background-image: url("@/assets/img/sifapaimai/det-1.png");
|
|
|
+ }
|
|
|
+ .time-str{
|
|
|
+ color: #C13E3E;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &.s2{
|
|
|
+ background:#EAF2EF;
|
|
|
+ .end-str{
|
|
|
+ background-image: url("@/assets/img/sifapaimai/det-2.png");
|
|
|
+ }
|
|
|
+ .time-str{
|
|
|
+ color:#2E8665;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &.s3{
|
|
|
+ background: #E0E1E2;
|
|
|
+ .end-str{
|
|
|
+ background-image: url("@/assets/img/sifapaimai/det-3.png");
|
|
|
+ }
|
|
|
+ .time-str{
|
|
|
+ color: #64696E;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .product-det{
|
|
|
+ margin: 0.24rem 0.16rem 0;
|
|
|
+ padding: 0.25rem 0.32rem;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 0.16rem;
|
|
|
+ .tags{
|
|
|
+ span{
|
|
|
+ display: inline-block;
|
|
|
+ padding: 0 0.16rem;
|
|
|
+ font-size: 0.2rem;
|
|
|
+ line-height: 0.36rem;
|
|
|
+ color: #fff;
|
|
|
+ background: #778FA8;
|
|
|
+ border-radius: 0.04rem;
|
|
|
+ margin-right: 0.16rem;
|
|
|
+ margin-bottom: 0.08rem;
|
|
|
+ &.s{
|
|
|
+ color: #0265D9;
|
|
|
+ background: rgba(2, 101, 217, 0.1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .name{
|
|
|
+ font-size: 0.3rem;
|
|
|
+ line-height: 0.46rem;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #242A32;
|
|
|
+ padding-bottom: 0.08rem;
|
|
|
+ }
|
|
|
+ .price{
|
|
|
+ font-size: 0.24rem;
|
|
|
+ line-height: 0.4rem;
|
|
|
+ color: #64696E;
|
|
|
+ .red{
|
|
|
+ font-size: 0.4rem;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #C13E3E;
|
|
|
+ line-height: 0.56rem;
|
|
|
+ }
|
|
|
+ .line{
|
|
|
+ width: 0.02rem;
|
|
|
+ height: 0.12rem;
|
|
|
+ background: #BDBFC1;
|
|
|
+ display: inline-block;
|
|
|
+ vertical-align: middle;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .tip{
|
|
|
+ font-size: 0.22rem;
|
|
|
+ line-height: 0.34rem;
|
|
|
+ color: #C0913C;
|
|
|
+ background: #F8F4EB;
|
|
|
+ border-radius: 0.16rem;
|
|
|
+ padding: 0.06rem 0.08rem;
|
|
|
+ margin-top: 0.16rem;
|
|
|
+ margin-bottom: 0.16rem;
|
|
|
+ display: flex;
|
|
|
+ .source-tips{
|
|
|
+ display: flex;
|
|
|
+ padding: 0 0.08rem;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ flex: 1;
|
|
|
+ .ms{
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ .gx{
|
|
|
+ color: #4A90E2;
|
|
|
+ font-size: 0.2rem;
|
|
|
+ text-decoration-line: underline;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ img{
|
|
|
+ width: 0.34rem;
|
|
|
+ height: 0.34rem;
|
|
|
+ vertical-align: middle;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .table{
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ font-size: 0.24rem;
|
|
|
+ line-height: 0.4rem;
|
|
|
+ color: #64696E;
|
|
|
+ padding-bottom: 0.16rem;
|
|
|
+ margin-bottom: 0.18rem;
|
|
|
+ border-bottom: 1px solid #F8FAFC;
|
|
|
+ .t20{
|
|
|
+ width: 20%;
|
|
|
+ }
|
|
|
+ .t30{
|
|
|
+ width: 30%;
|
|
|
+ }
|
|
|
+ .t25{
|
|
|
+ width: 25%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .address{
|
|
|
+ display: flex;
|
|
|
+ font-size: 0.24rem;
|
|
|
+ color: #64696E;
|
|
|
+ line-height: 0.34rem;
|
|
|
+ img{
|
|
|
+ width: 0.4rem;
|
|
|
+ height: 0.4rem;
|
|
|
+ }
|
|
|
+ .text{
|
|
|
+ flex: 1;
|
|
|
+ padding: 0 0.24rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .record{
|
|
|
+ margin: 0.24rem 0.16rem 0;
|
|
|
+ padding:0 0.32rem;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 0.16rem;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ height: 0.92rem;
|
|
|
+ font-size: 0.24rem;
|
|
|
+ color: #A7AAAD;
|
|
|
+ line-height: 0.40rem;
|
|
|
+ .text{
|
|
|
+ flex: 1;
|
|
|
+ font-size: 0.29rem;
|
|
|
+ color: #242A32;
|
|
|
+ span{
|
|
|
+ color: #0265D9;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ img{
|
|
|
+ width: 0.29rem;
|
|
|
+ height: 0.29rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ :deep() .van-tabs{
|
|
|
+ margin: 0.24rem 0.16rem;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 0.16rem;
|
|
|
+ overflow: hidden;
|
|
|
+ .van-tab__text{
|
|
|
+ font-size: 0.29rem;
|
|
|
+ color: #919498;
|
|
|
+ padding-bottom: 10px !important;
|
|
|
+ }
|
|
|
+ .van-tab--active{
|
|
|
+ .van-tab__text{
|
|
|
+ font-weight: bold;
|
|
|
+ color: #242A32;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .van-tabs__line{
|
|
|
+ width:0.48rem !important;
|
|
|
+ height: 0.04rem;
|
|
|
+ bottom: 20px;
|
|
|
+ background-color: #0265D9;
|
|
|
+ }
|
|
|
+ .van-hairline--top-bottom::after, .van-hairline-unset--top-bottom::after{
|
|
|
+ border-color: #F8FAFC;
|
|
|
+ }
|
|
|
+ .html{
|
|
|
+ overflow: hidden;
|
|
|
+ padding: 0.2rem 0.32rem 0.32rem;
|
|
|
+ color: #242A32;
|
|
|
+ line-height: 0.40rem;
|
|
|
+ font-size: 0.29rem!important;
|
|
|
+ font-family: -apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC','Hiragino Sans GB','Microsoft Yahei',sans-serif!important;
|
|
|
+ p,span,div,a{
|
|
|
+ font-size: 0.29rem!important;
|
|
|
+ font-family: -apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC','Hiragino Sans GB','Microsoft Yahei',sans-serif!important;
|
|
|
+ }
|
|
|
+ table{
|
|
|
+ width: 100%!important;
|
|
|
+ margin: 0!important;
|
|
|
+ td,th{
|
|
|
+ width: auto!important;
|
|
|
+ word-break: break-all !important;
|
|
|
+ white-space: normal !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ table.xmxx_objtab{
|
|
|
+ td,th,tr{
|
|
|
+ font-size: 0.24rem!important;
|
|
|
+ }
|
|
|
+ th,td{
|
|
|
+ text-indent: 0;
|
|
|
+ text-align: left;
|
|
|
+ border-right: 1px solid #222;
|
|
|
+ border-bottom: 1px solid #222;
|
|
|
+ }
|
|
|
+ border-top: 1px solid #222;
|
|
|
+ border-left: 1px solid #222;
|
|
|
+ }
|
|
|
+ img{
|
|
|
+ max-width: 100%!important;
|
|
|
+ }
|
|
|
+ li{
|
|
|
+ list-style: none;
|
|
|
+ }
|
|
|
+ #pmgg{
|
|
|
+ p{
|
|
|
+ margin-left: 0!important;
|
|
|
+ TEXT-INDENT: 24pt!important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .n_detail_cont .n_cont table{
|
|
|
+ table-layout:fixed !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .footer{
|
|
|
+ background: #FFFFFF;
|
|
|
+ padding: 0.12rem 0.32rem 0.4rem;
|
|
|
+ display: flex;
|
|
|
+ .left,.right{
|
|
|
+ flex: 1;
|
|
|
+ font-size: 0.3rem;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: 0.94rem;
|
|
|
+ text-align: center;
|
|
|
+ img{
|
|
|
+ width: 0.32rem;
|
|
|
+ height: 0.32rem;
|
|
|
+ vertical-align: middle;
|
|
|
+ margin-right: 0.16rem;
|
|
|
+ position: relative;
|
|
|
+ top:-1px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .left{
|
|
|
+ background: #242A32;
|
|
|
+ border-top-left-radius: 0.94rem;
|
|
|
+ border-bottom-left-radius: 0.94rem;
|
|
|
+ }
|
|
|
+ .right{
|
|
|
+ background: #64696E;
|
|
|
+ border-top-right-radius: 0.94rem;
|
|
|
+ border-bottom-right-radius: 0.94rem;
|
|
|
+ &.s{
|
|
|
+ background: linear-gradient(148deg, #177FFE 0%, #1651FE 100%);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .pop-btm{
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 0.24rem 0.24rem 0rem 0rem;
|
|
|
+ padding: 0.3rem 0.4rem 1rem;
|
|
|
+ .list{
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .left{
|
|
|
+ padding-right: 0.24rem;
|
|
|
+ img{
|
|
|
+ width: 0.48rem;
|
|
|
+ height: 0.48rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .center{
|
|
|
+ flex: 1;
|
|
|
+ border-bottom: 1px solid #F8FAFC;
|
|
|
+ line-height: 1.04rem;
|
|
|
+ font-size: 0.3rem;
|
|
|
+ color: #242A32;
|
|
|
+ }
|
|
|
+ .right{
|
|
|
+ width: 0.28rem;
|
|
|
+ height: 0.28rem;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 0.4rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .pop-tixing{
|
|
|
+ width: 100%;
|
|
|
+ padding: 0 0.32rem;
|
|
|
+ background: none;
|
|
|
+ .con{
|
|
|
+ padding: 0.48rem;
|
|
|
+ border-radius: 0.24rem;
|
|
|
+ background: #fff url("@/assets/img/sifapaimai/bg.png");
|
|
|
+ background-size: 2.7rem 1.74rem;
|
|
|
+ background-position: right top;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ .title{
|
|
|
+ font-size: 0.36rem;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #28303A;
|
|
|
+ line-height: 0.52rem;
|
|
|
+ padding-bottom: 0.1rem;
|
|
|
+ }
|
|
|
+ .content{
|
|
|
+ font-size: 0.26rem;
|
|
|
+ color: #242A32;
|
|
|
+ line-height: 0.36rem;
|
|
|
+ .c{
|
|
|
+ color: #0265D9;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .btm{
|
|
|
+ margin-top: 0.96rem;
|
|
|
+ font-size: 0.3rem;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #2C3643;
|
|
|
+ line-height: 0.3rem;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|
|
|
+/* eslint-disable no-alert, no-console */
|