Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 935ecbe0
authored
Jun 12, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
08343b6f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
79 deletions
config.js
packageEquity/pages/aiInspection/components/contentItem/contentItem.js
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.wxml
packageEquity/pages/aiInspectionDetail/components/audio/audio.js
packageEquity/pages/beforeCreate/beforeCreate.js
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
config.js
View file @
935ecbe
...
@@ -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
;
...
...
packageEquity/pages/aiInspection/components/contentItem/contentItem.js
View file @
935ecbe
...
@@ -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'
}
}
}
}
]
]
...
...
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.wxml
View file @
935ecbe
...
@@ -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>
...
...
packageEquity/pages/aiInspectionDetail/components/audio/audio.js
View file @
935ecbe
...
@@ -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
View file @
935ecbe
// 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
()
{},
});
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
View file @
935ecbe
...
@@ -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)'
,
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
935ecbe
...
@@ -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
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment