@ -1,35 +1,28 @@
@@ -1,35 +1,28 @@
|
||||
{ |
||||
"$schema": "https://json.schemastore.org/prettierrc.json", |
||||
"$schema": "http://json.schemastore.org/prettierrc", |
||||
"printWidth": 120, |
||||
"tabWidth": 2, |
||||
"useTabs": false, |
||||
"semi": true, |
||||
"semi": false, |
||||
"singleQuote": true, |
||||
"bracketSpacing": true, |
||||
"trailingComma": "all", |
||||
"arrowParens": "always", |
||||
"endOfLine": "auto", |
||||
"endOfLine": "lf", |
||||
"htmlWhitespaceSensitivity": "ignore", |
||||
"singleAttributePerLine": false, |
||||
"jsxSingleQuote": true, |
||||
"overrides": [ |
||||
{ |
||||
"files": "*.wxml", |
||||
"options": { |
||||
"parser": "html" |
||||
} |
||||
"options": { "parser": "html" } |
||||
}, |
||||
{ |
||||
"files": "*.wxss", |
||||
"options": { |
||||
"parser": "css" |
||||
} |
||||
"options": { "parser": "css" } |
||||
}, |
||||
{ |
||||
"files": "*.wxs", |
||||
"options": { |
||||
"parser": "babel" |
||||
} |
||||
"options": { "parser": "babel" } |
||||
} |
||||
] |
||||
} |
||||
|
||||
@ -1,19 +1,15 @@
@@ -1,19 +1,15 @@
|
||||
/* custom-tab-bar/index.wxss */ |
||||
|
||||
|
||||
.tab-item { |
||||
.icon { |
||||
width: 50rpx; |
||||
height: 50rpx; |
||||
width: 48rpx; |
||||
height: 48rpx; |
||||
} |
||||
.name { |
||||
font-size: 24rpx; |
||||
color: #CCCCCC; |
||||
font-size: 20rpx; |
||||
color: rgba(105, 104, 110, 1); |
||||
&.active { |
||||
color: #CF5375; |
||||
} |
||||
&.drug-active{ |
||||
color: #25D9C8; |
||||
color: rgba(33, 29, 46, 1); |
||||
} |
||||
} |
||||
} |
||||
|
||||
|
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,9 +1,10 @@
@@ -1,9 +1,10 @@
|
||||
{ |
||||
"navigationBarTitleText": "互动", |
||||
"navigationStyle": "default", |
||||
"navigationStyle": "custom", |
||||
"usingComponents": { |
||||
"van-icon": "@vant/weapp/icon/index", |
||||
"van-loading": "@vant/weapp/loading/index", |
||||
"referralFrom": "/components/referralFrom/index" |
||||
"referralFrom": "/components/referralFrom/index", |
||||
"navbar": "/components/navbar/index" |
||||
} |
||||
} |
||||
|
||||
@ -1,11 +1,12 @@
@@ -1,11 +1,12 @@
|
||||
{ |
||||
"navigationBarTitleText": "", |
||||
"navigationStyle": "default", |
||||
"navigationStyle": "custom", |
||||
"navigationBarBackgroundColor": "#fafafa", |
||||
"usingComponents": { |
||||
"van-tab": "@vant/weapp/tab/index", |
||||
"van-tabs": "@vant/weapp/tabs/index", |
||||
"van-icon": "@vant/weapp/icon/index", |
||||
"navbar": "/components/navbar/index", |
||||
"patient-tab-bar": "/components/patient-tab-bar/index" |
||||
} |
||||
} |
||||
|
||||
@ -1,10 +1,12 @@
@@ -1,10 +1,12 @@
|
||||
{ |
||||
"navigationBarTitleText": "活动详情", |
||||
"navigationBarBackgroundColor": "#EEF0F3", |
||||
"navigationStyle": "default", |
||||
"navigationStyle": "custom", |
||||
"usingComponents": { |
||||
"mp-html": "mp-html", |
||||
"van-icon": "@vant/weapp/icon/index", |
||||
"customPoster": "/components/customPoster/index", |
||||
"navbar": "/components/navbar/index", |
||||
"van-popup": "@vant/weapp/popup/index" |
||||
} |
||||
} |
||||
|
||||
@ -1,5 +1,7 @@
@@ -1,5 +1,7 @@
|
||||
{ |
||||
"navigationBarTitleText": "", |
||||
"navigationStyle": "default", |
||||
"usingComponents": {} |
||||
"navigationStyle": "custom", |
||||
"usingComponents": { |
||||
"navbar": "/components/navbar/index" |
||||
} |
||||
} |
||||
|
||||
@ -1,100 +1,84 @@
@@ -1,100 +1,84 @@
|
||||
const app = getApp<IAppOption>(); |
||||
import dayjs from "dayjs"; |
||||
let live_time: null | number = null; |
||||
const app = getApp<IAppOption>() |
||||
import dayjs from 'dayjs' |
||||
let live_time: null | number = null |
||||
|
||||
Page({ |
||||
data: { |
||||
id: "", |
||||
id: '', |
||||
detail: {} as any, |
||||
liveDetail: {} as any, |
||||
zdUserInfo: {}, |
||||
codeUrl: "", |
||||
dateValue: "" as string | number, |
||||
codeUrl: '', |
||||
dateValue: '' as string | number, |
||||
rewardScore: 0 as number | undefined, |
||||
}, |
||||
onLoad(options) { |
||||
this.setData({ |
||||
id: options.id, |
||||
rewardScore: options.rewardScore, |
||||
}); |
||||
}) |
||||
if (live_time) { |
||||
clearInterval(live_time); |
||||
clearInterval(live_time) |
||||
} |
||||
this.setData({ |
||||
dateValue: dayjs().valueOf(), |
||||
}); |
||||
}) |
||||
live_time = setInterval(() => { |
||||
this.setData({ |
||||
dateValue: dayjs().valueOf(), |
||||
}); |
||||
}, 1000); |
||||
app.zdWaitLogin().then((_res) => { |
||||
this.getLiveDetail(); |
||||
this.getDetail(); |
||||
this.getCode(); |
||||
app.getZdUserInfo(this, true); |
||||
}); |
||||
}) |
||||
}, 1000) |
||||
app.waitLogin({ type: [1] }).then((_res) => { |
||||
this.getLiveDetail() |
||||
this.getDetail() |
||||
app.getZdUserInfo(this, true) |
||||
}) |
||||
}, |
||||
getDetail() { |
||||
wx.ajax({ |
||||
method: "GET", |
||||
url: "?r=zd/activity/sign-up-detail", |
||||
method: 'GET', |
||||
url: '?r=zd/activity/sign-up-detail', |
||||
data: { |
||||
Id: this.data.id, |
||||
}, |
||||
}).then((res) => { |
||||
res.BeginTime = dayjs(res.BeginTime).format("YYYY-MM-DD HH:mm"); |
||||
res.BeginTimeValue = dayjs(res.BeginTime).valueOf(); |
||||
res.BeginTime = dayjs(res.BeginTime).format('YYYY-MM-DD HH:mm') |
||||
res.BeginTimeValue = dayjs(res.BeginTime).valueOf() |
||||
this.setData({ |
||||
detail: res, |
||||
}); |
||||
}); |
||||
}) |
||||
}) |
||||
}, |
||||
getLiveDetail() { |
||||
wx.ajax({ |
||||
method: "GET", |
||||
url: "?r=zd/activity/detail", |
||||
method: 'GET', |
||||
url: '?r=zd/activity/detail', |
||||
data: { |
||||
Id: this.data.id, |
||||
}, |
||||
}).then((res) => { |
||||
this.setData({ |
||||
liveDetail: res, |
||||
}); |
||||
}); |
||||
}) |
||||
}) |
||||
}, |
||||
handleLive() { |
||||
const { TencentMeetingCode } = this.data.detail; |
||||
const { TencentMeetingCode } = this.data.detail |
||||
wx.navigateToMiniProgram({ |
||||
appId: "wx33fd6cdc62520063", // 要跳转的微信小程序appid
|
||||
appId: 'wx33fd6cdc62520063', // 要跳转的微信小程序appid
|
||||
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() { |
||||
wx.reLaunch({ |
||||
url: "/patient/pages/index/index", |
||||
}); |
||||
url: '/patient/pages/index/index', |
||||
}) |
||||
}, |
||||
onShareAppMessage() { |
||||
return { |
||||
title: this.data.detail.ActivityName, |
||||
path: `/patient/pages/liveDetail/index?id=${this.data.detail.ActivityId}`, |
||||
imageUrl: `${this.data.liveDetail.IntroductionUrl}`, |
||||
}; |
||||
} |
||||
}, |
||||
}); |
||||
}) |
||||
|
||||
@ -1,61 +1,23 @@
@@ -1,61 +1,23 @@
|
||||
<view class="page"> |
||||
<block wx:if="{{detail.AuditStatus==1}}"> |
||||
<image class="badge" mode="aspectFit" src="{{imageUrl}}za-images/1/live-result-reject.png?t={{Timestamp}}"></image> |
||||
<view class="status green">资料审核中</view> |
||||
<view class="tip">资料审核通过后可参与活动</view> |
||||
</block> |
||||
<block wx:elif="{{detail.SignUpStatus==2 && (detail.AuditStatus==3 || detail.AuditStatus==4)}}"> |
||||
<!-- <block> --> |
||||
<image class="badge" mode="aspectFit" src="{{imageUrl}}za-images/1/live-result-success.png?t={{Timestamp}}"></image> |
||||
<navbar fixed title="" custom-style="background:{{background}}"> |
||||
<van-icon name="arrow-left" slot="left" color="background=='#FFFFFF'?'#000':'#fff'" bind:tap="handleBack" /> |
||||
</navbar> |
||||
<!-- padding-top:{{pageTop+22}}px; --> |
||||
<view class="page" style="background: url('/images/bg10.png') no-repeat top center/100% 610rpx"> |
||||
<view class="bg"></view> |
||||
<view class="page-container" style="top:{{pageTop+30}}px;"> |
||||
<image class="badge" mode="aspectFit" src="/images/icon43.png"></image> |
||||
<view class="status">报名成功</view> |
||||
<view class="tip">您已成功报名大咖秀</view> |
||||
<view class="price" wx:if="{{rewardScore>0}}"> |
||||
+{{rewardScore}} |
||||
<view class="sub">能量</view> |
||||
</view> |
||||
</block> |
||||
<view class="tip">欢迎您参与此次活动</view> |
||||
<view class="container"> |
||||
<view class="c-content"> |
||||
<!-- <video --> |
||||
<!-- class="video" --> |
||||
<!-- show-mute-btn --> |
||||
<!-- autoplay --> |
||||
<!-- src="https://rs-os-lyh-dt-publicread-video-auto1080tr-prod.liangyihui.net/boss-upload/Mabd3TtaDlquV01ODi6qwA/YsT9kzIy5QKlZTYY.mp4" --> |
||||
<!-- controls --> |
||||
<!-- ></video> --> |
||||
<image class="banner" src="{{liveDetail.IntroductionUrl}}"></image> |
||||
<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 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 class="date">直播时间: {{detail.BeginTime}}</view> |
||||
<view wx:if="{{detail.BeginTimeValue * 1 < dateValue * 1 && detail.Type==1}}" class="btn" bind:tap="handleLive"> |
||||
立即进入直播间 |
||||
</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"> |
||||
进入会议间 |
||||
<button open-type="share" class="btn btn2">分享活动</button> |
||||
</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> |
||||
|
||||
@ -1,9 +1,10 @@
@@ -1,9 +1,10 @@
|
||||
{ |
||||
"navigationBarTitleText": "我报名的活动", |
||||
"navigationStyle": "default", |
||||
"navigationStyle": "custom", |
||||
"usingComponents": { |
||||
"van-tab": "@vant/weapp/tab/index", |
||||
"van-tabs": "@vant/weapp/tabs/index", |
||||
"navbar": "/components/navbar/index", |
||||
"van-icon": "@vant/weapp/icon/index" |
||||
} |
||||
} |
||||
|
||||
@ -1,9 +1,10 @@
@@ -1,9 +1,10 @@
|
||||
{ |
||||
"navigationBarTitleText": "我的收藏", |
||||
"navigationStyle": "default", |
||||
"navigationStyle": "custom", |
||||
"usingComponents": { |
||||
"van-tab": "@vant/weapp/tab/index", |
||||
"van-tabs": "@vant/weapp/tabs/index", |
||||
"navbar": "/components/navbar/index", |
||||
"van-icon": "@vant/weapp/icon/index" |
||||
} |
||||
} |
||||
|
||||
@ -1,10 +1,11 @@
@@ -1,10 +1,11 @@
|
||||
{ |
||||
"navigationBarTitleText": "", |
||||
"navigationStyle": "default", |
||||
"navigationStyle": "custom", |
||||
"usingComponents": { |
||||
"van-tab": "@vant/weapp/tab/index", |
||||
"van-tabs": "@vant/weapp/tabs/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" |
||||
} |
||||
} |
||||
|
||||