解决手机兼容

lu_quan_dev
han 9 months ago
parent 8f2c8383d5
commit 114befaa04
  1. 10
      pages/personcenter/personcenter.vue
  2. 17
      subPageC/weather/index.vue

@ -67,7 +67,7 @@
<view class="m-my-menu-list" >
<view class="btn-item" hover-class="active-btn" @click="goPage('yijian')">
<view class="btn-img">
<image src="/static/animg/personCenter/jianyi.png" mode="widthFix"></image>
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/jianyi.png" mode="widthFix"></image>
</view>
<view class="btn-left">
<view class="btn-text">我的建议</view>
@ -76,7 +76,7 @@
</view>
<view class="btn-item" hover-class="active-btn" @click="goPage('tousu')">
<view class="btn-img">
<image src="/static/animg/personCenter/tousu.png" mode="widthFix"></image>
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-tousu.png" mode="widthFix"></image>
</view>
<view class="btn-left">
<view class="btn-text">我的投诉</view>
@ -85,7 +85,7 @@
</view>
<view class="btn-item" hover-class="active-btn" @click="makeCall">
<view class="btn-img">
<image src="/static/animg/personCenter/kefu.png" mode="widthFix"></image>
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/kefu.png" mode="widthFix"></image>
</view>
<view class="btn-left">
<view class="btn-text">客服电话</view>
@ -95,7 +95,7 @@
<view class="btn-item" hover-class="active-btn">
<button class="btns" open-type="share" plain>
<view class="btn-img">
<image src="/static/animg/personCenter/fenxiang.png" mode="widthFix"></image>
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/fenxiang.png" mode="widthFix"></image>
</view>
<view class="btn-left">
<view class="btn-text">分享推荐</view>
@ -105,7 +105,7 @@
</view>
<view class="btn-item" hover-class="active-btn" @click="goPage('about')">
<view class="btn-img">
<image src="/static/animg/personCenter/about.png" mode="widthFix"></image>
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/about.png" mode="widthFix"></image>
</view>
<view class="btn-left">
<view class="btn-text">关于E鹿悦游</view>

@ -137,13 +137,24 @@
})
},
getWeekday(day) {
const date = new Date(day); //
const today = new Date()
if (date.getDate() == today.getDate()) {
var arr = day.split("-");
var year = parseInt(arr[0]);
var month = parseInt(arr[1]) - 1; // 01
var day = parseInt(arr[2]);
var date = new Date();
date.setFullYear(year, month, day);
if (date.getDate() == today.getDate()) {
return '今天'
} else {
console.log(day)
const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
const weekday = new Date(date).getDay();
const weekday = date.getDay();
console.log('aa',weekday)
return weekdays[weekday];
}
},

Loading…
Cancel
Save