1对接流水接口

yj-dev
杨杰 4 years ago
parent 42ce9c1343
commit 078b097fc4
  1. 20
      Utils/Api.js
  2. 2
      pages/login/login.vue
  3. 8
      pages/user/minePromotion/minePromotion.vue
  4. 125
      pages/user/runningWater/runningWater.vue

@ -127,6 +127,15 @@ export const getDiscountByUserDiscountId = params => {
export const getUserNormalDiscountList = params => { export const getUserNormalDiscountList = params => {
return POST('GET', `${base}/userDiscount/getUserNormalDiscountList`, params).then(res => res.data); return POST('GET', `${base}/userDiscount/getUserNormalDiscountList`, params).then(res => res.data);
} }
//修改密码
export const sendUserPass = params => {
return POST('GET', `${base}/secUser/sendUserPass`, params).then(res => res.data);
}
//**门店// //**门店//
export const userLogin = params => { export const userLogin = params => {
@ -137,6 +146,8 @@ export const useCouponCode = params => {
return POSTBREST('POST', `${brestBase}/couponCode/useCouponCode`, params).then(res => res.data); return POSTBREST('POST', `${brestBase}/couponCode/useCouponCode`, params).then(res => res.data);
} }
//**代理商// //**代理商//
export const getAgentCount = params => { export const getAgentCount = params => {
return POSTBREST('GET', `${brestBase}/highCouponAgent/getAgentCount`, params).then(res => res.data); return POSTBREST('GET', `${brestBase}/highCouponAgent/getAgentCount`, params).then(res => res.data);
@ -153,4 +164,11 @@ export const generateCode = params => {
export const getCodeById = params => { export const getCodeById = params => {
return POSTBREST('GET', `${brestBase}/highCouponAgent/getCodeById`, params).then(res => res.data); return POSTBREST('GET', `${brestBase}/highCouponAgent/getCodeById`, params).then(res => res.data);
} }
// 查看流水
export const getAgentSalesCodeList = params => {
return POSTBREST('GET', `${brestBase}/highCouponAgent/getAgentSalesCodeList`, params).then(res => res.data);
}
//查询流水总价格
export const getAgentSalesPriceCount = params => {
return POSTBREST('GET', `${brestBase}/highCouponAgent/getAgentSalesPriceCount`, params).then(res => res.data);
}

@ -19,7 +19,7 @@
<view class="btn mart50" @tap="doLogin"> </view> <view class="btn mart50" @tap="doLogin"> </view>
<view class="res flright mart20"> <view class="res flright mart20">
<!-- <view @tap="toPage('register')">用户注册</view> --> <!-- <view @tap="toPage('register')">用户注册</view> -->
<view @tap="toPage('resetpasswd')">重置密码</view> <!-- <view @tap="toPage('resetpasswd')">重置密码</view> -->
</view> </view>
<!-- <view class="mart30 flright marRight20 font15 fcorfff">重置密码</view> --> <!-- <view class="mart30 flright marRight20 font15 fcorfff">重置密码</view> -->
</view> </view>

@ -1,7 +1,7 @@
<template> <template>
<view> <view>
<view class="promotion_bg backcorf06 width100 height90 fcorfff fotct font24 fontspec10">我的推广</view> <view class="promotion_bg backcorf06 width100 height90 fcorfff fotct font24 fontspec10">我的推广</view>
<view class="promotion_dt width90 height100p backcorfff"> <view class="promotion_dt width90 height100p backcorfff" @click="jumpRunWater">
<view class="width100 mart10 fcor333 font14 fontwig6 height22"> <view class="width100 mart10 fcor333 font14 fontwig6 height22">
<view class="promotion_xg flleft"></view> <view class="promotion_xg flleft"></view>
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> <view class="promotion_mixg flleft" style="margin-left: -6px;"></view>
@ -122,6 +122,12 @@
} }
}) })
}, },
//
jumpRunWater(){
uni.navigateTo({
url:'../runningWater/runningWater'
})
},
// //
jumpAgent(item,items) { jumpAgent(item,items) {
uni.navigateTo({ uni.navigateTo({

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save