|
@@ -1,34 +1,32 @@
|
|
<template>
|
|
<template>
|
|
<view class="container">
|
|
<view class="container">
|
|
|
|
+ <view class="back-btn cuIcon-back" @click="navBack"></view>
|
|
|
|
+ <view class='title1'>采购详情</view>
|
|
|
|
+ <image style='width:100%;' src='../../static/img/jiaoyi/bg@3x.png'></image>
|
|
<view class="introduce-section">
|
|
<view class="introduce-section">
|
|
- <view class="price-box">
|
|
|
|
- <view class="title">{{goods.title}}</view>
|
|
|
|
- <view v-if='goods.isFutures==0' class="title-tip">
|
|
|
|
- <text class="price-tip">¥</text>
|
|
|
|
- <text class="price">{{goods.price}}</text>
|
|
|
|
- <text class="price-tip">元/吨</text>
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="title-tip">
|
|
|
|
- <text class="price-tip">今日基差</text>
|
|
|
|
- <text class="price-tip">¥</text>
|
|
|
|
- <text class="price-tip">{{goods.basis}}</text>
|
|
|
|
- <text class="price-tip">元/吨</text>
|
|
|
|
|
|
+ <view style='height:70px;'>
|
|
|
|
+ <view class="title">{{goods.title}}(元/吨)</view>
|
|
|
|
+ <view class='flex justify-between'>
|
|
|
|
+ <view style='flex:1.5;color:#878C9C;'>{{goods.receivePrivate}}{{goods.receiveCity}}{{goods.receiveArea}}{{goods.receiveWarehouse}}</view>
|
|
|
|
+ <view v-if='goods.procurementPlanType=="现货"' class="title-tip">
|
|
|
|
+ <text class="price">{{goods.unitPrice}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view style='text-align:right;' v-else class="title-tip">
|
|
|
|
+ {{goods.basisPrice}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view style='text-align:right;' v-if='goods.procurementPlanType=="现货"'>采购价格</view>
|
|
|
|
+ <view style='text-align:right;' v-if='goods.procurementPlanType=="期货"'>今日基差</view>
|
|
</view>
|
|
</view>
|
|
- <view class="bot-row">
|
|
|
|
|
|
+ <!-- <view class="bot-row">
|
|
<view v-if='goods.companyId==2' class='cu-tag radius line-orange'>佳屹农</view>
|
|
<view v-if='goods.companyId==2' class='cu-tag radius line-orange'>佳屹农</view>
|
|
<view v-else class='cu-tag radius line-orange'>易粮易运</view>
|
|
<view v-else class='cu-tag radius line-orange'>易粮易运</view>
|
|
<view v-if='goods.sellerPhone && goods.companyId!=2' class='cu-tag radius line-orange' >{{goods.sellerPhone}}</view>
|
|
<view v-if='goods.sellerPhone && goods.companyId!=2' class='cu-tag radius line-orange' >{{goods.sellerPhone}}</view>
|
|
- <!-- <view class='cu-tag radius line-orange'>{{goods.basis}}元/吨</view> -->
|
|
|
|
</view>
|
|
</view>
|
|
- <!-- <view v-if='goods.companyId==2' class="bot-row">
|
|
|
|
- <view class='cu-tag radius line-orange'>大袋{{goods.basisBig}}</view>
|
|
|
|
- <view class='cu-tag radius line-orange'>小袋装{{goods.basisSmall}}</view>
|
|
|
|
- </view> -->
|
|
|
|
<view v-if='goods.companyId!=2' class="bot-row">
|
|
<view v-if='goods.companyId!=2' class="bot-row">
|
|
<view class='cu-tag radius line-orange'>剩余量: {{goods.total - goods.soldCount}}吨</view>
|
|
<view class='cu-tag radius line-orange'>剩余量: {{goods.total - goods.soldCount}}吨</view>
|
|
<view class='cu-tag radius line-orange'>总量: {{goods.total}}吨</view>
|
|
<view class='cu-tag radius line-orange'>总量: {{goods.total}}吨</view>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
<view v-if="goods.storeImg" class="carousel-section">
|
|
<view v-if="goods.storeImg" class="carousel-section">
|
|
<swiper autoplay="true" interval="3000" duration="500" class="carousel" circular @change="swiperChange">
|
|
<swiper autoplay="true" interval="3000" duration="500" class="carousel" circular @change="swiperChange">
|
|
@@ -53,140 +51,163 @@
|
|
<view class="d-header">
|
|
<view class="d-header">
|
|
<text>基本信息</text>
|
|
<text>基本信息</text>
|
|
</view>
|
|
</view>
|
|
- <view class="c-list">
|
|
|
|
- <view class="c-row b-b">
|
|
|
|
- <text class="tit">品种</text>
|
|
|
|
|
|
+ <view class="c-list">
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">货名</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<text>{{goods.goodsName}}</text>
|
|
<text>{{goods.goodsName}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.companyId!=2' class="c-row b-b">
|
|
|
|
- <text class="tit">产地</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">采购量(吨)</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.origin}}</text>
|
|
|
|
|
|
+ <text>{{goods.plannedPurchaseVolume}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.companyId!=2' class="c-row b-b">
|
|
|
|
- <text class="tit">国标等级</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">最小成交量(吨)</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.level}}</text>
|
|
|
|
|
|
+ <text>{{goods.minimumVolume}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.companyId!=2' class="c-row b-b">
|
|
|
|
- <text class="tit">年份</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">类型</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.year}}</text>
|
|
|
|
|
|
+ <text>{{goods.procurementPlanType}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.companyId!=2' class="c-row b-b">
|
|
|
|
- <text class="tit">包装方式</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">价格类型</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.packing}}</text>
|
|
|
|
|
|
+ <text>{{goods.priceType}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="c-row b-b">
|
|
|
|
- <text class="tit">最小成交量</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">收货地区</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.minSale}}(吨)</text>
|
|
|
|
|
|
+ <text>{{goods.receivePrivate}}{{goods.receiveCity}}{{goods.receiveArea}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.isFutures==0' class="c-row b-b">
|
|
|
|
- <text class="tit">剩余量</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">运费承担方</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{numFilter(goods.total-goods.soldCount)}}</text>
|
|
|
|
|
|
+ <text>{{goods.freightPayer}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="c-row b-b">
|
|
|
|
- <text class="tit">价格类型</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">包装方式</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.priceType}}</text>
|
|
|
|
|
|
+ <text>{{goods.packingType}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="c-row b-b">
|
|
|
|
- <text class="tit">库存地</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">袋装备注</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.stock}}</text>
|
|
|
|
|
|
+ <text>{{goods.baggingNotes}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">买方</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <text>{{goods.buyer}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">买方电话</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <view>{{goods.buyerPhone}} <a :href="'tel:'+goods.buyerPhone"><image style='width:11px;height:11px;' src='../../static/img/jiaoyi/gengduo1@3x.png'></image></a></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="detail-desc">
|
|
<view class="d-header">
|
|
<view class="d-header">
|
|
- <text>粮食指标</text>
|
|
|
|
|
|
+ <text>货物要求</text>
|
|
</view>
|
|
</view>
|
|
<view class="c-list">
|
|
<view class="c-list">
|
|
- <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
|
|
|
|
- <text class="tit">杂质(%){{'<='}}</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">水分(%){{'<='}} </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.impurity}}</text>
|
|
|
|
|
|
+ <text>{{goods.waterContent}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
|
|
|
|
- <text class="tit">生霉粒(%){{'<='}}</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">容重(g/L){{'<='}}</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.moldy}}</text>
|
|
|
|
|
|
+ <text>{{goods.bulkDensity}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
|
|
|
|
- <text class="tit">容重(g/L){{'<='}}</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">热损伤(%){{'<='}}</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.bulkDensity}}</text>
|
|
|
|
|
|
+ <text>{{goods.jiaorenli}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
|
|
|
|
- <text class="tit">气味、色泽</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">杂质(%){{'<='}}</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.smell}}</text>
|
|
|
|
|
|
+ <text>{{goods.impurity}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <!-- <view v-if='goods.goodsName=="玉米"' class="c-row b-b">
|
|
|
|
- <text class="tit">热损(%){{'<='}}</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">霉变粒(%){{'<='}}</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.heatLoss}}</text>
|
|
|
|
|
|
+ <text>{{goods.mildewGrain}}</text>
|
|
</view>
|
|
</view>
|
|
- </view> -->
|
|
|
|
- <view class="c-row b-b">
|
|
|
|
- <text class="tit">水分(%){{'<='}} </text>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">不完善粒(%){{'<='}}</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.waterContent}}</text>
|
|
|
|
|
|
+ <text>{{goods.imperfectGrain}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.goodsName=="大豆"' class="c-row b-b">
|
|
|
|
|
|
+ <view class="c-row">
|
|
<text class="tit">蛋白(%){{'>='}} </text>
|
|
<text class="tit">蛋白(%){{'>='}} </text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<text>{{goods.protein}}</text>
|
|
<text>{{goods.protein}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='goods.goodsName=="大豆"' class="c-row b-b">
|
|
|
|
|
|
+ <view class="c-row">
|
|
<text class="tit">粒型</text>
|
|
<text class="tit">粒型</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <text>{{goods.grainType}}</text>
|
|
|
|
|
|
+ <text>{{goods.grain}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="goods.userName1" class="c-row b-b">
|
|
|
|
- <text class="tit">价格</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">品级</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <input placeholder="请填写" name="input" v-model="price" @input="priceInput"></input>
|
|
|
|
|
|
+ <text>{{goods.grade}}</text>
|
|
</view>
|
|
</view>
|
|
- <button class='cu-btn bg-green shadow' @click="changePrice">修改价格</button>
|
|
|
|
</view>
|
|
</view>
|
|
- <view v-if="goods.userName1" class="c-row b-b">
|
|
|
|
- <text class="tit">备注</text>
|
|
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">产地</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <text>{{goods.outputPrivate}}{{goods.outputCity}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <text class="tit">产出年份</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <input placeholder="请填写" name="input" v-model="reason" @input="reasonInput"></input>
|
|
|
|
|
|
+ <text>{{goods.outputYear}}</text>
|
|
</view>
|
|
</view>
|
|
- <button class='cu-btn bg-red shadow' @click="endSale">终止销售</button>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if='status' class='shade'>
|
|
|
|
+ <view class='shade-content'>
|
|
|
|
+ <view class='shade-content-item'>
|
|
|
|
+ 您的粮商身份正在审核中,请耐心等待认证状态可在<text>我的-身份认证</text>中查看
|
|
|
|
+ </view>
|
|
|
|
+ <image @click='status==false' style='width:30px;height:30px;margin-top:10px;' src='../../static/img/jiaoyi/guanbi-2@3x.png'></image>
|
|
</view>
|
|
</view>
|
|
- <view v-if="goods.userName" class="padding-xl" @click="navToDetailPage()">
|
|
|
|
- <button class="cu-btn block line-orange lg">
|
|
|
|
- <text class="cuIcon-upload"></text> 上传图片</button>
|
|
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|
|
<!-- 底部操作菜单 -->
|
|
<!-- 底部操作菜单 -->
|
|
- <view class="page-bottom">
|
|
|
|
- <view class="action-btn-group">
|
|
|
|
- <button type="primary" class=" action-btn no-border buy-now-btn" @click="contactUs">联系我们</button>
|
|
|
|
- <button v-if="goods.status == 1" type="primary" class=" action-btn no-border add-cart-btn" >交易结束</button>
|
|
|
|
- <button v-else type="primary" class=" action-btn no-border add-cart-btn" @click="tradeNow">我要买粮</button>
|
|
|
|
|
|
+ <view class="page-bottom1">
|
|
|
|
+ <view>
|
|
|
|
+ <button type="primary" @click="contactUs">在线客服</button>
|
|
|
|
+ <button @click="salegrain" v-if="goods.pcFlag == 1" type="primary" class=" action-btn no-border add-cart-btn" >立即卖粮</button>
|
|
|
|
+ <button v-else type="primary" class=" action-btn no-border add-cart-btn"
|
|
|
|
+ @click="tradeNow">立即发车</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -230,6 +251,7 @@
|
|
minSale: 0,
|
|
minSale: 0,
|
|
status:0
|
|
status:0
|
|
},
|
|
},
|
|
|
|
+ status:false,
|
|
share:{
|
|
share:{
|
|
title: '',
|
|
title: '',
|
|
imageUrl:'https://taohaoliang.oss-cn-beijing.aliyuncs.com/shareLogo.png',
|
|
imageUrl:'https://taohaoliang.oss-cn-beijing.aliyuncs.com/shareLogo.png',
|
|
@@ -247,21 +269,21 @@
|
|
title: '正在加载',
|
|
title: '正在加载',
|
|
mask:true
|
|
mask:true
|
|
})
|
|
})
|
|
- that.$api.request('goods', 'getSaleDetailInfo', {
|
|
|
|
- id: options.id
|
|
|
|
- }, failres => {
|
|
|
|
- that.$api.msg(failres.errmsg)
|
|
|
|
- uni.hideLoading()
|
|
|
|
- }).then(res => {
|
|
|
|
- console.log(res.data)
|
|
|
|
- that.goods = res.data
|
|
|
|
- that.swiperLength = 3
|
|
|
|
- if(that.goods.soldCount >= that.goods.total){
|
|
|
|
- that.goods.status = 1
|
|
|
|
- }
|
|
|
|
- that.share.title = that.goods.title
|
|
|
|
|
|
+ this.$api.doRequest('get', '/procurementPlanInfo/getProcurementPlan',{id:options.id}).then(res => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
|
+ this.goods=res.data.data
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ // .then(res => {
|
|
|
|
+ // console.log(res.data)
|
|
|
|
+ // that.goods = res.data
|
|
|
|
+ // that.swiperLength = 3
|
|
|
|
+ // if(that.goods.soldCount >= that.goods.total){
|
|
|
|
+ // that.goods.status = 1
|
|
|
|
+ // }
|
|
|
|
+ // that.share.title = that.goods.title
|
|
|
|
+ // uni.hideLoading()
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin','userInfo'])
|
|
...mapState(['hasLogin','userInfo'])
|
|
@@ -295,9 +317,8 @@
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
uni.makePhoneCall({
|
|
uni.makePhoneCall({
|
|
-
|
|
|
|
// 手机号
|
|
// 手机号
|
|
- phoneNumber: that.goods.sellerPhone,
|
|
|
|
|
|
+ phoneNumber: that.goods.buyerPhone,
|
|
|
|
|
|
// 成功回调
|
|
// 成功回调
|
|
success: (res) => {
|
|
success: (res) => {
|
|
@@ -354,6 +375,80 @@
|
|
setTimeout(()=>{uni.navigateBack()},1000);
|
|
setTimeout(()=>{uni.navigateBack()},1000);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ salegrain(){
|
|
|
|
+ console.log(this.userInfo)
|
|
|
|
+ if (!this.hasLogin) {
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '登录提示',
|
|
|
|
+ content: '您尚未登录,是否立即登录?',
|
|
|
|
+ showCancel: true,
|
|
|
|
+ confirmText: '登录',
|
|
|
|
+ success: (e) => {
|
|
|
|
+ if (e.confirm) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pageA/product/trade?id=${that.goods.id}&packing=${that.goods.packing}}&province=${that.goods.province}
|
|
|
|
+ &city=${that.goods.city}&area=${that.goods.area}&storeName=${that.goods.storeName}&seller=${that.goods.seller}
|
|
|
|
+ &companyId=${that.goods.companyId}&sellerPhone=${that.goods.sellerPhone}&minSale=${that.goods.minSale}
|
|
|
|
+ &exsitCount=${that.goods.total}&isFutures=${that.goods.isFutures}
|
|
|
|
+ &basis=${that.goods.basis}&basisSmall=${that.goods.basisSmall}&basisBig=${that.goods.basisBig}
|
|
|
|
+ &unloadingFee=${that.goods.unloadingFee}`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ fail: () => {},
|
|
|
|
+ complete: () => {}
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo',{commonId:this.userInfo.id}).then(res => {
|
|
|
|
+ if(res.data.code==200){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/public/login'
|
|
|
|
+ })
|
|
|
|
+ }else if(res.data.code==11016){
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '温馨提示',
|
|
|
|
+ content: '您还未认证粮商身份, 下单前请先完善您的身份信息',
|
|
|
|
+ confirmText: "去认证",
|
|
|
|
+ confirmColor: '#22C572',
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ uni.navigateTo({//跳转页面
|
|
|
|
+ url:"../index/index"
|
|
|
|
+ })
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }else if(res.data.code==11017){
|
|
|
|
+ this.status=true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ // uni.showModal({
|
|
|
|
+ // title: '温馨提示',
|
|
|
|
+ // content: '请在发车前认真核实买方身份,并在签订正规的交易合同后发起发车操作,是否继续发车?',
|
|
|
|
+ // confirmText: "发车",
|
|
|
|
+ // confirmColor: '#22C572',
|
|
|
|
+ // success: function (res) {
|
|
|
|
+ // if (res.confirm) {
|
|
|
|
+ // uni.navigateTo({//跳转页面
|
|
|
|
+ // url:"../index/index"
|
|
|
|
+ // })
|
|
|
|
+ // } else if (res.cancel) {
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // const that = this
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: `/pageA/product/trade?id=${that.goods.id}&packing=${that.goods.packing}}&province=${that.goods.province}
|
|
|
|
+ // &city=${that.goods.city}&area=${that.goods.area}&storeName=${that.goods.storeName}&seller=${that.goods.seller}
|
|
|
|
+ // &companyId=${that.goods.companyId}&sellerPhone=${that.goods.sellerPhone}&minSale=${that.goods.minSale}
|
|
|
|
+ // &exsitCount=${that.goods.total}&isFutures=${that.goods.isFutures}
|
|
|
|
+ // &basis=${that.goods.basis}&basisSmall=${that.goods.basisSmall}&basisBig=${that.goods.basisBig}
|
|
|
|
+ // &unloadingFee=${that.goods.unloadingFee}`
|
|
|
|
+ // })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
endSale(){
|
|
endSale(){
|
|
const that = this
|
|
const that = this
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
@@ -373,35 +468,56 @@
|
|
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ navBack() {
|
|
|
|
+ uni.navigateBack();
|
|
|
|
+ },
|
|
tradeNow(){
|
|
tradeNow(){
|
|
- if (!this.hasLogin) {
|
|
|
|
- uni.showModal({
|
|
|
|
- title: '登录提示',
|
|
|
|
- content: '您尚未登录,是否立即登录?',
|
|
|
|
- showCancel: true,
|
|
|
|
- confirmText: '登录',
|
|
|
|
- success: (e) => {
|
|
|
|
- if (e.confirm) {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/public/login'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- fail: () => {},
|
|
|
|
- complete: () => {}
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- else{
|
|
|
|
- const that = this
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pageA/product/trade?id=${that.goods.id}&packing=${that.goods.packing}}&province=${that.goods.province}
|
|
|
|
- &city=${that.goods.city}&area=${that.goods.area}&storeName=${that.goods.storeName}&seller=${that.goods.seller}
|
|
|
|
- &companyId=${that.goods.companyId}&sellerPhone=${that.goods.sellerPhone}&minSale=${that.goods.minSale}
|
|
|
|
- &exsitCount=${that.goods.total}&isFutures=${that.goods.isFutures}
|
|
|
|
- &basis=${that.goods.basis}&basisSmall=${that.goods.basisSmall}&basisBig=${that.goods.basisBig}
|
|
|
|
- &unloadingFee=${that.goods.unloadingFee}`
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo',{commonId:options.id}).then(res => {
|
|
|
|
+ // uni.hideLoading()
|
|
|
|
+ // this.goods=res.data.data
|
|
|
|
+ // })
|
|
|
|
+ // if (!this.hasLogin) {
|
|
|
|
+ // uni.showModal({
|
|
|
|
+ // title: '登录提示',
|
|
|
|
+ // content: '您尚未登录,是否立即登录?',
|
|
|
|
+ // showCancel: true,
|
|
|
|
+ // confirmText: '登录',
|
|
|
|
+ // success: (e) => {
|
|
|
|
+ // if (e.confirm) {
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: '/pages/public/login'
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // fail: () => {},
|
|
|
|
+ // complete: () => {}
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // else{
|
|
|
|
+ // uni.showModal({
|
|
|
|
+ // title: '温馨提示',
|
|
|
|
+ // content: '请在发车前认真核实买方身份,并在签订正规的交易合同后发起发车操作,是否继续发车?',
|
|
|
|
+ // confirmText: "发车",
|
|
|
|
+ // confirmColor: '#22C572',
|
|
|
|
+ // success: function (res) {
|
|
|
|
+ // if (res.confirm) {
|
|
|
|
+ // uni.navigateTo({//跳转页面
|
|
|
|
+ // url:"../index/index"
|
|
|
|
+ // })
|
|
|
|
+ // } else if (res.cancel) {
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // const that = this
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: `/pageA/product/trade?id=${that.goods.id}&packing=${that.goods.packing}}&province=${that.goods.province}
|
|
|
|
+ // &city=${that.goods.city}&area=${that.goods.area}&storeName=${that.goods.storeName}&seller=${that.goods.seller}
|
|
|
|
+ // &companyId=${that.goods.companyId}&sellerPhone=${that.goods.sellerPhone}&minSale=${that.goods.minSale}
|
|
|
|
+ // &exsitCount=${that.goods.total}&isFutures=${that.goods.isFutures}
|
|
|
|
+ // &basis=${that.goods.basis}&basisSmall=${that.goods.basisSmall}&basisBig=${that.goods.basisBig}
|
|
|
|
+ // &unloadingFee=${that.goods.unloadingFee}`
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -411,8 +527,16 @@
|
|
|
|
|
|
|
|
|
|
<style lang='scss'>
|
|
<style lang='scss'>
|
|
|
|
+ .title1{
|
|
|
|
+ position:absolute;
|
|
|
|
+ left:50%;
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
+ top: 40upx;
|
|
|
|
+ z-index:9999;
|
|
|
|
+ color:#fff;
|
|
|
|
+ }
|
|
page {
|
|
page {
|
|
- background: $page-color-base;
|
|
|
|
|
|
+ background: #F5F6FA;
|
|
/* padding-bottom: 160upx; */
|
|
/* padding-bottom: 160upx; */
|
|
}
|
|
}
|
|
.container{
|
|
.container{
|
|
@@ -647,34 +771,22 @@
|
|
.detail-desc {
|
|
.detail-desc {
|
|
background: #fff;
|
|
background: #fff;
|
|
margin-top: 16upx;
|
|
margin-top: 16upx;
|
|
- width: 750upx;
|
|
|
|
-
|
|
|
|
|
|
+ margin:10px;
|
|
|
|
+ position:relative;
|
|
|
|
+ z-index:4;
|
|
|
|
+ border-radius:5px;
|
|
.d-header {
|
|
.d-header {
|
|
display: flex;
|
|
display: flex;
|
|
- justify-content: center;
|
|
|
|
- align-items: center;
|
|
|
|
- height: 80upx;
|
|
|
|
|
|
+ padding:10px;
|
|
font-size: $font-base + 2upx;
|
|
font-size: $font-base + 2upx;
|
|
color: $font-color-dark;
|
|
color: $font-color-dark;
|
|
position: relative;
|
|
position: relative;
|
|
-
|
|
|
|
|
|
+ border-bottom:1px solid #EEEEEE;
|
|
text {
|
|
text {
|
|
padding: 0 20upx;
|
|
padding: 0 20upx;
|
|
- background: #fff;
|
|
|
|
position: relative;
|
|
position: relative;
|
|
z-index: 1;
|
|
z-index: 1;
|
|
}
|
|
}
|
|
-
|
|
|
|
- &:after {
|
|
|
|
- position: absolute;
|
|
|
|
- left: 50%;
|
|
|
|
- top: 50%;
|
|
|
|
- transform: translateX(-50%);
|
|
|
|
- width: 300upx;
|
|
|
|
- height: 0;
|
|
|
|
- content: '';
|
|
|
|
- border-bottom: 1px solid #ccc;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -886,20 +998,30 @@
|
|
}
|
|
}
|
|
|
|
|
|
/* 底部操作菜单 */
|
|
/* 底部操作菜单 */
|
|
- .page-bottom {
|
|
|
|
|
|
+ .page-bottom1 {
|
|
position: fixed;
|
|
position: fixed;
|
|
- left: 30upx;
|
|
|
|
- bottom: 30upx;
|
|
|
|
|
|
+ left: 0;
|
|
|
|
+ bottom: 0;
|
|
z-index: 95;
|
|
z-index: 95;
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- align-items: center;
|
|
|
|
- width: 690upx;
|
|
|
|
- height: 100upx;
|
|
|
|
|
|
+ width:100%;
|
|
|
|
+ height: 70px;
|
|
background: rgba(255, 255, 255, .9);
|
|
background: rgba(255, 255, 255, .9);
|
|
- box-shadow: 0 0 20upx 0 rgba(0, 0, 0, .5);
|
|
|
|
- border-radius: 16upx;
|
|
|
|
-
|
|
|
|
|
|
+ padding:15px;
|
|
|
|
+ border-radius: 0;
|
|
|
|
+ text-align:right;
|
|
|
|
+ button{
|
|
|
|
+ display:inline-block;
|
|
|
|
+ border-radius:18px;
|
|
|
|
+ margin:0 10px;
|
|
|
|
+ font-size:14px;background:#fff;
|
|
|
|
+ color:#333;
|
|
|
|
+ border:1px solid #333;
|
|
|
|
+ }
|
|
|
|
+ .action-btn{
|
|
|
|
+ background:#22C572;
|
|
|
|
+ color:#fff;
|
|
|
|
+ border:1px solid #22C572;
|
|
|
|
+ }
|
|
.p-b-btn {
|
|
.p-b-btn {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
@@ -950,14 +1072,19 @@
|
|
/* 销售信息 */
|
|
/* 销售信息 */
|
|
.introduce-section {
|
|
.introduce-section {
|
|
background: #fff;
|
|
background: #fff;
|
|
- padding: 20upx 30upx;
|
|
|
|
- padding-bottom: 100upx;
|
|
|
|
|
|
+ padding: 30upx 30upx;
|
|
|
|
+ position:relative;
|
|
|
|
+ margin:10px;
|
|
|
|
+ padding-bottom:25px;
|
|
|
|
+ margin-top:-148px;
|
|
|
|
+ border-radius:5px;
|
|
|
|
+ z-index:4;
|
|
.guess-item {
|
|
.guess-item {
|
|
padding-bottom: 20upx;
|
|
padding-bottom: 20upx;
|
|
border-bottom: 1px solid #ccc;
|
|
border-bottom: 1px solid #ccc;
|
|
}
|
|
}
|
|
.title {
|
|
.title {
|
|
- font-size: 28upx;
|
|
|
|
|
|
+ font-size: 16px;
|
|
color: $font-color-dark;
|
|
color: $font-color-dark;
|
|
font-weight:bold;
|
|
font-weight:bold;
|
|
height: 50upx;
|
|
height: 50upx;
|
|
@@ -966,6 +1093,7 @@
|
|
}
|
|
}
|
|
.title-tip {
|
|
.title-tip {
|
|
flex:1.5;
|
|
flex:1.5;
|
|
|
|
+ color:#FD714F;font-size:30px;
|
|
}
|
|
}
|
|
.price-box {
|
|
.price-box {
|
|
display: flex;
|
|
display: flex;
|
|
@@ -1009,4 +1137,37 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .back-btn {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 40upx;
|
|
|
|
+ z-index: 9999;
|
|
|
|
+ padding-top: var(--status-bar-height);
|
|
|
|
+ top: 40upx;
|
|
|
|
+ font-size: 40upx;
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ .shade{
|
|
|
|
+ position:fixed;
|
|
|
|
+ top:0;
|
|
|
|
+ left:0;
|
|
|
|
+ width:100%;background:rgba(0,0,0,0.5);
|
|
|
|
+ height:100%;
|
|
|
|
+ z-index:999999;
|
|
|
|
+ }
|
|
|
|
+ .shade-content{
|
|
|
|
+ position:absolute;
|
|
|
|
+ top:50%;
|
|
|
|
+ left:50%;
|
|
|
|
+ transform: translateX(-50%) translateY(-50%);
|
|
|
|
+ z-index:999999;
|
|
|
|
+ text-align:center;
|
|
|
|
+ }
|
|
|
|
+ .shade-content-item{
|
|
|
|
+ background:#fff;
|
|
|
|
+ width: 277px;
|
|
|
|
+ text-align:center;
|
|
|
|
+ height:121px;
|
|
|
|
+ padding:35px 10px;
|
|
|
|
+ border-radius:15px;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|