ios真机调试
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
</view>
|
||||
<view class="mainContent">
|
||||
|
||||
<view v-if="shupingList.length > 0">
|
||||
<view class="flexbox shuping-topbar">
|
||||
<view class="shuping-topbar-tiao">{{shupingNum || 0}}条书评</view>
|
||||
@@ -49,13 +50,17 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" @click.stop="toDetail(item)" v-for="(item,index1) in shupingList" :key="index1">
|
||||
|
||||
|
||||
<view class="title">{{item.title}}</view>
|
||||
<image class="feng" v-if="item.image" :src="item.image" mode="aspectFill"></image>
|
||||
<view class="description" v-html="item.content">
|
||||
<view class="description descriptionNew" v-html="item.content">
|
||||
|
||||
</view>
|
||||
<!-- <image class="feng" v-if="item.image == ''" src="../../static/icon/home_bg.jpg" mode="aspectFill"></image> -->
|
||||
|
||||
<view class="btns flexbox" style="margin-top:10rpx;">
|
||||
|
||||
<span class="left" style="color: #C0C4CC;">{{formatTimeDifferenceFromT(item.createTime)}}</span>
|
||||
<span class="right flexbox opbtns">
|
||||
<image class="gzicon" v-if="item.ilike" src="../../static/icon/gz2.png" mode="aspectFill"
|
||||
@@ -190,6 +195,7 @@
|
||||
status: 3,
|
||||
shupingList: [],
|
||||
bfaid: null,
|
||||
newTime:'',
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
@@ -284,9 +290,13 @@
|
||||
})
|
||||
},
|
||||
formatTimeDifferenceFromT(dateTimeT) {
|
||||
dateTimeT= dateTimeT.replace(/-/g,"/")
|
||||
console.log("🚀 ~ formatTimeDifferenceFromT ~ dateTimeT:", dateTimeT)
|
||||
const now = new Date();
|
||||
const t = new Date(dateTimeT);
|
||||
console.log("🚀 ~ formatTimeDifferenceFromT ~ t:", t)
|
||||
const differenceInSeconds = Math.floor((now - t) / 1000);
|
||||
console.log("🚀 ~ formatTimeDifferenceFromT ~ differenceInSeconds:", differenceInSeconds)
|
||||
|
||||
if (differenceInSeconds <= 3600) {
|
||||
const minutes = Math.floor(differenceInSeconds / 60);
|
||||
@@ -710,6 +720,7 @@
|
||||
-webkit-line-clamp: 9;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
|
||||
}
|
||||
|
||||
// view{ padding-left: 30rpx; box-sizing: border-box; width: calc(100% - 150px);
|
||||
@@ -753,18 +764,24 @@
|
||||
}
|
||||
|
||||
.description {
|
||||
overflow: hidden;
|
||||
color: #666;
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 5;
|
||||
line-clamp: 5;
|
||||
// width: 100%;
|
||||
-webkit-box-orient: vertical;
|
||||
font-size: 26rpx;
|
||||
margin-bottom: 20rpx;
|
||||
margin-top: 10rpx;
|
||||
overflow: hidden !important;
|
||||
height:190rpx;
|
||||
color: #666 !important;
|
||||
text-overflow: -o-ellipsis-lastline !important;
|
||||
overflow: hidden !important;
|
||||
text-overflow: ellipsis !important;
|
||||
display: -webkit-box !important;
|
||||
-webkit-line-clamp: 5 !important;
|
||||
line-clamp: 5 !important;
|
||||
-webkit-box-orient: vertical !important;
|
||||
font-size: 26rpx !important;
|
||||
margin-bottom: 20rpx !important;
|
||||
margin-top: 10rpx !important;
|
||||
|
||||
white-space: pre-wrap;
|
||||
|
||||
// height: 172rpx;
|
||||
}
|
||||
|
||||
@@ -816,4 +833,7 @@
|
||||
margin-bottom: 30rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.descriptionNew{
|
||||
// overflow: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -5,13 +5,16 @@
|
||||
<z-nav-bar title="方药检索"></z-nav-bar>
|
||||
<view class="contentBox">
|
||||
<view class="oneCateList flexbox firstTab">
|
||||
|
||||
<text :class="[curFirstTabIndex == index ? 'cur' : '']" @click="setFirstTabIndex(item,index)"
|
||||
v-for="(item, index) in firstTabList" :key="item.firstTabId">{{item.title}}</text>
|
||||
</view>
|
||||
<view v-if="curFirstTabIndex==0">
|
||||
|
||||
<view class="oneCateBot flexbox">
|
||||
<!-- &&index!=0 -->
|
||||
<text :class="[curOneCateIndex == index ? 'cur' : '']" @click="setOneCateIndex(item,index)"
|
||||
v-for="(item, index) in oneCateList" :key="item.prescriptCategoryId" v-show="!iosHide&&index!=0">{{item.title}}</text>
|
||||
v-for="(item, index) in oneCateList" :key="item.prescriptCategoryId" v-show="iosHide">{{item.title}}</text>
|
||||
</view>
|
||||
<view class="search_box" v-if="oneCateList.length > 0">
|
||||
<u-search @click="checkDisable" placeholder="请输入方剂名" @focus="focus" @clear="clear"
|
||||
@@ -27,7 +30,8 @@
|
||||
<u-divider text="未找到相关方剂哦~"></u-divider>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="!showSearchList&&!iosHide&&curOneCateIndex!=0">
|
||||
<!-- &&curOneCateIndex!=0 -->
|
||||
<view v-show="!showSearchList&&iosHide">
|
||||
<view class="grid twoCateList" v-if="twoCateList.length > 0">
|
||||
<u-grid :col="3" border class="u-grid-list">
|
||||
<u-grid-item v-for="(item, index) in twoCateList" :key="item.prescriptCategoryId"
|
||||
|
||||
@@ -223,6 +223,8 @@
|
||||
email: '',
|
||||
phoneEmail: '',
|
||||
password: '',
|
||||
phoneEmail: '2227572976@qq.com',
|
||||
password: 'zm123456',
|
||||
//验证码
|
||||
codeText: '获取验证码',
|
||||
//验证码已发
|
||||
@@ -251,6 +253,7 @@
|
||||
},
|
||||
//第一次加载
|
||||
onLoad(e) {
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
this.isIos = (plus.os.name == "iOS");
|
||||
let systemInfo = uni.getSystemInfoSync();
|
||||
@@ -263,6 +266,7 @@
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
this.closeMusic()
|
||||
this.getCountyCode()
|
||||
this.getSettlement()
|
||||
},
|
||||
@@ -270,6 +274,16 @@
|
||||
methods: {
|
||||
...mapMutations(['setUserInfo']),
|
||||
...mapMutations(['setHealthMes']),
|
||||
closeMusic(){
|
||||
this.$music.setCloseBgm() // 关闭音频
|
||||
uni.setStorage({
|
||||
key: 'playVisible',
|
||||
data: false,
|
||||
success: function () {
|
||||
console.log('success');
|
||||
}
|
||||
}); this.setUserInfo({'playVisible':false})
|
||||
},
|
||||
// 获取国家区域编码
|
||||
getCountyCode() {
|
||||
$http.request({
|
||||
@@ -523,6 +537,10 @@
|
||||
title: '登录成功',
|
||||
duration: 1000,
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/peanut/home'
|
||||
|
||||
Reference in New Issue
Block a user