Commit aed5b7e6 by 张立顺

修改报错

1 parent 729ff698
......@@ -48,7 +48,7 @@ Component({
},
{
labelName: '订单状态',
key: 'status'
key: 'payStatus'
},
{
labelName: '支付时间',
......
......@@ -10,8 +10,8 @@
</view>
<view class="item" wx:if="{{item.orderType!='success'}}">
<view class="label">{{item.labelName}}</view>
<view class="text" style="color:{{orderInfo[item.key]==3?'#FF6601':'#4AC18E'}}" wx:if="{{item.key == 'status'}}">
{{orderInfo[item.key]==3?'已支付':'待支付'}}
<view class="text" style="color:{{orderInfo.payOrder[item.key]==2?'#FF6601':'#4AC18E'}}" wx:if="{{item.key == 'payStatus'}}">
{{orderInfo.payOrder[item.key]==2?'已支付':'待支付'}}
<!-- test -->
</view>
<view class="text" wx:elif="{{item.type == 'project' }}">
......
......@@ -121,7 +121,7 @@ const secondObj = {
label: '服务年限',
name: 'servicePeriod',
type: 'input',
disabled: true
disabled: false
}, {
label: '生效日期',
name: 'effectiveDate',
......
......@@ -7,7 +7,8 @@ Page({
*/
data: {
routeInfo: {},
url: 'https://qcimg01.glsx.com.cn/rpc-scrm-equity/upload/pdf/TEST轮胎无忧(嘀加)b237add688c251b1.pdf'
url: ''
// url: 'https://qcimg01.glsx.com.cn/rpc-scrm-equity/upload/pdf/TEST轮胎无忧(嘀加)b237add688c251b1.pdf'
},
getUrl() {
......@@ -19,8 +20,8 @@ Page({
console.log(res)
if (res.code == '0') {
this.setData({
// url: res.data
url: 'https://qcimg01.glsx.com.cn/rpc-scrm-equity/upload/pdf/TEST轮胎无忧(嘀加)b237add688c251b1.pdf'
url: res.data
// url: 'https://qcimg01.glsx.com.cn/rpc-scrm-equity/upload/pdf/TEST轮胎无忧(嘀加)b237add688c251b1.pdf'
})
console.log(this.data.url)
} else {
......
......@@ -21,7 +21,7 @@ Page({
oParams.path = 'packagesPayment/pages/payment/index'
oParams.scene = `orderCode=${_this.data.orderCode}&workWxSessionId=${wx.getStorageSync('dj_boutique_sessionId')}`
oParams.channelType = 1
oParams.env = accountInfo.miniProgram.envVersion
// oParams.env = accountInfo.miniProgram.envVersion
// B端小程序调用接口生成领券码时,传参userId用uuid,类型由int变string
createQrcodeImage(oParams).then(res => {
console.log(res.data)
......@@ -116,6 +116,7 @@ Page({
},
onRoute(options) {
console.log(options)
// options.id = 12
let { data, id } = options
this.setData({ id })
this.getQuotationInfoById()
......@@ -138,7 +139,10 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
onHide() {
// clearInterval(time)
if (time) clearInterval(time)
},
/**
* 生命周期函数--监听页面卸载
......
......@@ -87,8 +87,9 @@ Page({
const accountInfo = wx.getAccountInfoSync()
const env = accountInfo.miniProgram.envVersion
const createQuotedUrl = {
develop: `http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=${id}`,
trial: `http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=${id}`,
// develop: `http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=${id}`,
develop: `https://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=${id}`,
trial: `https://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=${id}`,
release: `https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=${id}`
}
console.log(env)
......
......@@ -126,5 +126,6 @@
}
]
}
}
},
"setting": {}
}
\ 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!