From 4eb53058cadbc1b4f0824d1d273ee83d679ec7a6 Mon Sep 17 00:00:00 2001 From: zhangjing Date: Fri, 1 Sep 2023 17:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/recruit/referto/referto.js | 1 - pages/recruit/signWrite/signWrite.js | 11 +++++-- pages/recruit/signWrite/signWrite.wxml | 40 ++++++++++++++------------ pages/recruit/signWrite/signWrite.wxss | 18 +++++++++--- project.private.config.json | 7 +++++ 5 files changed, 51 insertions(+), 26 deletions(-) diff --git a/pages/recruit/referto/referto.js b/pages/recruit/referto/referto.js index 0962771..be48b41 100644 --- a/pages/recruit/referto/referto.js +++ b/pages/recruit/referto/referto.js @@ -199,7 +199,6 @@ Page({ experience_type_id : this.data.typesArr[this.data.typesIndex].experience_type_id, invite : getApp().globalData.inviteText } - console.log(data) this.setData({ disabled: true }) diff --git a/pages/recruit/signWrite/signWrite.js b/pages/recruit/signWrite/signWrite.js index 6fd1e53..f4fe840 100644 --- a/pages/recruit/signWrite/signWrite.js +++ b/pages/recruit/signWrite/signWrite.js @@ -11,9 +11,10 @@ Page({ data: { albumArr : [], //商品轮播图 experienceId : '', //活动id - signDayNumber: '', //累计打卡天数-携带 etciData : '', //打卡心得 + etciCursor : 0, //字数统计 bidData : '', //产品建议 + bidCursor : 0, refertoStatus: false,//打卡成功弹出 signDayNumber: '', //累计打卡天数-最新 signWaterNumber: '',//累计打卡水滴 @@ -108,8 +109,10 @@ Page({ * 心得 */ etcinput(e) { + let { value, cursor } = e.detail this.setData({ - etciData: e.detail.value + etciData: value, + etciCursor: cursor }) }, @@ -117,8 +120,10 @@ Page({ * 产品建议 */ bidinput(e) { + let { value, cursor } = e.detail this.setData({ - bidData: e.detail.value + bidData: value, + bidCursor: cursor }) }, diff --git a/pages/recruit/signWrite/signWrite.wxml b/pages/recruit/signWrite/signWrite.wxml index 5c8f8f1..fa8cbbd 100644 --- a/pages/recruit/signWrite/signWrite.wxml +++ b/pages/recruit/signWrite/signWrite.wxml @@ -5,28 +5,32 @@ - - #使用心得##第{{signDayNumber}}天# - - - - - - 删除 + #使用心得# #第{{signDayNumber}}天# + + + {{etciCursor}}/200 + + + + 删除 + - - - - - 上传图片 + + + + 上传图片 + - - #产品评价# - - + + #产品评价# + + + {{bidCursor}}/200 + + @@ -64,4 +68,4 @@ 我知道了 - + \ No newline at end of file diff --git a/pages/recruit/signWrite/signWrite.wxss b/pages/recruit/signWrite/signWrite.wxss index a15ae86..d103a60 100644 --- a/pages/recruit/signWrite/signWrite.wxss +++ b/pages/recruit/signWrite/signWrite.wxss @@ -108,6 +108,15 @@ button[disabled]{ box-sizing: border-box; } +.frame-block{ + background: rgba(255, 255, 255, .2); + border-radius: 20rpx; + padding: 30rpx; + color: white; +} + +.frame-block-cursor{ font-size: 28rpx; text-align: right; color: #cde0ff; border-bottom: solid 1rpx white; padding-bottom: 30rpx; } + /* 图片上传 */ .album-list{ @@ -118,8 +127,8 @@ button[disabled]{ .album-list-li{ position: relative; - width: 30%; - padding-top: 30%; + width: calc(33.33% - 20rpx); + padding-top: calc(33.33% - 20rpx); box-sizing: border-box; margin: 10rpx; } @@ -168,10 +177,11 @@ button[disabled]{ } .frame-write-text { - color: #cde0ff; + color: white; line-height: 44rpx; max-height: 120rpx; - font-size: 26rpx; + font-size: 28rpx; + width: 100%; } /* 弹出 */ diff --git a/project.private.config.json b/project.private.config.json index f34c6a1..cb69ad1 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -105,6 +105,13 @@ "query": "", "launchMode": "default", "scene": 1011 + }, + { + "name": "体验官", + "pathName": "pages/recruit/signWrite/signWrite", + "query": "", + "launchMode": "default", + "scene": null } ] }