Jelajahi Sumber

商品详情 优惠卷 收藏接口对接错误 修改接口地址

zxl 1 tahun lalu
induk
melakukan
06f0fec09b
4 mengubah file dengan 16 tambahan dan 18 penghapusan
  1. 1 1
      src/api/business.js
  2. 2 2
      src/api/mine.js
  3. 1 1
      src/pages/user/collect/list.vue
  4. 12 14
      src/pages/user/coupon/index.vue

+ 1 - 1
src/api/business.js

@@ -21,7 +21,7 @@ export function getSellerList(params){
  */
 export function getSellerDetails(id){
   return request({
-    url:`/maintain/merchant/${id}`,
+    url:`/maintain/goods/${id}`,
     method: 'GET',
     header:{
       'Content-Type': 'application/x-www-form-urlencoded'

+ 2 - 2
src/api/mine.js

@@ -6,7 +6,7 @@ import { request } from '@/utils/request';
  */
 export function maintainFavoritePaging(data) {
   return request({
-    url: '/maintain/favorite/paging',
+    url: '/maintain/favorites',
     method: 'get',
     data: data,
     header: {
@@ -36,7 +36,7 @@ export function maintainUserInfo(data) {
  */
 export function maintainCouponPaging(data) {
   return request({
-    url: '/maintain/coupon/paging',
+    url: '/maintain/usercoupons',
     method: 'get',
     data: data,
     header: {

+ 1 - 1
src/pages/user/collect/list.vue

@@ -19,7 +19,7 @@
     data() {
       return {
         queryParams:{
-          paging:"1,10",
+          size:10,
           type:'MERCHANT',
           region:null,//地区编码
           longitude:null,//经度

+ 12 - 14
src/pages/user/coupon/index.vue

@@ -12,7 +12,7 @@
             color: '#fff',
             transform: 'scale(1)'
         }"
-        itemStyle="height: 34px; width:20%;" lineColor="#D89A4C"></u-tabs>
+        itemStyle="height: 34px; width:27%;" lineColor="#D89A4C"></u-tabs>
     </view>
 
     <!-- 优惠券的可用和失效 -->
@@ -64,11 +64,12 @@
   export default {
     data() {
       return {
-        list: [{
-            id: 0,
-            name: '通用',
-            type:''
-          },
+        list: [
+          // {
+          //   id: 0,
+          //   name: '通用',
+          //   type:''
+          // },
           {
             id: 1,
             name: '满减',
@@ -87,21 +88,18 @@
         ],
         list2: [{
             name: '可用',
-            type:'ONLINE'
+            type:'UNUSED'
           },
           {
             name: '失效',
-            type:'OFFLINE'
+            type:'CLOSED'
           },
         ],
         lable_type: 0, // 是否可用
         queryParams:{
-          paging:"1,10",//分页信息  取值范围: 页码,分页大小
-          keyword:'',//关键字
-          couponType:'',//优惠券类型 允许值: GIVE(赠送), REDUCE(满减), DISCOUNT(折扣)
-          couponStatus:'ONLINE',// 优惠券状态 允许值: ONLINE(已上线), OFFLINE(已下线)
-          couponClaimType:'',//优惠券领取方式 允许值: FREE(免费领取), ACTIVITY(活动领取)
-          merchantId:'',//商家ID
+          size:10,//分页信息  取值范围: 页码,分页大小
+          type:'GIVE',//优惠券类型 允许值: GIVE(赠送), REDUCE(满减), DISCOUNT(折扣)
+          status:'UNUSED',// 用户优惠券状态 UNUSED(未使用), USED(已使用), EXPIRED(已过期), CLOSED(作废)
         },
 
         init_list:[],//初始化列表