Commit f400fe42 by 胡悦

Merge branch 'SAAS+V4.52.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.52.0

2 parents c30f984d d0aaaf8c
......@@ -89,9 +89,12 @@ module.exports = {
})
},
/**
* 客户邀约记录-邀约类型数目统计
*/
getInviteRecordCount(data) {
return http.post({
method: "dj.api.smartcarlife.inviteRecord.count.new",
method: "dj.api.smartcarlife.customerInviteRecord.inviteStatus.count",
projectName: "boutique",
...data
})
......
......@@ -256,4 +256,6 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.17220801364023872) calc(100vmin * (1173 / 768) * -0.47911338448422847);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.14407502131287298) calc(100vmin * (1173 / 768) * -0.5008525149190111);}
\ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.14407502131287298) calc(100vmin * (1173 / 768) * -0.5008525149190111);}
.icon-no-picture { width: calc(100vmin * (1173 / 768) * 0.021312872975277068); height: calc(100vmin * (1173 / 768) * 0.021312872975277068);
background-position: calc(100vmin * (1173 / 768) * -0.5852514919011083) calc(100vmin * (1173 / 768) * -0.4215686274509804);}
......@@ -155,7 +155,7 @@ export default {
top: 0;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/home-bg.webp');
background-image: url('@/assets/images/common/home-bg-1.webp');
background-size: 100% 100%;
}
.home,
......
......@@ -467,8 +467,8 @@ export default {
const { moduleList } = this,
userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId: merchantId } = userInfo,
{ notInvitedCount } = await uni.$api.boutiqueApi.getInviteRecordCount({
merchantId
{notInvitedCount} = await uni.$api.boutiqueApi.getInviteRecordCount({
merchantIds: [merchantId]
})
moduleList.map(e => {
if (e.id == 3) e.count = notInvitedCount ? notInvitedCount > 99 ? 99 : notInvitedCount : 0
......
......@@ -366,13 +366,14 @@ export default {
color: #2c66f7;
font-size: toRpx(28);
font-weight: 500;
line-height: toRpx(44);
.sprite-icon {
margin-left: toRpx(8);
}
}
.status {
flex-shrink: 0;
padding: toRpx(4) toRpx(16);
padding: toRpx(6) toRpx(16);
border-radius: toRpx(4);
font-weight: 500;
font-size: toRpx(24);
......
<template>
<view
class="popup-box"
v-if="popupShow"
>
<view class="popup-box" v-if="popupShow">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#fff"
></uni-icons>
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#fff"></uni-icons>
</view>
<view class="title">{{ title }}</view>
</view>
<view class="popup-body">
<video
ref="videoPlayer"
:src="detailUrl"
controls
v-if="sourceType == 2"
></video>
<view
class="img-detail"
v-else
>
<image
@click="back"
:src="detailUrl"
:style="{ width: width + 'px' }"
/>
<video ref="videoPlayer" :src="detailUrl" controls v-if="sourceType == 2"></video>
<view class="img-detail" v-else>
<image @click="back" :src="detailUrl" mode="heightFix" />
</view>
</view>
</view>
......@@ -46,7 +24,6 @@ export default {
},
data () {
return {
width: 0,
title: '',
sourceType: '',
detailUrl: ''
......@@ -80,19 +57,6 @@ export default {
this.title = tabName
this.sourceType = sourceType
this.detailUrl = detailUrl
const _this = this
uni.getImageInfo({
src: detailUrl, // 替换为你的图片路径
success (img) {
uni.createSelectorQuery().select('.img-detail').boundingClientRect(function (rect) {
_this.width = rect.height * img.height / img.width
}).exec();
},
fail: function (error) {
console.error('获取图片信息失败:', error);
}
});
},
back () {
if (this.isComponents) this.$emit('previewBack')
......@@ -143,7 +107,7 @@ export default {
height: 100%;
text-align: center;
image {
height: 100%;
height: calc(100vh - #{toRpx(200)});
width: auto;
}
}
......
<template>
<view
class="popup-box"
v-if="popupShow"
>
<view class="popup-box" v-if="popupShow">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#fff"
></uni-icons>
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#fff"></uni-icons>
</view>
<view class="title">{{ title }}</view>
</view>
<view class="popup-body">
<video
ref="videoPlayer"
:src="detailUrl"
controls
v-if="sourceType == 2"
></video>
<view
class="img-detail"
v-else
>
<image
@click="back"
:src="detailUrl"
:style="{ width: width + 'px' }"
/>
<video ref="videoPlayer" :src="detailUrl" controls v-if="sourceType == 2"></video>
<view class="img-detail" v-else>
<image @click="back" :src="detailUrl" mode="heightFix" />
</view>
</view>
</view>
......@@ -81,19 +59,19 @@ export default {
this.title = tabName
this.sourceType = sourceType
this.detailUrl = detailUrl
const _this = this
uni.getImageInfo({
src: detailUrl, // 替换为你的图片路径
success (img) {
uni.createSelectorQuery().select('.img-detail').boundingClientRect(function (rect) {
_this.width = rect.height * img.height / img.width
}).exec();
// const _this = this
// uni.getImageInfo({
// src: detailUrl, // 替换为你的图片路径
// success (img) {
// uni.createSelectorQuery().select('.img-detail').boundingClientRect(function (rect) {
// _this.width = rect.height * img.height / img.width
// }).exec();
},
fail: function (error) {
console.error('获取图片信息失败:', error);
}
});
// },
// fail: function (error) {
// console.error('获取图片信息失败:', error);
// }
// });
},
back () {
if (this.isComponents) this.$emit('previewBack')
......@@ -144,7 +122,7 @@ export default {
height: 100%;
text-align: center;
image {
height: 100%;
height: calc(100% - #{toRpx(200)});
width: auto;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!