tmp: 部分代码与UnishopV5结合,但是代码有严重缺陷
This commit is contained in:
@@ -435,7 +435,7 @@ view {
|
||||
line-height: 1.3;
|
||||
display: flex;
|
||||
margin-top: 20rpx;
|
||||
|
||||
align-items: center;
|
||||
.goods-price {
|
||||
font-weight: 700;
|
||||
font-size: $font-size-activity-tag;
|
||||
@@ -525,7 +525,9 @@ view {
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
line-height: 40rpx;
|
||||
|
||||
&.remark{
|
||||
align-items: flex-start !important;
|
||||
}
|
||||
.tit {
|
||||
text-align: left;
|
||||
}
|
||||
@@ -847,7 +849,13 @@ view {
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.goods-num{
|
||||
font-size: 22rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.delivery-status{
|
||||
line-height: 1.3;
|
||||
}
|
||||
.fixed-bottom {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
|
||||
@@ -1,5 +1,36 @@
|
||||
export default {
|
||||
methods: {
|
||||
/**
|
||||
* 删除订单
|
||||
* @param {Object} orderData
|
||||
*/
|
||||
orderDelete(order_id, callback) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确定要删除该订单吗?',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.$api.sendRequest({
|
||||
url: '/api/order/delete',
|
||||
data: {
|
||||
order_id
|
||||
},
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.$util.showToast({title:'删除订单成功'})
|
||||
typeof callback == 'function' && callback();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '删除订单失败,' + res.message,
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 订单支付
|
||||
* @param {Object} orderData
|
||||
@@ -57,8 +88,7 @@ export default {
|
||||
typeof callback == 'function' && callback();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '当前订单可能存在拼团,维权等操作,' + res.message +
|
||||
'不可以关闭哦!',
|
||||
title: '关闭失败,' + res.message,
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user