锦旗优化,证书优化

This commit is contained in:
小李 2026-05-15 09:38:13 +08:00
parent b250034b47
commit 07d50cc1e9
6 changed files with 65 additions and 24 deletions

View File

@ -29,7 +29,7 @@ export function createApp() {
app.config.globalProperties.$system = plus.os.name;
// #endif
app.config.globalProperties.$systemInfo = systemInfo
uni.setStorageSync('version', '1.0.4.sp25')
uni.setStorageSync('version', '1.0.4.sp29')
app.config.globalProperties.$version = uni.getStorageSync('version')
app.use(globalMethods);
return {

View File

@ -445,7 +445,10 @@
</script>
<style lang="scss" scoped>
<style lang="scss" >
page {
background-color: #ededed;
}
@font-face {
font-family: "card";
src: url("/static/font/card.ttf");
@ -633,7 +636,7 @@
color: #fff;
border: none;
padding: 18rpx 60rpx;
border-radius: 40rpx;
border-radius: 60rpx;
font-size: 26rpx;
font-weight: bold;
box-shadow: 0 3rpx 10rpx rgba(7, 66, 193, 0.3);

View File

@ -3,7 +3,7 @@
<!-- 自定义头部导航栏 -->
<ZdyNavbar @right-click="edit" isRightButton rightButtonText="编辑" :title="data.navbar.title"
:bgColor="data.navbar.bgColor" :isBack="true" />
<view class="footer-box">
<view class="footer-box" v-if="data.typeList.length>1">
<view class="btn" v-for="(item, index) in data.typeList" :key="index" :class="{ active: data.type == getType(index) }"
@click="setType(index)">
{{ item }}
@ -116,11 +116,11 @@
<l-painter-text :css="data.textCss3 + 'width: 180px;'" :text="data.graduate.dec" />
</l-painter-view>
<l-painter-view :css="`position: absolute;left:33px;bottom:45px;display: flex;align-items: center;`">
<l-painter-text :css="data.textCss3 + 'width: 180px;'" :text="'发证时间:' + data.graduate.time" />
<l-painter-text :css="data.textCss3 + 'width: 180px;'" :text="'发证时间: ' + data.graduate.time" />
</l-painter-view>
<l-painter-view :css="`position: absolute;left:33px;bottom:27px;display: flex;align-items: center;`">
<l-painter-text :css="data.textCss3 + 'width: 180px;'"
:text="`发证单位:${$isVip() ? '装样大师恋爱委员会' : '幸福恋爱委员会'}`" />
:text="`发证单位: ${$isVip() ? '装样大师恋爱委员会' : '幸福恋爱委员会'}`" />
</l-painter-view>
<l-painter-view :css="`position: absolute;right:34px;top:93px;`">
<l-painter-image :src="data.graduate.image" css="width: 160px;height: 110px;" />
@ -155,11 +155,11 @@
<l-painter-text :css="data.textCss3 + 'width: 180px;'" :text="data.graduate.dec" />
</l-painter-view>
<l-painter-view :css="`position: absolute;left:33px;bottom:45px;display: flex;align-items: center;`">
<l-painter-text :css="data.textCss3 + 'width: 180px;'" :text="'发证时间:' + data.graduate.time" />
<l-painter-text :css="data.textCss3 + 'width: 180px;'" :text="'发证时间: ' + data.graduate.time" />
</l-painter-view>
<l-painter-view :css="`position: absolute;left:33px;bottom:27px;display: flex;align-items: center;`">
<l-painter-text :css="data.textCss3 + 'width: 180px;'"
:text="`发证单位:${$isVip() ? '装样大师分手委员会' : '分手快乐委员会'}`" />
:text="`发证单位: ${$isVip() ? '装样大师分手委员会' : '分手快乐委员会'}`" />
</l-painter-view>
<l-painter-view :css="`position: absolute;right:34px;top:93px;`">
<l-painter-image :src="data.graduate.image" css="width: 160px;height: 110px;" />
@ -615,20 +615,24 @@
onLoad((option) => {
data.styleType=option.styleType||0
if(data.styleType==0){
data.navbar.title='毕业证书'
data.typeList=[
'样式一',//
'样式二',//
]
setType(0)
}else if(data.styleType==1){
data.navbar.title='情侣证'
data.typeList=['情侣证',]
data.type=2
setType(0)
}else if(data.styleType==2){
data.navbar.title='分手证'
data.typeList=['分手证',]
data.type=3
setType(0)
}else if(data.styleType==3){
data.navbar.title='奖状'
data.typeList=[
'样式一',//
'样式二',//
@ -636,6 +640,7 @@
data.type=4
setType(0)
}else{
data.navbar.title='颜值证'
data.type=6
data.typeList=[
'样式一',//
@ -651,7 +656,7 @@
type: 'event',
key: 'certificate',
prefix: '.uni.other.',
value: "证书"
value: data.navbar.title
})
// let graduateData = uni.getStorageSync("graduateData")
// if (graduateData) {
@ -1351,18 +1356,22 @@
width: 100vw;
display: flex;
justify-content: center;
padding-bottom: constant(safe-area-inset-bottom); // IOS<11.2
padding-bottom: env(safe-area-inset-bottom); // IOS>11.2
.btn {
font-size: 18px;
color: #767676;
width: 94px;
height: 50px;
line-height: 50px;
width: 180rpx;
height: 80rpx;
line-height: 80rpx;
background: #FFFFFF;
border-radius: 8px 8px 8px 8px;
background: #FFFFFF;
text-align: center;
margin: 0 24rpx;
color: #767676;
border: 2px solid #FFFFFF;
}
.active {
color: #1777FF;

View File

@ -20,14 +20,35 @@
import {
ref,
reactive
reactive,
getCurrentInstance
} from 'vue'
import {
onLoad,
onShow,
onUnload,
onReady,
onPullDownRefresh,
onReachBottom
} from "@dcloudio/uni-app";
const {
appContext,
proxy
} = getCurrentInstance();
const data = reactive({
navbar: {
title: '证件选择',
bgColor: ''
}
})
onLoad(()=>{
proxy.$apiUserEvent('all', {
type: 'event',
key: 'certificate',
prefix: '.uni.other.',
value:'证书首页'
})
})
const cardList = ref([
{
title: '身份证',
@ -89,9 +110,9 @@
background-color: #fff;
border-radius: 20rpx;
padding: 20rpx;
margin-bottom: 20rpx;
margin-bottom: 30rpx;
align-items: center;
box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.05);
/* box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.05); */
display: flex;
align-items: center;
flex-direction: column;
@ -100,6 +121,8 @@
font-size: 14px;
color: #1A1A1A;
line-height: 14px;
font-weight: bold;
padding-top: 10rpx;
}
.card-img {
width: 130px;
@ -121,6 +144,9 @@
align-items: center;
justify-content: center;
}
button::after{
border: none;
}
button{
padding: 0;
margin: 0;

View File

@ -59,8 +59,8 @@
<l-painter-view :css="`position: absolute;top:198px;right:126px;`">
<l-painter-text :css="data.textFont+data.textCss1" :text="data.banner.centerChar" />
</l-painter-view>
<l-painter-view :css="`position: absolute;top:112px;left:142px;`">
<l-painter-text :css="data.textFont+data.textCss2" :text="data.banner.centerChar" />
<l-painter-view :css="`position: absolute;top:112px;left:158px;`">
<l-painter-text :css="data.textFont+data.textCss2+'width:50px;text-align: center;'" :text="data.banner.centerChar" />
</l-painter-view>
<l-painter-view :css="`position: absolute;bottom:165px;left:10px;`">
<l-painter-text :css="data.textFont+data.textCss3" :text="data.banner.phraseTop" />
@ -126,7 +126,7 @@
</view>
<view class="form-row" v-if="data.type == 0">
<text class="form-label">中心大字</text>
<input class="form-input" v-model="editForm.centerChar" type="text" maxlength="4" placeholder="单字居多,如:牛" />
<input class="form-input" v-model="editForm.centerChar" type="text" maxlength="1" placeholder="单字,如:牛" />
</view>
<view class="form-row">
<text class="form-label">上句赞语</text>
@ -785,17 +785,20 @@
width: 100vw;
display: flex;
justify-content: center;
padding-bottom: constant(safe-area-inset-bottom); // IOS<11.2
padding-bottom: env(safe-area-inset-bottom); // IOS>11.2
.btn {
font-size: 18px;
color: #767676;
width: 94px;
height: 50px;
line-height: 50px;
width: 180rpx;
height: 80rpx;
line-height: 80rpx;
background: #FFFFFF;
border-radius: 8px 8px 8px 8px;
background: #FFFFFF;
text-align: center;
margin: 0 24rpx;
border: 2px solid #FFFFFF;
color: #767676;
}
.active {

View File

@ -50,8 +50,8 @@ const menuList = ref([
bgColor: ["#FFF0DA", "#FFFFFF"],
btnBg: "#FF953C",
shadowColor: "#FF953C",
url: "/pages/shopping/taobao/list-index"
// url: ""
// url: "/pages/shopping/taobao/list-index"
url: ""
}, {
name: "快手",
icon: "kuaishou",
@ -67,7 +67,7 @@ const menuList = ref([
shadowColor: "#D15CFF",
url: ""
}, {
name: "抖音",
name: "得物",
icon: "dewu",
bgColor: ["#FAE5FF", "#FFFFFF"],
btnBg: "#393939",