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