hwq 3 anni fa
parent
commit
b769a43660
2 ha cambiato i file con 39 aggiunte e 27 eliminazioni
  1. 2 2
      pages/heyue/tradlist.vue
  2. 37 25
      pages/transaction/bbjy.vue

+ 2 - 2
pages/heyue/tradlist.vue

@@ -37,8 +37,8 @@
 							<view @click="closeorder(item)" v-if="current == 1" class="usdtListButtom">{{ $t('hy.pc') }}</view>
 						</view>
 						<view class="tip ">
-							<text v-if="item.direction == 1">{{ $t('hy.wtsj') }}:{{ item.wttime }}</text>
-							<text v-if="item.direction == 2">{{ $t('hy.kcsj') }}:{{ item.addtime }}</text>
+							<text v-if="current == 0">{{ $t('hy.wtsj') }}:{{ item.wttime }}</text>
+							<text v-if="current != 0">{{ $t('hy.kcsj') }}:{{ item.addtime }}</text>
 							<text v-if="current == 2">
 								<br />
 								{{ $t('hy.pcsj') }}:{{ item.endtime }}

+ 37 - 25
pages/transaction/bbjy.vue

@@ -383,19 +383,25 @@ export default {
 					mprice: that.jyType == 2 ? that.listOBj[that.actionList].last : that.xzMoney,
 					musdt: that.jye,
 					buytype: that.jyType //1现价委托2市价委托
-				}).then(res => {
-					uni.hideLoading();
-					that.upDataLoding = false;
-					uni.showModal({
-						title: '提示',
-						content: '交易成功',
-						confirmText: '確認',
-						showCancel: false
+				})
+					.then(res => {
+						uni.hideLoading();
+						that.jye = '';
+						that.xzMoney = '';
+						that.upDataLoding = false;
+						uni.showModal({
+							title: '提示',
+							content: '交易成功',
+							confirmText: '確認',
+							showCancel: false
+						});
+						that.levertadeLaverorder();
+					})
+					.catch(err => {
+						that.jye = '';
+						that.xzMoney = '';
+						this.upDataLoding = false;
 					});
-					obj.levertadeLaverorder();
-				}).catch(err => {
-					this.upDataLoding = false;
-				});
 			}
 			if (that.typeIndex == 2) {
 				// 賣出
@@ -404,19 +410,25 @@ export default {
 					mprice: that.jyType == 2 ? that.listOBj[that.actionList].last : that.xzMoney,
 					mnum: that.payNum,
 					selltype: that.jyType //1现价委托2市价委托
-				}).then(res => {
-					uni.hideLoading();
-					that.upDataLoding = false;
-					uni.showModal({
-						title: '提示',
-						content: '交易成功',
-						confirmText: '確認',
-						showCancel: false
+				})
+					.then(res => {
+						uni.hideLoading();
+						that.upDataLoding = false;
+						that.mnum = '';
+						that.xzMoney = '';
+						uni.showModal({
+							title: '提示',
+							content: '交易成功',
+							confirmText: '確認',
+							showCancel: false
+						});
+						that.levertadeLaverorder();
+					})
+					.catch(err => {
+						that.mnum = '';
+						that.xzMoney = '';
+						that.upDataLoding = false;
 					});
-					obj.levertadeLaverorder();
-				}).catch(err => {
-					this.upDataLoding = false;
-				});
 			}
 			// that.bond().then(() => {
 			// 	UpOrderHandle({
@@ -812,7 +824,7 @@ export default {
 		.all {
 			width: 60rpx;
 			margin-right: 6rpx;
-			font-size: $font-sm ;
+			font-size: $font-sm;
 			color: red;
 		}
 		.rightInputBox {