Commit 17e2e9da by daqian

退单价格

parent 8d6889ac
...@@ -164,6 +164,8 @@ wxService.page({ ...@@ -164,6 +164,8 @@ wxService.page({
} }
this.setData({ this.setData({
cartList cartList
},()=>{
this.getReturnPrice()
}) })
}, },
changeRemark(event) { // 备注 changeRemark(event) { // 备注
...@@ -196,7 +198,7 @@ wxService.page({ ...@@ -196,7 +198,7 @@ wxService.page({
cartList: cartList cartList: cartList
}, () => { }, () => {
this.getReturnPrice() this.getReturnPrice()
this.editOk(cartList[e]) //调用完成 this.editOk(cartList[index]) //调用完成
}) })
}, },
addNum: function (e) { // 增加数量 addNum: function (e) { // 增加数量
...@@ -212,12 +214,11 @@ wxService.page({ ...@@ -212,12 +214,11 @@ wxService.page({
cartList: cartList cartList: cartList
}, () => { }, () => {
this.getReturnPrice() this.getReturnPrice()
this.editOk(cartList[e]) //调用完成 this.editOk(cartList[index]) //调用完成
}) })
}, },
blurNum: function (e) { // 输入数量 blurNum: function (e) { // 输入数量
debugger
var newNum = e.detail.value var newNum = e.detail.value
var cartList = this.data.cartList var cartList = this.data.cartList
...@@ -242,12 +243,11 @@ wxService.page({ ...@@ -242,12 +243,11 @@ wxService.page({
}, () => { }, () => {
console.log('blurNum', cartList[index], index, newNum, refundNum) console.log('blurNum', cartList[index], index, newNum, refundNum)
this.getReturnPrice() this.getReturnPrice()
this.editOk(cartList[e]) //调用完成 this.editOk(cartList[index]) //调用完成
}) })
}, },
editOk(cartPro){ editOk(cartPro){
console.log('cartPro', cartPro) this.reFundPreview(cartPro) // 退款预览
this.reFundPreview() // 退款预览
}, },
getReturnPrice() { getReturnPrice() {
var cartList = this.data.cartList var cartList = this.data.cartList
...@@ -259,9 +259,8 @@ wxService.page({ ...@@ -259,9 +259,8 @@ wxService.page({
} }
} }
console.log('cartList', cartList, returnPrice)
this.setData({ this.setData({
// returnOrder: returnOrder:returnPrice
}) })
}, },
...@@ -301,8 +300,9 @@ wxService.page({ ...@@ -301,8 +300,9 @@ wxService.page({
this.getReasonList() this.getReasonList()
}) })
}, },
reFundPreview() { reFundPreview(cartPro) {
// /refund/buyer/preview // /refund/buyer/preview
console.log("cartPro", cartPro)
const params = { const params = {
refundCreateDto: {} refundCreateDto: {}
} }
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<view class="form"> <view class="form">
<view class="form-label">退款金额</view> <view class="form-label">退款金额</view>
<view class="form-picker"> <view class="form-picker">
<text class="refund-price">¥{{refundAmount}}</text> <text class="refund-price">¥{{returnOrder}}</text>
</view> </view>
</view> </view>
<view class="form"> <view class="form">
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": 24, "current": 23,
"list": [ "list": [
{ {
"id": -1, "id": -1,
...@@ -190,10 +190,10 @@ ...@@ -190,10 +190,10 @@
"scene": null "scene": null
}, },
{ {
"id": 24, "id": 23,
"name": "退款申请", "name": "退款申请",
"pathName": "pages/refund/refund", "pathName": "pages/refund/refund",
"query": "params={\"id\":\"614116644096184320\",\"memberId\":\"598887367880871936\",\"status\":\"P\",\"skuVOList\":[{\"productId\":\"1556108606443006\",\"productCode\":\"test001\",\"productName\":\"test001\",\"skuId\":\"1556108807316001\",\"skuCode\":\"test001-4\",\"skuSpec\":\"颜色:白,尺寸:xl\",\"count\":1,\"price\":0.03,\"discount\":0,\"mainImgUrl\":\"http://testimg3.bigaka.com/group3/M00/00/17/Cv6CBF1Z9TKAU6T1AAAG8CvHO2o415.png\",\"amount\":0.03}],\"createTime\":\"2019-08-22 15:20:17\",\"payTime\":\"2019-08-22 15:20:42\",\"discount\":0,\"freightMoney\":0,\"payAmount\":0.03,\"skuCount\":1}", "query": "params={\"id\":\"625052614006149120\",\"memberId\":\"598914337624711168\",\"status\":\"P\",\"skuVOList\":[{\"productId\":\"621299229465513984\",\"productCode\":\"apple-123456\",\"productName\":\"苹果\",\"skuId\":\"621748042009415680\",\"skuCode\":\"sku-apple-red\",\"skuSpec\":\"颜色:红色\",\"count\":5,\"price\":0.01,\"discount\":0,\"discountFromCoupon\":0,\"mainImgUrl\":\"https://img3.bigaka.com/test/1002/201909/20190911/10026d8d6769-249c-4cf6-b555-3cd8c3d2644f.png\",\"amount\":0.05}],\"createTime\":\"2019-09-21 19:35:56\",\"payTime\":\"2019-09-21 19:36:07\",\"freightMoney\":10,\"logistic\":{\"receiverId\":\"624293464875606016\",\"receiverInfo\":\"上海,上海市,浦东新区,浦东,张三,020-8116788\"},\"payAmount\":10.05,\"promotionDiscount\":0,\"coouponDiscount\":0,\"skuAmount\":0.05,\"skuCount\":5}",
"scene": null "scene": null
}, },
{ {
......
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