Commit 912afbfb by 前端

更新4.19代码

1 parent eb08f41f
......@@ -10,7 +10,7 @@
* 2测试
* 3生产环境
*/
let index = 2
let index = 1
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
......@@ -24,7 +24,7 @@ Component({
* 页面的初始数据
*/
data: {
showPicker: false,
showRemark: false,
userInfo: {},
customerName: '',
navBarHeight: 100,
......@@ -57,6 +57,7 @@ Component({
confId: '2'
}
],
subOrderCodeCopy: '',
searchObj: {},
flag: true,
statisticsObj: {},
......@@ -152,10 +153,13 @@ Component({
})
},
onBottomRefresh() {
console.log('?????')
this.getList()
},
remarkCancel() {
this.setData({
showRemark: false,
})
},
tabClick(e) {
let {searchObj} = this.data
delete searchObj.statusList
......@@ -230,34 +234,57 @@ Component({
}
})
},
remarkConfirm(e) {
let value = e.detail
let refundRemark = value
const {subOrderCodeCopy} = this.data
let params = {
orderCode: subOrderCodeCopy,
refundRemark
}
Api.markAsRefunded(params).then(res => {
if (res.code == 0) {
console.log(res)
wx.$util.showToast('退款成功!')
this.getList()
} else {
wx.$util.showToast(res.message || '接口异常')
}
})
},
handleClickBtn(e) {
console.log(e.currentTarget.dataset.target)
const {tailOrderStatus, subOrderCode} = e.currentTarget.dataset.target
if (tailOrderStatus == 0) {
const {target} = e.currentTarget.dataset.target
this.setData({
subOrderCodeCopy: target.subOrderCode
})
if (target.tailOrderStatus == 0) {
wx.$router.go('activityPay')
}
if (tailOrderStatus == 1) {
wx.showModal({
title: '温馨提示',
content: '请确定将此订单状态标记为已退款',
showCancel: true,
confirmText: '确定',
confirmColor: '#3582EE',
success(res) {
if (res.confirm) {
Api.markAsRefunded({orderCode: subOrderCode}).then(res => {
if (res.code == 0){
console.log(res)
wx.$util.showToast('退款成功!')
this.getList()
}else{
wx.$util.showToast(res.message || '接口异常')
}
})
}
}
if (target.tailOrderStatus == 1) {
this.setData({
showRemark: true,
})
// wx.showModal({
// title: '温馨提示',
// content: '请确定将此订单状态标记为已退款',
// showCancel: true,
// confirmText: '确定',
// confirmColor: '#3582EE',
// success(res) {
// if (res.confirm) {
// Api.markAsRefunded({orderCode: subOrderCode}).then(res => {
// if (res.code == 0){
// console.log(res)
// wx.$util.showToast('退款成功!')
// this.getList()
// }else{
// wx.$util.showToast(res.message || '接口异常')
// }
// })
// }
// }
// })
}
},
......
......@@ -113,4 +113,12 @@
</view>
</view>
<remark-popup wx:if="{{showRemark}}"
title="退款备注"
show="{{showRemark}}"
required="{{true}}"
maxlength="15"
bindcancel="remarkCancel"
bindconfirm="remarkConfirm"
placeholder="请填写退款备注" />
......@@ -189,14 +189,16 @@
}
.activity-box .activity-name .activity-status {
width: 80%;
width: 70%;
display: flex;
justify-content: space-around;
justify-content: space-between;
padding-top: 15rpx;
margin: 0rpx 20rpx;
}
.activity-box .activity-name .activity-status .name {
font-size: 30rpx;
width: 300rpx;
}
.activity-box .activity-name .activity-status .time {
......
......@@ -19,3 +19,4 @@
<top-select-picker show="{{showActivityPicker}}" selectObj="{{selectObj}}" defaultSelectInfo="{{defaultSelectInfo}}" items="{{activityListRange}}" bindsearch="getActivityList" bindconfirm="changePicker"></top-select-picker>
......@@ -9,9 +9,9 @@ page {
width: 100%;
height: 320rpx;
padding: 24rpx 36rpx 32rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg.png');
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg-l.png');
background-size: 100% 100%;
z-index: -1;
//z-index: -1;
.titleBox {
display: flex;
......@@ -78,9 +78,10 @@ page {
font-weight: 600;
font-size: 32rpx;
color: #222222;
background-color: #ebf2fd;
z-index: 2;
&.active {
background-color: #ebf2fd;
background: #fff;
}
}
}
......@@ -124,4 +125,4 @@ page {
width: 40rpx;
height: 40rpx;
margin-right: 10rpx;
}
\ No newline at end of file
}
/* packageCrowdFunding/pages/balanceNote/balanceNote.wxss */
.big-img{
// box-sizing: border-box;
// position: relative;
// width: 100%;
// height: 320rpx;
// padding: 24rpx 36rpx 32rpx;
// background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg.png');
// background-size: 100% 100%;
box-sizing: border-box;
position: relative;
width: 100%;
height: 320rpx;
padding: 24rpx 36rpx 32rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg-l.png');
background-size: 100% 100%;
.titleBox{
display: flex;
padding-top: 80rpx;
......
<!--packageCrowdFunding/pages/balanceNote/balanceNote.wxml-->
<view class="big-img">
<view class="big-img page-box isFullSucreen">
<view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../images/arrow-left.png"></image>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!