Browse Source

领券中心

master
jiazhipeng 6 days ago
parent
commit
be8293a420
  1. 20
      pages/coupon/coupon.vue
  2. 4
      subPackages/user/rewardsCenter.vue

20
pages/coupon/coupon.vue

@ -10,6 +10,10 @@
</view>
</view>
<view class="goRewards" @click="gotoPath('/subPackages/user/rewardsCenter')">
前往<text style="color: #6A8A27;">兑换中心</text> >
</view>
<CustomTabBar :currentTab="1" />
</view>
</template>
@ -95,4 +99,20 @@
}
}
}
.goRewards{
width: 400rpx;
height: 80rpx;
background: #FFFFFF;
border-radius: 40rpx;
font-weight: 500;
font-size: 31rpx;
color: #000000;
margin: 0 auto;
position: fixed;
bottom: 180rpx;
text-align: center;
line-height: 80rpx;
left: calc( 50% - 200rpx );
}
</style>

4
subPackages/user/rewardsCenter.vue

@ -35,8 +35,8 @@
return
}
that.Post({
card_key: that.password
}, "/api/coupon/getCoupon").then((res) => {
key: that.password
}, "/api/coupon/get_coupon").then((res) => {
console.log(res.code);
if (res.code == 200) {
uni.showToast({

Loading…
Cancel
Save