packageBookService/pages/bookServices/detail/index.wxss
@@ -345,6 +345,7 @@ .movable-area { width: 100%; min-height: calc(100vh - 900rpx); height: 100%; } @@ -353,6 +354,7 @@ height: 184rpx; top: 400rpx; left: 520rpx; z-index: 99; } .applyBox { packageDomain/pages/sampleBookList/index.js
@@ -533,6 +533,7 @@ secondCode: '', path: path, 'stairList.value': e.detail.value, 'secondList.value': "" }); this.getBookList(false); this.getSecondList(path); packageDomain/pages/teacherCertification/index.wxml
@@ -4,7 +4,7 @@ <view class="page-body" wx:if="{{!skeletonLoding}}"> <view class="baseInfoBox"> <view class="from-item"> <view class="label"> 当前状态: </view> <view class="label"> <text class="empty"></text>当前状态: </view> <view class="stateBox"> <text class="wait" wx:if="{{teacherInfo.state == 'WaitAudit'}}">等待审核</text> <text class="yes" wx:if="{{teacherInfo.state == 'Normal'}}">已认证</text> @@ -14,19 +14,19 @@ </view> </view> <view class="from-item"> <view class="label"> 学校: </view> <view class="label"> <text class="icon">*</text>学校: </view> <view class="item-content"> <t-input placeholder="请输入学校" borderless value="{{teacherInfo.schoolName}}" disabled="{{!editState}}" bindchange="onSchoolNameInput" /> </view> </view> <view class="from-item"> <view class="label"> 真实姓名: </view> <view class="label"> <text class="icon">*</text>真实姓名: </view> <view class="item-content"> <t-input placeholder="请输入真实姓名" borderless value="{{teacherInfo.fullName}}" disabled="{{!editState}}" bindchange="onFullNameInput" /> </view> </view> <view class="from-item"> <view class="label"> 职称: </view> <view class="label"> <text class="empty"></text>职称: </view> <view class="item-content state" wx:if="{{editState}}"> <t-cell arrow note="{{teachText}}" bind:click="onTeachPicker" /> <t-picker visible="{{teachVisible}}" value="{{teacherInfo.positionalTitle}}" title="选择职称" cancelBtn="取消" confirmBtn="确认" bindchange="onPickerChange" bindcancel="onPickerCancel"> @@ -38,31 +38,31 @@ </view> </view> <view class="from-item"> <view class="label"> 任教课程: </view> <view class="label"> <text class="icon">*</text>任教课程: </view> <view class="item-content"> <t-input placeholder="请输入任教课程" borderless value="{{teacherInfo.courseName}}" bindchange="onCourseNameInput" disabled="{{!editState}}" /> </view> </view> <view class="from-item"> <view class="label"> 手机号: </view> <view class="label"> <text class="icon">*</text>手机号: </view> <view class="item-content"> <t-input placeholder="输入手机号码" borderless value="{{teacherInfo.phone}}" type="number" tips="{{phoneError ? '手机号输入不正确' : ''}}" bindchange="onPhoneInput" disabled="{{!editState}}" /> </view> </view> <view class="from-item"> <view class="label"> 座机: </view> <view class="label"> <text class="empty"></text>座机: </view> <view class="item-content"> <t-input placeholder="输入座机号" borderless value="{{teacherInfo.telphone}}" tips="{{telphoneError ? '座机号输入不正确' : ''}}" bindchange="onTelphoneInput" disabled="{{!editState}}" /> </view> </view> <view class="from-item"> <view class="label"> 邮箱: </view> <view class="label"> <text class="icon">*</text>邮箱: </view> <view class="item-content"> <t-input placeholder="输入邮箱" borderless value="{{teacherInfo.email}}" tips="{{emailError ? '邮箱输入不正确' : ''}}" bindchange="onEmailInput" disabled="{{!editState}}" /> </view> </view> <view class="from-item"> <view class="label"> 详细地址: </view> <view class="label"> <text class="empty"></text>详细地址: </view> <view class="item-content"> <t-input placeholder="请输入详细地址" borderless value="{{teacherInfo.detailedAddress}}" bindchange="onAddressInput" disabled="{{!editState}}" /> </view> @@ -70,7 +70,7 @@ </view> <view class="fileInfoBox"> <view class="from-item"> <view class="label"> 在职教师工作证: </view> <view class="label"> <text class="icon">*</text>在职教师工作证: </view> <view class="imageBox"> <view class="weui-uploader"> <view class='pics' wx:for="{{imgPics}}" wx:for-item="item" wx:key="*this"> packageDomain/pages/teacherCertification/index.wxss
@@ -20,7 +20,7 @@ padding: 5px; background: rgba(255, 108, 0, 0.1); color: #ff6c00; text-align: center; /* text-align: center; */ margin: 0 auto 20rpx auto; } @@ -53,10 +53,24 @@ line-height: 68rpx; } .t-input__tips, .from-item .label .icon { color: #f56c6c !important; margin-right: 5rpx; } .empty { padding: 0 10rpx; } .t-input, .t-cell { border: 2rpx solid #D9D9D9 !important; padding: 10rpx !important; } .from-item .item-content { width: 75%; border: 2rpx solid #D9D9D9; padding: 10rpx; } .from-item .stateBox { @@ -69,16 +83,8 @@ color: #ff6d00; } .from-item .t-input { padding: 0 !important; } .t-input__placeholder { font-size: 28rpx !important } .t-cell { padding: 0 !important; } .t-cell::after { @@ -126,7 +132,7 @@ } .fileInfoBox .from-item .label { width: 240rpx; width: 246rpx; height: 68rpx; line-height: 68rpx; } packagePersonal/pages/feedBack/index.wxss
@@ -31,7 +31,6 @@ .content { height: calc(100vh - env(safe-area-inset-bottom) - 96rpx); box-sizing: border-box; background: #fff; } .t-tabs__track { @@ -102,7 +101,7 @@ .listBox .icon { width: 150rpx; height: 200rpx; height: 210rpx; box-shadow: 0px 0px 20rpx 2px rgba(0, 0, 0, 0.08); } @@ -130,6 +129,11 @@ padding-bottom: 10rpx; } .item-title { font-size: 28rpx; color: #333; } .name { font-size: 26rpx; color: #9D9D9D; @@ -147,21 +151,17 @@ .backBox .item-title { font-size: 28rpx; font-weight: bold; line-height: 80rpx; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 48rpx; padding-bottom: 10rpx; color: #333; } .backCon { background: #FAFAFA; border-radius: 5rpx; padding: 10rpx 20rpx; font-size: 28rpx; font-size: 26rpx; line-height: 60rpx; } @@ -193,7 +193,7 @@ } .empyt { background: #fff; /* background: #fff; */ padding: 200rpx 0; } packagePersonal/pages/userSetting/index.js
@@ -10,7 +10,7 @@ data: { userInfo: {}, defaultAvatarUrl: 'https://cdn-we-retail.ym.tencent.com/miniapp/usercenter/icon-user-center-avatar@2x.png', userInfoBox: false, editType: '', userInfoForm: { icon: '', @@ -24,6 +24,8 @@ emailError: false, imgCode: '', countDown: 0, userInfoBox: false, height: '', //屏幕高度 }, /** @@ -46,7 +48,15 @@ * 生命周期函数--监听页面显示 */ onShow() { var that = this; // 动态获取屏幕高度 wx.getSystemInfo({ success: (result) => { that.setData({ height: result.windowHeight }); }, }) }, // 获取登录用户身份 getUserInfo() { @@ -107,7 +117,7 @@ editType: info, "userInfoForm.captcha": "", "userInfoForm.code": "", "userInfoForm.nickName": '' "userInfoForm.nickName": this.data.userInfo.nickName, }); } this.getImgCapcha() packagePersonal/pages/userSetting/index.json
@@ -4,6 +4,7 @@ "t-icon": "tdesign-miniprogram/icon/icon", "t-avatar": "tdesign-miniprogram/avatar/avatar", "t-popup": "tdesign-miniprogram/popup/popup", "t-input": "tdesign-miniprogram/input/input" "t-input": "tdesign-miniprogram/input/input", "t-image": "tdesign-miniprogram/image/image" } } packagePersonal/pages/userSetting/index.wxml
@@ -2,7 +2,7 @@ <view class="itemList"> <view class="label">头像</view> <view class="contentImg"> <t-avatar image="{{userInfo.icon}}" class="user-center-card__header__avatar" /> <t-image src="{{userInfo.icon}}" mode="aspectFill" /> </view> <view class="iconEdit" data-info="{{'icon'}}" bindtap="editIconInfo"> <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" /> @@ -23,7 +23,7 @@ <view class="content" data-info="{{'email'}}" bindtap="editUserInfo">{{userInfo.Email}}</view> <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" data-info="{{'email'}}" bindtap="editUserInfo" /> </view> <t-popup visible="{{userInfoBox}}" bind:visible-change="onVisibleChange" placement="center"> <!-- <t-popup visible="{{userInfoBox}}" bind:visible-change="onVisibleChange" placement="center"> <view class="block"> <view class="body"> <view class="from-item" wx:if="{{editType == 'nickName'}}"> @@ -90,5 +90,77 @@ </view> <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="onCloseProtocol" /> </view> </t-popup> </t-popup> --> </view> <view class="popup-box" wx:if="{{userInfoBox}}" bindtap="onCloseProtocol"></view> <view class="info-center" style="top:{{height*0.3}}px;" wx:if="{{userInfoBox}}"> <view> <view class="row-info"> <view class="body"> <view class="from-item" wx:if="{{editType == 'nickName'}}"> <view class="label"> 昵称: </view> <view class="item-content"> <view class="inputBox1"> <t-input placeholder="输入昵称" borderless value="{{userInfoForm.nickName}}" bindchange="onNameInput" /> </view> </view> </view> <view class="from-item" wx:if="{{editType == 'phone'}}"> <view class="label"> 手机号: </view> <view class="item-content"> <view class="inputBox1"> <t-input placeholder="输入手机号码" borderless value="{{userInfoForm.phone}}" type="number" tips="{{phoneError ? '手机号输入不正确' : ''}}" bindchange="onPhoneInput" /> </view> </view> </view> <view class="from-item" wx:if="{{editType == 'email'}}"> <view class=" label"> 邮箱: </view> <view class="item-content"> <view class="inputBox1"> <t-input placeholder="输入邮箱" borderless value="{{userInfoForm.email}}" tips="{{emailError ? '邮箱输入不正确' : ''}}" bindchange="onEmailInput" /> </view> </view> </view> <view class="from-item" wx:if="{{editType !== 'nickName'}}"> <view class="label"> 图形验证码: </view> <view class="item-content"> <view class="inputBox"> <t-input placeholder="输入图形验证码" borderless value="{{userInfoForm.captcha}}" type="number" bindchange="onCaptchaInput" /> </view> <view class="code"> <image src="{{imgCode}}" class="imgCode hover" bindtap="getImgCapcha" /> </view> </view> </view> <view class="from-item" wx:if="{{editType == 'phone'}}"> <view class="label"> 短信验证码: </view> <view class="item-content"> <view class="inputBox"> <t-input placeholder="输入短信验证码" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" /> </view> <view class="code"> <button class="btn" bindtap="getPhoneCode">{{countDown > 0 ? '验证码(' + countDown + 's)' : '获取短信验证码'}}</button> </view> </view> </view> <view class="from-item" wx:if="{{editType == 'email'}}"> <view class="label"> 邮箱验证码: </view> <view class="item-content"> <view class="inputBox"> <t-input placeholder="输入邮箱验证码" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" /> </view> <view class="code"> <button class="btn" bindtap="getEmailCode">获取邮箱验证码</button> </view> </view> </view> </view> </view> <view class="row-btn"> <view class="left-btn" bindtap="onCloseProtocol">取消</view> <view class="right-btn" bindtap="confirmInfo">确认</view> </view> </view> </view> packagePersonal/pages/userSetting/index.wxss
@@ -15,22 +15,24 @@ font-weight: bold; width: 180rpx; font-size: 32rpx; color: #333333; } .contentImg { height: 120rpx; width: 120rpx; flex: 1; text-align: right; margin-right: 20rpx; /* flex: 1; */ margin-right: 15rpx; margin-left: auto; } .user-center-card__header__avatar { width: 120rpx; .t-image { height: 120rpx; border-radius: 48rpx; overflow: hidden; width: 120rpx; border-radius: 50% !important; overflow: hidden !important; } .iconEdit { padding: 40rpx 0; @@ -49,23 +51,23 @@ border-top-right-radius: 16rpx; } .block .body { .row-info .body { padding: 40rpx; } .block .body .from-item { .row-info .body .from-item { margin-bottom: 20rpx; align-items: center; } .block .body .from-item .label { .row-info .body .from-item .label { min-width: 100rpx; height: 60rpx; line-height: 60rpx; font-size: 32rpx; } .block .body .from-item .item-content { .row-info .body .from-item .item-content { flex: 1; display: flex; } @@ -87,11 +89,11 @@ } .block .body { min-height: 280rpx; .row-info .body { min-height: 200rpx; } .block .body .inputBox { .row-info .body .inputBox { width: 300rpx; border: 2rpx solid #D9D9D9; } @@ -141,4 +143,52 @@ left: 50%; margin-left: -32rpx; bottom: calc(-1 * (48rpx + 64rpx)); } .popup-box { position: absolute; z-index: 99; top: 0; background-color: rgba(0, 0, 0, 0.5); width: 100%; height: 100%; } .info-center { position: fixed; z-index: 999; background-color: white; align-items: center; justify-content: center; border-radius: 10rpx; width: 80%; margin-left: 10%; margin-right: 10%; } .row-btn { width: 100%; display: flex; flex-direction: row; align-items: center; border-top: 1rpx solid #f1f1f1; } .row-btn view { flex: 1; text-align: center; margin: 20rpx 10%; padding: 12rpx 0; font-size: 32rpx; border-radius: 10rpx; } .left-btn { background-color: #f1f1f1; color: #5C5C5C; } .right-btn { background-color: #ff6c00; color: white; } pages/home/home.js
@@ -41,6 +41,10 @@ loading: true }, onShow() { this.setData({ searchVal: "", }); console.log(this.data.searchVal) this.loadHomePage(); this.getBannerList() pages/home/home.wxss
@@ -6,12 +6,11 @@ top: 0; left: 0; height: 80rpx; line-height: 80rpx; line-height: 88rpx; z-index: 3; text-align: center; padding-top: 110rpx; color: #fff; font-size: 36rpx; font-size: 34rpx; } .white { pages/personalCenter/feedBackSubmit/index.js
@@ -110,15 +110,6 @@ }) return } if (this.data.phoneError) { this.data.lock = true; wx.showToast({ title: "联系方式格式不正确", icon: 'none', duration: 1000 }) return } if (this.data.content.replace(/^\s*|\s*$/g, "") == '') { this.data.lock = true; wx.showToast({ @@ -128,6 +119,10 @@ }) return } if (this.data.phoneError) { this.data.lock = true; return } let submitData = { content: this.data.content.replace(/^\s*|\s*$/g, ""), pages/personalCenter/feedBackSubmit/index.json
@@ -1,6 +1,7 @@ { "navigationBarTitleText": "意见反馈", "usingComponents": { "t-input": "tdesign-miniprogram/input/input" "t-input": "tdesign-miniprogram/input/input", "t-textarea": "tdesign-miniprogram/textarea/textarea" } } pages/personalCenter/feedBackSubmit/index.wxml
@@ -1,21 +1,22 @@ <view class="container"> <view class="page-body"> <view class="from-item"> <view class="label"> 联系人: </view> <view class="label"><text class="icon">*</text> 联系人: </view> <view class="item-content"> <t-input placeholder="请输入联系人" borderless value="{{userName}}" bindchange="bindTnputBlur" /> </view> </view> <view class="from-item"> <view class="label"> 联系方式: </view> <view class="label"> <text class="icon">*</text>联系方式: </view> <view class="item-content"> <t-input placeholder="输入联系方式" borderless value="{{mannder}}" type="number" tips="{{phoneError ? '手机号输入不正确' : ''}}" bindchange="onPhoneInput" /> </view> </view> <view class="from-item"> <view class="label"> 反馈内容: </view> <view class="label"> <text class="icon">*</text>反馈内容: </view> <view class="item-content"> <textarea name="content" rows="4" cols="52" placeholder="请输入反馈内容" auto-focus="true" adjust-position="true" value="{{content}}" bindinput="bindTextAreaBlur"></textarea> <t-textarea placeholder="请输入反馈内容" value="{{content}}" disableDefaultPadding="{{true}}" autosize="{{true}}" bind:line-change="onLineChange" maxlength="300" indicator bindchange="bindTextAreaBlur" /> </view> </view> <view class="btn-area"> pages/personalCenter/feedBackSubmit/index.wxss
@@ -19,17 +19,30 @@ line-height: 68rpx; } .from-item .item-content { border: 2rpx solid #D9D9D9; padding: 10rpx; .t-input__content, .t-textarea { border: 2rpx solid #D9D9D9 !important; padding: 10rpx !important; } .t-textarea { min-height: 300rpx; } .t-input { padding: 0 !important; } .t-input__placeholder { font-size: 28rpx !important .t-input__tips, .from-item .label .icon { color: #f56c6c !important; margin-right: 5rpx; } .t-input__placeholder, .t-textarea__placeholder { font-size: 28rpx !important; } .submit { pages/personalCenter/index.wxss
@@ -8,10 +8,10 @@ top: 0; left: 0; height: 80rpx; line-height: 80rpx; line-height: 88rpx; z-index: 3; text-align: center; font-size: 36rpx; font-size: 34rpx; } .white {