Commit 912afbfb by 前端

更新4.19代码

1 parent eb08f41f
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 2 let index = 1
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -24,7 +24,7 @@ Component({ ...@@ -24,7 +24,7 @@ Component({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
showPicker: false, showRemark: false,
userInfo: {}, userInfo: {},
customerName: '', customerName: '',
navBarHeight: 100, navBarHeight: 100,
...@@ -57,6 +57,7 @@ Component({ ...@@ -57,6 +57,7 @@ Component({
confId: '2' confId: '2'
} }
], ],
subOrderCodeCopy: '',
searchObj: {}, searchObj: {},
flag: true, flag: true,
statisticsObj: {}, statisticsObj: {},
...@@ -152,10 +153,13 @@ Component({ ...@@ -152,10 +153,13 @@ Component({
}) })
}, },
onBottomRefresh() { onBottomRefresh() {
console.log('?????')
this.getList() this.getList()
}, },
remarkCancel() {
this.setData({
showRemark: false,
})
},
tabClick(e) { tabClick(e) {
let {searchObj} = this.data let {searchObj} = this.data
delete searchObj.statusList delete searchObj.statusList
...@@ -230,34 +234,57 @@ Component({ ...@@ -230,34 +234,57 @@ Component({
} }
}) })
}, },
remarkConfirm(e) {
let value = e.detail
let refundRemark = value
const {subOrderCodeCopy} = this.data
handleClickBtn(e) { let params = {
console.log(e.currentTarget.dataset.target) orderCode: subOrderCodeCopy,
const {tailOrderStatus, subOrderCode} = e.currentTarget.dataset.target refundRemark
if (tailOrderStatus == 0) {
wx.$router.go('activityPay')
} }
if (tailOrderStatus == 1) { Api.markAsRefunded(params).then(res => {
wx.showModal({ if (res.code == 0) {
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) console.log(res)
wx.$util.showToast('退款成功!') wx.$util.showToast('退款成功!')
this.getList() this.getList()
}else{ } else {
wx.$util.showToast(res.message || '接口异常') wx.$util.showToast(res.message || '接口异常')
} }
}) })
},
handleClickBtn(e) {
const {target} = e.currentTarget.dataset.target
this.setData({
subOrderCodeCopy: target.subOrderCode
})
if (target.tailOrderStatus == 0) {
wx.$router.go('activityPay')
} }
} 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 @@ ...@@ -113,4 +113,12 @@
</view> </view>
</view> </view>
<remark-popup wx:if="{{showRemark}}"
title="退款备注"
show="{{showRemark}}"
required="{{true}}"
maxlength="15"
bindcancel="remarkCancel"
bindconfirm="remarkConfirm"
placeholder="请填写退款备注" />
...@@ -189,14 +189,16 @@ ...@@ -189,14 +189,16 @@
} }
.activity-box .activity-name .activity-status { .activity-box .activity-name .activity-status {
width: 80%; width: 70%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-between;
padding-top: 15rpx; padding-top: 15rpx;
margin: 0rpx 20rpx;
} }
.activity-box .activity-name .activity-status .name { .activity-box .activity-name .activity-status .name {
font-size: 30rpx; font-size: 30rpx;
width: 300rpx;
} }
.activity-box .activity-name .activity-status .time { .activity-box .activity-name .activity-status .time {
......
...@@ -19,3 +19,4 @@ ...@@ -19,3 +19,4 @@
<top-select-picker show="{{showActivityPicker}}" selectObj="{{selectObj}}" defaultSelectInfo="{{defaultSelectInfo}}" items="{{activityListRange}}" bindsearch="getActivityList" bindconfirm="changePicker"></top-select-picker> <top-select-picker show="{{showActivityPicker}}" selectObj="{{selectObj}}" defaultSelectInfo="{{defaultSelectInfo}}" items="{{activityListRange}}" bindsearch="getActivityList" bindconfirm="changePicker"></top-select-picker>
...@@ -9,9 +9,9 @@ page { ...@@ -9,9 +9,9 @@ page {
width: 100%; width: 100%;
height: 320rpx; height: 320rpx;
padding: 24rpx 36rpx 32rpx; 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%; background-size: 100% 100%;
z-index: -1; //z-index: -1;
.titleBox { .titleBox {
display: flex; display: flex;
...@@ -78,9 +78,10 @@ page { ...@@ -78,9 +78,10 @@ page {
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
color: #222222; color: #222222;
&.active {
background-color: #ebf2fd; background-color: #ebf2fd;
z-index: 2;
&.active {
background: #fff;
} }
} }
} }
......
/* packageCrowdFunding/pages/balanceNote/balanceNote.wxss */ /* packageCrowdFunding/pages/balanceNote/balanceNote.wxss */
.big-img{ .big-img{
// box-sizing: border-box; box-sizing: border-box;
// position: relative; position: relative;
// width: 100%; width: 100%;
// height: 320rpx; height: 320rpx;
// padding: 24rpx 36rpx 32rpx; 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%; background-size: 100% 100%;
.titleBox{ .titleBox{
display: flex; display: flex;
padding-top: 80rpx; padding-top: 80rpx;
......
<!--packageCrowdFunding/pages/balanceNote/balanceNote.wxml--> <!--packageCrowdFunding/pages/balanceNote/balanceNote.wxml-->
<view class="big-img"> <view class="big-img page-box isFullSucreen">
<view class="titleBox"> <view class="titleBox">
<view class="imgBox" bind:tap="back"> <view class="imgBox" bind:tap="back">
<image src="../../images/arrow-left.png"></image> <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!