|
@@ -216,6 +216,7 @@
|
|
<!-- 底部操作菜单 -->
|
|
<!-- 底部操作菜单 -->
|
|
<view class="page-bottom1">
|
|
<view class="page-bottom1">
|
|
<view class="Regular">
|
|
<view class="Regular">
|
|
|
|
+ <u-button class="talk-online" @click="editInfo" v-if="show">编辑</u-button>
|
|
<u-button class="talk-online" @click="contactUs">立即沟通</u-button>
|
|
<u-button class="talk-online" @click="contactUs">立即沟通</u-button>
|
|
<u-button @click="salegrain" v-if="goods.pcFlag == 1" type="primary"
|
|
<u-button @click="salegrain" v-if="goods.pcFlag == 1" type="primary"
|
|
class="action-btn no-border add-cart-btn">立即卖粮</u-button>
|
|
class="action-btn no-border add-cart-btn">立即卖粮</u-button>
|
|
@@ -247,6 +248,7 @@
|
|
content1: '您尚未登录,是否立即登录?',
|
|
content1: '您尚未登录,是否立即登录?',
|
|
content: '您还未认证粮商身份,下单前请先完善您的身份信息。',
|
|
content: '您还未认证粮商身份,下单前请先完善您的身份信息。',
|
|
isShowAlert: false,
|
|
isShowAlert: false,
|
|
|
|
+ show: false,
|
|
swiperCurrent: 0,
|
|
swiperCurrent: 0,
|
|
titleNViewBackground: '',
|
|
titleNViewBackground: '',
|
|
swiperLength: 0,
|
|
swiperLength: 0,
|
|
@@ -296,6 +298,9 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
this.goods = res.data.data
|
|
this.goods = res.data.data
|
|
|
|
+ if(that.goods.createUserId == uni.getStorageSync('userInfo').id){
|
|
|
|
+ that.show = true
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
|
|
// .then(res => {
|
|
// .then(res => {
|
|
@@ -313,6 +318,13 @@
|
|
...mapState(['hasLogin', 'userInfo'])
|
|
...mapState(['hasLogin', 'userInfo'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ editInfo(){
|
|
|
|
+ const that = this
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pageD/myRelease/buyEdit?id='+that.goods.id+'&compId='+that.goods.compId
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
alertBtn1() {
|
|
alertBtn1() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/public/login'
|
|
url: '/pages/public/login'
|