Commit bc7e1fb9 by lixiaomin

修改优惠券领取信息弹框

parent 3d062957
......@@ -61,3 +61,11 @@ export function getCouponInfoList(data) {
});
}
// 用户下单总量和下单总金额
export function getCusOrderNum(custId) {
return request({
url: "/system/customer/order-simple-stat/" + custId,
method: "get",
});
}
......@@ -93,10 +93,9 @@
</template>
<script>
import {getCouponInfoList} from "@/api/coupon/coupon";
import {listCoupon,getCouponInfoList,getCusOrderNum} from "@/api/coupon/coupon";
import {getCustomer} from "@/api/system/customer";
import OrderTable from "../../customer/orderTable.vue";
import {listCoupon} from "@/api/coupon/coupon";
export default {
components: { OrderTable },
data() {
......@@ -151,7 +150,6 @@ export default {
formateTime(val){
let index =val.indexOf(":");
val=val.substring(0, index-3);
console.log("val",val);
return val;
},
/** 查询列表 */
......@@ -179,13 +177,12 @@ export default {
this.customerId=row.custId;
this.userName=row.custName;
this.phoneNumber=row.custPhone;
this.amount=row.amount;
this.orderCount=row.orderCount;
this.open=true;
this.title="用户信息";
this.orderPageNum=1;
this.pageSize=10;
this.activeName="first";
this.getCusOrderNum(row.custId);
this.getOrderList(this.orderPageNum,this.pageSize,this.customerId,'1');
},
handleClick(){
......@@ -221,6 +218,15 @@ export default {
this.couponList = response.rows;
}
});
},
//获取用户总订单量、总金额
getCusOrderNum(custId){
getCusOrderNum(custId).then((response) => {
if(response.code==200){
this.amount=response.data.orderAmount;
this.orderCount=response.data.orderCount;
}
});
}
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment