feat: bug fix

This commit is contained in:
kenny
2025-10-21 16:37:19 +08:00
parent 5297bd4d70
commit 61c05c924d
40 changed files with 225 additions and 153 deletions
+75 -8
View File
@@ -1,17 +1,39 @@
<template>
<view style="overflow-x: hidden; font-size: 0">
<img v-if="isInPptr" src="/static/header.png" style="width: 100%;display: block;margin-bottom: -138rpx;" />
<view id="headerBox">
<!-- <Header v-if="!!userFaceInfo" :userFaceInfo="userFaceInfo" /> -->
<Header v-if="collect" :userFaceInfo="collect" />
<view class="download" @click="openEmailDialog">
<view class="download-left">
<img src="/static/pdf-icon.png" class="pdf-icon" />
</view>
<view class="download-center">输入邮件地址获取PDF报告</view>
<view class="download-right">确定</view>
</view>
<view class="report">
<view class="report-title"> 美学诊断报告 </view>
<view class="report-title-en"> FD Aesthetic Diagnosis Report </view>
</view>
</view>
<view :class="classFixed" style="width: 100%">
<view style="display: block;">
<img src="/static/nav-1.png" style="width: 100%;display: block;" />
<img src="/static/nav-2.png" style="width: 100%;display: block;" />
</view>
<view :class="classFixed" style="width: 100%" v-if="!isInPptr">
<Tabs :tabs="tabsList" :activeTab="activeTab" @update:activeTab="onTabChange"> </Tabs>
</view>
<view
class="content"
:style="{
@@ -324,9 +346,9 @@
</view>
</view>
<view class="btn-bottom" v-if="collect">
<!-- <view class="btn-bottom" v-if="collect">
<button class="next-btn" @click="openEmailDialog">发送到邮件</button>
</view>
</view> -->
<!--
<view class="m-dialog" v-if="dialog.visible">
@@ -398,7 +420,12 @@
const collect = ref(null);
const isInPptr = ref(false);
onLoad((options) => {
isInPptr.value = options?.isInPptr == '1'
uni.setStorageSync('token', options?.token ?? '92d2805a85ca422e90dd7d50eef49a85');
console.log('🚀 ~ URL上的token ~ options?.token: ', options?.token);
@@ -410,7 +437,7 @@
const { data } = JSON.parse(res2.result[0].thridResp);
const target = Object.assign({}, JSON.parse(res1.data.dataJson), data.face_figure, {
avatar_img_url: res3.data.avatar,
avatar_img_url: res3.data.avatar || 'https://puton.huimeimeta.com/imgs/default_avatar.png',
firstImageUrl,
secondImageUrl,
thirdImageUrl
@@ -419,6 +446,8 @@
target.gender = target.sex;
collect.value = target;
// collect.value.avatar = collect.value.avatar || 'https://puton.huimeimeta.com/imgs/default_avatar.png'
console.log('collect.value: ', collect.value);
});
});
@@ -653,9 +682,6 @@
params.text = styleText(customKey);
}
console.log('lllllllllllllllllllllll')
praiseTextApi(params).then((res) => {
console.log('res: vvvvvvvvvvvvvvvvvvvv-----------oooooooooooo', res);
// tabType
@@ -928,7 +954,7 @@
const data = {
timeout: 100 * 1000,
url: window.location.href,
url: window.location.href+'&isInPptr=1',
email: emailVal
}
@@ -1405,6 +1431,47 @@
</style>
<style scoped lang="scss">
.download {
background-color: #D9D9D9;
height: 128rpx;
display: flex;
align-items: center;
justify-content: space-between;
color: #fff;
padding: 0 24rpx;
.download-left {
.pdf-icon {
width: 102rpx;
height: 102rpx;
}
}
.download-center {
flex: 1;
align-self: stretch;
color: #979797;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
}
.download-right {
width: 150rpx;
height: 80rpx;
background-color: #000;
font-size: 28rpx;
color: #fff;
display: flex;
align-items: center;
justify-content: space-evenly;
}
}
.btn-bottom {
margin-top: 20rpx;