diff --git a/src/app.ts b/src/app.ts index 669f66f..298dd78 100644 --- a/src/app.ts +++ b/src/app.ts @@ -63,6 +63,11 @@ App({ obeyMuteSwitch: false, mixWithOther: false, }) + wx.login({ + success: (res) => { + console.log('code',res) + }, + }) }, onShow(options) { if (options.query.scene) { diff --git a/src/images/icon1.png b/src/images/icon1.png new file mode 100644 index 0000000..a97a53c Binary files /dev/null and b/src/images/icon1.png differ diff --git a/src/images/icon2.png b/src/images/icon2.png new file mode 100644 index 0000000..6d5d14c Binary files /dev/null and b/src/images/icon2.png differ diff --git a/src/images/icon3.png b/src/images/icon3.png new file mode 100644 index 0000000..64a64c9 Binary files /dev/null and b/src/images/icon3.png differ diff --git a/src/images/index-apply-label.png b/src/images/index-apply-label.png new file mode 100644 index 0000000..3b2c845 Binary files /dev/null and b/src/images/index-apply-label.png differ diff --git a/src/images/index-title2.png b/src/images/index-title2.png new file mode 100644 index 0000000..56093f2 Binary files /dev/null and b/src/images/index-title2.png differ diff --git a/src/images/index-title3.png b/src/images/index-title3.png new file mode 100644 index 0000000..1495d4f Binary files /dev/null and b/src/images/index-title3.png differ diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss index c4f19de..949564b 100644 --- a/src/pages/index/index.scss +++ b/src/pages/index/index.scss @@ -3,6 +3,8 @@ height: 92rpx; } .page { + padding-bottom: 200rpx; + background-color: #f7f7fa; .banner { width: 100vw; height: 556rpx; @@ -14,5 +16,151 @@ } } .page-containr { + position: relative; + z-index: 1; + margin-top: -26rpx; + padding: 42rpx 40rpx; + background: linear-gradient(346deg, #f7f7fa 0%, #ffe5dc 100%); + border-radius: 32rpx 32rpx 0 0; + .apply { + position: relative; + .a-img { + width: 670rpx; + height: 136rpx; + } + .a-label { + position: absolute; + top: -8rpx; + right: 68rpx; + width: 115rpx; + height: 60rpx; + } + } + .module1 { + margin-top: 54rpx; + .module-header { + display: flex; + align-items: center; + justify-content: space-between; + .title { + height: 40rpx; + } + .more { + font-size: 28rpx; + color: rgba(1, 1, 5, 0.4); + display: flex; + align-items: center; + .icon { + margin-left: 2rpx; + width: 32rpx; + height: 32rpx; + } + } + } + .module-list { + margin: 24rpx -40rpx 0; + padding-left: 40rpx; + display: flex; + gap: 24rpx; + flex-wrap: nowrap; + overflow-x: auto; + overflow-y: hidden; + &::-webkit-scrollbar { + display: none; + } + .module-item { + border-radius: 24rpx; + background: #ffffff; + .item-img { + border-radius: 24rpx 24rpx 0 0; + width: 424rpx; + height: 220rpx; + } + .item-title { + padding: 20rpx; + font-size: 28rpx; + color: #010105; + line-height: 32rpx; + } + } + } + } + + .module2 { + margin-top: 54rpx; + .module-header { + display: flex; + align-items: center; + justify-content: space-between; + .title { + height: 40rpx; + } + .more { + font-size: 28rpx; + color: rgba(1, 1, 5, 0.4); + display: flex; + align-items: center; + .icon { + margin-left: 2rpx; + width: 32rpx; + height: 32rpx; + } + } + } + .module-list { + margin: 24rpx -40rpx 0; + padding-left: 40rpx; + display: flex; + gap: 24rpx; + flex-wrap: nowrap; + overflow-x: auto; + overflow-y: hidden; + &::-webkit-scrollbar { + display: none; + } + .module-item { + padding: 24rpx 32rpx; + width: 424rpx; + box-sizing: border-box; + border-radius: 24rpx; + border: 2rpx solid #ffffff; + background: linear-gradient(12deg, #ffffff 0%, #ffe8e6 100%); + .item-header { + padding-bottom: 24rpx; + display: flex; + align-items: center; + gap: 12rpx; + border-bottom: 1px dashed #f0f0f6; + .icon { + flex-shrink: 0; + width: 36rpx; + height: 36rpx; + } + .title { + font-weight: bold; + font-size: 28rpx; + color: #010105; + } + } + .content { + padding: 16rpx 0; + font-size: 28rpx; + color: #010105; + line-height: 48rpx; + } + .item-footer { + display: flex; + justify-content: flex-end; + margin-top: 24rpx; + font-size: 24rpx; + color: #f23a2f; + .icon { + width: 24rpx; + height: 28rpx; + } + } + } + } + } } } diff --git a/src/pages/index/index.wxml b/src/pages/index/index.wxml index 38ffd4c..8220835 100644 --- a/src/pages/index/index.wxml +++ b/src/pages/index/index.wxml @@ -10,8 +10,65 @@ + + + + + + + 查看更多 + + + + + + + 基因治疗 + + + + 基因检测 + + + + 基因组学 + + + + + + + + 查看更多 + + + + + + + + 基因疗法适合多大年龄? + + 目前的治疗方案适合 18 岁以上成人,暂不支持儿童及... + + + + 123 + + + + - - + +