|
@@ -8,16 +8,16 @@
|
|
|
<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">
|
|
|
+ <view style='flex:1.5;color:#878C9C;'>{{goods.sendPrivate}}{{goods.sendCity}}{{goods.sendArea}}{{goods.sendWarehouse}}</view>
|
|
|
+ <view v-if='goods.salePlanType=="现货"' 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 style='text-align:right;' v-if='goods.procurementPlanType=="现货"'>采购价格</view>
|
|
|
- <view style='text-align:right;' v-if='goods.procurementPlanType=="期货"'>今日基差</view>
|
|
|
+ <view style='text-align:right;' v-if='goods.salePlanType=="现货"'>采购价格</view>
|
|
|
+ <view style='text-align:right;' v-if='goods.salePlanType=="期货"'>今日基差</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="goods.storeImg" class="carousel-section">
|
|
@@ -104,7 +104,7 @@
|
|
|
<text>{{goods.packingType}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row">
|
|
|
+ <view class="c-row" v-if="goods.packingType == '大袋' || goods.packingType == '小袋'">
|
|
|
<text class="tit">袋装备注</text>
|
|
|
<view class="con-list">
|
|
|
<text>{{goods.baggingNotes}}</text>
|
|
@@ -262,8 +262,6 @@
|
|
|
},
|
|
|
reason:"",
|
|
|
price:undefined,
|
|
|
-
|
|
|
-
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
@@ -467,49 +465,51 @@
|
|
|
// 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}`
|
|
|
- // })
|
|
|
- // }
|
|
|
-
|
|
|
+ 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/business_sale?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}`
|
|
|
+ url:`/pageA/product/business_sale?id=${that.goods.id}&buyer=${that.goods.buyer}&seller=${that.goods.seller}&sendPrivate=${that.goods.sendPrivate}
|
|
|
+ &sendCity=${that.goods.sendCity}&sendArea=${that.goods.sendArea}&sendWarehouse=${that.goods.sendWarehouse}&goodsName=${that.goods.goodsName}
|
|
|
+ &minimumVolume=${that.goods.minimumVolume}&unitPrice=${that.goods.unitPrice}&basisPrice=${that.goods.basisPrice}&`
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|