Commit 935ecbe0 by 张立顺

fix bug修复

1 parent 08343b6f
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index = 1;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -6,7 +6,7 @@ Component({ ...@@ -6,7 +6,7 @@ Component({
*/ */
properties: { properties: {
item: Object, item: Object,
type:Number type: Number
}, },
/** /**
...@@ -26,7 +26,8 @@ Component({ ...@@ -26,7 +26,8 @@ Component({
key: 'estimatedResult', key: 'estimatedResult',
colorEnum: { colorEnum: {
0: '#F24724', 0: '#F24724',
1: '#35C376' 1: '#35C376',
'-1': '#EF971E'
} }
} }
] ]
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<block wx:for="{{ overviewList }}" wx:key="index"> <block wx:for="{{ overviewList }}" wx:key="index">
<view class="overview-item flex"> <view class="overview-item flex">
<view class="title">{{item.title}}</view> <view class="title">{{item.title}}</view>
<view class="value">{{c[item.key] != null ? detailInfo[item.key] : '-'}}</view> <view class="value">{{detailInfo[item.key] != null ? detailInfo[item.key] : '-'}}</view>
</view> </view>
</block> </block>
</view> </view>
......
...@@ -24,6 +24,7 @@ Component({ ...@@ -24,6 +24,7 @@ Component({
var duration = this.formatTime(n); var duration = this.formatTime(n);
this.setData({ this.setData({
duration, duration,
offset: 0
// max: parseInt(n / 1000) // max: parseInt(n / 1000)
}); });
} }
...@@ -48,7 +49,11 @@ Component({ ...@@ -48,7 +49,11 @@ Component({
detached() { detached() {
// console.log(bgMusic.src); // console.log(bgMusic.src);
// bgMusic.src = '' // bgMusic.src = ''
// bgMusic.stop() bgMusic.stop()
this.setData({
offset: 0,
starttime: "00:00", //正在播放时长
})
// bgMusic.destroy() // bgMusic.destroy()
} }
}, },
......
// packageEquity/pages/beforeCreate/beforeCreate.js // packageEquity/pages/beforeCreate/beforeCreate.js
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {},
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
wx.$router.getData(res => { wx.$router.getData((res) => {
this.setData(res) this.setData(res);
}) });
this.getSystemInfo() this.getSystemInfo();
}, },
getSystemInfo() { getSystemInfo() {
let _this = this let _this = this;
wx.getRendererUserAgent({ wx.getRendererUserAgent({
success(res) { success(res) {
console.log(res) console.log(res);
let isPad = /iPad|Android.*Tablet|Kindle|Silk/i.test(res.userAgent) let isPad = /iPad|Android.*Tablet|Kindle|Silk/i.test(res.userAgent);
_this.setData({ _this.setData({
isPad isPad,
}) });
} },
}) });
wx.getSystemInfo({ wx.getSystemInfo({
success(res) { success(res) {
console.log(res) console.log(res);
const deviceOrientation = res.deviceOrientation const deviceOrientation = res.deviceOrientation;
_this.setData({ _this.setData({
deviceOrientation, deviceOrientation,
}) });
} },
}) });
}, },
onResize(e) { onResize(e) {
console.log(e) console.log(e);
this.setData({ this.setData({
deviceOrientation: e.deviceOrientation deviceOrientation: e.deviceOrientation,
}) });
}, },
jump() { jump() {
const { const { mode } = this.data;
mode wx.$router.go(
} = this.data mode ? "createOrderCarQuotationSimple" : "createOrderCarQuotation"
wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation') );
}, },
open() { open() {
const { const { isPad } = this.data;
isPad if (!isPad)
} = this.data return wx.$util.showToast("为保证使用体验,快来工作平板上使用该功能吧");
if (!isPad) return wx.$util.showToast('为保证使用体验,快来工作平板上使用该功能吧')
this.setData({ this.setData({
showPopup: true showPopup: true,
}) });
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() { onReady() {},
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {},
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { onHide() {},
},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { onUnload() {},
},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { onPullDownRefresh() {},
},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { onReachBottom() {},
},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
onShareAppMessage() {},
});
...@@ -48,29 +48,22 @@ Component({ ...@@ -48,29 +48,22 @@ Component({
}, },
mode: { mode: {
type: Number, type: Number,
value: 1
} }
}, },
observers: { observers: {
'mode': function (value) { 'mode': function (value, old) {
console.log(value, old, 'mode');
// 先注释掉 // 先注释掉
// this.getYqStoreConfig() // this.getYqStoreConfig()
if (value != 1) {
// if (n.mode) {
// console.log(value, data, data.firstObjSimple, 'mode')
// console.log({
// first: value ? data.firstObjSimple : data.firstObj
// }, ' first: value ? data.firstObjSimple : data.firstObj,');
// first: data.firstObj,
// let thisPage =
// let thisPage = wx.$router.getPageInstance()
// console.log(thisPage);
// if (thisPage.data.orderInfo.mode != value) {
this.setData({ this.setData({
first: value ? data.firstObjSimple : data.firstObj, first: data.firstObj,
formRule: value ? data.formRuleSimple : data.formRule formRule: data.formRule
}) })
}, }
}
// 'orderInfo.outTradeNo': function (value) { // 'orderInfo.outTradeNo': function (value) {
// console.log(value, 'outTradeNo') // console.log(value, 'outTradeNo')
// value && this.setData({ // value && this.setData({
...@@ -91,8 +84,10 @@ Component({ ...@@ -91,8 +84,10 @@ Component({
disable: true, disable: true,
// firstObjSimple:data.firstObjSimple, // firstObjSimple:data.firstObjSimple,
// formRuleSimple: data.formRuleSimple, // formRuleSimple: data.formRuleSimple,
first: data.firstObjSimple, first: '',
formRule: data.formRuleSimple, formRule: '',
// first: data.firstObjSimple,
// formRule: data.formRuleSimple,
referrerPicker: false, referrerPicker: false,
textNameObj: { textNameObj: {
confirmName: '下一步(1/4)', confirmName: '下一步(1/4)',
......
...@@ -1014,7 +1014,6 @@ Page({ ...@@ -1014,7 +1014,6 @@ Page({
} }
console.log(first, formRule, 'firstData'); console.log(first, formRule, 'firstData');
firstCom.setData({ firstCom.setData({
// ...firstData
first, first,
formRule formRule
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!