Commit aed5b7e6 by 张立顺

修改报错

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