Przeglądaj źródła

本地静态图片地址换成本人云服务器地址(解决包体积过大无法发布问题,后续改为线上地址)

htc 5 dni temu
rodzic
commit
16396d74c2
74 zmienionych plików z 114 dodań i 110 usunięć
  1. 6 6
      components/CusTabbar/index.vue
  2. 2 2
      components/bindDevice/index.vue
  3. 7 7
      pages/home.vue
  4. 3 3
      pages/login.vue
  5. 4 4
      pages/my.vue
  6. 41 37
      pages/role.vue
  7. 2 2
      pagesHome/wifiSetMemo1.vue
  8. 2 2
      pagesHome/wifiSetMemo2.vue
  9. 2 2
      pagesHome/wifiSetMemo3.vue
  10. 2 2
      pagesHome/wifiSetMemo4.vue
  11. 6 6
      pagesMy/device.vue
  12. 7 7
      pagesMy/deviceAdd.vue
  13. 5 5
      pagesMy/feedback.vue
  14. 1 1
      pagesMy/scanResult.vue
  15. 2 2
      pagesMy/wifi.vue
  16. 15 15
      pagesMy/wifiSet.vue
  17. 1 1
      pagesMy/wifiSuccess.vue
  18. 4 4
      pagesRole/addRole.vue
  19. 2 2
      pagesRole/roleModel.vue
  20. BIN
      static/arrow_right.png
  21. BIN
      static/avatar_default.png
  22. BIN
      static/connect_off.png
  23. BIN
      static/device_add_bg.png
  24. BIN
      static/device_mini.png
  25. BIN
      static/device_next.png
  26. BIN
      static/device_query.png
  27. BIN
      static/device_scan.png
  28. BIN
      static/device_wifi.png
  29. BIN
      static/edit_mini.png
  30. BIN
      static/empty_device.png
  31. BIN
      static/feedback_bg.png
  32. BIN
      static/home_active.png
  33. BIN
      static/home_inactive.png
  34. BIN
      static/home_topbg.png
  35. BIN
      static/info_mini.png
  36. BIN
      static/lock.png
  37. BIN
      static/login_top.png
  38. BIN
      static/my_active.png
  39. BIN
      static/my_avatat_default.png
  40. BIN
      static/my_book.png
  41. BIN
      static/my_device.png
  42. BIN
      static/my_inactive.png
  43. BIN
      static/my_topbg.png
  44. BIN
      static/my_version.png
  45. BIN
      static/myu_idea.png
  46. BIN
      static/offline_mini.png
  47. BIN
      static/online_mini.png
  48. BIN
      static/query_mini.png
  49. BIN
      static/role_active.png
  50. BIN
      static/role_avatar0.png
  51. BIN
      static/role_avatar1.png
  52. BIN
      static/role_avatar2.png
  53. BIN
      static/role_inactive.png
  54. BIN
      static/role_upload.png
  55. BIN
      static/scan_bind.png
  56. BIN
      static/scan_result.png
  57. BIN
      static/selected.png
  58. BIN
      static/selected_dh.png
  59. BIN
      static/selected_not.png
  60. BIN
      static/set_dian1.png
  61. BIN
      static/set_dian2.png
  62. BIN
      static/set_dian3.png
  63. BIN
      static/set_dian4.png
  64. BIN
      static/upload.png
  65. BIN
      static/upload_add.png
  66. BIN
      static/wifi.png
  67. BIN
      static/wifi_bind.png
  68. BIN
      static/wifi_off_mini.png
  69. BIN
      static/wifi_on_mini.png
  70. BIN
      static/wifi_set1.png
  71. BIN
      static/wifi_set2.png
  72. BIN
      static/wifi_set3.png
  73. BIN
      static/wifi_set4.png
  74. BIN
      static/wifi_success.png

+ 6 - 6
components/CusTabbar/index.vue

@@ -17,20 +17,20 @@
 				tabbarValue: 0,
 				list: [
 					{
-						inactiveImg: require('@/static/home_inactive.png'),
-						activeImg: require('@/static/home_active.png'),
+						inactiveImg: 'http://106.54.209.120:8188/static/home_inactive.png',
+						activeImg: 'http://106.54.209.120:8188/static/home_active.png',
 						text: '首页',
 						path: '/pages/home'
 					},
 					{
-						inactiveImg: require('@/static/role_inactive.png'),
-						activeImg: require('@/static/role_active.png'),
+						inactiveImg: 'http://106.54.209.120:8188/static/role_inactive.png',
+						activeImg: 'http://106.54.209.120:8188/static/role_active.png',
 						text: '角色',
 						path: '/pages/role'
 					},
 					{
-						inactiveImg: require('@/static/my_inactive.png'),
-						activeImg: require('@/static/my_active.png'),
+						inactiveImg: 'http://106.54.209.120:8188/static/my_inactive.png',
+						activeImg: 'http://106.54.209.120:8188/static/my_active.png',
 						text: '我的',
 						path: '/pages/my'
 					}

+ 2 - 2
components/bindDevice/index.vue

@@ -3,11 +3,11 @@
 		<view class="bind_device">
 			<div class="top adfacjb">
 				<div class="pre adffcacjc" @tap="scanBind">
-					<image src="@/static/scan_bind.png"></image>
+					<image src="http://106.54.209.120:8188/static/scan_bind.png"></image>
 					<text>扫码绑定设备</text>
 				</div>
 				<div class="pre adffcacjc" @tap="wifiBind">
-					<image src="@/static/wifi_bind.png"></image>
+					<image src="http://106.54.209.120:8188/static/wifi_bind.png"></image>
 					<text>配网并绑定设备</text>
 				</div>
 			</div>

+ 7 - 7
pages/home.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
-		<image class="topbg" src="@/static/home_topbg.png"></image>
+		<image class="topbg" src="http://106.54.209.120:8188/static/home_topbg.png"></image>
 		<template v-if="list.length">
 			<div class="list" :style="{'margin-top':(360-mt-61)+'px'}">
 				<u-list @scrolltolower="scrolltolower">
@@ -9,16 +9,16 @@
 							<div class="l_top adfacjb">
 								<div class="lt_l">我的设备:{{1}}</div>
 								<div class="lt_r adfac">
-									<image src="@/static/wifi_on_mini.png" v-if="index===0"></image>
-									<image src="@/static/wifi_off_mini.png" v-else></image>
-									<image src="@/static/online_mini.png" v-if="index===0"></image>
-									<image src="@/static/offline_mini.png" v-else></image>
+									<image src="http://106.54.209.120:8188/static/wifi_on_mini.png" v-if="index===0"></image>
+									<image src="http://106.54.209.120:8188/static/wifi_off_mini.png" v-else></image>
+									<image src="http://106.54.209.120:8188/static/online_mini.png" v-if="index===0"></image>
+									<image src="http://106.54.209.120:8188/static/offline_mini.png" v-else></image>
 									<div class="ltr_zt" :class="{'zx':index===0,'lx':index===1}">{{index===0?'在线':'离线'}}</div>
 								</div>
 							</div>
 							<div class="l_content">
 								<div class="lc_role adfac">
-									<image class="lcr_l" src="@/static/avatar_default.png"></image>
+									<image class="lcr_l" src="http://106.54.209.120:8188/static/avatar_default.png"></image>
 									<div class="lcr_r">
 										<p>{{'角色昵称'}}</p>
 										<div class="text">角色模板:{{'英语老师'}}</div>
@@ -41,7 +41,7 @@
 		</template>
 		<template v-else>
 			<div class="empty box">
-				<image src="@/static/empty_device.png"></image>
+				<image src="http://106.54.209.120:8188/static/empty_device.png"></image>
 				<p>暂无设备,快去添加开始聊天吧~</p>
 				<div class="zt_btn" @tap="addDevice"> + 添加新设备</div>
 			</div>

+ 3 - 3
pages/login.vue

@@ -1,11 +1,11 @@
 <template>
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
-		<image class="topbg" src="@/static/login_top.png" mode="widthFix"></image>
+		<image class="topbg" src="http://106.54.209.120:8188/static/login_top.png" mode="widthFix"></image>
 		<div class="content adffcacjc">
 			<button class="zt_btn" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">快速登录</button>
 			<div class="agree adfacjc" @tap="changeAgree">
-				<image src="@/static/selected_not.png" v-if="!agree"></image>
-				<image src="@/static/selected.png" v-else></image>
+				<image src="http://106.54.209.120:8188/static/selected_not.png" v-if="!agree"></image>
+				<image src="http://106.54.209.120:8188/static/selected.png" v-else></image>
 				<div class="a_text">已阅读并同意 <span>《用户协议》</span><span>《隐私政策》</span></div>
 			</div>
 		</div>

+ 4 - 4
pages/my.vue

@@ -9,7 +9,7 @@
 		<div class="items">
 			<div class="item adfacjb" @tap="toTurn('/pagesMy/device')">
 				<div class="il adfac">
-					<image src="@/static/my_device.png"></image>
+					<image src="http://106.54.209.120:8188/static/my_device.png"></image>
 					<text>我的设备</text>
 				</div>
 				<div class="ir">
@@ -18,7 +18,7 @@
 			</div>
 			<div class="item adfacjb" @tap="toTurn('/pagesMy/useBook')">
 				<div class="il adfac">
-					<image src="@/static/my_book.png"></image>
+					<image src="http://106.54.209.120:8188/static/my_book.png"></image>
 					<text>用户使用手册</text>
 				</div>
 				<div class="ir">
@@ -27,7 +27,7 @@
 			</div>
 			<div class="item adfacjb" @tap="toTurn('/pagesMy/feedback')">
 				<div class="il adfac">
-					<image src="@/static/myu_idea.png"></image>
+					<image src="http://106.54.209.120:8188/static/myu_idea.png"></image>
 					<text>意见反馈</text>
 				</div>
 				<div class="ir">
@@ -36,7 +36,7 @@
 			</div>
 			<div class="item adfacjb">
 				<div class="il adfac">
-					<image src="@/static/my_version.png"></image>
+					<image src="http://106.54.209.120:8188/static/my_version.png"></image>
 					<text>版本</text>
 				</div>
 				<div class="ir">{{'1.0.0'}}</div>

+ 41 - 37
pages/role.vue

@@ -4,41 +4,39 @@
 		<template v-if="list.length">
 			<div class="query adfacjb">
 				<div class="ql adfac">
-					<image src="@/static/query_mini.png"></image>
+					<image src="http://106.54.209.120:8188/static/query_mini.png"></image>
 					<input type="text" placeholder="搜索" placeholder-class="ph">
 				</div>
 				<div class="qr" @tap="addRole"> + 新增角色</div>
 			</div>
 			<div class="list" :style="{'height':'calc(100vh - '+(mt+156)+'px)'}">
-				<u-list @scrolltolower="scrolltolower">
-					<u-list-item v-for="(item, index) in list" :key="index">
-						<u-swipe-action @touchstart.stop>
-							<u-swipe-action-item :options="options" @click="deleteRole(item)" :ref="'swipeAction' + index" :threshold="5"/>
-								<view class="swipe-action u-border-top u-border-bottom">
-									<view class="swipe-action__content">
-										<div class="l_item adfacjb">
-											<div class="li_l adfac">
-												<image :src="require('@/static/role_avatar'+(index%3)+'.png')"></image>
-												<div class="lil_info">
-													<p>{{'词语接龙'}}</p>
-													<div class="tip">
-														<u--text :lines="2" :text="'擅长词语接龙,规范词汇,助你锻炼词汇量与反应能力'" size="24rpx" color="#A6A6A6" :bold="true" lineHeight="40rpx"></u--text>
-													</div>
-												</div>
-											</div>
-											<div class="li_r">配置到设备</div>
+				<u-swipe-action>
+			        <u-swipe-action-item   v-for="(item, index) in list" :key="index"
+			          :options="options" @click="e=>deleteRole(item,e)" :ref="'swipeAction' + index" :threshold="5"
+			        >
+						<view class="swipe-action u-border-top u-border-bottom">
+							<view class="swipe-action__content">
+							  <div class="l_item adfacjb">
+								<div class="li_l adfac">
+									<image :src="'http://106.54.209.120:8188/static/role_avatar0.png'"></image>
+									<div class="lil_info">
+										<p>{{'词语接龙'}}</p>
+										<div class="tip">
+											<u--text :lines="2" :text="'擅长词语接龙,规范词汇,助你锻炼词汇量与反应能力'" size="24rpx" color="#A6A6A6" :bold="true" lineHeight="40rpx"></u--text>
 										</div>
-									</view>
-								</view>
-							</u-swipe-action-item>
-						</u-swipe-action>
-					</u-list-item>
-				</u-list>
+									</div>
+								</div>
+								<div class="li_r">配置到设备</div>
+							  </div>
+							</view>
+						</view>
+			        </u-swipe-action-item>
+			    </u-swipe-action>
 			</div>
 		</template>
 		<template v-else>
 			<div class="empty adffcacjc" :style="{'height':'calc(100vh - '+(mt+106)+'px)'}">
-				<image src="@/static/empty_device.png"></image>
+				<image src="http://106.54.209.120:8188/static/empty_device.png"></image>
 				<p>请先绑定设备</p>
 				<div class="zt_btn" @tap="addDevice"> + 添加新设备</div>
 			</div>
@@ -58,7 +56,7 @@
 		},
 		data(){
 			return {
-				list:[1],
+				list:[1,1],
 				options: [{
 					text: '删除',
 					style: {
@@ -76,6 +74,19 @@
 					url:'/pagesRole/addRole'
 				})
 			},
+			deleteRole(item,e){
+				console.log(e,item);
+				uni.showModal({
+					content:'删除角色设备将自动解绑需重新添加,您确定删除吗?',
+					success: (res) => {
+						if(res.confirm){
+							this.list.forEach((d, i) => {
+								this.$refs['swipeAction' + i][0].closeHandler();
+							})
+						}
+					}
+				})
+			}
 		}
 	}
 </script>
@@ -83,9 +94,8 @@
 <style>
 	.u-swipe-action-item__right__button__wrapper {
 		background: #F55454 !important;
-		font-size: 32rpx;
-		font-family: PingFang-SC-Bold, PingFang-SC;
-		font-weight: bold;
+		font-size: 28rpx;
+		font-weight: 400;
 		color: #FFFFFF;
 		letter-spacing: 2rpx;
 	}
@@ -97,7 +107,7 @@
 	}
 </style>
 <style scoped lang="less">
-	::v-deep .list .u-list-item{
+	::v-deep .list .u-swipe-action-item{
 		margin-top: 60rpx;
 	}
 	::v-deep .list .swipe-action{
@@ -150,13 +160,7 @@
 		
 		.list{
 			padding: 0 30rpx;
-			::v-deep .u-list{
-				width: 100%;
-				height: 100% !important;
-			}
-			::v-deep .u-list-item{
-				width: 100%;
-			}
+			overflow-y: auto;
 			.l_item{
 				width: 100%;
 				.li_l{

+ 2 - 2
pagesHome/wifiSetMemo1.vue

@@ -2,11 +2,11 @@
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='配置网络说明'></cus-header>
 		<div class="top">打开设备开关,确认设备已通电开机成功</div>
-		<image class="tl" src="@/static/wifi_set1.png" mode="widthFix"></image>
+		<image class="tl" src="http://106.54.209.120:8188/static/wifi_set1.png" mode="widthFix"></image>
 		<div class="tip">首次开机设备将会自动进入配网模式</div>
 		<div class="tip">已开机状态下,连续按Wi-Fi键三下,听到语音播报:“快去小程序绑定设备吧”,即已开始进入配网模式</div>
 		<div class="adffcacjc">
-			<image class="step" src="@/static/set_dian1.png"></image>
+			<image class="step" src="http://106.54.209.120:8188/static/set_dian1.png"></image>
 			<div class="zt_btn" @tap="next">下一步</div>
 		</div>
 	</view>

+ 2 - 2
pagesHome/wifiSetMemo2.vue

@@ -2,9 +2,9 @@
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='配置网络说明'></cus-header>
 		<div class="top">授权打开 设置 - 开启无限局域网 </div>
-		<image class="tl" src="@/static/wifi_set2.png" mode="widthFix"></image>
+		<image class="tl" src="http://106.54.209.120:8188/static/wifi_set2.png" mode="widthFix"></image>
 		<div class="adffcacjc">
-			<image class="step" src="@/static/set_dian2.png"></image>
+			<image class="step" src="http://106.54.209.120:8188/static/set_dian2.png"></image>
 			<div class="zt_btn" @tap="next">下一步</div>
 		</div>
 	</view>

+ 2 - 2
pagesHome/wifiSetMemo3.vue

@@ -2,9 +2,9 @@
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='配置网络说明'></cus-header>
 		<div class="top">找到 “Xiaozhi” Wi-Fi热点,点击连接成功</div>
-		<image class="tl" src="@/static/wifi_set3.png" mode="widthFix"></image>
+		<image class="tl" src="http://106.54.209.120:8188/static/wifi_set3.png" mode="widthFix"></image>
 		<div class="adffcacjc">
-			<image class="step" src="@/static/set_dian3.png"></image>
+			<image class="step" src="http://106.54.209.120:8188/static/set_dian3.png"></image>
 			<div class="zt_btn" @tap="next">下一步</div>
 		</div>
 	</view>

+ 2 - 2
pagesHome/wifiSetMemo4.vue

@@ -2,9 +2,9 @@
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='配置网络说明'></cus-header>
 		<div class="top">选择要连接的Wi-Fi,输入Wi-Fi密码,配网成功</div>
-		<image class="tl" src="@/static/wifi_set4.png" mode="widthFix"></image>
+		<image class="tl" src="http://106.54.209.120:8188/static/wifi_set4.png" mode="widthFix"></image>
 		<div class="adffcacjc">
-			<image class="step" src="@/static/set_dian4.png"></image>
+			<image class="step" src="http://106.54.209.120:8188/static/set_dian4.png"></image>
 			<div class="zt_btn" @tap="goback">返回</div>
 		</div>
 	</view>

+ 6 - 6
pagesMy/device.vue

@@ -9,16 +9,16 @@
 							<div class="l_top adfacjb">
 								<div class="lt_l">我的设备:{{1}}</div>
 								<div class="lt_r adfac">
-									<image src="@/static/wifi_on_mini.png" v-if="index===0"></image>
-									<image src="@/static/wifi_off_mini.png" v-else></image>
-									<image src="@/static/online_mini.png" v-if="index===0"></image>
-									<image src="@/static/offline_mini.png" v-else></image>
+									<image src="http://106.54.209.120:8188/static/wifi_on_mini.png" v-if="index===0"></image>
+									<image src="http://106.54.209.120:8188/static/wifi_off_mini.png" v-else></image>
+									<image src="http://106.54.209.120:8188/static/online_mini.png" v-if="index===0"></image>
+									<image src="http://106.54.209.120:8188/static/offline_mini.png" v-else></image>
 									<div class="ltr_zt" :class="{'zx':index===0,'lx':index===1}">{{index===0?'在线':'离线'}}</div>
 								</div>
 							</div>
 							<div class="l_content">
 								<div class="lc_role adfac">
-									<image class="lcr_l" src="@/static/avatar_default.png"></image>
+									<image class="lcr_l" src="http://106.54.209.120:8188/static/avatar_default.png"></image>
 									<div class="lcr_r">
 										<p>{{'角色昵称'}}</p>
 										<div class="text">角色模板:{{'英语老师'}}</div>
@@ -38,7 +38,7 @@
 		</template>
 		<template v-else>
 			<div class="empty adffcacjc" :style="{'height':'calc(100vh - '+(mt+100)+'px)'}">
-				<image src="@/static/empty_device.png"></image>
+				<image src="http://106.54.209.120:8188/static/empty_device.png"></image>
 				<p>暂无绑定设备</p>
 			</div>
 		</template>

+ 7 - 7
pagesMy/deviceAdd.vue

@@ -1,17 +1,17 @@
 <template>
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='添加新设备' bgColor='transparent'></cus-header>
-		<image class="topbg" src="@/static/device_add_bg.png" mode="widthFix"></image>
+		<image class="topbg" src="http://106.54.209.120:8188/static/device_add_bg.png" mode="widthFix"></image>
 		<div class="icons adfacjb">
-			<image src="@/static/device_query.png"></image>
-			<image class="next" src="@/static/device_next.png"></image>
-			<image src="@/static/device_wifi.png"></image>
-			<image class="next" src="@/static/device_next.png"></image>
-			<image src="@/static/device_scan.png"></image>
+			<image src="http://106.54.209.120:8188/static/device_query.png"></image>
+			<image class="next" src="http://106.54.209.120:8188/static/device_next.png"></image>
+			<image src="http://106.54.209.120:8188/static/device_wifi.png"></image>
+			<image class="next" src="http://106.54.209.120:8188/static/device_next.png"></image>
+			<image src="http://106.54.209.120:8188/static/device_scan.png"></image>
 		</div>
 		<div class="tip">请确认玩具已开机,点击下方开始配网</div>
 		<div class="memo adfacjb" @tap="showSetMemo">
-			<image src="@/static/info_mini.png"></image>
+			<image src="http://106.54.209.120:8188/static/info_mini.png"></image>
 			<text>配置网络说明</text>
 		</div>
 		<div class="steps">

+ 5 - 5
pagesMy/feedback.vue

@@ -1,21 +1,21 @@
 <template>
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='意见反馈' :titleStyle="{'color':'transparent'}" bgColor='transparent'></cus-header>
-		<image class="topbg" src="@/static/feedback_bg.png"></image>
+		<image class="topbg" src="http://106.54.209.120:8188/static/feedback_bg.png"></image>
 		<div class="box" style="margin-top: 189rpx;">
 			<div class="title adfac">选择问题类型<span>*</span></div>
 			<div class="list adfacjb">
 				<div class="pre adffcacjc" :class="{'active':tidx===1}" @tap="changeType(1)">
 					<text>功能异常</text>
-					<image src="@/static/selected_dh.png" v-if="tidx===1"></image>
+					<image src="http://106.54.209.120:8188/static/selected_dh.png" v-if="tidx===1"></image>
 				</div>
 				<div class="pre adffcacjc" :class="{'active':tidx===2}" @tap="changeType(2)">
 					<text>新功能建议</text>
-					<image src="@/static/selected_dh.png" v-if="tidx===2"></image>
+					<image src="http://106.54.209.120:8188/static/selected_dh.png" v-if="tidx===2"></image>
 				</div>
 				<div class="pre adffcacjc" :class="{'active':tidx===3}" @tap="changeType(3)">
 					<text>其他</text>
-					<image src="@/static/selected_dh.png" v-if="tidx===3"></image>
+					<image src="http://106.54.209.120:8188/static/selected_dh.png" v-if="tidx===3"></image>
 				</div>
 			</div>
 		</div>
@@ -209,7 +209,7 @@
 			margin-top: 54rpx;
 			width: 148rpx;
 			height: 148rpx;
-			background: url('@/static/upload.png') no-repeat;
+			background: url('http://106.54.209.120:8188/static/upload.png') no-repeat;
 			background-size: 100% 100%;
 		}
 		

+ 1 - 1
pagesMy/scanResult.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='扫码结果'></cus-header>
-		<image src="@/static/scan_result.png"></image>
+		<image src="http://106.54.209.120:8188/static/scan_result.png"></image>
 		<p>设备绑定成功</p>
 		<p class="tip">您可以创建新角色,或选择已有角色<br>配置到当前设备</p>
 		<div class="zt_btn" @tap="addRole">为设备添加角色</div>

+ 2 - 2
pagesMy/wifi.vue

@@ -3,7 +3,7 @@
 		<cus-header title='无线局域网' bgColor="transparent"></cus-header>
 		<div class="box">
 			<div class="info adffcacjc">
-				<image src="@/static/wifi.png"></image>
+				<image src="http://106.54.209.120:8188/static/wifi.png"></image>
 				<text>无线局域网</text>
 				<p>接入无线局域网、查看可用网络,并管理加入网络及附近热点设置。</p>
 			</div>
@@ -100,7 +100,7 @@
 								},
 								fail(err) {
 									console.log(err,'err')
-								}
+								}
 							})
 						},
 						fail: (err) => {

+ 15 - 15
pagesMy/wifiSet.vue

@@ -3,7 +3,7 @@
 		<cus-header title='WiFi配置' bgColor="transparent"></cus-header>
 		<div class="box">
 			<div class="b_top adffcacjc">
-				<image src="@/static/wifi.png"></image>
+				<image src="http://106.54.209.120:8188/static/wifi.png"></image>
 				<text>WiFi配置</text>
 			</div>
 			<div class="b_pre">
@@ -24,12 +24,12 @@
 			<div class="b_title">从下面列表选择2.4GWiFi:</div>
 			<div class="b_wifi adfac" v-for="(item,index) in wifi2gList" :key="index" @tap="toCode(item)">
 				<text>{{item.SSID}}</text>
-				<image src="@/static/lock.png"></image>
+				<image src="http://106.54.209.120:8188/static/lock.png"></image>
 			</div>
 		</div>
 		<u-popup :show="show" mode="center" @close="close">
 			<div class="fail_box adffcacjc">
-				<image src="@/static/connect_off.png"></image>
+				<image src="http://106.54.209.120:8188/static/connect_off.png"></image>
 				<text>网络连接失败</text>
 				<p>请检查你的网络设置后刷新</p>
 				<div class="zt_btn" @tap="toTryAgain">重试</div>
@@ -45,7 +45,7 @@
 				wifiSSID:'',
 				wifiPwd:'',
 				wifi2gList:[],
-				show:false,
+				show:false,
 				tcp:'',
 			}
 		},
@@ -126,8 +126,8 @@
 			},
 			toTryAgain(){
 				this.toConnectWiFi();
-			},
-			// 链接TCP
+			},
+			// 链接TCP
 			connectTCP() {
 				console.log(222);
 				try{
@@ -142,21 +142,21 @@
 				}catch(e){
 					console.log(e,'e');
 					this.$showModal(JSON.stringify(e))
-				}
-			},
-			// 发送命令-账号密码
+				}
+			},
+			// 发送命令-账号密码
 			sendDataTCP() {
-				console.log(333);
+				console.log(333);
 				this.tcp.write(`AT+CJWAP=${this.wifiSSID},${this.wifiPwd}`);
 				this.$nextTick(()=>{
 					this.sendRST();
-				})
-			},
-			// 发送命令-重启
+				})
+			},
+			// 发送命令-重启
 			sendRST(){
-				console.log(444);
+				console.log(444);
 				this.tcp.write('AT+RST');
-				this.$showToast('配置成功,设备已重启')
+				this.$showToast('配置成功,设备已重启')
 			},
 			close(){
 				this.show = false;

+ 1 - 1
pagesMy/wifiSuccess.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 		<cus-header title='配置网络'></cus-header>
-		<image src="@/static/wifi_success.png"></image>
+		<image src="http://106.54.209.120:8188/static/wifi_success.png"></image>
 		<p>网络配置成功</p>
 		<p class="tip">请扫描设备或说明书上的二维码<br>点击下方扫码绑定设备,<br>如您已添加过设备,可返回首页开始使用</p>
 		<div class="zt_btn" @tap="scanDevice">扫码绑定设备</div>

+ 4 - 4
pagesRole/addRole.vue

@@ -12,8 +12,8 @@
 					    :maxCount="1"
 					>
 						<div class="imgs">
-							<image class="img1" src="@/static/role_upload.png"></image>
-							<image class="img2" src="@/static/upload_add.png"></image>
+							<image class="img1" src="http://106.54.209.120:8188/static/role_upload.png"></image>
+							<image class="img2" src="http://106.54.209.120:8188/static/upload_add.png"></image>
 						</div>
 					</u-upload>
 				</div>
@@ -28,7 +28,7 @@
 			<div class="title">角色模板<span>*</span></div>
 			<div class="right adfac">
 				<div class="mtext" :class="{'active':modelText!=='请选择角色模版'}">{{modelText}}</div>
-				<image src="@/static/arrow_right.png"></image>
+				<image src="http://106.54.209.120:8188/static/arrow_right.png"></image>
 			</div>
 		</div>
 		<div class="box">
@@ -42,7 +42,7 @@
 			<div class="title">音色<span>*</span></div>
 			<div class="right adfac">
 				<div class="mtext" :class="{'active':voiceText!=='请选择音色'}">{{voiceText}}</div>
-				<image src="@/static/arrow_right.png"></image>
+				<image src="http://106.54.209.120:8188/static/arrow_right.png"></image>
 			</div>
 		</div>
 		<div class="zt_btn">创建角色</div>

+ 2 - 2
pagesRole/roleModel.vue

@@ -4,12 +4,12 @@
 		<div class="title">选择角色模板<span>*</span></div>
 		<div class="list">
 			<div class="pre" v-for="(item,index) in list" :key="index" :class="{'active':midx===index}" @tap="changeModel(item,index)">
-				<image src="@/static/selected_dh.png" v-if="midx===index"></image>
+				<image src="http://106.54.209.120:8188/static/selected_dh.png" v-if="midx===index"></image>
 				{{item}}
 			</div>
 		</div>
 		<div class="adffcacjc">
-			<image src="@/static/avatar_default.png"></image>
+			<image src="http://106.54.209.120:8188/static/avatar_default.png"></image>
 			<p>{{'湾湾小何'}}</p>
 		</div>
 		<div class="desc">{{'你是一个充满活力与好奇心的年轻。以性格开朗乐观,对生活充满热情。你喜欢在公园等自然环境中放松自己,思考人生。你很善于观察,总能发现一些别人忽略的小美好。你和我在公园偶然相遇,之后我们时常一起在公园漫步、聊天,分享生活中的喜怒哀乐。你总是能给我带来积极的能量和独特的见解。'}}</div>

BIN
static/arrow_right.png


BIN
static/avatar_default.png


BIN
static/connect_off.png


BIN
static/device_add_bg.png


BIN
static/device_mini.png


BIN
static/device_next.png


BIN
static/device_query.png


BIN
static/device_scan.png


BIN
static/device_wifi.png


BIN
static/edit_mini.png


BIN
static/empty_device.png


BIN
static/feedback_bg.png


BIN
static/home_active.png


BIN
static/home_inactive.png


BIN
static/home_topbg.png


BIN
static/info_mini.png


BIN
static/lock.png


BIN
static/login_top.png


BIN
static/my_active.png


BIN
static/my_avatat_default.png


BIN
static/my_book.png


BIN
static/my_device.png


BIN
static/my_inactive.png


BIN
static/my_topbg.png


BIN
static/my_version.png


BIN
static/myu_idea.png


BIN
static/offline_mini.png


BIN
static/online_mini.png


BIN
static/query_mini.png


BIN
static/role_active.png


BIN
static/role_avatar0.png


BIN
static/role_avatar1.png


BIN
static/role_avatar2.png


BIN
static/role_inactive.png


BIN
static/role_upload.png


BIN
static/scan_bind.png


BIN
static/scan_result.png


BIN
static/selected.png


BIN
static/selected_dh.png


BIN
static/selected_not.png


BIN
static/set_dian1.png


BIN
static/set_dian2.png


BIN
static/set_dian3.png


BIN
static/set_dian4.png


BIN
static/upload.png


BIN
static/upload_add.png


BIN
static/wifi.png


BIN
static/wifi_bind.png


BIN
static/wifi_off_mini.png


BIN
static/wifi_on_mini.png


BIN
static/wifi_set1.png


BIN
static/wifi_set2.png


BIN
static/wifi_set3.png


BIN
static/wifi_set4.png


BIN
static/wifi_success.png