@ -1,8 +1,6 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "登录", |
"navigationBarTitleText": "切换医生", |
||||||
"navigationStyle": "custom", |
|
||||||
"usingComponents": { |
"usingComponents": { |
||||||
"van-divider": "@vant/weapp/divider/index", |
"van-divider": "@vant/weapp/divider/index" |
||||||
"navBar": "/components/navBar/navBar" |
|
||||||
} |
} |
||||||
} |
} |
||||||
|
|||||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 468 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 827 B |
|
After Width: | Height: | Size: 877 B |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 156 KiB |
@ -1,4 +1,4 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "问卷", |
"navigationBarTitleText": "健康档案", |
||||||
"usingComponents": {} |
"usingComponents": {} |
||||||
} |
} |
||||||
|
|||||||
@ -1,4 +1,7 @@ |
|||||||
{ |
{ |
||||||
"navigationBarTitleText": "报名", |
"navigationStyle": "custom", |
||||||
"usingComponents": {} |
"usingComponents": { |
||||||
|
"navBar": "/components/navBar/navBar", |
||||||
|
"van-icon": "@vant/weapp/icon/index" |
||||||
|
} |
||||||
} |
} |
||||||
|
|||||||
@ -1,77 +1,50 @@ |
|||||||
const app = getApp<IAppOption>(); |
const app = getApp<IAppOption>() |
||||||
|
|
||||||
Page({ |
Page({ |
||||||
data: { |
data: { |
||||||
id: "", |
currentVisitDate: '', |
||||||
detail: {} as any, |
nextVisitDate: '', |
||||||
codeUrl: "", |
|
||||||
}, |
}, |
||||||
onShow() { |
onShow() { |
||||||
app.waitLogin().then(() => { |
app.waitLogin({}).then(() => { |
||||||
// const options = wx.getEnterOptionsSync();
|
app.getUserInfo(this, true, (userInfo) => { |
||||||
const scene = app.globalData.scene; |
|
||||||
if (scene.id) { |
|
||||||
this.setData({ |
this.setData({ |
||||||
id: scene.id, |
currentVisitDate: userInfo.CurrentVisitDate || '', |
||||||
}); |
nextVisitDate: userInfo.NextVisitDate || '', |
||||||
} |
}) |
||||||
app.permissionVerification(3, 1, `/pages/liveDetail/index?id=${this.data.id}`, this.data.id).then(() => { |
}) |
||||||
this.getCode(); |
}) |
||||||
this.signIn(); |
|
||||||
this.getDetail(); |
|
||||||
}); |
|
||||||
}); |
|
||||||
}, |
}, |
||||||
signIn() { |
handleCurrentVisitDateChange(e: any) { |
||||||
wx.ajax({ |
this.setData({ |
||||||
method: "POST", |
currentVisitDate: e.detail.value, |
||||||
url: "?r=igg4/activity/sign-in", |
}) |
||||||
data: { |
|
||||||
Id: this.data.id, |
|
||||||
}, |
|
||||||
showMsg: false, |
|
||||||
}).then(() => { |
|
||||||
this.getDetail(); |
|
||||||
}); |
|
||||||
}, |
}, |
||||||
getDetail() { |
handleNextVisitDateChange(e: any) { |
||||||
wx.ajax({ |
this.setData({ |
||||||
method: "GET", |
nextVisitDate: e.detail.value, |
||||||
url: "?r=igg4/activity/sign-in-detail", |
}) |
||||||
data: { |
|
||||||
Id: this.data.id, |
|
||||||
}, |
|
||||||
}).then((res) => { |
|
||||||
this.setData({ |
|
||||||
detail: res, |
|
||||||
}); |
|
||||||
}); |
|
||||||
}, |
}, |
||||||
getCode() { |
handleSubmit() { |
||||||
const { registChannel } = app.globalData; |
const { currentVisitDate, nextVisitDate } = this.data |
||||||
|
if (!currentVisitDate && !nextVisitDate) { |
||||||
|
wx.showToast({ icon: 'none', title: '请选择就诊时间' }) |
||||||
|
return |
||||||
|
} |
||||||
wx.ajax({ |
wx.ajax({ |
||||||
method: "GET", |
method: 'POST', |
||||||
url: "?r=igg4/common/get-channel-wx-code", |
url: '?r=igg4/account/update-visit-date', |
||||||
data: { |
data: { |
||||||
Id: this.data.id, |
CurrentVisitDate: currentVisitDate, |
||||||
ChannelType: registChannel, |
NextVisitDate: nextVisitDate, |
||||||
}, |
}, |
||||||
}).then((res) => { |
loading: true, |
||||||
this.setData({ |
}).then(() => { |
||||||
codeUrl: res, |
wx.showToast({ icon: 'none', title: '保存成功' }) |
||||||
}); |
app.getUserInfo(this, true) |
||||||
}); |
}) |
||||||
}, |
|
||||||
handleHome() { |
|
||||||
wx.reLaunch({ |
|
||||||
url: "/pages/index/index", |
|
||||||
}); |
|
||||||
}, |
}, |
||||||
onShareAppMessage() { |
handleBack() { |
||||||
return { |
wx.navigateBack() |
||||||
title: this.detail.ActivityName, |
|
||||||
path: `/pages/liveDetail/index?id=${this.data.detail.ActivityId}`, |
|
||||||
imageUrl: `${getApp().globalData.imageUrl}1/1.png`, |
|
||||||
}; |
|
||||||
}, |
}, |
||||||
}); |
}) |
||||||
|
|||||||
@ -1,34 +1,29 @@ |
|||||||
<view class="page" id="{{theme === 'DRUG' && 'drug-page'}}"> |
<view |
||||||
<image |
class="page" |
||||||
class="badge" |
id="{{theme === 'DRUG' && 'drug-page'}}" |
||||||
wx:if="{{detail.IsSignIn==1}}" |
style="background: url('{{imageUrl}}bg29.png?t={{Timestamp}}') no-repeat top center/100%;padding-top: {{pageTop+110}}px;" |
||||||
mode="aspectFit" |
> |
||||||
src="{{imageUrl}}1/live-result-success.png?t={{Timestamp}}" |
<navBar background="{{background}}" title="" back bind:back="handleBack" fixed></navBar> |
||||||
></image> |
<view class="page-container"> |
||||||
<image class="badge" wx:else mode="aspectFit" src="{{imageUrl}}1/live-result-warn.png?t={{Timestamp}}"></image> |
<image class="badge" src="{{imageUrl}}icon84.png?t={{Timestamp}}"></image> |
||||||
<block wx:if="{{detail.IsSignIn==1}}"> |
<view class="form"> |
||||||
<view class="status">签到成功</view> |
<view class="form-title">我的本次就诊时间</view> |
||||||
<view class="tip">欢迎您参与此次活动</view> |
<picker mode="date" value="{{currentVisitDate}}" bind:change="handleCurrentVisitDateChange"> |
||||||
</block> |
<view class="date"> |
||||||
<view wx:else class="nostatus">您未报名此活动</view> |
<image class="icon" src="{{imageUrl}}icon85.png?t={{Timestamp}}"></image> |
||||||
<view class="container"> |
<view class="content {{currentVisitDate && 'active'}}">{{currentVisitDate || '请选择'}}</view> |
||||||
<view class="c-content"> |
<van-icon name="arrow-down" /> |
||||||
<view class="c-title"> |
</view> |
||||||
<view>{{detail.ActivityName}}</view> |
</picker> |
||||||
</view> |
<view class="form-title">我的下次就诊时间</view> |
||||||
<view class="date"> |
<picker mode="date" value="{{nextVisitDate}}" bind:change="handleNextVisitDateChange"> |
||||||
<image class="icon" src="{{imageUrl}}1/date.png?t={{Timestamp}}"></image> |
<view class="date no-margin"> |
||||||
{{detail.BeginTime}} |
<image class="icon" src="{{imageUrl}}icon85.png?t={{Timestamp}}"></image> |
||||||
</view> |
<view class="content {{nextVisitDate && 'active'}}">{{nextVisitDate || '请选择'}}</view> |
||||||
<view class="site" wx:if="{{detail.Location}}">地点:{{detail.Location}}</view> |
<van-icon name="arrow-down" /> |
||||||
<block wx:if="{{detail.IsFollow==0}}"> |
</view> |
||||||
<image class="code" src="{{codeUrl}}" show-menu-by-longpress></image> |
</picker> |
||||||
<view class="c-tip">关注"愈见昕生"公众号获取活动通知</view> |
|
||||||
</block> |
|
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<view class="footer"> |
<view class="submit" bind:tap="handleSubmit">提交</view> |
||||||
<button open-type="share" class="btn" wx:if="{{detail.IsFollow==1}}">邀约好友参与</button> |
|
||||||
<view class="btn" bind:tap="handleHome">去首页</view> |
|
||||||
</view> |
|
||||||
</view> |
</view> |
||||||
|
|||||||