htc 1 dienu atpakaļ
vecāks
revīzija
0083b25e4e
3 mainītis faili ar 16 papildinājumiem un 7 dzēšanām
  1. 1 1
      pagesMy/wifiSet.vue
  2. 13 5
      pagesMy/wifiSuccess.vue
  3. 2 1
      pagesRole/addRole.vue

+ 1 - 1
pagesMy/wifiSet.vue

@@ -125,7 +125,7 @@
 							if (options.data.progress == 100) {
 								uni.setStorageSync(that.wifiSSID,that.wifiPWD)
 								uni.navigateTo({
-									url:'/pagesMy/wifiSuccess'
+									url:'/pagesMy/wifiSuccess?pwtype='+this.type
 								})
 								
 								// let result = { 

+ 13 - 5
pagesMy/wifiSuccess.vue

@@ -2,10 +2,15 @@
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='配置网络'></cus-header>
 		<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/e6540154-b4da-4ddd-ab9b-8f219d5c18a6.png"></image>
-		<p>网络配置成功</p>
-		<p class="tip">请扫描设备或说明书上的二维码<br>点击下方扫码绑定设备,<br>如您已添加过设备,可返回首页开始使用</p>
-		<div class="zt_btn" @tap="scanDevice">扫码绑定设备</div>
-		<div class="qx_btn" @tap="goBack">返回首页</div>
+		<template v-if="type=='jpw'">
+			<p>网络配置成功,快去体验吧~</p>
+			<div class="zt_btn" @tap="goBack">返回首页</div>
+		</template>
+		<template v-else>
+			<p>网络配置成功</p>
+			<p class="tip">请扫描设备或说明书上的二维码<br>点击下方扫码绑定设备</p>
+			<div class="zt_btn" @tap="scanDevice">扫码绑定设备</div>
+		</template>
 	</view>
 </template>
 
@@ -13,9 +18,12 @@
 	export default {
 		data(){
 			return {
-				
+				type:''
 			}
 		},
+		onLoad(option) {
+			this.type = option.pwtype||'';	
+		},
 		methods:{
 			scanDevice(){
 				let that = this;

+ 2 - 1
pagesRole/addRole.vue

@@ -39,7 +39,8 @@
 				<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/ebf6fcea-a7ba-4ba5-8f20-c70b16c7dc3f.png"></image>
 			</div>
 		</div>
-		<div class="zt_btn" @tap="comfirmSure">{{agentId?'编辑角色':'创建角色'}}</div>
+		<!-- <div class="zt_btn" @tap="comfirmSure">{{agentId?'编辑角色':'创建角色'}}</div> -->
+		<div class="zt_btn" @tap="comfirmSure">确定</div>
 		<tt-cropper
 			mode="free"
 			:imageUrl="imageUrl"