Commit 7b016cc0 by 前端

埋点

1 parent 542dc46f
...@@ -2,20 +2,20 @@ ...@@ -2,20 +2,20 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53 * @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-18 17:59:32 * @LastEditTime: 2024-08-30 17:28:05
* @FilePath: \gl_tape\App.vue * @FilePath: \gl_tape\App.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
<script> <script>
var wv const PATH = ['/pages/common/caseDetail']
import { mapState } from 'vuex' import { mapState } from 'vuex'
export default { export default {
computed: { computed: {
...mapState('audio', ['isEnd', 'isStart']) ...mapState('audio', ['isEnd', 'isStart'])
}, },
onLoad() {},
onLaunch: async function () { onLaunch: async function () {
// this.init()
this.setAPPVersion() this.setAPPVersion()
setTimeout(() => { setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向 plus.screen.unlockOrientation() //解除锁定屏幕方向
...@@ -26,6 +26,46 @@ export default { ...@@ -26,6 +26,46 @@ export default {
}) })
}, },
methods: { methods: {
init() {
uni.addInterceptor('navigateTo', {
//监听跳转
invoke(e) {
console.log('******** invoke-navigateTo ********', e.url.split('?').shift())
if (PATH.includes(e.url.split('?').shift())) {
console.log(888)
}
}
})
//2
uni.addInterceptor('redirectTo', {
//监听关闭本页面跳转
invoke(e) {
console.log('******** redirectTo ********', e.url)
}
})
uni.addInterceptor('switchTab', {
//监听tabBar跳转
invoke(e) {
console.log('******** switchTab ********', e.url)
}
})
//4
uni.addInterceptor('navigateBack', {
//监听返回
invoke(e) {
console.log('******** navigateBack ********', e)
}
})
},
setAPPVersion() { setAPPVersion() {
let version = plus.runtime.version let version = plus.runtime.version
let storageVersion = uni.$storage.get('storageVersion') let storageVersion = uni.$storage.get('storageVersion')
...@@ -60,6 +100,7 @@ export default { ...@@ -60,6 +100,7 @@ export default {
body { body {
// overflow: hidden; // overflow: hidden;
} }
page { page {
font-size: 28rpx; font-size: 28rpx;
height: 100%; height: 100%;
...@@ -121,6 +162,7 @@ button::after { ...@@ -121,6 +162,7 @@ button::after {
.button-hover { .button-hover {
transform: translate(1rpx, 1rpx); transform: translate(1rpx, 1rpx);
} }
.webview-container { .webview-container {
position: absolute; position: absolute;
width: 100rpx; width: 100rpx;
......
import http from "../request/http"; import http from '../request/http'
import environment from "@/env"; import environment from '@/env'
module.exports = { module.exports = {
/**获取APP更新 */ /**获取APP更新 */
getAPPVersion (data) { getAPPVersion(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.recepiton.findVersion', method: 'dj.api.smartcarlife.recepiton.findVersion',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
// 查询接待素材 // 查询接待素材
findSoureList (data) { findSoureList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList", method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
projectName: "boutique", projectName: 'boutique',
...data ...data
}); })
}, },
// 查询门店支付配置 // 查询门店支付配置
findPayInfo (data) { findPayInfo(data) {
return http.post({ return http.post({
method: method: 'dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId',
"dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId", projectName: 'boutique',
projectName: "boutique", ...data
...data, })
});
}, },
// 接待客户信息保存 // 接待客户信息保存
saveRecCustomer (data) { saveRecCustomer(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer", method: 'dj.api.smartcarlife.recepiton.customer.saveRecCustomer',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
getToken (data) { getToken(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.oss.getToken", method: 'dj.api.smartcarlife.recepiton.customer.oss.getToken',
projectName: "boutique", projectName: 'boutique'
}); })
}, },
// 历史订单列表 // 历史订单列表
getQuotationList (data) { getQuotationList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page", method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/** 获取门店主营车品牌 */ /** 获取门店主营车品牌 */
getMerchantCarBrandList (merchantIdList) { getMerchantCarBrandList(merchantIdList) {
return http.post({ return http.post(
{
method: 'merchants.api.open.merchant.info', method: 'merchants.api.open.merchant.info',
projectName: 'merchants', projectName: 'merchants',
merchantIdList, merchantIdList,
merchantInfoSwitch: { merchantInfoSwitch: {
brandFlag: true brandFlag: true
} }
}, false, 'merchant') },
false,
'merchant'
)
}, },
/** /**
* 车型 * 车型
* *
*/ */
getCarBrandsList (data) { getCarBrandsList(data) {
return http.post( return http.post(
{ {
method: "scrm.api.carlife.common.getCarSeriesList", method: 'scrm.api.carlife.common.getCarSeriesList',
...data, ...data
}, },
false, false,
"scrm" 'scrm'
); )
}, },
/** /**
* 推荐人 * 推荐人
*/ */
getEmployeeList (data) { getEmployeeList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.employee.getByMerchantId", method: 'dj.api.smartcarlife.employee.getByMerchantId',
projectName: "boutique", projectName: 'boutique',
sceneList: [0], sceneList: [0],
...data, ...data
}); })
}, },
/** 查询接待记录列表 */ /** 查询接待记录列表 */
getReceptionList (data) { getReceptionList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.reception.customer.page", method: 'dj.api.smartcarlife.reception.customer.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/** 接待统计 */ /** 接待统计 */
getReceptionStatistics (data) { getReceptionStatistics(data) {
return http.post({
method: 'dj.api.smartcarlife.reception.customer.statistics',
projectName: 'boutique',
...data
})
},
/** 埋点进入 */
addRecord(data) {
return http.post({
method: 'dj.api.customer.dynamic.record.add',
projectName: 'boutique',
...data
})
},
/** 埋点离开 */
leaveRecord(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.reception.customer.statistics", method: 'dj.api.customer.dynamic.record.leave',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/**创建小程序码 */ /**创建小程序码 */
createQrcode (data) { createQrcode(data) {
const envVersion = { const envVersion = {
0: 'develop', 0: 'develop',
1: 'develop', 1: 'develop',
...@@ -112,10 +131,15 @@ module.exports = { ...@@ -112,10 +131,15 @@ module.exports = {
3: 'release', 3: 'release',
4: 'trial' 4: 'trial'
}[environment.index] }[environment.index]
data.projectName = "wechat" data.projectName = 'wechat'
return http.fetch("scrm.api.wechat.miniprogram.createQrcode", { return http.fetch(
'scrm.api.wechat.miniprogram.createQrcode',
{
envVersion, envVersion,
...data ...data
}, true, 'scrm');
}, },
}; true,
'scrm'
)
}
}
...@@ -2,41 +2,41 @@ ...@@ -2,41 +2,41 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53 * @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-11 16:47:29 * @LastEditTime: 2024-08-30 14:49:02
* @FilePath: \gl_tape\main.js * @FilePath: \gl_tape\main.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
import Vue from "vue"; import Vue from 'vue'
import App from "./App"; import App from './App'
import config from "@/config.js"; import config from '@/config.js'
import store from "@/store"; import store from '@/store'
import api from "./api/index"; import api from './api/index'
import { Storage } from "./utils/cache/index"; import { Storage } from './utils/cache/index'
import GlsxImage from "./components/GlsxImage"; import GlsxImage from './components/GlsxImage'
import MessageBox from "./components/MessageBox/index"; import MessageBox from './components/MessageBox/index'
import wnCanvas from "./components/Canvas/wn-canvas"; import wnCanvas from './components/Canvas/wn-canvas'
import UpdateBox from "./components/UpdateBox"; import UpdateBox from './components/UpdateBox'
import webView from "./components/WebView"; import webView from './components/WebView'
import utils from "./utils/utils"; import utils from './utils/utils'
Vue.use(webView); Vue.use(webView)
Vue.component("GlsxImage", GlsxImage); Vue.component('GlsxImage', GlsxImage)
Vue.component("MessageBox", MessageBox); Vue.component('MessageBox', MessageBox)
Vue.component("wnCanvas", wnCanvas); Vue.component('wnCanvas', wnCanvas)
Vue.component("UpdateBox", UpdateBox); Vue.component('UpdateBox', UpdateBox)
import RecordManager from "@/utils/RecordManager"; import RecordManager from '@/utils/RecordManager'
const recordManager = RecordManager.getInstance(); const recordManager = RecordManager.getInstance()
recordManager.compatible(); recordManager.compatible()
uni.$recordManager = recordManager; uni.$recordManager = recordManager
uni.$api = api; uni.$api = api
uni.$lock = false; uni.$lock = false
uni.$storage = new Storage(); uni.$storage = new Storage()
uni.$throttle = utils.throttle; uni.$throttle = utils.throttle
uni.$isNetWork = utils.isNetWork; uni.$isNetWork = utils.isNetWork
Vue.config.productionTip = false; Vue.config.productionTip = false
App.mpType = "app"; App.mpType = 'app'
Vue.prototype.$ossDomain = config.OSS_DOMAIN; Vue.prototype.$ossDomain = config.OSS_DOMAIN
import permision from "@/js_sdk/wa-permission/permission.js"; import permision from '@/js_sdk/wa-permission/permission.js'
import { index } from "./env"; import { index } from './env'
// switch (uni.getSystemInfoSync().platform) { // switch (uni.getSystemInfoSync().platform) {
// case "android": // case "android":
// permision.requestAndroidPermission("android.permission.RECORD_AUDIO"); // permision.requestAndroidPermission("android.permission.RECORD_AUDIO");
...@@ -47,19 +47,19 @@ import { index } from "./env"; ...@@ -47,19 +47,19 @@ import { index } from "./env";
// permision.judgeIosPermission("camera"); // permision.judgeIosPermission("camera");
// break; // break;
// } // }
Vue.prototype.$permision = permision; Vue.prototype.$permision = permision
import sentryInit from "@/utils/sentryConfig/sentryInit"; import sentryInit from '@/utils/sentryConfig/sentryInit'
if (index == 3) { if (index == 3) {
const sentry = sentryInit(); const sentry = sentryInit()
Vue.prototype.$sendSentry = function (e) { Vue.prototype.$sendSentry = function (e) {
sentry.captureException(e); sentry.captureException(e)
}; }
} else { } else {
Vue.prototype.$sendSentry = function () {}; Vue.prototype.$sendSentry = function () {}
} }
const app = new Vue({ const app = new Vue({
store, store,
...App, ...App
}); })
app.$mount(); app.$mount()
<template> <template>
<view class="case-box"> <view class="case-box">
<view class="nav-bar"> <view class="nav-bar">
<view <view class="back" @click="back">
class="back" <uni-icons type="left" :size="20" color="#000"></uni-icons>
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view> </view>
{{caseObject.title}} {{ caseObject.title }}
</view> </view>
<view class="case-content"> <view class="case-content">
<view class="left-menu"> <view class="left-menu">
<view class="title">方案目录</view> <view class="title">方案目录</view>
<scroll-view <scroll-view scroll-y class="scroll" :scroll-into-view="`menu-${currentId}`" @scroll="menuScroll">
scroll-y <view class="scroll-content" id="scroll-content">
class="scroll" <template v-for="(item, index) in detailInfo">
:scroll-into-view="`menu-${currentId}`" <view class="item" :key="index">
@scroll="menuScroll" <view :class="['name', isLast(index), isActive(item)]" @click="menuClick(item)">
> <view class="text" :id="`menu-${item.id}`">{{ item.headings }}</view>
<view
class="scroll-content"
id="scroll-content"
>
<template v-for="(item,index) in detailInfo">
<view
class="item"
:key="index"
>
<view
:class="['name',isLast(index), isActive(item)]"
@click="menuClick(item)"
>
<view
class="text"
:id="`menu-${item.id}`"
>{{item.headings}}</view>
</view> </view>
<template v-if="item.children && item.children.length"> <template v-if="item.children && item.children.length">
<template v-for="(i,j) in item.children"> <template v-for="(i, j) in item.children">
<view <view :class="['name', isLast(index, j, item.children), isActive(i)]" :key="j" @click="menuClick(i)">
:class="['name',isLast(index,j,item.children),isActive(i)]" <view class="text" :id="`menu-${i.id}`">
:key="j"
@click="menuClick(i)"
>
<view
class="text"
:id="`menu-${i.id}`"
>
<view class="icon"></view> <view class="icon"></view>
{{i.headings}} {{ i.headings }}
</view> </view>
</view> </view>
</template> </template>
</template> </template>
</view> </view>
</template> </template>
<template v-if="currentId"> <template v-if="currentId">
<view <view class="block" :style="blockTop"></view>
class="block"
:style="blockTop"
></view>
</template> </template>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<scroll-view <scroll-view class="right-content" scroll-y :scroll-into-view="`case-${contentId}`" @scroll="contentScroll" scroll-with-animation>
class="right-content" <template v-for="(item, index) in detailInfo">
scroll-y <view class="detail-item" :key="item.id">
:scroll-into-view="`case-${contentId}`" <view class="item-title" :id="`case-${item.id}`">{{ item.headings }}</view>
@scroll="contentScroll"
scroll-with-animation
>
<template v-for="(item,index) in detailInfo">
<view
class="detail-item"
:key="item.id"
>
<view
class="item-title"
:id="`case-${item.id}`"
>{{item.headings}}</view>
<template v-if="item.audio"> <template v-if="item.audio">
<audio-component <audio-component :src="item.audio" @onPlay="onPlay(item.id)" :ref="`audio-${item.id}`" />
:src="item.audio"
@onPlay="onPlay(item.id)"
:ref="`audio-${item.id}`"
/>
</template> </template>
<view class="item-content"> <view class="item-content">
<rich-text :nodes="item.content"></rich-text> <rich-text :nodes="item.content"></rich-text>
</view> </view>
<template v-for="(i,ind) in item.pictureList"> <template v-for="(i, ind) in item.pictureList">
<image <image :key="`img-${index}-${ind}`" :src="i" class="item-img" mode="widthFix" @load="imgLoad"></image>
:key="`img-${index}-${ind}`"
:src="i"
class="item-img"
mode="widthFix"
@load="imgLoad"
></image>
</template> </template>
<template v-if="item.children && item.children.length"> <template v-if="item.children && item.children.length">
<template v-for="(i,s) in item.children"> <template v-for="(i, s) in item.children">
<view <view class="sub-item-content" :key="s">
class="sub-item-content" <view class="item-title sub-item-title flex" :id="`case-${i.id}`">{{ i.headings }}</view>
:key="s"
>
<view
class="item-title sub-item-title flex"
:id="`case-${i.id}`"
>{{i.headings}}</view>
<template v-if="i.audio"> <template v-if="i.audio">
<audio-component <audio-component :src="i.audio" @onPlay="onPlay(i.id)" :ref="`audio-${i.id}`" />
:src="i.audio"
@onPlay="onPlay(i.id)"
:ref="`audio-${i.id}`"
/>
</template> </template>
<view class="item-content"> <view class="item-content">
<rich-text :nodes="i.content"></rich-text> <rich-text :nodes="i.content"></rich-text>
</view> </view>
<template v-for="(c,k) in i.pictureList"> <template v-for="(c, k) in i.pictureList">
<image <image :key="k" :src="c" class="item-img" mode="widthFix" @load="imgLoad"></image>
:key="k"
:src="c"
class="item-img"
mode="widthFix"
@load="imgLoad"
></image>
</template> </template>
</view> </view>
</template> </template>
...@@ -142,12 +68,11 @@ ...@@ -142,12 +68,11 @@
<view class="content-end">到底了!</view> <view class="content-end">到底了!</view>
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import AudioComponent from './components/AudioComponent.vue' import AudioComponent from './components/AudioComponent.vue'
const view_padding_top = 88, const view_padding_top = 88,
menuHeight = 68 menuHeight = 68
...@@ -280,7 +205,10 @@ export default { ...@@ -280,7 +205,10 @@ export default {
} }
}, },
onLoad (options) { onLoad (options) {
this.visitsId = options.visitsId
this.goodsId = options.id
this.getMaterialDetail(options.id) this.getMaterialDetail(options.id)
this.addRecord()
}, },
watch: { watch: {
currentId (n) { currentId (n) {
...@@ -294,9 +222,31 @@ export default { ...@@ -294,9 +222,31 @@ export default {
}, },
computed: { computed: {
}, },
mounted () { onUnload() {
const params = {
id: this.addId,
visitsId:this.visitsId
}
uni.$api.commonApi.leaveRecord(params).then(res=>{
console.log(res,888)
})
}, },
methods: { methods: {
addRecord() {
const { shopMerchantId:merchantId ,shopMerchantName:merchantName} = uni.$storage.get('userInfo')
const params = {
goodsId: this.goodsId,
goodsType: 0,
merchantId,
merchantName,
visitsId:this.visitsId
}
uni.$api.commonApi.addRecord(params).then(res=>{
this.addId = res
console.log(this.addId,'this.addId')
})
},
async getMaterialDetail (id) { async getMaterialDetail (id) {
const res = await uni.$api.customerApi.getMaterialDetail({ const res = await uni.$api.customerApi.getMaterialDetail({
id id
...@@ -381,7 +331,7 @@ export default { ...@@ -381,7 +331,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.case-box { .case-box {
position: relative; position: relative;
width: 100vw; width: 100vw;
......
<template> <template>
<view class="detail-box"> <view class="detail-box">
<view class="nav-bar"> <view class="nav-bar">
<view <view class="back" @click="back">
class="back" <uni-icons type="left" :size="20" color="#000"></uni-icons>
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view> </view>
车主详情 车主详情
</view> </view>
...@@ -17,54 +10,34 @@ ...@@ -17,54 +10,34 @@
<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 <view class="item flex" :key="index">
class="item flex" <view class="label">{{ item.label }}</view>
:key="index" <view class="value text-hide">{{ customerInfo[item.key] }}</view>
>
<view class="label">{{item.label}}</view>
<view class="value text-hide">{{customerInfo[item.key]}}</view>
</view> </view>
</template> </template>
</view> </view>
</view> </view>
<view class="case-box box"> <view class="case-box box">
<view class="title flex"> <view class="title flex">推荐套餐</view>
推荐套餐 <scroll-view class="case-scroll-box" scroll-y @scrolltolower="pageonReachBottom">
</view>
<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 <view class="case-item" :key="item.id" @click="jumpDetail(item)">
class="case-item" <image class="img" :src="item.cover || ''"></image>
: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 <view class="case-text flex" :key="ind">
class="case-text flex" <view class="case-label">{{ j.label }}:</view>
:key="ind" <view :class="['case-value', j.class]">
>
<view class="case-label">{{j.label}}:</view>
<view :class="['case-value',j.class]">
<template v-if="j.format"> <template v-if="j.format">
{{j.format(item)}} {{ j.format(item) }}
</template> </template>
<template v-else> <template v-else>
{{item[j.key] || '--'}} {{ item[j.key] || '--' }}
</template> </template>
</view> </view>
</view> </view>
...@@ -76,10 +49,7 @@ ...@@ -76,10 +49,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image <image class="icon" src="@/assets/images/home/nothing.webp" />
class="icon"
src="@/assets/images/home/nothing.webp"
/>
暂无推荐套餐 暂无推荐套餐
</view> </view>
</template> </template>
...@@ -99,7 +69,7 @@ ...@@ -99,7 +69,7 @@
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import dayjs from 'dayjs' import dayjs from 'dayjs'
import PackagePopup from './components/PackagePopup.vue' import PackagePopup from './components/PackagePopup.vue'
export default { export default {
...@@ -170,7 +140,10 @@ export default { ...@@ -170,7 +140,10 @@ export default {
} }
}, },
onLoad (options) { onLoad (options) {
if (options.id) this.findVisitsInfo(options.id) if (options.id) {
this.findVisitsInfo(options.id)
this.visitsId = options.id
}
else { else {
uni.showToast({ uni.showToast({
title: '客户id为空', title: '客户id为空',
...@@ -260,7 +233,7 @@ export default { ...@@ -260,7 +233,7 @@ export default {
jumpDetail (item) { jumpDetail (item) {
console.log(item.type) console.log(item.type)
// 类型:0-图片;1-视频;2-pdf;3-富文本 // 类型:0-图片;1-视频;2-pdf;3-富文本
let url = `/pages/common/caseDetail?id=${item.id}` let url = `/pages/common/caseDetail?id=${item.id}&visitsId=${this.visitsId}`
if (item.type != 3) { if (item.type != 3) {
let fileUrl = item?.detailInfos[0]?.image let fileUrl = item?.detailInfos[0]?.image
if (item.type == 2) url = `/pages/common/webview?url=${fileUrl}&title=${item.title}` if (item.type == 2) url = `/pages/common/webview?url=${fileUrl}&title=${item.title}`
...@@ -282,7 +255,7 @@ export default { ...@@ -282,7 +255,7 @@ export default {
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.detail-box { .detail-box {
position: relative; position: relative;
width: 100vw; width: 100vw;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!