|
@@ -193,12 +193,21 @@
|
|
|
</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 class="page-bottom1">
|
|
|
<view>
|
|
|
- <button type="primary" @click="contactUs">联系我们</button>
|
|
|
- <button 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>
|
|
|
+ <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>
|
|
@@ -242,6 +251,7 @@
|
|
|
minSale: 0,
|
|
|
status:0
|
|
|
},
|
|
|
+ status:false,
|
|
|
share:{
|
|
|
title: '',
|
|
|
imageUrl:'https://taohaoliang.oss-cn-beijing.aliyuncs.com/shareLogo.png',
|
|
@@ -307,9 +317,8 @@
|
|
|
}
|
|
|
else{
|
|
|
uni.makePhoneCall({
|
|
|
-
|
|
|
// 手机号
|
|
|
- phoneNumber: that.goods.sellerPhone,
|
|
|
+ phoneNumber: that.goods.buyerPhone,
|
|
|
|
|
|
// 成功回调
|
|
|
success: (res) => {
|
|
@@ -366,6 +375,80 @@
|
|
|
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(){
|
|
|
const that = this
|
|
|
uni.showLoading({
|
|
@@ -385,35 +468,56 @@
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ navBack() {
|
|
|
+ uni.navigateBack();
|
|
|
+ },
|
|
|
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}`
|
|
|
+ // })
|
|
|
+ // }
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -1042,4 +1146,28 @@
|
|
|
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>
|