修复uni-app前端,用户订单列表【确认收货】按钮失效问题

This commit is contained in:
JianWeie
2021-06-25 22:27:28 +08:00
parent d7f6bed9ac
commit a217315699
3 changed files with 5 additions and 6 deletions
@@ -45,7 +45,7 @@
<view>
<view class='logistics coreshop-btn' hover-class="btn-hover" @click="goOrderDetail(order.orderId)">查看详情</view>
<view class='coreshop-btn exchange' hover-class="btn-hover" v-if="order.status === 1 && order.payStatus === 1" @click="goToPay(order.orderId)">立即支付</view>
<view class='coreshop-btn exchange' hover-class="btn-hover" v-if="order.status === 1 && order.payStatus >= 2 && order.shipStatus >= 3 && order.confirmStatus === 1" @click="tackDelivery(index,orderIndex)">确认收货</view>
<view class='coreshop-btn exchange' hover-class="btn-hover" v-if="order.status === 1 && order.payStatus >= 2 && order.shipStatus >= 3 && order.confirmStatus === 1" @click="tackDelivery(current,orderIndex)">确认收货</view>
<view class='evaluate coreshop-btn' hover-class="btn-hover" v-if="order.status === 1 && order.payStatus >= 2 && order.shipStatus >= 3 && order.confirmStatus >= 2 && order.isComment === false" @click="toEvaluate(order.orderId)">立即评价</view>
</view>
</view>
@@ -169,16 +169,15 @@
let _this = this;
this.$common.modelShow('提示', '确认执行收货操作吗?', () => {
let data = {
id: _this.orders[index][orderIndex].orderId
id: _this.listData[orderIndex].orderId
}
_this.$u.api.confirmOrder(data).then(res => {
if (res.status) {
_this.$refs.uToast.show({
title: '确认收货成功', type: 'success', callback: function () {
if (this.tab !== 0) {
_this.orders[index].splice(orderIndex, 1)
_this.listData.splice(orderIndex, 1)
} else {
//this.initData()
_this.getOrders();
}
}
+1 -1
View File
@@ -14,7 +14,7 @@
dbProvider="Microsoft.Data.SqlClient.SqlConnection, Microsoft.Data.SqlClient"
connectionString="Server=127.0.0.1;Database=BaseMIS;User ID=sa;Password=123456"
-->
<target name="log_database" xsi:type="Database" dbProvider="MySql.Data.MySqlClient.MySqlConnection,Mysql.Data" connectionString="Server=panel.corecms.net;Port=3306;Database=CoreShopMysql;Uid=CoreShopMysql;Pwd=sstV0Qvbo7T9Zi7;CharSet=utf8;pooling=true;SslMode=None;Allow User Variables=true">
<target name="log_database" xsi:type="Database" dbProvider="MySql.Data.MySqlClient.MySqlConnection,Mysql.Data" connectionString="Server=127.0.0.1;Port=3306;Database=CoreShop;Uid=CoreShop;Pwd=CoreShop;CharSet=utf8;pooling=true;SslMode=None;Allow User Variables=true">
<commandText>
INSERT INTO SysNLogRecords
(LogDate,LogLevel,LogType,LogTitle,Logger,Message,MachineName,MachineIp,NetRequestMethod
+1 -1
View File
@@ -14,7 +14,7 @@
dbProvider="Microsoft.Data.SqlClient.SqlConnection, Microsoft.Data.SqlClient"
connectionString="Server=127.0.0.1;Database=BaseMIS;User ID=sa;Password=123456"
-->
<target name="log_database" xsi:type="Database" dbProvider="MySql.Data.MySqlClient.MySqlConnection,Mysql.Data" connectionString="Server=192.168.20.62;Port=3306;Database=coreshop;Uid=root;Pwd=admin">
<target name="log_database" xsi:type="Database" dbProvider="MySql.Data.MySqlClient.MySqlConnection,Mysql.Data" connectionString="Server=127.0.0.1;Port=3306;Database=CoreShop;Uid=CoreShop;Pwd=CoreShop;CharSet=utf8;pooling=true;SslMode=None;Allow User Variables=true">
<commandText>
INSERT INTO SysNLogRecords
(LogDate,LogLevel,LogType,LogTitle,Logger,Message,MachineName,MachineIp,NetRequestMethod