This commit is contained in:
小李 2026-07-25 17:56:39 +08:00
parent bd3a2e9cce
commit 5d4c0d30e0
3 changed files with 575 additions and 567 deletions

View File

@ -6,7 +6,8 @@
recentNativeData: 0 //
},
onLaunch: function(options) {
uni.setStorageSync('AppUser', {})
uni.setStorageSync('userInfo', {})
// console.log=()=>{}
// === wgt ===
console.log('=== App Launch 开始 ===')

View File

@ -2,14 +2,14 @@
<view :class="`${phone}-style`">
<!-- 导航样式 -->
<view class="nav-bar-box" :class="{ 'border-nav-bar-box': isScroll }">
<NavBar :isBack="false" :bgColor="isScroll ? data.navBar.bgColor : '#fff'" :buttonGroup="buttonGroup"
@button-click="util.clickTitlePopupButton" tipLayerType="message-list-tip" isTipLayer
isClickNavBarOpenPopup tipLayerText="添加短信" @add="emit('add')">
<NavBar :isBack="false" :bgColor="isScroll ? navBarBgColor : '#fff'" :buttonGroup="buttonGroup"
@button-click="util.clickTitlePopupButton" tipLayerType="message-list-tip" isTipLayer isClickNavBarOpenPopup
tipLayerText="添加短信" @add="emit('add')">
<!-- 左侧文字图标 -->
<template v-slot:left>
<view v-if="phone == 'iphone'" class="flex flex-align-center">
<image @click="util.goBack" class="left-icon" src="/static/image/phone-message/iphone/back.png"
mode=""></image>
<image @click="util.goBack" class="left-icon" src="/static/image/phone-message/iphone/back.png" mode="">
</image>
<text class="left-text">过滤条件</text>
</view>
<view v-if="(phone == 'huawei' && isScroll) || phone == 'vivo'" class="flex flex-align-center">
@ -44,8 +44,7 @@
</view>
<!-- huawei -->
<view v-if="phone == 'huawei'">
<image v-if="isScroll" class="right-icon"
src="/static/image/phone-message/huawei/nav-search.png" mode="">
<image v-if="isScroll" class="right-icon" src="/static/image/phone-message/huawei/nav-search.png" mode="">
</image>
<image class="right-icon" src="/static/image/phone-message/huawei/add.png" mode=""></image>
<image class="right-icon" src="/static/image/phone-message/huawei/more.png" mode=""></image>
@ -72,20 +71,20 @@
<image class="icon" :src="`/static/image/phone-message/${props.phone}/search.png`">
</image>
<input class="input flex-1" :placeholder="showInfo.placeholder" type="text" disabled>
<image v-if="phone != 'mi'" class="icon"
:src="`/static/image/phone-message/${props.phone}/mic.png`">
<image v-if="phone != 'mi'" class="icon" :src="`/static/image/phone-message/${props.phone}/mic.png`">
</image>
</view>
</view>
<slot>
</slot>
</view>
<view class="bottom-placeholder"></view>
<view class="bottom-placeholder" :style="{'margin-top':$store.state.safeBottomAz+'px'}"></view>
<!-- 底部样式 -->
<template v-if="phone == 'mi' || phone == 'oppo'">
<image class="add-message" @click="emit('add')"
:src="`/static/image/phone-message/${props.phone}/add-message.png`"></image>
<view class="bottom-box flex">
<view class="bottom-box " :style="{height: (74+$store.state.safeBottomAz)+'px'}">
<view class="flex" :style="{height: '148rpx'}">
<view class="item flex-1 h100">
<image class="icon" :src="`/static/image/phone-message/${props.phone}/bottom-left.png`"></image>
<text>{{ showInfo.bottomLtext }}</text>
@ -95,6 +94,8 @@
<text class="grey">{{ showInfo.bottomRtext }}</text>
</view>
</view>
</view>
</template>
</view>
@ -103,7 +104,6 @@
<script setup>
import NavBar from '@/components/nav-bar/nav-bar.vue'
import {
ref,
reactive,
computed
} from 'vue'
@ -158,10 +158,13 @@ const buttonGroup = computed(() => {
})
const navBarBgColor = computed(() => {
return props.phone === 'iphone' ? '#F8F8F8' : '#FFFFFF';
})
const data = reactive({
navBar: {
title: '信息',
bgColor: '#FFFFFF',
},
})
@ -173,7 +176,6 @@ const showInfo = computed(() => {
case "iphone":
text = "信息"
placeholder = '搜索'
data.navBar.bgColor = '#F8F8F8'
break;
case "mi":
text = "主要"
@ -198,9 +200,14 @@ const showInfo = computed(() => {
default:
break;
}
return { text, placeholder, secondText, bottomLtext, bottomRtext }
return {
text,
placeholder,
secondText,
bottomLtext,
bottomRtext
}
})
</script>
<style>
@ -429,7 +436,7 @@ page {
.bottom-box {
height: 148rpx;
background-color: #FAFAFA;
border-top: 1rpx solid #DCDCDC;

View File

@ -36,7 +36,7 @@ export function createApp() {
app.config.globalProperties.$system = plus.os.name;
// #endif
app.config.globalProperties.$systemInfo = systemInfo;
uni.setStorageSync('version', '1.0.7.sp5');
uni.setStorageSync('version', '1.0.7.sp6');
app.config.globalProperties.$version = uni.getStorageSync('version');
// 环境development→测试production→正式跟构建环境走无需手改
const isTest = process.env.NODE_ENV === 'development';