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