From 638225ecc28da27d65e33a38b260f3889cf268c4 Mon Sep 17 00:00:00 2001 From: Lee-1203 <342694918@qq.com> Date: Thu, 20 Jan 2022 15:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E0120?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 3 +- pages/examinee/expert/ask/ask.acss | 91 ++++++++++++++++++++++++ pages/examinee/expert/ask/ask.axml | 41 +++++++++++ pages/examinee/expert/ask/ask.js | 51 +++++++++++++ pages/examinee/expert/ask/ask.json | 3 + pages/examinee/expert/detail/detail.axml | 2 +- pages/examinee/expert/expert.axml | 12 ++-- 7 files changed, 195 insertions(+), 8 deletions(-) create mode 100644 pages/examinee/expert/ask/ask.acss create mode 100644 pages/examinee/expert/ask/ask.axml create mode 100644 pages/examinee/expert/ask/ask.js create mode 100644 pages/examinee/expert/ask/ask.json diff --git a/app.json b/app.json index 6c1cbc1..117c4f2 100644 --- a/app.json +++ b/app.json @@ -14,6 +14,7 @@ "pages/examinee/information/report/report", "pages/examinee/information/revise/revise", "pages/counselor/position/position", - "pages/index/index" + "pages/index/index", + "pages/examinee/expert/ask/ask" ] } \ No newline at end of file diff --git a/pages/examinee/expert/ask/ask.acss b/pages/examinee/expert/ask/ask.acss new file mode 100644 index 0000000..5c8f46e --- /dev/null +++ b/pages/examinee/expert/ask/ask.acss @@ -0,0 +1,91 @@ +.ask-body{ + padding-bottom: 0; +} +.ask-content{ + width: 100%; +} +.ask{ + color: #333333; + margin-top: 2rpx; + background-color: #FFFFFF; +} +.ask-explain{ + display: flex; + justify-content: space-between; + background-color: #FFFFFF; + padding: 20rpx 44rpx; + overflow: hidden; +} +.ask-explain .explain-img{ + width: 204rpx; + height: 232rpx; + border-radius: 4rpx; + overflow: hidden; +} +.ask-explain>view image{ + width: 204rpx; + height: 232rpx; +} +.ask-explain>text{ + width: calc(100% - 234rpx); + font-size: 36rpx; + line-height: 54rpx; + text-align: justify; +} +.ask-items-all{ + display: flex; + width: 98%; + margin: 0 auto; + background-color: #FFFFFF; + border: 2rpx solid #ccc; +} +.ask-items-all .ask-item{ + width: 50%; + height: 92rpx; + font-size: 32rpx; + line-height: 92rpx; + text-align: center; + cursor: pointer; +} +.ask-items-all .ask-item:first-child{ + border-right: 2rpx solid #ccc; +} +.ask-list-all{ + background-color: #FFFFFF; + padding: 120rpx 44rpx; +} +.ask-list text{ + display: block; + font-size: 32rpx; + text-align: center; + line-height: 48rpx; +} +.ask-list .ask-ewm{ + margin: 30rpx auto 40rpx; + width: 400rpx; + height: 400rpx; + overflow: hidden; +} +.ask-list .ask-ewm image{ + width: 400rpx; + height: 400rpx; +} +.ask-list .ask-link{ + margin: 30rpx auto 40rpx; + width: 600rpx; + min-height: 300rpx; + height: auto; + padding: 10rpx; + border: 2rpx solid #ccc; +} +.ask-btns{ + display: block; + width: 240rpx; + height: 70rpx; + line-height: 70rpx; + font-size: 28rpx; + border-radius: 12rpx; + background-color: #3898EC; + border: 0; + margin: 0 auto; +} diff --git a/pages/examinee/expert/ask/ask.axml b/pages/examinee/expert/ask/ask.axml new file mode 100644 index 0000000..77330a8 --- /dev/null +++ b/pages/examinee/expert/ask/ask.axml @@ -0,0 +1,41 @@ + + + + + + + + + 请使用以下两种方式加入钉钉专属服务群,我在您的专属服务群里回答您的问题! + + + + + 专属公益服务群二维码 + + + 专属公益服务群链接 + + + + + 下载二维码并用钉钉扫一扫进入专属群 + + + + + + + + 专属群DingTalk链接 + (复制此链接,在浏览器地址栏粘贴后打开钉钉,自动进入专属群) + + + https://m.baidu.com + + + + + + + \ No newline at end of file diff --git a/pages/examinee/expert/ask/ask.js b/pages/examinee/expert/ask/ask.js new file mode 100644 index 0000000..380a058 --- /dev/null +++ b/pages/examinee/expert/ask/ask.js @@ -0,0 +1,51 @@ +Page({ + data: { + isShow: true + }, + onLoad() { + dd.setNavigationBar({ + title: '向TA提问', + backgroundColor: '#FFFFFF', + }); + }, + isOpen(){ + this.setData({ + isShow: true + }) + }, + isClose(){ + this.setData({ + isShow: false + }) + }, + downImg(){ + dd.downloadFile({ + url: 'http://img.alicdn.com/tfs/TB1x669SXXXXXbdaFXXXXXXXXXX-520-280.jpg', + success({ filePath }) { + dd.previewImage({ + urls: [filePath], + }); + }, + fail(res) { + dd.alert({ + content: res.errorMessage || res.error, + }); + }, + }); + }, + copyLink(){ + dd.setClipboard({ + text: "www.baidu.com", //复制内容 + success(res){ + dd.getClipboard({ + success: (res) => { + dd.showToast({ + type:"success", + content: '复制成功' + }) + }, + }); + } + }) + } +}); diff --git a/pages/examinee/expert/ask/ask.json b/pages/examinee/expert/ask/ask.json new file mode 100644 index 0000000..a97367d --- /dev/null +++ b/pages/examinee/expert/ask/ask.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} diff --git a/pages/examinee/expert/detail/detail.axml b/pages/examinee/expert/detail/detail.axml index d534a45..9daa968 100644 --- a/pages/examinee/expert/detail/detail.axml +++ b/pages/examinee/expert/detail/detail.axml @@ -77,6 +77,6 @@ - 向TA提问 + 向TA提问 \ No newline at end of file diff --git a/pages/examinee/expert/expert.axml b/pages/examinee/expert/expert.axml index 88d5b86..acb95bf 100644 --- a/pages/examinee/expert/expert.axml +++ b/pages/examinee/expert/expert.axml @@ -5,7 +5,7 @@ 您已领取公益咨询机会! - 马上提问 + 马上提问 @@ -36,7 +36,7 @@ 一所好的大学,是年轻人的家,是他们度过人生最好时光的地方! - 向TA提问 + 向TA提问 查看详情 @@ -71,7 +71,7 @@ 一所好的大学,是年轻人的家,是他们度过人生最好时光的地方! - 向TA提问 + 向TA提问 查看详情 @@ -103,7 +103,7 @@ 一所好的大学,是年轻人的家,是他们度过人生最好时光的地方! - 向TA提问 + 向TA提问 查看详情 @@ -135,7 +135,7 @@ 一所好的大学,是年轻人的家,是他们度过人生最好时光的地方! - 向TA提问 + 向TA提问 查看详情 @@ -167,7 +167,7 @@ 一所好的大学,是年轻人的家,是他们度过人生最好时光的地方! - 向TA提问 + 向TA提问 查看详情