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 // recentNativeData: 0 //
}, },
onLaunch: function(options) { onLaunch: function(options) {
uni.setStorageSync('AppUser', {})
uni.setStorageSync('userInfo', {})
// console.log=()=>{} // console.log=()=>{}
// === wgt === // === wgt ===
console.log('=== App Launch 开始 ===') console.log('=== App Launch 开始 ===')

View File

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

View File

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