1.提交代码

yj-dev
杨杰 4 years ago
parent c135169cdb
commit 1940149081
  1. 30
      pages/tabBar/user/user.vue
  2. 2
      pages/user/agentCoupons/agentCoupons.vue

@ -57,6 +57,26 @@
<uni-badge text="1" type="error" /> <uni-badge text="1" type="error" />
</view> --> </view> -->
<uni-badge style="width: 20px;position: absolute; right: 30%;" v-if="row.text == '我的卡券' && textnum "
:text="textnum" type="error" size="normal"></uni-badge>
<uni-badge style="width: 20px;position: absolute; right: 7%;"
v-if="row.text == '我的优惠券' && textSend " :text="textSend" type="error" size="normal"></uni-badge>
<view class="img">
<image :src="row.img"></image>
</view>
<view class="text">{{row.text}}</view>
</view>
</view>
</view>
<!-- 我的推广 -->
<view class="toolbar" style="margin-top: 20px;">
<view class="title">推广中心</view>
<view class="list">
<view class="box" v-for="(row,index) in mytgbarList" :key="index" @tap="toPage(row.url,row.text)">
<!-- <view style="width: 10px;height: 10px;">
<uni-badge text="1" type="error" />
</view> -->
<uni-badge style="width: 20px;position: absolute; right: 30%;" v-if="row.text == '我的卡券' && textnum " <uni-badge style="width: 20px;position: absolute; right: 30%;" v-if="row.text == '我的卡券' && textnum "
:text="textnum" type="error" size="normal"></uni-badge> :text="textnum" type="error" size="normal"></uni-badge>
<uni-badge style="width: 20px;position: absolute; right: 7%;" <uni-badge style="width: 20px;position: absolute; right: 7%;"
@ -65,8 +85,8 @@
<image :src="row.img"></image> <image :src="row.img"></image>
</view> </view>
<view class="text" v-if="row.text != '客服' ">{{row.text}}</view> <view class="text" v-if="row.text != '客服' ">{{row.text}}</view>
<button open-type="contact" style="background-color: transparent;" class="img" show-message-card session-from send-message-path <button open-type="contact" style="background-color: transparent;" class="img" show-message-card
send-message-title v-if="row.text == '客服' "> session-from send-message-path send-message-title v-if="row.text == '客服' ">
<image :src="row.img"></image> <image :src="row.img"></image>
</button> </button>
<view class="text" v-if="row.text == '客服' ">{{row.text}}</view> <view class="text" v-if="row.text == '客服' ">{{row.text}}</view>
@ -145,7 +165,10 @@
url: '../../user/coupon/coupon', url: '../../user/coupon/coupon',
text: '我的优惠券', text: '我的优惠券',
img: '/static/img/user/momey.png' img: '/static/img/user/momey.png'
}, { }
],
// 广
mytgbarList: [{
url: '', url: '',
text: '客服', text: '客服',
img: '/static/img/user/kefu.png' img: '/static/img/user/kefu.png'
@ -160,7 +183,6 @@
text: '我的推广', text: '我的推广',
img: '/static/img/user/renw.png' img: '/static/img/user/renw.png'
} }
] ]
} }
}, },

@ -1,6 +1,6 @@
<template> <template>
<view> <view>
<view class="onorder width90" v-if="agentCouponList.length==0"> <view class="onorder width100" v-if="agentCouponList.length==0">
<image src="../../../static/img/noorder.png"></image> <image src="../../../static/img/noorder.png"></image>
<view class="text"> <view class="text">
暂无数据 暂无数据

Loading…
Cancel
Save