|
@@ -4,7 +4,7 @@ import { sendMsgToMQ } from "../../../../services/api/common/index"
|
|
|
import { queryMyBuyOrder, queryMyDeListing, queryMyDelistingApply, queryMySellOrder } from "../../../../services/api/orders/index"
|
|
import { queryMyBuyOrder, queryMyDeListing, queryMyDelistingApply, queryMySellOrder } from "../../../../services/api/orders/index"
|
|
|
import { accountid, clientType, getErrorMsg, isEncrypted, loginid, marketid, protoHeader, timetample, userid } from "../../../../services/utils"
|
|
import { accountid, clientType, getErrorMsg, isEncrypted, loginid, marketid, protoHeader, timetample, userid } from "../../../../services/utils"
|
|
|
import { hideLoading, showLoading, showModel } from "../../../../utils/message/index"
|
|
import { hideLoading, showLoading, showModel } from "../../../../utils/message/index"
|
|
|
-import { isnullstr } from "../../../../utils/util"
|
|
|
|
|
|
|
+import { formatDateString, isnullstr } from "../../../../utils/util"
|
|
|
import { encryptBody } from "../../../../utils/websocket/crypto"
|
|
import { encryptBody } from "../../../../utils/websocket/crypto"
|
|
|
|
|
|
|
|
Page({
|
|
Page({
|
|
@@ -128,7 +128,7 @@ Page({
|
|
|
let id = (<string> e.target.id).split(' ')[0]
|
|
let id = (<string> e.target.id).split(' ')[0]
|
|
|
const index = <number> <unknown>ids[1]
|
|
const index = <number> <unknown>ids[1]
|
|
|
switch (id) {
|
|
switch (id) {
|
|
|
- case 'his': /// 历史订单
|
|
|
|
|
|
|
+ case 'his': /// 历史订单
|
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
|
url: '/mMine/pages/myorders/his/index'
|
|
url: '/mMine/pages/myorders/his/index'
|
|
|
})
|
|
})
|
|
@@ -147,12 +147,12 @@ Page({
|
|
|
break;
|
|
break;
|
|
|
case 2: /// 我的摘牌
|
|
case 2: /// 我的摘牌
|
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
|
- url: '/mHome/pages/goodsdetail/index?item='+JSON.stringify(this.data.buyorders[index].wrtradeorderid)
|
|
|
|
|
|
|
+ url: '/mHome/pages/goodsdetail/index?item='+JSON.stringify(this.data.dlistings[index].goodsno)
|
|
|
})
|
|
})
|
|
|
break;
|
|
break;
|
|
|
case 1: /// 求购挂牌
|
|
case 1: /// 求购挂牌
|
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
|
- url: '/mMine/pages/myorders/dlistingsdetail/index?item='+JSON.stringify(this.data.dlistings[index])
|
|
|
|
|
|
|
+ url: '/mTrade/pages/orderdetail/index?item='+JSON.stringify(this.data.buyorders[index])
|
|
|
})
|
|
})
|
|
|
break;
|
|
break;
|
|
|
case 0: /// 出售挂牌
|
|
case 0: /// 出售挂牌
|
|
@@ -169,7 +169,7 @@ Page({
|
|
|
case 1: /// 求购挂牌
|
|
case 1: /// 求购挂牌
|
|
|
showModel(()=>{
|
|
showModel(()=>{
|
|
|
const { wrtradeorderid } = this.data.buyorders[index]
|
|
const { wrtradeorderid } = this.data.buyorders[index]
|
|
|
- this.doWRListingCancelOrder(wrtradeorderid, 1)
|
|
|
|
|
|
|
+ this.doWRListingCancelOrder(wrtradeorderid)
|
|
|
}, '提示', '确定要撤销吗?')
|
|
}, '提示', '确定要撤销吗?')
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
@@ -183,7 +183,7 @@ Page({
|
|
|
case 'shelves': /// 下架
|
|
case 'shelves': /// 下架
|
|
|
showModel(()=>{
|
|
showModel(()=>{
|
|
|
const { wrtradeorderid } = this.data.sellorders[index]
|
|
const { wrtradeorderid } = this.data.sellorders[index]
|
|
|
- this.doWRListingCancelOrder(wrtradeorderid, 0)
|
|
|
|
|
|
|
+ this.doWRListingCancelOrder(wrtradeorderid)
|
|
|
}, '提示', '确定要下架吗?')
|
|
}, '提示', '确定要下架吗?')
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
@@ -200,7 +200,7 @@ Page({
|
|
|
break;
|
|
break;
|
|
|
case 1: /// 求购挂牌
|
|
case 1: /// 求购挂牌
|
|
|
/// 查询求购挂牌
|
|
/// 查询求购挂牌
|
|
|
- this.queryMyBuyOrder()
|
|
|
|
|
|
|
+ this.queryMyBuyOrder()
|
|
|
break;
|
|
break;
|
|
|
case 2: /// 我的摘牌
|
|
case 2: /// 我的摘牌
|
|
|
this.queryMyDeListing()
|
|
this.queryMyDeListing()
|
|
@@ -444,7 +444,7 @@ Page({
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/// 出售挂牌-求购挂牌撤单请求(下架)
|
|
/// 出售挂牌-求购挂牌撤单请求(下架)
|
|
|
- doWRListingCancelOrder(wrtradeorderid: string, buyorsell: number) {
|
|
|
|
|
|
|
+ doWRListingCancelOrder(wrtradeorderid: string) {
|
|
|
/// loading
|
|
/// loading
|
|
|
showLoading(()=>{
|
|
showLoading(()=>{
|
|
|
/// 参数信息
|
|
/// 参数信息
|
|
@@ -456,7 +456,7 @@ Page({
|
|
|
OrderSrc: EOrderSrc.ORDERSRC_CLIENT,
|
|
OrderSrc: EOrderSrc.ORDERSRC_CLIENT,
|
|
|
ClientType: clientType(),
|
|
ClientType: clientType(),
|
|
|
OperatorID: loginid(),
|
|
OperatorID: loginid(),
|
|
|
- BuyOrSell: buyorsell,
|
|
|
|
|
|
|
+ ClientOrderTime: formatDateString(new Date().toString()),
|
|
|
Header: protoHeader(FunCode.WRListingCancelOrderReq)
|
|
Header: protoHeader(FunCode.WRListingCancelOrderReq)
|
|
|
})
|
|
})
|
|
|
/// 发送请求
|
|
/// 发送请求
|