Commit fd252ee2 by 李伟康

提交

1 parent c598e4e9
import { preReleaseAppId } from '~/config' import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease'] const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 2 let index = 3
/** /**
* *
......
Page({ Page({
data: {}, data: {},
onLoad: function (options) { onLoad: function (options) {
setTimeout(()=>{ this.getOrderInfo(options.orderCode)
this.getOrderInfo(options.orderCode)
},2*1000)
}, },
getOrderInfo(orderCode) { getOrderInfo(orderCode) {
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
wx.p.api.equityApi.orderDetailData({ orderCode }).then(res => { wx.p.api.equityApi.orderDetailData({
orderCode
}).then(res => {
wx.hideLoading(); wx.hideLoading();
let richText = res.useNotes let richText = res.useNotes
res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : '' res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : ''
...@@ -31,4 +31,4 @@ Page({ ...@@ -31,4 +31,4 @@ Page({
wx.p.wxApi.showToast('复制成功') wx.p.wxApi.showToast('复制成功')
}) })
} }
}) })
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!