Commit 07977df4 by 李伟康

commit 提交

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