Bladeren bron

工具/投诉静态

hjr 3 maanden geleden
bovenliggende
commit
eb8e0678c2

+ 3 - 3
main.js

@@ -10,15 +10,15 @@ const app = new Vue({
 })
 app.$mount()
 // #endif
-import Vconsole from 'vconsole'
+// import Vconsole from 'vconsole'
 import uviewPlus from '@/uni_modules/uview-plus'
-const vconsole = new Vconsole()
+// const vconsole = new Vconsole()
 
 // #ifdef VUE3
 import { createSSRApp } from 'vue'
 export function createApp() {
   const app = createSSRApp(App)
-  app.use(vconsole);
+  // app.use(vconsole);
   app.use(uviewPlus)
   return {
     app

+ 20 - 2
manifest.json

@@ -46,8 +46,26 @@
             "sdkConfigs" : {}
         }
     },
-    /* 快应用特有相关 */
-    "quickapp" : {},
+	/* 快应用特有相关 */
+	"quickapp" : {
+		
+	},
+	"quickapp-native" : {
+	    "icon" : "/static/logo.png",
+	    "package" : "com.example.demo",
+	    "features" : [
+	        {
+	            "name" : "system.clipboard"
+	        }
+	    ]
+	},
+	"quickapp-webview" : {
+	    "icon" : "/static/logo.png",
+	    "package" : "com.example.demo",
+	    "minPlatformVersion" : 1063,
+	    "versionName" : "1.0.0",
+	    "versionCode" : 1
+	},
     /* 小程序特有相关 */
     "mp-weixin" : {
         "appid" : "",

+ 24 - 3
pages.json

@@ -91,6 +91,18 @@
 				"navigationBarTitleText": "精选壁纸",
 				"navigationStyle": "custom"
 			}
+		},{
+			"path": "pages/tools/liuXingBiZhi",
+			"style": {
+				"navigationBarTitleText": "流行壁纸",
+				"navigationStyle": "custom"
+			}
+		},{
+			"path": "pages/tools/zuiXinBiZhi",
+			"style": {
+				"navigationBarTitleText": "最新壁纸",
+				"navigationStyle": "custom"
+			}
 		},{
 			"path": "pages/tools/quWeiCePing",
 			"style": {
@@ -139,6 +151,12 @@
 				"navigationBarTitleText": "投诉",
 				"navigationStyle": "custom"
 			}
+		},{
+			"path": "pages/commonModule/complaintResult",
+			"style": {
+				"navigationBarTitleText": "投诉结果",
+				"navigationStyle": "custom"
+			}
 		},{
 			"path": "pages/commonModule/redPacket",
 			"style": {
@@ -158,13 +176,16 @@
 	  "custom": true,
 	  "list": [
 	    {
-	      "pagePath": "pages/index/index"
+	      "pagePath": "pages/index/index",
+		  "text": "书架"
 	    },
 	    {
-	      "pagePath": "pages/bookMall/index"
+	      "pagePath": "pages/bookMall/index",
+		  "text": "书城"
 	    },
 	    {
-	      "pagePath": "pages/my/index"
+	      "pagePath": "pages/my/index",
+		  "text": "我的"
 	    }
 	  ]
 	}

+ 6 - 4
pages/bookMall/index.vue

@@ -124,10 +124,12 @@ let statusBarHeight = ref(0);
 let navBarHeight = ref(0);
 onBeforeMount(() => {
     statusBarHeight.value = uni.getSystemInfoSync()['statusBarHeight'];
-    const custom = uni.getMenuButtonBoundingClientRect();
-    // 导航栏的高度 = 胶囊的高度 + (胶囊距离顶部的距离 - 状态栏的高度)* 2
-    //                                   即胶囊的上下边距
-    navBarHeight.value = custom.height + (custom.top - statusBarHeight.value) * 2;
+	// #ifndef H5
+	const custom = uni.getMenuButtonBoundingClientRect();
+	// 导航栏的高度 = 胶囊的高度 + (胶囊距离顶部的距离 - 状态栏的高度)* 2
+	//                                   即胶囊的上下边距
+	navBarHeight.value = custom.height + (custom.top - statusBarHeight.value) * 2;
+	// #endif
 });
 
 

+ 105 - 5
pages/commonModule/complaint.vue

@@ -1,11 +1,111 @@
 <template>
-    <view>投诉</view>
-
+	<view class="content">
+		<image class="w h-150" src="/static/image/source/jubao.jpeg"></image>
+		<view class="mgt-50 text-28 text-777 mgb-20">
+			请选择举报原因:(<text class="text-fc2419">*</text>)
+		</view>
+		<up-radio-group
+		    v-model="radiovalue1"
+		    placement="column"
+			activeColor="#d91e0f"
+		    @change="groupChange"
+		  >
+		    <up-radio
+		      :customStyle="{marginBottom: '8rpx'}"
+		      v-for="(item, index) in radiolist1"
+		      :key="index"
+		      :label="item.name"
+		      :name="item.name"
+		      @change="radioChange"
+		    >
+		    </up-radio>
+			<view v-if="radiovalue1 == '其他意见或建议'">
+			  <view class="pdl-50">
+				  <view class="border-top pdy-20 pdr-100 flex jc_between ai_center">
+					  <view class="w-260">具体情况说明</view>
+					  <up-input v-model="desc" class="text-24" :customStyle="{ height: '50rpx' }" fontSize="12"
+					   placeholder="请补充你的投诉内容"></up-input>
+				  </view>
+				  <view class="border-top pdy-20 pdr-100 flex jc_between ai_center">
+					  <view class="w-260">联系方式</view>
+					  <up-input v-model="tel" class="text-24" :customStyle="{ height: '50rpx' }" fontSize="12"
+					   placeholder="请填写你的联系方式"></up-input>
+				  </view>
+			  </view>
+			</view>
+		  </up-radio-group>
+		  <view class="flex jc_around mgt-50">
+			  <view class="cancel" @click="cancelFn">取消</view>
+			  <view class="sure" @click="sureFn">确定</view>
+		  </view>
+	</view>
 </template>
 
 <script setup>
-
-
+import { ref,reactive } from 'vue';
+// 基本案列数据
+const radiolist1 = reactive([
+  {
+    name: '内容粗糙或不美观',
+    disabled: false,
+  },
+  {
+    name: '广告展示频繁,影响体验',
+    disabled: false,
+  },
+  {
+    name: '其他意见或建议',
+    disabled: false,
+  },
+]);
+const desc = ref()
+const tel = ref()
+const cancelFn = ()=>{
+	uni.navigateBack()
+}
+const sureFn = ()=>{
+	uni.showToast({
+		title:'提交成功',
+		icon:'none'
+	})
+	setTimeout(()=>{
+		uni.navigateTo({
+			url:'/pages/commonModule/complaintResult'
+		})
+	},500)
+}
+const radiovalue1 = ref('内容粗糙或不美观');
+const groupChange = (n) => {
+  console.log('groupChange', n);
+};
+const radioChange = (n) => {
+  console.log('radioChange', n);
+};
 </script>
 
-<style lang='scss' scoped></style>
+<style lang='scss' scoped>
+	.content{
+		margin-top: 60rpx;
+		border-radius: 50rpx 50rpx 0 0;
+		min-height: 100vh;
+		padding: 50rpx 28rpx;
+		background: linear-gradient(to bottom, #d6e6ff, #f3f4f8);
+	}
+	.cancel{
+		border: 1rpx solid #999;
+		height: 80rpx;
+		line-height: 80rpx;
+		width: 250rpx;
+		text-align: center;
+		border-radius: 12rpx;
+	}
+	.sure{
+		height: 80rpx;
+		line-height: 80rpx;
+		width: 250rpx;
+		text-align: center;
+		border-radius: 12rpx;
+		color: #fff;
+		background: #f03433;
+	}
+</style>

+ 31 - 0
pages/commonModule/complaintResult.vue

@@ -0,0 +1,31 @@
+<template>
+	<view class="content">
+		<view style="background-color: #bfb1fc; height: 60px;"></view>
+		<image class="w" style="height: 480px;" src="/static/image/source/tousu_jieguo.jpg"></image>
+		<view class="btn" @click="outApp">退出应用</view>
+	</view>
+</template>
+
+<script setup>
+import { ref, onMounted } from "vue";
+import { onShow } from "@dcloudio/uni-app";
+const outApp = ()=>{
+	uni.showToast({
+		title:'退出成功'
+	})
+	// UTSAndroid.exit()
+}
+</script>
+
+<style lang="scss" scoped>
+	.btn{
+		width: 40vw;
+		height: 80rpx;
+		text-align: center;
+		line-height: 80rpx;
+		color: #fff;
+		border-radius: 12rpx;
+		background-color: #f03433;
+		transform: translate(30vw,50%);
+	}
+</style>

+ 6 - 4
pages/index/index.vue

@@ -73,10 +73,12 @@ let statusBarHeight = ref(0);
 let navBarHeight = ref(0);
 onBeforeMount(() => {
 	statusBarHeight.value = uni.getSystemInfoSync()['statusBarHeight'];
-	const custom = uni.getMenuButtonBoundingClientRect();
-	// 导航栏的高度 = 胶囊的高度 + (胶囊距离顶部的距离 - 状态栏的高度)* 2
-	//                                   即胶囊的上下边距
-	navBarHeight.value = custom.height + (custom.top - statusBarHeight.value) * 2;
+	// #ifndef H5
+		const custom = uni.getMenuButtonBoundingClientRect();
+		// 导航栏的高度 = 胶囊的高度 + (胶囊距离顶部的距离 - 状态栏的高度)* 2
+		// 即胶囊的上下边距
+		navBarHeight.value = custom.height + (custom.top - statusBarHeight.value) * 2;
+	// #endif
 });
 
 const toBookdetail = () => {

+ 6 - 4
pages/my/index.vue

@@ -73,10 +73,12 @@ let statusBarHeight = ref(0);
 let navBarHeight = ref(0);
 onBeforeMount(() => {
     statusBarHeight.value = uni.getSystemInfoSync()['statusBarHeight'];
-    const custom = uni.getMenuButtonBoundingClientRect();
-    // 导航栏的高度 = 胶囊的高度 + (胶囊距离顶部的距离 - 状态栏的高度)* 2
-    //                                   即胶囊的上下边距
-    navBarHeight.value = custom.height + (custom.top - statusBarHeight.value) * 2;
+	// #ifndef H5
+	const custom = uni.getMenuButtonBoundingClientRect();
+	// 导航栏的高度 = 胶囊的高度 + (胶囊距离顶部的距离 - 状态栏的高度)* 2
+	//                                   即胶囊的上下边距
+	navBarHeight.value = custom.height + (custom.top - statusBarHeight.value) * 2;
+	// #endif
 });
 
 

+ 5 - 1
pages/tools/baoYangJiQiao.vue

@@ -1,5 +1,6 @@
 <template>
 	<view class="content">
+		<view :style="{ paddingTop: statusBarHeight + 'px' }"></view>
 		<image class="w" style="height: 900px;"
 		 src="/static/image/source/byjq_.png"></image>
 	</view>
@@ -8,8 +9,11 @@
 <script setup>
 import { ref, onMounted } from "vue";
 import { onShow } from "@dcloudio/uni-app";
+var statusBarHeight = uni.getStorageSync('statusBarHeight')
 </script>
 
 <style lang="scss" scoped>
-	
+	.content{
+		background-color: #a9d4ff;
+	}
 </style>

+ 22 - 9
pages/tools/jingXuanBiZhi.vue

@@ -8,17 +8,16 @@
 				</view>
 			</view>
 			<view class="flex mgt-40">
-				<view class="w-220 h-120 flex ai_center jc_center bg-white radio-20 mgr-20">
-					流行壁纸
-				</view>
-				<view class="w-220 h-120 flex ai_center jc_center bg-white radio-20">
-					最新壁纸
-				</view>
+				<image  class="w-220 h-120 radio-20 mgr-20"
+				 @click="navTo('/pages/tools/liuXingBiZhi')"
+				 src="/static/image/source/pop_bz.jpg"></image>
+				<image  class="w-220 h-120 radio-20 mgr-20"
+				 @click="navTo('/pages/tools/zuiXinBiZhi')"
+				 src="/static/image/source/new_bz.jpg"></image>
 			</view>
 			<view class="imgs mgt-40 flex fw_wrap" style="gap: 14rpx;">
 				<image class="w-220 h-280 radio-16" mode="aspectFill"
 				v-for="img in category[active-1].list" :src="img">
-					
 				</image>
 			</view>
 		</view>
@@ -34,13 +33,27 @@ const category = ref([
 		'https://img2.baidu.com/it/u=643390968,3821598343&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800',
 		'https://img2.baidu.com/it/u=1207164141,4244022854&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
 		'https://img2.baidu.com/it/u=2122730436,3330551883&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
-		'https://img2.baidu.com/it/u=1934414271,796431517&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800'
+		'https://img2.baidu.com/it/u=1934414271,796431517&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800',
+		'https://img2.baidu.com/it/u=2843793126,682473204&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800',
+		'https://img1.baidu.com/it/u=1292485292,902063151&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=1083',
+		'https://img0.baidu.com/it/u=15396030,1143539239&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img2.baidu.com/it/u=1320672626,288218548&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img0.baidu.com/it/u=1652113119,3226642753&fm=253&app=138&f=JPEG?w=1423&h=800',
+		'https://img0.baidu.com/it/u=3087392912,2682394042&fm=253&app=138&f=JPEG?w=1423&h=800',
+		'https://img1.baidu.com/it/u=3631027001,3666368042&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img1.baidu.com/it/u=3637490291,2814538424&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800',
+		'https://img2.baidu.com/it/u=2114786151,2275385596&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
 	],id:1 },
 	{ name:'设计',list:[],id:2 },
 	{ name:'物语',list:[],id:3 },
 	{ name:'城市',list:[],id:4 },
 ])
 const active = ref(1)
+const navTo = (url)=>{
+	uni.navigateTo({
+		url
+	})
+}
 const chooseTab = (tab) =>{
 	active.value = tab.id
 }
@@ -51,7 +64,7 @@ onMounted(()=>{
 
 <style lang="scss" scoped>
 	.content{
-		height: 100vh;
+		min-height: 100vh;
 		padding: 28rpx;
 		background: linear-gradient(to bottom, #a9d4ff, #cce6ff);
 	}

+ 39 - 0
pages/tools/liuXingBiZhi.vue

@@ -0,0 +1,39 @@
+<template>
+	<view class="content">
+		<view :style="{ paddingTop: statusBarHeight + 'px' }"></view>
+		<view class="imgs mgt-40 flex fw_wrap" style="gap: 14rpx;">
+			<image class="w-220 h-280 radio-16" mode="aspectFill"
+			v-for="img in list" :src="img">
+			</image>
+		</view>
+	</view>
+</template>
+
+<script setup>
+import { ref, onMounted } from "vue";
+import { onShow } from "@dcloudio/uni-app";
+var statusBarHeight = uni.getStorageSync('statusBarHeight')
+const list = ref([
+		'https://img2.baidu.com/it/u=643390968,3821598343&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800',
+		'https://img2.baidu.com/it/u=1207164141,4244022854&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
+		'https://img2.baidu.com/it/u=2122730436,3330551883&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
+		'https://img2.baidu.com/it/u=1934414271,796431517&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800',
+		'https://img2.baidu.com/it/u=116978278,3413690614&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
+		'https://img2.baidu.com/it/u=3982727376,1112161985&fm=253&app=138&f=JPEG?w=1333&h=800',
+		'https://img1.baidu.com/it/u=1486246425,1310582736&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800',
+		'https://img1.baidu.com/it/u=1744190363,3838549675&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=313',
+		'https://img1.baidu.com/it/u=1718642830,3610884461&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img0.baidu.com/it/u=4228544678,3314716449&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img1.baidu.com/it/u=3085958841,2793179863&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img1.baidu.com/it/u=1292485292,902063151&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=1083',
+		'https://img1.baidu.com/it/u=2503868564,1632892809&fm=253&app=138&f=JPEG?w=889&h=500'
+	])	
+</script>
+
+<style lang="scss" scoped>
+	.content{
+		min-height: 100vh;
+		padding: 28rpx;
+		background: linear-gradient(to bottom, #a9d4ff, #cce6ff);
+	}
+</style>

+ 89 - 3
pages/tools/quWeiCePing.vue

@@ -2,6 +2,7 @@
 	<view class="content">
 		<view :style="{ paddingTop: statusBarHeight + 'px' }">
 			<view class="pdy-60 pdx-28 mgt-100 radio-20 bg-white w border-0_1 box">
+				<template v-if="!finishStatus">
 					<view class="title mgb-50" >
 						{{ curIndex + 1 }}、{{ QList[curIndex].title }}
 					</view>
@@ -10,7 +11,11 @@
 						<view class="">{{ key }}、</view>
 						<view class="">{{ a }}</view>
 					</view>
-					<view class="next_btn cursor" @click="nextFn">{{ curIndex == QList.length - 1 ? '显示结果' : '下一题'}}</view>
+				</template>
+				<view v-else>
+					{{ generatePersonality() }}
+				</view>
+				<view class="next_btn cursor" @click="nextFn">{{ curIndex == QList.length - 1 ? '显示结果' : '下一题'}}</view>
 			</view>
 		</view>
 	</view>
@@ -20,6 +25,7 @@
 import { ref, onMounted } from "vue";
 import { onShow } from "@dcloudio/uni-app";
 var statusBarHeight = uni.getStorageSync('statusBarHeight')
+const finishStatus = ref(false)
 const QList = ref([
 	{ title:'你更喜欢哪种社交场合?',Alist:{'A':'大型会所','B':'小型会所','C':'与几位亲朋密友聚会','D':'独自一人'} },
 	{ title:'你在做决定时更倾向于?',Alist:{'A':'依靠逻辑和事实','B':'依靠直觉和感觉','C':'参考别人的意见','D':'随机应变'} },
@@ -27,7 +33,6 @@ const QList = ref([
 	{ title:'在团队中,你通常扮演什么角色?',Alist:{'A':'领导者','B':'执行者','C':'协调者','D':'创新者'} },
 	{ title:'你更喜欢哪种娱乐方式?',Alist:{'A':'阅读书籍','B':'参加派对','C':'看电影','D':'运动健身'} }
 ])
-
 const curIndex = ref(0)
 const curChoose = ref(null)
 const chooseList = ref([]) // 选择的数组 AABCD
@@ -45,13 +50,94 @@ const nextFn = ()=>{
 	if(curIndex.value < QList.value.length - 1){
 		curIndex.value += 1
 	}else{
+		console.log('generatePersonality',generatePersonality())
+		finishStatus.value = true
 		// 完成答题
 		uni.showToast({
 			title:'提交成功!',
 		})
 	}
-	
 }
+ // 生成性格描述的方法
+const generatePersonality = () =>{
+  if (chooseList.value.length !== 5) return "请完成所有问题";
+  
+  // 各维度得分计算
+  const dimensionScores = {
+	energy: 0,     // 精力来源 (外向/内向)
+	decision: 0,   // 决策方式 (理性/感性)
+	structure: 0,  // 结构化程度
+	role: 0        // 团队角色倾向
+  };
+  
+  // 第一题:社交倾向
+  if (chooseList.value[0] === 'A' || chooseList.value[0] === 'B') dimensionScores.energy += 2;
+  if (chooseList.value[0] === 'C') dimensionScores.energy += 1;
+  
+  // 第二题:决策方式
+  if (chooseList.value[1] === 'A') dimensionScores.decision += 2;
+  if (chooseList.value[1] === 'B') dimensionScores.decision += 1;
+  
+  // 第三题:结构化偏好
+  if (chooseList.value[2] === 'A') dimensionScores.structure += 2;
+  if (chooseList.value[2] === 'B' || chooseList.value[2] === 'D') dimensionScores.structure += 1;
+  
+  // 第四题:团队角色
+  if (chooseList.value[3] === 'A' || chooseList.value[3] === 'D') dimensionScores.role += 2;
+  if (chooseList.value[3] === 'B') dimensionScores.role += 1;
+  
+  // 第五题:社交补充
+  if (chooseList.value[4] === 'B') dimensionScores.energy += 2;
+  if (chooseList.value[4] === 'D') dimensionScores.energy += 1;
+
+  // 性格类型判断
+  const energyType = dimensionScores.energy >= 3 ? "E" : "I"; // 外向/内向
+  const decisionType = dimensionScores.decision >= 2 ? "T" : "F"; // 理性/感性
+  
+  // 性格特征描述
+  const personalities = {
+	// 外向型组合
+	"ET": { 
+	  name: "开拓型领袖", 
+	  desc: "你是个充满活力的决策者!善于社交并理性分析问题,天生的领导者,擅长在大型社交场合中主导方向,偏好结构化的工作环境" 
+	},
+	"EF": { 
+	  name: "魅力型协调者", 
+	  desc: "你是个热情洋溢的沟通专家!善于在社交中感知他人情绪,喜欢团队合作,在灵活的环境中能发挥创造力,是优秀的协调者" 
+	},
+	// 内向型组合
+	"IT": { 
+	  name: "分析型专家", 
+	  desc: "你是个专注的思考者!偏好深度工作与理性分析,在小范围社交中表现出色,适合需要精密思考的结构化工作环境" 
+	},
+	"IF": { 
+	  name: "关怀型创造者", 
+	  desc: "你是个富有洞察力的创造者!重视内心感受和亲密关系,在自由环境中灵感迸发,常扮演团队中的创新者角色" 
+	}
+  };
+  
+  // 添加特质修饰词
+  const traits = [];
+  if (dimensionScores.structure >= 2) traits.push("有条理");
+  if (chooseList.value[3] === 'C') traits.push("善于调解");
+  if (chooseList.value[1] === 'D') traits.push("灵活应变");
+  if (chooseList.value[4] === 'A') traits.push("思想深刻");
+  
+  const personalityKey = energyType + decisionType;
+  const result = personalities[personalityKey] || { 
+	name: "平衡型人才", 
+	desc: "你具有适应多种环境的优秀能力!能在不同情境中灵活调整自己的行为模式" 
+  };
+  
+  // 构建最终描述
+  let finalDesc = `${result.name}:${result.desc}`;
+  if (traits.length > 0) {
+	finalDesc += `,特别具有${traits.join('、')}的特质`;
+  }
+  
+  return finalDesc;
+}
+
 </script>
 
 <style lang="scss" scoped>

+ 19 - 11
pages/tools/shengBoChuChen.vue

@@ -1,12 +1,18 @@
 <template>
 	<view class="content p-rel pdt-100" :style="{ paddingTop: statusBarHeight + 'px' }">
 		<view class="p-rel h-200 flex ai_center fd_c">
-			<ourLoading active translateY="50" background-color="transparent" color="#ea9f8a" />
+			<image v-if="!open" style="width: 130rpx;height: 130rpx;margin-top: 40rpx;" src="/static/image/source/ql_icon.png"></image>
+			<ourLoading v-else active translateY="50" background-color="transparent" color="#ea9f8a" />
 		</view>
 		<view class="p-rel flex ai_center fd_c">
-			<view class="text-62 mgt-10">{{ statusNum }}%</view>
-			<view class="text-36 text-500 mgy-30">正在声波初尘中...</view>
-			<view class="text-24 text-555 mgb-80">手机音量调到最大,可以获得最后的除尘效果</view>
+			<template v-if="open">
+				<view class="text-62 mgt-10">{{ statusNum }}%</view>
+				<view class="text-36 text-500 mgy-30">正在声波初尘中...</view>
+				<view class="text-24 text-555 mgb-80">手机音量调到最大,可以获得最后的除尘效果</view>
+			</template>
+			<view class="h-100" v-else>
+				<view v-if="!firstClick" class="mgt-10 text-48">除尘结束</view>
+			</view>
 			<view class="btn_s w-300" @click="handleClick">{{ open? '结束除尘':'开始除尘' }}</view>
 		</view>
 	</view>
@@ -19,15 +25,17 @@ import ourLoading from '@/components/our-loading/our-loading.vue'
 var statusBarHeight = uni.getStorageSync('statusBarHeight')
 const open = ref(false)
 const statusNum = ref(0)
+const firstClick = ref(true)
 var timer = null
 const handleClick = () =>{
 	if(!open.value){
 		open.value = true
-		uni.vibrateLong({
-			success: function () {
-				console.log('success');
-			}
-		});
+		firstClick.value = false
+		// uni.vibrateLong({
+		// 	success: function () {
+		// 		console.log('success');
+		// 	}
+		// });
 		uni.vibrateShort({
 			type: 'heavy',
 			success: function () {
@@ -51,7 +59,7 @@ const handleClick = () =>{
 					title:'除尘结束'
 				})
 			}
-		}, 30)
+		}, 100)
 	}
 }
 </script>
@@ -59,6 +67,6 @@ const handleClick = () =>{
 <style lang="scss" scoped>
 	.content{
 		height: 100vh;
-		background: linear-gradient(to bottom, #a9d4ff, #cce6ff);
+		background: linear-gradient(to bottom, #b4daff, #cce6ff);
 	}
 </style>

+ 5 - 1
pages/tools/shengDianJiQiao.vue

@@ -1,5 +1,6 @@
 <template>
 	<view class="content">
+		<view :style="{ paddingTop: statusBarHeight + 'px' }"></view>
 		<image class="w" style="height: 1100px;"
 		 src="/static/image/source/sdjq_.png"></image>
 	</view>
@@ -8,8 +9,11 @@
 <script setup>
 import { ref, onMounted } from "vue";
 import { onShow } from "@dcloudio/uni-app";
+var statusBarHeight = uni.getStorageSync('statusBarHeight')
 </script>
 
 <style lang="scss" scoped>
-	
+	.content{
+		background-color: #a9d4ff;
+	}
 </style>

+ 11 - 6
pages/tools/yangShengKeTang.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="content" :style="{ paddingTop: statusBarHeight + 'px' }">
 		<swiper class="swiper" circular :indicator-dots="true"
-		 indicator-color="#fff" indicator-active-color="#58b3df" 
+		 indicator-color="#c3c3c3" indicator-active-color="#58b3df" 
 		 :autoplay="false" :interval="2000" :duration="2000">
 			<swiper-item v-for="img in imgList">
 				<image :src="img" class="swiper-item"></image>
@@ -14,11 +14,16 @@
 import { ref, onMounted } from "vue";
 import { onShow } from "@dcloudio/uni-app";
 const imgList = ref([
-	'http://gips3.baidu.com/it/u=764883555,2569275522&fm=3028&app=3028&f=JPEG&fmt=auto?w=960&h=1280',
-	'http://gips3.baidu.com/it/u=764883555,2569275522&fm=3028&app=3028&f=JPEG&fmt=auto?w=960&h=1280',
-	'http://gips3.baidu.com/it/u=764883555,2569275522&fm=3028&app=3028&f=JPEG&fmt=auto?w=960&h=1280',
-	'https://img2.baidu.com/it/u=4214113141,2036563917&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
-	'https://img0.baidu.com/it/u=3803731919,348987985&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=996',
+	'/static/image/source/yskt.jpg',
+	'/static/image/source/yskt.jpg',
+	'/static/image/source/yskt.jpg',
+	'/static/image/source/yskt.jpg',
+	'/static/image/source/yskt.jpg',
+	'/static/image/source/yskt.jpg',
+	// 'http://gips3.baidu.com/it/u=764883555,2569275522&fm=3028&app=3028&f=JPEG&fmt=auto?w=960&h=1280',
+	// 'http://gips3.baidu.com/it/u=764883555,2569275522&fm=3028&app=3028&f=JPEG&fmt=auto?w=960&h=1280',
+	// 'https://img2.baidu.com/it/u=4214113141,2036563917&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
+	// 'https://img0.baidu.com/it/u=3803731919,348987985&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=996',
 	
 ])
 var statusBarHeight = uni.getStorageSync('statusBarHeight')

+ 7 - 1
pages/tools/yiJianShengDian.vue

@@ -108,8 +108,13 @@ const getServerData = ()=>{
 }
 // 立即省电
 const savePower = ()=>{
+	uni.getScreenBrightness({
+		success: function (res) {
+			console.log('屏幕亮度值:' + res.value);
+		}
+	});
 	uni.setScreenBrightness({
-		value: 1,
+		value: 0.3,
 		success: function () {
 			console.log('success');
 		},
@@ -121,6 +126,7 @@ const savePower = ()=>{
 		title:'开启省电',
 		icon:'none',
 	})
+	
 }
 </script>
 

+ 3 - 3
pages/tools/yunDongJiBu.vue

@@ -5,13 +5,13 @@
 			<view class="p-abs zindex-1 text-52 text-b w"
 			@click="editNum()"
 			:style="{
-				top:`${ 240 + statusBarHeight*1 }px`,
+				top:`${ 480  }rpx`,
 				left:'35vw',
 			}"
 			>{{ num }}</view>
-			<view class="p-abs zindex-1 text-24 text-bbb text-500"
+			<view class="p-abs zindex-1 text-24 text-aaa text-500"
 			:style="{
-				top:`${ 274 + statusBarHeight*1 }px`,
+				top:`${ 550  }rpx`,
 				left:'35vw',
 			}">/{{ totalNum }}步</view>
 		</view>	

+ 1 - 1
pages/tools/ziTiDaXiao.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="content">
-		<image src="../../static/image/index_banner.jpg"></image>
+		<image src="/static/image/source/ziti.jpg"></image>
 	</view>
 </template>
 

+ 33 - 0
pages/tools/zuiXinBiZhi.vue

@@ -0,0 +1,33 @@
+<template>
+	<view class="content">
+		<view :style="{ paddingTop: statusBarHeight + 'px' }"></view>
+		<view class="imgs mgt-40 flex fw_wrap" style="gap: 14rpx;">
+			<image class="w-220 h-280 radio-16" mode="aspectFill"
+			v-for="img in list" :src="img">
+			</image>
+		</view>
+	</view>
+</template>
+
+<script setup>
+import { ref, onMounted } from "vue";
+import { onShow } from "@dcloudio/uni-app";
+var statusBarHeight = uni.getStorageSync('statusBarHeight')
+const list = ref([
+		'https://img0.baidu.com/it/u=15396030,1143539239&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img2.baidu.com/it/u=1320672626,288218548&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img0.baidu.com/it/u=1652113119,3226642753&fm=253&app=138&f=JPEG?w=1423&h=800',
+		'https://img0.baidu.com/it/u=3087392912,2682394042&fm=253&app=138&f=JPEG?w=1423&h=800',
+		'https://img1.baidu.com/it/u=3631027001,3666368042&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
+		'https://img1.baidu.com/it/u=3637490291,2814538424&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800',
+		'https://img2.baidu.com/it/u=2114786151,2275385596&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
+	])
+</script>
+
+<style lang="scss" scoped>
+	.content{
+		min-height: 100vh;
+		padding: 28rpx;
+		background: linear-gradient(to bottom, #a9d4ff, #cce6ff);
+	}
+</style>

+ 15 - 0
pages/toolsMall/index.vue

@@ -41,6 +41,21 @@
 
 <script setup>
 	import { ref, reactive, onMounted } from "vue";
+	onMounted(()=>{
+		console.log('eeee 启动。。')
+	})
+	// #ifdef QUICKAPP-WEBVIEW-UNION
+		qa.connectWifi({
+		  SSID: '',
+		  password: '',
+		  success(res) {
+			console.log(res.errMsg)
+		  },
+		  fail(err){
+			  console.log(err)
+		  }
+	})
+	// #endif
 	const title = ref('Hello33')
 	const funtions = reactive([
 		{

BIN
static/image/source/jubao.jpeg


BIN
static/image/source/new_bz.jpg


BIN
static/image/source/pop_bz.jpg


BIN
static/image/source/ql_icon.png


BIN
static/image/source/tousu_jieguo.jpg


BIN
static/image/source/yskt.jpg


BIN
static/image/source/ziti.jpg