diff --git a/api/api.js b/api/api.js index 8194131..4034d32 100644 --- a/api/api.js +++ b/api/api.js @@ -9,6 +9,8 @@ export const login = (data) => syhttp.post('/login/account', data) export const xinregister = (data) => syhttp.post('/index/code', data) //用户注册 export const logregister = (data) => syhttp.post('/login/register', data) +//用户注册验证码 +export const registerCode = (data) => syhttp.post('/sms/sendCode', data) //修改密码 export const changePassword = (data) => syhttp.post('/user/changePassword', data) //退出登录 @@ -63,4 +65,10 @@ export const towns = (data) => http.get('/common/geo/towns', data) //乡村 export const villages = (data) => http.get('/common/geo/villages', data) //小组 -export const groups = (data) => http.get('/common/geo/groups', data) \ No newline at end of file +export const groups = (data) => http.get('/common/geo/groups', data) +//视频推流 +export const videoPush = (data) => http.get('/video', data) + + + +// http: //127.0.0.1:8001/video/17378971117/lihai_lot_walnutpi_dev_1 \ No newline at end of file diff --git a/components/plant/landInfo.vue b/components/plant/landInfo.vue index e52ea69..a99c31d 100644 --- a/components/plant/landInfo.vue +++ b/components/plant/landInfo.vue @@ -1,47 +1,47 @@ \ No newline at end of file diff --git a/pages/index/personal.vue b/pages/index/personal.vue index 169bc35..c8aea7d 100644 --- a/pages/index/personal.vue +++ b/pages/index/personal.vue @@ -61,6 +61,10 @@ ref } from 'vue'; import { logout } from '@/api/api.js' + import { + onLoad + + } from "@dcloudio/uni-app" import store from "@/store/index.js" const userinfo = reactive({}) @@ -78,7 +82,9 @@ } - + onLoad(() => { + uni.hideTabBar() + }) diff --git a/pages/landDetail/index.vue b/pages/landDetail/index.vue index d21eedd..89283e7 100644 --- a/pages/landDetail/index.vue +++ b/pages/landDetail/index.vue @@ -8,37 +8,33 @@ - 刷新时间: {{getNowTimeFn()}} + 刷新时间: {{getNowTimeFn()}} - - + + - - - - - - - - + + + + 新增种植 - + 种植信息 @@ -77,7 +73,7 @@ 种植面积: {{item.area}}亩 - 参与人: {{item.user}} + 参与人员: {{item.user}} 种植日期: {{item.plant_date}} @@ -307,6 +303,9 @@ + } + const u = (name) => { + return `/static/main/index/${name}.png` } @@ -332,7 +331,12 @@ } .video { - // margin-top: 10rpx; + width: 690rpx; + height: 510rpx; + box-shadow: 1rpx 1rpx 10rpx 1rpx rgba(0, 0, 0, 0.1); + border-radius: 10rpx; + overflow: hidden; + } .add-thing { @@ -410,7 +414,8 @@ display: flex; justify-content: space-between; flex-direction: column; - margin-left: 40rpx; + margin-left: 20rpx; + font-size: 26rpx; } } } @@ -419,7 +424,9 @@ position: relative; padding-left: 20rpx; font-weight: bold; + font-size: 28rpx; margin-bottom: 20rpx; + color: #1A1A1A; } .tit::before { @@ -428,12 +435,14 @@ top: 50%; transform: translateY(-50%); left: 0; - width: 3px; + width: 6rpx; /* 左边框的宽度 */ - height: 30rpx; + height: 25rpx; + border-radius: 20rpx; background-color: #34D08D; } + .code-btn { border: 1px solid $theme-main-color; border-radius: 30rpx; diff --git a/pages/landDetail/tudi.vue b/pages/landDetail/tudi.vue index 8cc80c3..4073beb 100644 --- a/pages/landDetail/tudi.vue +++ b/pages/landDetail/tudi.vue @@ -7,17 +7,26 @@ - 刷新时间: {{getNowTimeFn()}} + 刷新时间: {{getNowTimeFn()}} - + + + + - + 操作信息 @@ -384,6 +393,9 @@ if (type == 1) return "/static/main/index/shi_fei.png" if (type == 5) return "/static/main/index/shou_huo.png" } + const u = (name) => { + return `/static/main/index/${name}.png` + } \ No newline at end of file diff --git a/pages/live/live.nvue b/pages/live/live.nvue index d7c4b2f..3e38e05 100644 --- a/pages/live/live.nvue +++ b/pages/live/live.nvue @@ -37,6 +37,15 @@ uni.$emit('push', { msg: '页面更新' }) + + uni.request({ + url: 'http://192.168.1.27:8001/video/13433212473/lihai_lot_walnutpi_dev_3', //仅为示例,并非真实接口地址。 + + success: (res) => { + console.log(54545); + // this.text = 'request success'; + } + }); // uni.request({ // url: 'https://iot.lihaink.cn/push_stream', // data: { diff --git a/pages/updatePassword/updatePassword.vue b/pages/updatePassword/updatePassword.vue index a2493c8..8c9fa96 100644 --- a/pages/updatePassword/updatePassword.vue +++ b/pages/updatePassword/updatePassword.vue @@ -1,11 +1,12 @@