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
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
75 additions
and
93 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";
* 4预发布
* 5cdptest
*/
let
index
=
2
;
let
index
=
1
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
packageEquity/pages/aiInspection/components/contentItem/contentItem.js
View file @
935ecbe
...
...
@@ -6,7 +6,7 @@ Component({
*/
properties
:
{
item
:
Object
,
type
:
Number
type
:
Number
},
/**
...
...
@@ -14,21 +14,22 @@ Component({
*/
data
:
{
contentObject
:
[{
label
:
'接待时间'
,
key
:
'time'
},
{
label
:
'录音时长'
,
key
:
'_duration'
},
{
label
:
'预计营销结果'
,
key
:
'estimatedResult'
,
colorEnum
:
{
0
:
'#F24724'
,
1
:
'#35C376'
}
label
:
'接待时间'
,
key
:
'time'
},
{
label
:
'录音时长'
,
key
:
'_duration'
},
{
label
:
'预计营销结果'
,
key
:
'estimatedResult'
,
colorEnum
:
{
0
:
'#F24724'
,
1
:
'#35C376'
,
'-1'
:
'#EF971E'
}
}
]
},
...
...
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.wxml
View file @
935ecbe
...
...
@@ -10,7 +10,7 @@
<block wx:for="{{ overviewList }}" wx:key="index">
<view class="overview-item flex">
<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>
</block>
</view>
...
...
packageEquity/pages/aiInspectionDetail/components/audio/audio.js
View file @
935ecbe
...
...
@@ -24,6 +24,7 @@ Component({
var
duration
=
this
.
formatTime
(
n
);
this
.
setData
({
duration
,
offset
:
0
// max: parseInt(n / 1000)
});
}
...
...
@@ -48,7 +49,11 @@ Component({
detached
()
{
// console.log(bgMusic.src);
// bgMusic.src = ''
// bgMusic.stop()
bgMusic
.
stop
()
this
.
setData
({
offset
:
0
,
starttime
:
"00:00"
,
//正在播放时长
})
// bgMusic.destroy()
}
},
...
...
packageEquity/pages/beforeCreate/beforeCreate.js
View file @
935ecbe
// packageEquity/pages/beforeCreate/beforeCreate.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
},
data
:
{},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
wx
.
$router
.
getData
(
res
=>
{
this
.
setData
(
res
)
})
this
.
getSystemInfo
()
wx
.
$router
.
getData
(
(
res
)
=>
{
this
.
setData
(
res
)
;
})
;
this
.
getSystemInfo
()
;
},
getSystemInfo
()
{
let
_this
=
this
let
_this
=
this
;
wx
.
getRendererUserAgent
({
success
(
res
)
{
console
.
log
(
res
)
let
isPad
=
/iPad|Android.*Tablet|Kindle|Silk/i
.
test
(
res
.
userAgent
)
console
.
log
(
res
)
;
let
isPad
=
/iPad|Android.*Tablet|Kindle|Silk/i
.
test
(
res
.
userAgent
)
;
_this
.
setData
({
isPad
})
}
})
isPad
,
})
;
}
,
})
;
wx
.
getSystemInfo
({
success
(
res
)
{
console
.
log
(
res
)
const
deviceOrientation
=
res
.
deviceOrientation
console
.
log
(
res
)
;
const
deviceOrientation
=
res
.
deviceOrientation
;
_this
.
setData
({
deviceOrientation
,
})
}
})
})
;
}
,
})
;
},
onResize
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
;
this
.
setData
({
deviceOrientation
:
e
.
deviceOrientation
})
deviceOrientation
:
e
.
deviceOrientation
,
})
;
},
jump
()
{
const
{
mode
}
=
this
.
data
wx
.
$router
.
go
(
mode
?
'createOrderCarQuotationSimple'
:
'createOrderCarQuotation'
)
const
{
mode
}
=
this
.
data
;
wx
.
$router
.
go
(
mode
?
"createOrderCarQuotationSimple"
:
"createOrderCarQuotation"
);
},
open
()
{
const
{
isPad
}
=
this
.
data
if
(
!
isPad
)
return
wx
.
$util
.
showToast
(
'为保证使用体验,快来工作平板上使用该功能吧'
)
const
{
isPad
}
=
this
.
data
;
if
(
!
isPad
)
return
wx
.
$util
.
showToast
(
"为保证使用体验,快来工作平板上使用该功能吧"
);
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
onShareAppMessage
()
{},
});
packageEquity/pages/carQuotation/components/FirstStep/FirstStep.js
View file @
935ecbe
...
...
@@ -48,29 +48,22 @@ Component({
},
mode
:
{
type
:
Number
,
value
:
1
}
},
observers
:
{
'mode'
:
function
(
value
)
{
'mode'
:
function
(
value
,
old
)
{
console
.
log
(
value
,
old
,
'mode'
);
// 先注释掉
// this.getYqStoreConfig()
if
(
value
!=
1
)
{
this
.
setData
({
first
:
data
.
firstObj
,
formRule
:
data
.
formRule
})
}
}
// 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
({
first
:
value
?
data
.
firstObjSimple
:
data
.
firstObj
,
formRule
:
value
?
data
.
formRuleSimple
:
data
.
formRule
})
},
// 'orderInfo.outTradeNo': function (value) {
// console.log(value, 'outTradeNo')
// value && this.setData({
...
...
@@ -91,8 +84,10 @@ Component({
disable
:
true
,
// firstObjSimple:data.firstObjSimple,
// formRuleSimple: data.formRuleSimple,
first
:
data
.
firstObjSimple
,
formRule
:
data
.
formRuleSimple
,
first
:
''
,
formRule
:
''
,
// first: data.firstObjSimple,
// formRule: data.formRuleSimple,
referrerPicker
:
false
,
textNameObj
:
{
confirmName
:
'下一步(1/4)'
,
...
...
packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple.js
View file @
935ecbe
...
...
@@ -1014,7 +1014,6 @@ Page({
}
console
.
log
(
first
,
formRule
,
'firstData'
);
firstCom
.
setData
({
// ...firstData
first
,
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