Commit 07977df4 by 李伟康

commit 提交

1 parent 6396b4d9
<template>
<view class="detail-box">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view>
车主详情
</view>
......@@ -10,7 +17,10 @@
<view class="title">车主信息</view>
<view class="customer-info">
<template v-for="(item, index) in customerForm">
<view class="item flex" :key="index">
<view
class="item flex"
:key="index"
>
<view class="label">{{ item.label }}</view>
<view class="value text-hide">{{ customerInfo[item.key] }}</view>
</view>
......@@ -19,18 +29,32 @@
</view>
<view class="case-box box">
<view class="title flex">推荐套餐</view>
<scroll-view class="case-scroll-box" scroll-y @scrolltolower="pageonReachBottom">
<scroll-view
class="case-scroll-box"
scroll-y
@scrolltolower="pageonReachBottom"
>
<view class="case-list">
<template v-if="flag">
<template v-if="list.length && list[0] && list[0].length">
<template v-for="i in list">
<template v-for="item in i">
<view class="case-item" :key="item.id" @click="jumpDetail(item)">
<image class="img" :src="item.cover"></image>
<view
class="case-item"
:key="item.id"
@click="jumpDetail(item)"
>
<image
class="img"
:src="item.cover"
></image>
<view class="case-info">
<view class="case-name text-hide">{{ item.title }}</view>
<template v-for="(j, ind) in caseInfo">
<view class="case-text flex" :key="ind">
<view
class="case-text flex"
:key="ind"
>
<view class="case-label">{{ j.label }}:</view>
<view :class="['case-value', j.class]">
<template v-if="j.format">
......@@ -49,7 +73,10 @@
</template>
<template v-else>
<view class="nothing flex">
<image class="icon" src="@/assets/images/home/nothing.webp" />
<image
class="icon"
src="@/assets/images/home/nothing.webp"
/>
暂无推荐套餐
</view>
</template>
......@@ -237,16 +264,15 @@ export default {
if (item.type != 3) {
let fileUrl = item?.detailInfos[0]?.image
if (item.type == 2) {
uni.downloadFile({
url: fileUrl,
success: function (res) {
var filePath = res.tempFilePath;
uni.navigateTo({
url: `/pages/common/webview?fileUrl=${filePath}&title=${item.title}`
})
}
})
return
// uni.downloadFile({
// url: fileUrl,
// success (res) {
// var filePath = res.tempFilePath;
// }
// })
// return
url = `/pages/common/webview?fileUrl=${fileUrl}&title=${item.title}`
}
if (item.type == 1 || item.type == 0) url = `/pages/boutique/preview?tabName=${item.title}&sourceType=${item.type == 1 ? 2 : 1}&detailUrl=${fileUrl}&id=${item.id}&visitsId=${this.visitsId}`
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!