1

parent aa95b16a
...@@ -62,7 +62,8 @@ onLoad(() => { ...@@ -62,7 +62,8 @@ onLoad(() => {
// console.log('右边界坐标', res.right); // 右边界坐标,单位:px // console.log('右边界坐标', res.right); // 右边界坐标,单位:px
// console.log('下边界坐标', res.bottom); // 下边界坐标,单位:px // console.log('下边界坐标', res.bottom); // 下边界坐标,单位:px
// console.log('左边界坐标', res.left); // console.log('左边界坐标', res.left);
contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px contentHeight.value = (res.top + res.bottom) / 2 + 25 + 'px';
// contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px
}, },
}); });
}); });
...@@ -81,7 +82,7 @@ const back = () => { ...@@ -81,7 +82,7 @@ const back = () => {
top: 0; top: 0;
z-index: 999999; z-index: 999999;
transition: background-color 0.5s; transition: background-color 0.5s;
box-sizing: border-box; // box-sizing: border-box;
.search { .search {
position: absolute; position: absolute;
bottom: 10rpx; bottom: 10rpx;
...@@ -90,7 +91,7 @@ const back = () => { ...@@ -90,7 +91,7 @@ const back = () => {
width: 710rpx; width: 710rpx;
height: 80rpx; height: 80rpx;
// background: rgba(255, 255, 255, 0.8); // background: rgba(255, 255, 255, 0.8);
// border-radius: 16rpx 16rpx 16rpx 16rpx; border-radius: 16rpx 16rpx 16rpx 16rpx;
opacity: 0.8; opacity: 0.8;
margin: 0 auto; margin: 0 auto;
// margin-top: 44rpx; // margin-top: 44rpx;
......
...@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index'; ...@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import { getToken } from '../../utils/auth'; import { getToken } from '../../utils/auth';
onLoad(async (options) => { onLoad(async (options) => {
// await signIn(); await signIn();
if (!getToken()) await signIn2(); // if (!getToken()) await signIn2();
const { type } = options; const { type } = options;
switch (type) { switch (type) {
case '0': case '0':
...@@ -21,11 +21,11 @@ onLoad(async (options) => { ...@@ -21,11 +21,11 @@ onLoad(async (options) => {
xma.reLaunch({ url: '/pages/index/index' }); xma.reLaunch({ url: '/pages/index/index' });
break; break;
case '2': case '2':
xma.reLaunch({ url: '/pages/assistingAgriculture/index/building?categoryId=3266' }); xma.reLaunch({ url: '/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=3268' });
break; break;
case '3': case '3':
xma.reLaunch({ xma.reLaunch({
url: '/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=3268', url: '/pages/assistingAgriculture/index/building?categoryId=3266',
}); });
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment