Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1e08060a
authored
Jun 19, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.6' into v1.0.7
2 parents
f24c82d8
1d6db22c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
180 additions
and
148 deletions
.hbuilderx/launch.json
main.js
manifest.json
mixin/click.js
pages/boutique/detail.vue
pages/boutique/index.vue
pages/boutique/membranes.vue
utils/ossUploadFile/uploadFile.js
.hbuilderx/launch.json
View file @
1e08060
...
...
@@ -4,24 +4,20 @@
"version"
:
"0.0"
,
"configurations"
:
[
{
"app-plus"
:
{
"launchtype"
:
"remote"
},
"default"
:
{
"launchtype"
:
"local"
},
"h5"
:
{
"launchtype"
:
"local"
},
"mp-weixin"
:
{
"launchtype"
:
"local"
},
"provider"
:
"aliyun"
,
"type"
:
"uniCloud"
"app-plus"
:
{
"launchtype"
:
"remote"
},
"default"
:
{
"launchtype"
:
"local"
},
"h5"
:
{
"launchtype"
:
"local"
},
"mp-weixin"
:
{
"launchtype"
:
"local"
},
"provider"
:
"aliyun"
,
"type"
:
"uniCloud"
},
{
"playground"
:
"standard"
,
...
...
main.js
View file @
1e08060
...
...
@@ -23,7 +23,7 @@ Vue.component("wnCanvas", wnCanvas);
Vue
.
component
(
"UpdateBox"
,
UpdateBox
);
uni
.
$api
=
api
;
uni
.
$storage
=
new
Storage
();
uni
.
$throttle
=
utils
.
throttle
uni
.
$throttle
=
utils
.
throttle
;
Vue
.
config
.
productionTip
=
false
;
App
.
mpType
=
"app"
;
Vue
.
prototype
.
$ossDomain
=
config
.
OSS_DOMAIN
;
...
...
manifest.json
View file @
1e08060
...
...
@@ -2,7 +2,7 @@
"name"
:
"展业助手"
,
"appid"
:
"__UNI__D3BD3DF"
,
"description"
:
""
,
"versionName"
:
"1.
2.0
"
,
"versionName"
:
"1.
4.1
"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
...
...
mixin/click.js
View file @
1e08060
...
...
@@ -67,11 +67,13 @@ export default {
this
.
stopAudio
();
this
.
setReceptionStatus
(
0
);
this
.
setAudioInfo
({
endReasonType
:
1
});
this
.
$refs
.
tipBox
?.
close
();
let
{
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
);
uni
.
reLaunch
({
url
:
sceneType
==
0
?
"/pages/equity/index"
:
"/pages/boutique/index"
,
});
if
(
this
.
$refs
.
tipBox
)
{
this
.
$refs
.
tipBox
.
close
();
let
{
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
);
uni
.
reLaunch
({
url
:
sceneType
==
0
?
"/pages/equity/index"
:
"/pages/boutique/index"
,
});
}
},
//结束提示
tipConfirm
()
{
...
...
@@ -210,7 +212,7 @@ export default {
this
.
$store
.
state
.
user
.
customerInfo
;
const
{
name
}
=
uni
.
$storage
.
get
(
"userInfo"
);
this
.
$sendSentry
(
`
上传文件
失败:手机号-
${
phoneNumber
}
姓名-
${
customerName
}
销售-
${
staffName
}
车型-
${
carModel
}
员工-
${
name
}
,失败原因-
${
result
}
`
`
重试多次
失败:手机号-
${
phoneNumber
}
姓名-
${
customerName
}
销售-
${
staffName
}
车型-
${
carModel
}
员工-
${
name
}
,失败原因-
${
result
}
`
);
// this.handleErrorFile(res.tempFilePath, UPLOAD_STATUS.fail);
...
...
@@ -287,6 +289,9 @@ export default {
// 上传成功
return
result
;
}
catch
(
error
)
{
if
(
attempt
==
0
)
{
this
.
$sendSentry
(
`第一次上传失败:文件
${
tempFilePath
}
`
);
}
errorMsg
=
error
;
attempt
++
;
// 等待一段时间后重试
...
...
@@ -344,7 +349,7 @@ export default {
},
1500
),
//监听点击事件
initTime
()
{
if
(
!
this
.
audioInfo
.
audioStatus
=
=
"start"
)
return
;
if
(
this
.
audioInfo
.
audioStatus
!
=
"start"
)
return
;
this
.
timer
=
setInterval
(()
=>
{
this
.
times
++
;
if
(
this
.
times
>=
this
.
timeout
)
{
...
...
pages/boutique/detail.vue
View file @
1e08060
...
...
@@ -22,18 +22,18 @@
</view>
<template
v-for=
"(item, index) in media"
>
<view
:class=
"['view',
{ showView: id == item.
id
}]"
:class=
"['view',
{ showView: id == item.
sort
}]"
:key="index"
>
<component
:is=
"componentName(item.
id
)"
:is=
"componentName(item.
sort
)"
:views=
"item.receptionSourceDetailList || []"
:ref=
"'media' + item.
id
"
:ref=
"'media' + item.
sort
"
:title=
"item.detailTitle || ''"
:madiaId=
"item.
id
"
:madiaId=
"item.
sort
"
:customerType=
"customerType"
@
jumpPage=
"jumpPage"
:show=
"id == item.
id
"
:show=
"id == item.
sort
"
@
reception=
"reception"
/>
</view>
...
...
@@ -46,6 +46,7 @@
@
choose=
"choose"
@
finish=
"open"
:id=
"id"
idKey=
"sort"
/>
</
template
>
<finish-step
...
...
@@ -59,7 +60,6 @@
</template>
<
script
>
import
ToolBox
from
"@/components/ToolBox.vue"
;
import
myClick
from
"@/mixin/click"
;
import
FinishStep
from
"@/components/FinishStep.vue"
;
import
Membranes
from
"./membranes.vue"
;
import
Reception
from
"./components/Reception.vue"
;
...
...
@@ -77,7 +77,6 @@ export default {
Case
,
history
},
mixins
:
[
myClick
],
props
:
{
id
:
[
String
,
Number
],
media
:
Array
,
...
...
@@ -95,7 +94,7 @@ export default {
computed
:
{
title
()
{
let
{
id
}
=
this
,
name
=
this
.
media
.
find
((
e
)
=>
e
.
id
==
id
)?.
detailTitle
||
""
;
name
=
this
.
media
.
find
((
e
)
=>
e
.
sort
==
id
)?.
detailTitle
||
""
;
return
name
;
},
watchStatus
()
{
...
...
@@ -112,13 +111,13 @@ export default {
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
]),
componentName
(
id
)
{
let
name
=
""
;
if
([
8
,
10
,
11
].
includes
(
id
))
name
=
"membranes"
;
if
([
2
,
4
,
5
].
includes
(
id
))
name
=
"membranes"
;
else
name
=
{
7
:
"reception"
,
13
:
"invitation"
,
9
:
"Case"
,
12
:
'history'
1
:
"reception"
,
7
:
"invitation"
,
3
:
"Case"
,
6
:
'history'
}[
id
];
return
name
;
},
...
...
@@ -127,8 +126,8 @@ export default {
},
/**切换素材 */
choose
(
e
)
{
if
(
this
.
id
==
7
)
this
.
$refs
.
media7
[
0
].
closeAllPopup
();
this
.
jumpPage
({
id
:
e
.
id
})
if
(
this
.
id
==
1
)
this
.
$refs
.
media1
[
0
].
closeAllPopup
();
this
.
jumpPage
({
id
:
e
.
sort
})
},
back
()
{
if
(
this
.
historyId
)
{
...
...
@@ -145,7 +144,7 @@ export default {
this
.
$emit
(
"done"
,
e
);
},
jumpPage
({
id
,
historyId
})
{
if
(
historyId
)
this
.
$emit
(
'update:historyId'
,
historyId
)
this
.
$emit
(
'update:historyId'
,
historyId
||
''
)
this
.
$emit
(
"update:id"
,
Number
(
id
));
},
/**回店客户 */
...
...
@@ -171,7 +170,7 @@ export default {
this
.
$emit
(
'reception'
)
},
backInvitation
()
{
this
.
jumpPage
({
id
:
13
})
this
.
jumpPage
({
id
:
7
})
setTimeout
(()
=>
{
uni
.
showToast
({
title
:
'请选择回店客户'
,
...
...
pages/boutique/index.vue
View file @
1e08060
...
...
@@ -88,10 +88,11 @@ export default {
methods
:
{
...
mapMutations
(
"audio"
,
[
"setReceptionStatus"
]),
init
()
{
this
.
customerType
=
-
1
this
.
getSoure
()
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
this
.
customerType
=
-
1
this
.
getSoure
(
shopMerchantId
)
/**获取品牌车型 */
uni
.
$api
.
commonApi
.
getMerchantCarBrandList
([
shopMerchantId
])
...
...
@@ -119,9 +120,10 @@ export default {
});
},
// 查询素材
async
getSoure
()
{
async
getSoure
(
merchantNo
)
{
const
moduleList
=
await
uni
.
$api
.
commonApi
.
findSoureList
({
bussinessType
:
2
bussinessType
:
2
,
merchantNo
});
moduleList
.
map
((
e
,
index
)
=>
{
if
(
index
<
2
)
{
...
...
@@ -144,9 +146,9 @@ export default {
this
.
$refs
.
home
.
previewRef
.
close
();
},
preview
()
{
let
{
id
}
=
this
.
chooseItem
;
let
{
sort
}
=
this
.
chooseItem
;
this
.
type
=
"preview"
;
this
.
id
=
id
;
this
.
id
=
sort
;
this
.
cancel
()
},
back
()
{
...
...
@@ -187,7 +189,7 @@ export default {
return
true
},
jumpPage
(
id
)
{
this
.
id
=
id
?
id
:
this
.
moduleList
[
0
].
id
this
.
id
=
id
?
id
:
this
.
moduleList
[
0
].
sort
this
.
type
=
"edit"
},
clearHistory
()
{
...
...
@@ -204,8 +206,8 @@ export default {
if
(
!
flag
)
return
this
.
customerType
=
index
if
(
index
==
0
)
{
const
{
id
}
=
moduleList
[
moduleList
.
length
-
1
]
this
.
jumpPage
(
id
)
const
{
sort
}
=
moduleList
[
moduleList
.
length
-
1
]
this
.
jumpPage
(
sort
)
}
else
this
.
jumpPage
()
},
...
...
pages/boutique/membranes.vue
View file @
1e08060
...
...
@@ -16,126 +16,143 @@
</view>
-->
<view
class=
"wrapper"
>
<view
class=
"wrapper-content"
>
<view
class=
"first-tab"
>
<view
class=
"tab-item"
v-for=
"(i, index) in views"
:key=
"index"
@
click=
"changeIndex(index, 'firstIndex')"
>
<template
v-if=
"views && views[firstIndex] && views[firstIndex].receptionSourceDetailInfoList"
>
<view
class=
"first-tab"
>
<view
class=
"sprite-icon"
:class=
"[
class=
"tab-item"
v-for=
"(i, index) in views"
:key=
"index"
@
click=
"changeIndex(index, 'firstIndex')"
>
<view
class=
"sprite-icon"
:class=
"[
firstIndex == index ? `icon-$
{firstClass[index]} active` : '',
]"
:style="{ left: firstLeft[index] }"
>
</view>
<view
class=
"text"
:class=
"[firstIndex == index ? `active` : '']"
>
{{
:style="{ left: firstLeft[index] }"
>
</view>
<view
class=
"text"
:class=
"[firstIndex == index ? `active` : '']"
>
{{
i
.
tabName
}}
</view>
</view>
</view>
</view>
<template
v-if=
"madiaId == 8"
>
<!-- 套餐 无分组 -->
<view
class=
"content"
id=
"content"
>
<template
v-if=
"
<template
v-if=
"madiaId == 2"
>
<!-- 套餐 无分组 -->
<view
class=
"content"
id=
"content"
>
<template
v-if=
"
views[firstIndex].noGroupReceptionSourceDetailInfoList.length >
0
"
>
<view
class=
"product-list"
:key=
"firstIndex"
:class=
"direction"
style=
"height: 1120rpx"
>
"
>
<view
class=
"product-item"
v-for=
"(it, ids) in views[firstIndex]
.noGroupReceptionSourceDetailInfoList"
:key=
"ids"
@
click=
"goDetail(it)"
class=
"product-list"
:key=
"firstIndex"
:class=
"direction"
style=
"height: 1120rpx"
>
<view
class=
"product-item"
v-for=
"(it, ids) in views[firstIndex]
.noGroupReceptionSourceDetailInfoList"
:key=
"ids"
@
click=
"goDetail(it)"
>
<image
:src=
"it.thumbnail"
mode=
"scaleToFill"
class=
"product-img"
/>
</view>
</view>
</
template
>
<
template
v-else
>
<view
class=
"nothing flex"
>
<image
:src=
"it.thumbnail"
mode=
"scaleToFill"
class=
"product-img"
class=
"icon"
src=
"../../assets/images/boutique/nothing.png"
/>
<view>
暂无产品内容
</view>
</view>
</view>
</
template
>
<
template
v-else
>
<view
class=
"nothing flex"
>
<image
class=
"icon"
src=
"../../assets/images/boutique/nothing.png"
/>
<view>
暂无产品内容
</view>
</view>
</
template
>
</view>
</template>
<
template
v-else
>
<!-- 其他 有分组 -->
<view
class=
"content"
id=
"content"
>
</
template
>
</view>
</template>
<
template
v-else
>
<!-- 其他 有分组 -->
<view
class=
"second-tab"
ref=
"secondTab"
v-if=
"views[firstIndex].receptionSourceDetailInfoList.length > 0"
class=
"content"
id=
"content"
>
<view
v-for=
"(item, ind) in views[firstIndex]
class=
"second-tab"
ref=
"secondTab"
v-if=
"views[firstIndex].receptionSourceDetailInfoList.length > 0"
>
<view
v-for=
"(item, ind) in views[firstIndex]
.receptionSourceDetailInfoList"
:key=
"ind"
class=
"tab-item"
:class=
"[secondIndex == ind ? 'active' : '']"
@
click=
"changeIndex(ind, 'secondIndex')"
>
{{
item
.
tabName
}}
:key=
"ind"
class=
"tab-item"
:class=
"[secondIndex == ind ? 'active' : '']"
@
click=
"changeIndex(ind, 'secondIndex')"
>
{{
item
.
tabName
}}
</view>
</view>
</view>
<template
v-if=
"
<template
v-if=
"
views[firstIndex].receptionSourceDetailInfoList.length > 0 &&
views[firstIndex].receptionSourceDetailInfoList[secondIndex]
.receptionSourceDetailInfoList
"
>
<view
class=
"product-list"
:key=
"firstIndex + secondIndex"
:class=
"direction"
:style=
"
{
"
>
<view
class=
"product-list"
:key=
"firstIndex + secondIndex"
:class=
"direction"
:style=
"
{
height: views[firstIndex].receptionSourceDetailInfoList
? '962rpx'
: '1032rpx',
}"
>
<view
class=
"product-item"
v-for=
"(itm, idx) in views[firstIndex]
>
<view
class=
"product-item"
v-for=
"(itm, idx) in views[firstIndex]
.receptionSourceDetailInfoList[secondIndex]
.receptionSourceDetailInfoList"
:key=
"idx"
@
click=
"goDetail(itm)"
>
:key=
"idx"
@
click=
"goDetail(itm)"
>
<image
:src=
"itm.thumbnail"
mode=
"scaleToFill"
class=
"product-img"
/>
</view>
</view>
</
template
>
<
template
v-else
>
<view
class=
"nothing flex"
>
<image
:src=
"itm.thumbnail"
mode=
"scaleToFill"
class=
"product-img"
class=
"icon"
src=
"../../assets/images/boutique/nothing.png"
/>
<view>
暂无产品内容
</view>
</view>
</
view
>
</
template
>
<
template
v-els
e
>
<view
class=
"nothing flex"
>
<image
class=
"icon"
src=
"../../assets/images/boutique/nothing.png"
/>
<view>
暂无产品内容
</view>
</view
>
<
/
template
>
</
template
>
</
view
>
</templat
e>
</template
>
<
template
v-else
>
<view
class=
"nothing flex"
>
<image
class=
"icon"
src=
"../../assets/images/boutique/nothing.png"
/
>
<
view>
暂无产品内容
</view
>
</view>
</
template
>
</view>
...
...
@@ -177,10 +194,10 @@ export default {
},
},
watch
:
{
show
(
val
)
{
show
(
val
)
{
if
(
val
)
this
.
imgKey
=
Date
.
now
()
},
watchStatus
()
{
watchStatus
()
{
console
.
log
(
111
)
this
.
firstIndex
=
0
this
.
secondIndex
=
0
...
...
@@ -188,7 +205,7 @@ export default {
}
},
methods
:
{
changeIndex
(
index
,
name
)
{
changeIndex
(
index
,
name
)
{
if
(
this
[
name
]
==
index
)
return
// 点击同一个
this
.
direction
=
''
console
.
log
(
index
,
name
,
this
[
name
])
...
...
@@ -209,7 +226,7 @@ export default {
const
data
=
await
uni
.
$api
.
boutiqueApi
.
findSoureList
({})
console
.
log
(
data
)
},
goDetail
(
data
)
{
goDetail
(
data
)
{
console
.
log
(
data
)
uni
.
navigateTo
({
url
:
`/pages/boutique/productDetail?detailUrl=
${
data
.
detailUrl
}
`
...
...
utils/ossUploadFile/uploadFile.js
View file @
1e08060
...
...
@@ -54,7 +54,20 @@ const uploadFile = function (filePath) {
success
:
function
(
res
)
{
console
.
log
(
res
,
444
);
if
(
res
.
statusCode
!=
200
)
{
reject
(
new
Error
(
"上传错误:"
+
JSON
.
stringify
(
res
)));
reject
(
new
Error
(
"上传错误:"
+
JSON
.
stringify
({
statusCode
:
res
.
statusCode
,
filePath
,
key
:
aliyunFileKey
,
policy
:
policyBase64
,
OSSAccessKeyId
:
lsaccessKeyId
,
signature
:
signature
,
"x-oss-security-token"
:
securityToken
,
})
)
);
}
else
{
uni
.
removeSavedFile
({
filePath
,
...
...
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