@ -1,35 +1,28 @@ |
|||||||
{ |
{ |
||||||
"$schema": "https://json.schemastore.org/prettierrc.json", |
"$schema": "http://json.schemastore.org/prettierrc", |
||||||
"printWidth": 120, |
"printWidth": 120, |
||||||
"tabWidth": 2, |
"tabWidth": 2, |
||||||
"useTabs": false, |
"useTabs": false, |
||||||
"semi": true, |
"semi": false, |
||||||
"singleQuote": true, |
"singleQuote": true, |
||||||
"bracketSpacing": true, |
"bracketSpacing": true, |
||||||
"trailingComma": "all", |
"trailingComma": "all", |
||||||
"arrowParens": "always", |
"arrowParens": "always", |
||||||
"endOfLine": "auto", |
"endOfLine": "lf", |
||||||
"htmlWhitespaceSensitivity": "ignore", |
"htmlWhitespaceSensitivity": "ignore", |
||||||
"singleAttributePerLine": false, |
"singleAttributePerLine": false, |
||||||
"jsxSingleQuote": true, |
|
||||||
"overrides": [ |
"overrides": [ |
||||||
{ |
{ |
||||||
"files": "*.wxml", |
"files": "*.wxml", |
||||||
"options": { |
"options": { "parser": "html" } |
||||||
"parser": "html" |
|
||||||
} |
|
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"files": "*.wxss", |
"files": "*.wxss", |
||||||
"options": { |
"options": { "parser": "css" } |
||||||
"parser": "css" |
|
||||||
} |
|
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"files": "*.wxs", |
"files": "*.wxs", |
||||||
"options": { |
"options": { "parser": "babel" } |
||||||
"parser": "babel" |
|
||||||
} |
|
||||||
} |
} |
||||||
] |
] |
||||||
} |
} |
||||||
|
|||||||
@ -1,19 +1,15 @@ |
|||||||
/* custom-tab-bar/index.wxss */ |
/* custom-tab-bar/index.wxss */ |
||||||
|
|
||||||
|
|
||||||
.tab-item { |
.tab-item { |
||||||
.icon { |
.icon { |
||||||
width: 50rpx; |
width: 48rpx; |
||||||
height: 50rpx; |
height: 48rpx; |
||||||
} |
} |
||||||
.name { |
.name { |
||||||
font-size: 24rpx; |
font-size: 20rpx; |
||||||
color: #CCCCCC; |
color: rgba(105, 104, 110, 1); |
||||||
&.active{ |
&.active { |
||||||
color: #CF5375; |
color: rgba(33, 29, 46, 1); |
||||||
} |
|
||||||
&.drug-active{ |
|
||||||
color: #25D9C8; |
|
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||
|
After Width: | Height: | Size: 456 KiB |
|
After Width: | Height: | Size: 603 B |
|
After Width: | Height: | Size: 581 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 660 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 933 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
@ -1,43 +1,50 @@ |
|||||||
<view |
<view |
||||||
class="page" |
class="page" |
||||||
style="padding-top: {{top+5}}px;background: url({{imageUrl}}za-images//doctor/my-bg.png?t={{Timestamp}}) no-repeat top center / 100% 740rpx" |
style="padding-top: {{pageTop+40}}px;background: url({{imageUrl}}bg10.png?t={{Timestamp}}) no-repeat top center / 100% 610rpx" |
||||||
> |
> |
||||||
<navBar title="" fixed background="{{background}}" home="{{false}}" back bind:back="handleBack"></navBar> |
<navbar fixed title="" custom-style="background:{{background}}"> |
||||||
|
<van-icon name="arrow-left" slot="left" size="18px" color="#000" bind:tap="handleBack" /> |
||||||
|
</navbar> |
||||||
<view class="container"> |
<view class="container"> |
||||||
<view class="avatar"> |
<view class="avatar"> |
||||||
<image class="avatar-user" mode="aspectFill" src="{{detail.Img}}"></image> |
<image class="avatar-user" mode="aspectFill" src="{{detail.Img}}"></image> |
||||||
</view> |
</view> |
||||||
<view class="name">{{detail.Name}}</view> |
<view class="name"> |
||||||
|
{{detail.Name}} |
||||||
|
<view class="label">主任医生 | 眼科</view> |
||||||
|
</view> |
||||||
|
<view class="hostipal"> |
||||||
|
<view class="tag">三级甲等</view> |
||||||
|
{{detail.hospital.Name}} |
||||||
|
<!-- <view class="tag" wx:if="{{detail.hospital.HospitalClassificationName || detail.hospital.HospitalLevelName}}"> --> |
||||||
|
<!-- {{detail.hospital.HospitalClassificationName}}{{detail.hospital.HospitalLevelName}} --> |
||||||
|
<!-- </view> --> |
||||||
|
</view> |
||||||
<view class="card"> |
<view class="card"> |
||||||
<view class="content"> |
|
||||||
{{detail.hospital.Name}} |
|
||||||
<view class="tag" wx:if="{{detail.hospital.HospitalClassificationName || detail.hospital.HospitalLevelName}}"> |
|
||||||
{{detail.hospital.HospitalClassificationName}}{{detail.hospital.HospitalLevelName}} |
|
||||||
</view> |
|
||||||
</view> |
|
||||||
<view |
<view |
||||||
class="c-row" |
class="c-row" |
||||||
bind:tap="handleOpenMap" |
bind:tap="handleOpenMap" |
||||||
wx:if="{{detail.hospital.ProvinceName || detail.hospital.CityName || detail.hospital.CountyName || detail.hospital.Address}}" |
wx:if="{{detail.hospital.ProvinceName || detail.hospital.CityName || detail.hospital.CountyName || detail.hospital.Address}}" |
||||||
> |
> |
||||||
<image class="icon" src="{{imageUrl}}za-images//doctor/icon-site.png?t={{Timestamp}}"></image> |
<image class="icon" src="/images/icon41.png"></image> |
||||||
<view> |
<view> |
||||||
{{detail.hospital.ProvinceName}}{{detail.hospital.CityName}}{{detail.hospital.CountyName}}{{detail.hospital.Address}} |
{{detail.hospital.ProvinceName}}{{detail.hospital.CityName}}{{detail.hospital.CountyName}}{{detail.hospital.Address}} |
||||||
<view class="site-num">{{detail.hospital.dist}}</view> |
<view class="site-num">{{detail.hospital.dist}}</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<view class="c-row" bind:tap="handlePhone" wx:if="{{ detail.Telephone }}"> |
<view class="c-row" bind:tap="handlePhone" wx:if="{{ detail.Telephone }}"> |
||||||
<image class="icon" src="{{imageUrl}}za-images//doctor/icon-phone.png?t={{Timestamp}}"></image> |
<image class="icon" src="/images/icon42.png"></image> |
||||||
{{ detail.Telephone }} |
{{ detail.Telephone }} |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<view class="row" wx:if="{{detail.Introduce}}"> |
</view> |
||||||
<image class="r-title" src="{{imageUrl}}za-images//doctor/my-title1.png?t={{Timestamp}}"></image> |
|
||||||
<view class="r-content">{{detail.Introduce}}</view> |
<view class="info-card" wx:if="{{detail.Introduce}}"> |
||||||
</view> |
<image class="r-title" src="{{imageUrl}}za-images//doctor/my-title1.png?t={{Timestamp}}"></image> |
||||||
<view class="row" wx:if="{{detail.weekName}}"> |
<view class="r-content">{{detail.Introduce}}</view> |
||||||
<image class="r-title" src="{{imageUrl}}za-images//doctor/my-title2.png?t={{Timestamp}}"></image> |
</view> |
||||||
<view class="r-content pre-line">{{detail.weekName}}</view> |
<view class="info-card" wx:if="{{detail.weekName}}"> |
||||||
</view> |
<image class="r-title" src="{{imageUrl}}za-images//doctor/my-title2.png?t={{Timestamp}}"></image> |
||||||
|
<view class="r-content pre-line">{{detail.weekName}}</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
|
|||||||
@ -1,9 +1,10 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "互动", |
"navigationBarTitleText": "互动", |
||||||
"navigationStyle": "default", |
"navigationStyle": "custom", |
||||||
"usingComponents": { |
"usingComponents": { |
||||||
"van-icon": "@vant/weapp/icon/index", |
"van-icon": "@vant/weapp/icon/index", |
||||||
"van-loading": "@vant/weapp/loading/index", |
"van-loading": "@vant/weapp/loading/index", |
||||||
"referralFrom": "/components/referralFrom/index" |
"referralFrom": "/components/referralFrom/index", |
||||||
|
"navbar": "/components/navbar/index" |
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||
@ -1,11 +1,12 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "", |
"navigationBarTitleText": "", |
||||||
"navigationStyle": "default", |
"navigationStyle": "custom", |
||||||
"navigationBarBackgroundColor": "#fafafa", |
"navigationBarBackgroundColor": "#fafafa", |
||||||
"usingComponents": { |
"usingComponents": { |
||||||
"van-tab": "@vant/weapp/tab/index", |
"van-tab": "@vant/weapp/tab/index", |
||||||
"van-tabs": "@vant/weapp/tabs/index", |
"van-tabs": "@vant/weapp/tabs/index", |
||||||
"van-icon": "@vant/weapp/icon/index", |
"van-icon": "@vant/weapp/icon/index", |
||||||
|
"navbar": "/components/navbar/index", |
||||||
"patient-tab-bar": "/components/patient-tab-bar/index" |
"patient-tab-bar": "/components/patient-tab-bar/index" |
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||
@ -1,10 +1,12 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "活动详情", |
"navigationBarTitleText": "活动详情", |
||||||
"navigationBarBackgroundColor": "#EEF0F3", |
"navigationBarBackgroundColor": "#EEF0F3", |
||||||
"navigationStyle": "default", |
"navigationStyle": "custom", |
||||||
"usingComponents": { |
"usingComponents": { |
||||||
"mp-html": "mp-html", |
"mp-html": "mp-html", |
||||||
|
"van-icon": "@vant/weapp/icon/index", |
||||||
"customPoster": "/components/customPoster/index", |
"customPoster": "/components/customPoster/index", |
||||||
|
"navbar": "/components/navbar/index", |
||||||
"van-popup": "@vant/weapp/popup/index" |
"van-popup": "@vant/weapp/popup/index" |
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||
@ -1,5 +1,7 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "", |
"navigationBarTitleText": "", |
||||||
"navigationStyle": "default", |
"navigationStyle": "custom", |
||||||
"usingComponents": {} |
"usingComponents": { |
||||||
|
"navbar": "/components/navbar/index" |
||||||
|
} |
||||||
} |
} |
||||||
|
|||||||
@ -1,100 +1,84 @@ |
|||||||
const app = getApp<IAppOption>(); |
const app = getApp<IAppOption>() |
||||||
import dayjs from "dayjs"; |
import dayjs from 'dayjs' |
||||||
let live_time: null | number = null; |
let live_time: null | number = null |
||||||
|
|
||||||
Page({ |
Page({ |
||||||
data: { |
data: { |
||||||
id: "", |
id: '', |
||||||
detail: {} as any, |
detail: {} as any, |
||||||
liveDetail: {} as any, |
liveDetail: {} as any, |
||||||
zdUserInfo: {}, |
zdUserInfo: {}, |
||||||
codeUrl: "", |
codeUrl: '', |
||||||
dateValue: "" as string | number, |
dateValue: '' as string | number, |
||||||
rewardScore: 0 as number | undefined, |
rewardScore: 0 as number | undefined, |
||||||
}, |
}, |
||||||
onLoad(options) { |
onLoad(options) { |
||||||
this.setData({ |
this.setData({ |
||||||
id: options.id, |
id: options.id, |
||||||
rewardScore: options.rewardScore, |
rewardScore: options.rewardScore, |
||||||
}); |
}) |
||||||
if (live_time) { |
if (live_time) { |
||||||
clearInterval(live_time); |
clearInterval(live_time) |
||||||
} |
} |
||||||
this.setData({ |
this.setData({ |
||||||
dateValue: dayjs().valueOf(), |
dateValue: dayjs().valueOf(), |
||||||
}); |
}) |
||||||
live_time = setInterval(() => { |
live_time = setInterval(() => { |
||||||
this.setData({ |
this.setData({ |
||||||
dateValue: dayjs().valueOf(), |
dateValue: dayjs().valueOf(), |
||||||
}); |
}) |
||||||
}, 1000); |
}, 1000) |
||||||
app.zdWaitLogin().then((_res) => { |
app.waitLogin({ type: [1] }).then((_res) => { |
||||||
this.getLiveDetail(); |
this.getLiveDetail() |
||||||
this.getDetail(); |
this.getDetail() |
||||||
this.getCode(); |
app.getZdUserInfo(this, true) |
||||||
app.getZdUserInfo(this, true); |
}) |
||||||
}); |
|
||||||
}, |
}, |
||||||
getDetail() { |
getDetail() { |
||||||
wx.ajax({ |
wx.ajax({ |
||||||
method: "GET", |
method: 'GET', |
||||||
url: "?r=zd/activity/sign-up-detail", |
url: '?r=zd/activity/sign-up-detail', |
||||||
data: { |
data: { |
||||||
Id: this.data.id, |
Id: this.data.id, |
||||||
}, |
}, |
||||||
}).then((res) => { |
}).then((res) => { |
||||||
res.BeginTime = dayjs(res.BeginTime).format("YYYY-MM-DD HH:mm"); |
res.BeginTime = dayjs(res.BeginTime).format('YYYY-MM-DD HH:mm') |
||||||
res.BeginTimeValue = dayjs(res.BeginTime).valueOf(); |
res.BeginTimeValue = dayjs(res.BeginTime).valueOf() |
||||||
this.setData({ |
this.setData({ |
||||||
detail: res, |
detail: res, |
||||||
}); |
}) |
||||||
}); |
}) |
||||||
}, |
}, |
||||||
getLiveDetail() { |
getLiveDetail() { |
||||||
wx.ajax({ |
wx.ajax({ |
||||||
method: "GET", |
method: 'GET', |
||||||
url: "?r=zd/activity/detail", |
url: '?r=zd/activity/detail', |
||||||
data: { |
data: { |
||||||
Id: this.data.id, |
Id: this.data.id, |
||||||
}, |
}, |
||||||
}).then((res) => { |
}).then((res) => { |
||||||
this.setData({ |
this.setData({ |
||||||
liveDetail: res, |
liveDetail: res, |
||||||
}); |
}) |
||||||
}); |
}) |
||||||
}, |
}, |
||||||
handleLive() { |
handleLive() { |
||||||
const { TencentMeetingCode } = this.data.detail; |
const { TencentMeetingCode } = this.data.detail |
||||||
wx.navigateToMiniProgram({ |
wx.navigateToMiniProgram({ |
||||||
appId: "wx33fd6cdc62520063", // 要跳转的微信小程序appid
|
appId: 'wx33fd6cdc62520063', // 要跳转的微信小程序appid
|
||||||
path: `pages/index/index?code=${TencentMeetingCode}`, |
path: `pages/index/index?code=${TencentMeetingCode}`, |
||||||
}); |
}) |
||||||
}, |
|
||||||
getCode() { |
|
||||||
const { registChannel } = app.globalData; |
|
||||||
wx.ajax({ |
|
||||||
method: "GET", |
|
||||||
url: "?r=zd/common/get-channel-wx-code", |
|
||||||
data: { |
|
||||||
Id: this.data.id, |
|
||||||
ChannelType: registChannel, |
|
||||||
}, |
|
||||||
}).then((res) => { |
|
||||||
this.setData({ |
|
||||||
codeUrl: res, |
|
||||||
}); |
|
||||||
}); |
|
||||||
}, |
}, |
||||||
handleHome() { |
handleHome() { |
||||||
wx.reLaunch({ |
wx.reLaunch({ |
||||||
url: "/patient/pages/index/index", |
url: '/patient/pages/index/index', |
||||||
}); |
}) |
||||||
}, |
}, |
||||||
onShareAppMessage() { |
onShareAppMessage() { |
||||||
return { |
return { |
||||||
title: this.data.detail.ActivityName, |
title: this.data.detail.ActivityName, |
||||||
path: `/patient/pages/liveDetail/index?id=${this.data.detail.ActivityId}`, |
path: `/patient/pages/liveDetail/index?id=${this.data.detail.ActivityId}`, |
||||||
imageUrl: `${this.data.liveDetail.IntroductionUrl}`, |
imageUrl: `${this.data.liveDetail.IntroductionUrl}`, |
||||||
}; |
} |
||||||
}, |
}, |
||||||
}); |
}) |
||||||
|
|||||||
@ -1,61 +1,23 @@ |
|||||||
<view class="page"> |
<navbar fixed title="" custom-style="background:{{background}}"> |
||||||
<block wx:if="{{detail.AuditStatus==1}}"> |
<van-icon name="arrow-left" slot="left" color="background=='#FFFFFF'?'#000':'#fff'" bind:tap="handleBack" /> |
||||||
<image class="badge" mode="aspectFit" src="{{imageUrl}}za-images/1/live-result-reject.png?t={{Timestamp}}"></image> |
</navbar> |
||||||
<view class="status green">资料审核中</view> |
<!-- padding-top:{{pageTop+22}}px; --> |
||||||
<view class="tip">资料审核通过后可参与活动</view> |
<view class="page" style="background: url('/images/bg10.png') no-repeat top center/100% 610rpx"> |
||||||
</block> |
<view class="bg"></view> |
||||||
<block wx:elif="{{detail.SignUpStatus==2 && (detail.AuditStatus==3 || detail.AuditStatus==4)}}"> |
<view class="page-container" style="top:{{pageTop+30}}px;"> |
||||||
<!-- <block> --> |
<image class="badge" mode="aspectFit" src="/images/icon43.png"></image> |
||||||
<image class="badge" mode="aspectFit" src="{{imageUrl}}za-images/1/live-result-success.png?t={{Timestamp}}"></image> |
|
||||||
<view class="status">报名成功</view> |
<view class="status">报名成功</view> |
||||||
<view class="tip">您已成功报名大咖秀</view> |
<view class="tip">欢迎您参与此次活动</view> |
||||||
<view class="price" wx:if="{{rewardScore>0}}"> |
<view class="container"> |
||||||
+{{rewardScore}} |
<view class="c-content"> |
||||||
<view class="sub">能量</view> |
<image class="banner" src="{{liveDetail.IntroductionUrl}}"></image> |
||||||
</view> |
<view class="c-title">{{detail.ActivityName}}</view> |
||||||
</block> |
<view class="date">直播时间: {{detail.BeginTime}}</view> |
||||||
<view class="container"> |
<view wx:if="{{detail.BeginTimeValue * 1 < dateValue * 1 && detail.Type==1}}" class="btn" bind:tap="handleLive"> |
||||||
<view class="c-content"> |
立即进入直播间 |
||||||
<!-- <video --> |
</view> |
||||||
<!-- class="video" --> |
<button open-type="share" class="btn btn2">分享活动</button> |
||||||
<!-- show-mute-btn --> |
|
||||||
<!-- autoplay --> |
|
||||||
<!-- src="https://rs-os-lyh-dt-publicread-video-auto1080tr-prod.liangyihui.net/boss-upload/Mabd3TtaDlquV01ODi6qwA/YsT9kzIy5QKlZTYY.mp4" --> |
|
||||||
<!-- controls --> |
|
||||||
<!-- ></video> --> |
|
||||||
<view class="c-title">{{detail.ActivityName}}</view> |
|
||||||
<view class="date"> |
|
||||||
<image class="icon" src="{{imageUrl}}za-images/1/date.png?t={{Timestamp}}"></image> |
|
||||||
{{detail.BeginTime}} |
|
||||||
</view> |
</view> |
||||||
<view class="site" wx:if="{{detail.Type==2}}">地点:{{detail.Location}}</view> |
|
||||||
<block wx:if="{{detail.IsFollow==0}}"> |
|
||||||
<image class="code" src="{{codeUrl}}" show-menu-by-longpress></image> |
|
||||||
<view class="c-tip">关注"gMG给力加油站"公众号获取活动通知</view> |
|
||||||
</block> |
|
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<view class="footer"> |
|
||||||
<block wx:if="{{detail.AuditStatus==1}}"> |
|
||||||
<button wx:if="{{detail.IsFollow==1}}" open-type="share" class="btn">邀约好友参与</button> |
|
||||||
<view class="btn btn2" bind:tap="handleHome">随便看看</view> |
|
||||||
</block> |
|
||||||
<block wx:elif="{{detail.SignUpStatus==2 && (detail.AuditStatus==3 || detail.AuditStatus==4)}}"> |
|
||||||
<block wx:if="{{detail.IsFollow==0}}"> |
|
||||||
<view class="btn" wx:if="{{detail.BeginTimeValue * 1 < dateValue * 1 && detail.Type==1}}" bind:tap="handleLive"> |
|
||||||
进入会议间 |
|
||||||
</view> |
|
||||||
</block> |
|
||||||
<block wx:else> |
|
||||||
<view |
|
||||||
class="btn btn1" |
|
||||||
wx:if="{{detail.BeginTimeValue * 1 < dateValue * 1 && detail.Type==1}}" |
|
||||||
bind:tap="handleLive" |
|
||||||
> |
|
||||||
立即进入会议间 |
|
||||||
</view> |
|
||||||
<button open-type="share" class="btn">邀约好友参与</button> |
|
||||||
</block> |
|
||||||
</block> |
|
||||||
</view> |
|
||||||
</view> |
</view> |
||||||
|
|||||||
@ -1,9 +1,10 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "我报名的活动", |
"navigationBarTitleText": "我报名的活动", |
||||||
"navigationStyle": "default", |
"navigationStyle": "custom", |
||||||
"usingComponents": { |
"usingComponents": { |
||||||
"van-tab": "@vant/weapp/tab/index", |
"van-tab": "@vant/weapp/tab/index", |
||||||
"van-tabs": "@vant/weapp/tabs/index", |
"van-tabs": "@vant/weapp/tabs/index", |
||||||
|
"navbar": "/components/navbar/index", |
||||||
"van-icon": "@vant/weapp/icon/index" |
"van-icon": "@vant/weapp/icon/index" |
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||
@ -1,162 +1,62 @@ |
|||||||
<view class="page"> |
<navbar fixed title="我报名的活动" custom-style="background:{{background}}"> |
||||||
<view class="sticky"> |
<van-icon name="arrow-left" slot="left" color="#000" bind:tap="handleBack" /> |
||||||
<van-tabs |
</navbar> |
||||||
wx:if="{{online_open_status==1 && offline_open_status==1}}" |
|
||||||
class="navbar" |
<view |
||||||
active="{{ active }}" |
class="page" |
||||||
bind:change="tabChange" |
style="background: url('/images/bg10.png') no-repeat top center/100% 410rpx;padding-top:{{pageTop+22}}px;" |
||||||
title-inactive-color="#9E9E9E" |
> |
||||||
title-active-color="#484848" |
|
||||||
line-width="{{17}}" |
|
||||||
line-height="{{4}}" |
|
||||||
color="#E04775" |
|
||||||
tab-class="tab" |
|
||||||
tab-active-class="tab-active" |
|
||||||
> |
|
||||||
<van-tab title="全部"></van-tab> |
|
||||||
<van-tab title="线上活动"></van-tab> |
|
||||||
<van-tab title="线下活动"></van-tab> |
|
||||||
</van-tabs> |
|
||||||
</view> |
|
||||||
<view class="allin-list"> |
<view class="allin-list"> |
||||||
<block wx:for="{{list}}" wx:key="Id"> |
<view class="list-item" wx:for="{{list}}" bind:tap="handleDetail" data-id="{{item.Id}}" wx:key="index"> |
||||||
<view class="on-list-item" wx:if="{{item.Type==1}}" bind:tap="handleDetail" data-id="{{item.Id}}"> |
<view class="photo-wrap"> |
||||||
<view class="photo-wrap"> |
<image class="photo" mode="aspectFill" src="{{item.IntroductionUrl}}"></image> |
||||||
<image class="photo" mode="aspectFill" src="{{item.IntroductionUrl}}"></image> |
<view class="sign" wx:if="{{item.SignUpStatus==2}}">已报名</view> |
||||||
<view class="status {{item.Status != 2 && 'bad'}}"> |
|
||||||
<view class="dot"></view> |
|
||||||
{{liveStatus[item.Status]}} |
|
||||||
</view> |
|
||||||
<!-- <view class="date"> --> |
|
||||||
<!-- <view class="d-title"> --> |
|
||||||
<!-- <van-icon class="icon" name="play" /> --> |
|
||||||
<!-- 会议时间 --> |
|
||||||
<!-- </view> --> |
|
||||||
<!-- <block wx:if="{{item.isDay}}"> --> |
|
||||||
<!-- <view class="ymd">{{item.BeginDate}}</view> --> |
|
||||||
<!-- <view class="hm">{{item.BeginHm}}-{{item.EndHm}}</view> --> |
|
||||||
<!-- </block> --> |
|
||||||
<!-- <block wx:else> --> |
|
||||||
<!-- <view class="ymd">{{item.BeginTime}}</view> --> |
|
||||||
<!-- <view class="hm">{{item.EndTime}}</view> --> |
|
||||||
<!-- </block> --> |
|
||||||
<!-- </view> --> |
|
||||||
</view> |
|
||||||
<view class="inner"> |
|
||||||
<view class="tag" wx:if="{{active==0}}">线上活动</view> |
|
||||||
<view class="title">{{item.Name}}</view> |
|
||||||
<view class="content"> |
|
||||||
<view class="labels"> |
|
||||||
<view class="label" wx:for="{{item.Labels}}" wx:for-item="label" wx:key="index">{{label}}</view> |
|
||||||
</view> |
|
||||||
<view class="people" wx:if="{{~~item.SignUpPeopleNum}}">{{item.SignUpPeopleNum}}人已报名</view> |
|
||||||
</view> |
|
||||||
<view class="footer"> |
|
||||||
<view class="site">{{item.MasterName}} {{item.MasterTitle}}</view> |
|
||||||
<view class="btn active" wx:if="{{ item.Status==99}}">已取消</view> |
|
||||||
<view class="btn active" wx:elif="{{ item.Status==100}}">已删除</view> |
|
||||||
<view class="btn" wx:elif="{{item.Status==3 && item.ReplayVideoUrl}}">看回放</view> |
|
||||||
<view class="btn active" wx:elif="{{item.Status==3 && !item.ReplayVideoUrl}}">回放生成中</view> |
|
||||||
<block wx:elif="{{item.IsSignUp==1 && zdUserInfo.AuditStatus}}"> |
|
||||||
<block wx:if="{{zdUserInfo.AuditStatus == 1 || zdUserInfo.AuditStatus == 3 || zdUserInfo.AuditStatus == 4}}"> |
|
||||||
<view class="btn active" wx:if="{{item.SignUpStatus==1}}">审核中</view> |
|
||||||
<block wx:elif="{{item.SignUpStatus==2}}"> |
|
||||||
<view class="btn" wx:if="{{item.BeginTimeValue * 1 < dateValue * 1}}">参会</view> |
|
||||||
<view class="btn active" wx:else>已报名</view> |
|
||||||
</block> |
|
||||||
<block wx:elif="{{item.SignUpStatus==3}}"> |
|
||||||
<view |
|
||||||
class="btn active" |
|
||||||
wx:if="{{item.IsLimitUser==1 && item.SignUpPeopleNum * 1 >= item.LimitPeopleNum * 1}}" |
|
||||||
> |
|
||||||
已满额 |
|
||||||
</view> |
|
||||||
</block> |
|
||||||
</block> |
|
||||||
</block> |
|
||||||
<block wx:else> |
|
||||||
<view |
|
||||||
class="btn active" |
|
||||||
wx:if="{{item.IsLimitUser==1 && item.SignUpPeopleNum * 1 >= item.LimitPeopleNum * 1}}" |
|
||||||
> |
|
||||||
已满额 |
|
||||||
</view> |
|
||||||
<view class="btn active" wx:elif="{{item.SignUpDeadlineValue * 1 < dateValue * 1}}">报名已截止</view> |
|
||||||
<view class="btn" wx:else>报名</view> |
|
||||||
</block> |
|
||||||
</view> |
|
||||||
</view> |
|
||||||
</view> |
</view> |
||||||
<view class="off-list-item" wx:elif="{{item.Type==2}}" bind:tap="handleDetail" data-id="{{item.Id}}"> |
<view class="inner"> |
||||||
<view class="photo-wrap"> |
<view class="title">{{item.Name}}</view> |
||||||
<image class="photo" mode="aspectFill" src="{{item.IntroductionUrl}}"></image> |
<view class="labels" wx:if="{{item.doctorName}}"> |
||||||
<view class="status {{item.Status != 2 && 'bad'}}"> |
{{item.doctorName}} |
||||||
<view class="dot"></view> |
<text class="line" wx:if="{{item.MasterHosipital}}"></text> |
||||||
{{activityStatus[item.Status]}} |
{{item.MasterHosipital}} |
||||||
</view> |
|
||||||
<!-- <view class="date"> --> |
|
||||||
<!-- <view class="d-title"> --> |
|
||||||
<!-- <van-icon name="play" /> --> |
|
||||||
<!-- 活动时间 --> |
|
||||||
<!-- </view> --> |
|
||||||
<!-- <block wx:if="{{item.isDay}}"> --> |
|
||||||
<!-- <view class="ymd">{{item.BeginDate}}</view> --> |
|
||||||
<!-- <view class="hm">{{item.BeginHm}}-{{item.EndHm}}</view> --> |
|
||||||
<!-- </block> --> |
|
||||||
<!-- <block wx:else> --> |
|
||||||
<!-- <view class="ymd">{{item.BeginTime}}</view> --> |
|
||||||
<!-- <view class="hm">{{item.EndTime}}</view> --> |
|
||||||
<!-- </block> --> |
|
||||||
<!-- </view> --> |
|
||||||
</view> |
</view> |
||||||
<view class="inner"> |
<view class="footer"> |
||||||
<view class="tag" wx:if="{{active==0}}">线下活动</view> |
<view class="people" wx:if="{{item.SignUpPeopleNum * 1}}">{{item.SignUpPeopleNum}}人已报名</view> |
||||||
<view class="title">{{item.Name}}</view> |
<view class="btn active" wx:if="{{ item.Status==99}}">已取消</view> |
||||||
<view class="content"> |
<view class="btn active" wx:elif="{{ item.Status==100}}">已删除</view> |
||||||
<view class="labels"> |
<view class="btn" wx:elif="{{item.Status==3 && item.ReplayVideoUrl}}">看回放</view> |
||||||
<view class="label" wx:for="{{item.Labels}}" wx:for-item="label" wx:key="index">{{label}}</view> |
<view class="btn active" wx:elif="{{item.Status==3 && !item.ReplayVideoUrl}}">回放生成中</view> |
||||||
</view> |
<block wx:elif="{{item.IsSignUp==1 && zdUserInfo.AuditStatus}}"> |
||||||
<view class="people" wx:if="{{~~item.SignUpPeopleNum}}">{{item.SignUpPeopleNum}}人已报名</view> |
<block |
||||||
</view> |
wx:if="{{zdUserInfo.AuditStatus == 1 || zdUserInfo.AuditStatus == 3 || zdUserInfo.AuditStatus == 4}}" |
||||||
<view class="footer"> |
> |
||||||
<view class="site"> |
<view class="btn active" wx:if="{{item.SignUpStatus==1}}">审核中</view> |
||||||
<view>{{item.Location}}</view> |
<block wx:elif="{{item.SignUpStatus==2}}"> |
||||||
<view>{{item.Distance}}</view> |
<view class="btn" wx:if="{{item.BeginTimeValue * 1 < dateValue * 1}}">参会</view> |
||||||
</view> |
<view class="btn active" wx:else>已报名</view> |
||||||
<view class="btn active" wx:if="{{ item.Status==3}}">已结束</view> |
</block> |
||||||
<view class="btn active" wx:elif="{{ item.Status==99}}">已取消</view> |
<block wx:elif="{{item.SignUpStatus==3}}"> |
||||||
<view class="btn active" wx:elif="{{ item.Status==100}}">已删除</view> |
<view |
||||||
<block wx:elif="{{item.IsSignUp==1 && zdUserInfo.AuditStatus}}"> |
class="btn active" |
||||||
<block wx:if="{{zdUserInfo.AuditStatus == 1 || zdUserInfo.AuditStatus == 3 || zdUserInfo.AuditStatus == 4}}"> |
wx:if="{{item.IsLimitUser==1 && item.SignUpPeopleNum * 1 >= item.LimitPeopleNum * 1}}" |
||||||
<view class="btn active" wx:if="{{item.SignUpStatus==1}}">审核中</view> |
> |
||||||
<block wx:elif="{{item.SignUpStatus==2}}"> |
已满额 |
||||||
<view class="btn" wx:if="{{item.BeginTimeValue * 1 < dateValue * 1}}">已报名</view> |
</view> |
||||||
<view class="btn active" wx:else>已报名</view> |
|
||||||
</block> |
|
||||||
<block wx:elif="{{item.SignUpStatus==3}}"> |
|
||||||
<view |
|
||||||
class="btn active" |
|
||||||
wx:if="{{item.IsLimitUser==1 && item.SignUpPeopleNum * 1 >= item.LimitPeopleNum * 1}}" |
|
||||||
> |
|
||||||
已满额 |
|
||||||
</view> |
|
||||||
</block> |
|
||||||
</block> |
</block> |
||||||
</block> |
</block> |
||||||
<block wx:else> |
</block> |
||||||
<view |
<block wx:else> |
||||||
class="btn active" |
<view |
||||||
wx:if="{{item.IsLimitUser==1 && item.SignUpPeopleNum * 1 >= item.LimitPeopleNum * 1}}" |
class="btn active" |
||||||
> |
wx:if="{{item.IsLimitUser==1 && item.SignUpPeopleNum * 1 >= item.LimitPeopleNum * 1}}" |
||||||
已满额 |
> |
||||||
</view> |
已满额 |
||||||
<view class="btn active" wx:elif="{{item.SignUpDeadlineValue * 1 < dateValue * 1}}">报名已截止</view> |
</view> |
||||||
<view class="btn" wx:else>报名</view> |
<view class="btn active" wx:elif="{{item.SignUpDeadlineValue * 1 < dateValue * 1}}">报名已截止</view> |
||||||
</block> |
<view class="btn" wx:else>报名</view> |
||||||
</view> |
</block> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
</block> |
</view> |
||||||
</view> |
</view> |
||||||
<pagination pagination="{{pagination}}"></pagination> |
<pagination pagination="{{pagination}}"></pagination> |
||||||
</view> |
</view> |
||||||
|
|||||||
@ -1,9 +1,10 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "我的收藏", |
"navigationBarTitleText": "我的收藏", |
||||||
"navigationStyle": "default", |
"navigationStyle": "custom", |
||||||
"usingComponents": { |
"usingComponents": { |
||||||
"van-tab": "@vant/weapp/tab/index", |
"van-tab": "@vant/weapp/tab/index", |
||||||
"van-tabs": "@vant/weapp/tabs/index", |
"van-tabs": "@vant/weapp/tabs/index", |
||||||
|
"navbar": "/components/navbar/index", |
||||||
"van-icon": "@vant/weapp/icon/index" |
"van-icon": "@vant/weapp/icon/index" |
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||
@ -1,10 +1,11 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "", |
"navigationBarTitleText": "", |
||||||
"navigationStyle": "default", |
"navigationStyle": "custom", |
||||||
"usingComponents": { |
"usingComponents": { |
||||||
"van-tab": "@vant/weapp/tab/index", |
"van-tab": "@vant/weapp/tab/index", |
||||||
"van-tabs": "@vant/weapp/tabs/index", |
"van-tabs": "@vant/weapp/tabs/index", |
||||||
"van-icon": "@vant/weapp/icon/index", |
"van-icon": "@vant/weapp/icon/index", |
||||||
"patient-tab-bar": "/components/patient-tab-bar/index" |
"patient-tab-bar": "/components/patient-tab-bar/index", |
||||||
|
"navbar": "/components/navbar/index" |
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||