陶杰
2024-09-10 dd2922d3facbfba5add501f35de5649b80b6cf05
sub_pages/customer/coupon/good-all.vue
@@ -2,7 +2,8 @@
   <view class="good-list-container">
      <view class="top-bg img100 relative" :style="{'padding-top':(StatusBar)+'px','line-height':CustomBar+'rpx' }">
         <!-- ../../../static/images/customer/coupon/good-top-bg.png -->
         <image class="component-bg" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/a9/a9731b0037924324a3d3318dfa7d10c5LZk6JsSC33ua754767bf8c714154f06bbd5b4d905174.png"
         <image class="component-bg"
            src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/a9/a9731b0037924324a3d3318dfa7d10c5LZk6JsSC33ua754767bf8c714154f06bbd5b4d905174.png"
            mode="scaleToFill" />
         <view class="title">
@@ -102,6 +103,7 @@
         changeTab(flg) {
            this.flg = '' + flg
            this.listApi = this.tabs[flg].api
            this.list = []
            this.refreshList()
         },
         async exchange(type, item) {
@@ -126,7 +128,10 @@
            })
            this.$message.hideLoading()
            if (code == 0) {
               this.$message.showToast('兑换成功')
               //刷新积分
               this.$store.dispatch('getCurrentInfo');
               await this.$message.showToast('兑换成功')
            }
         },
         toDetail(item) {
@@ -187,6 +192,13 @@
      },
      onLoad() {
         this.listApi = '/api/customer/point/goods/list'
         this.getList()
      },
      onPullDownRefresh() {
         //刷新积分和刷新商品
         this.$store.dispatch('getCurrentInfo');
         // this.list = []
         this.refreshList()
      },
      onReachBottom() {
@@ -261,6 +273,7 @@
      .query-scores {
         overflow-x: scroll;
         // width: max-content;
         .item {
            min-width: fit-content;