|
|
@@ -29,7 +29,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="tui-btn-box">
|
|
|
- <view class="btn cancel" v-if='CompanyUserInfo' @click="showpop(item)">发送</view>
|
|
|
+ <view class="btn cancel" v-if='isShare!=1' @click="showpop(item)">发送</view>
|
|
|
<view class="btn cancel" v-if="item.receiveCount>0">已领取</view>
|
|
|
<view class="btn cancel" v-else-if="item.receiveCount==item.totalCount" >已领完</view>
|
|
|
<view class="btn receive" v-else @click="receive(item.id,index)">立即领取</view>
|
|
|
@@ -67,6 +67,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { getCouponIssueById, receive,sendCoupon,searchUser} from '@/api/coupon'
|
|
|
+ import { mapGetters } from 'vuex';
|
|
|
export default {
|
|
|
name: 'getCoupon',
|
|
|
|
|
|
@@ -104,7 +105,8 @@ export default {
|
|
|
})
|
|
|
return {
|
|
|
title: this.item.couponName,
|
|
|
- path: `/pages_company/couponDetails?isShare=1&id=${this.item.id}`
|
|
|
+ path: `/pages_company/couponDetails?isShare=1&id=${this.item.id}`,
|
|
|
+ imageUrl:this.logoimg
|
|
|
}
|
|
|
},
|
|
|
mounted: function() {
|
|
|
@@ -113,6 +115,17 @@ export default {
|
|
|
this.CompanyUserInfo=uni.getStorageSync('CompanyUserInfo');
|
|
|
this.user=uni.getStorageSync('userInfo');
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['logoimg']),
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ logoimg: {
|
|
|
+ immediate: true, // 页面一进入就检查一次
|
|
|
+ handler(val) {
|
|
|
+ return val
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
sendpop(id){
|
|
|
this.sendCoupon(id)
|