Rorschach 6 gadi atpakaļ
vecāks
revīzija
c9767b6bc5

+ 1 - 1
component/hot/hot.wxml

@@ -12,7 +12,7 @@
             <block wx:for="{{hotData.myCourse}}" wx:key="{{index}}">
                 <view class="book-item" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToBook">
                     <image class="book-img" src="{{item.iconImg}}"></image>
-                    <view class="book-title">{{item.subTitle}}</view>
+                    <view class="book-title">{{item.title}}</view>
                 </view>
             </block>
         </view>

+ 1 - 1
component/my/my.js

@@ -25,7 +25,7 @@ export const myInit = (that) => {
   that.toMyEdit = (e) => {
       let title = e.currentTarget.dataset.title;
       wx.navigateTo({
-        url: `../user/myEdit/myEdit?title=${title}`
+        url: `../user/myEdit/myEdit?title=修改资料`
       });
     },
     that.toMyConcern = e => {

+ 2 - 1
component/my/my.wxml

@@ -12,6 +12,7 @@
           <view class='avatar-msg'>
             <view class='avatar-nickname'>微信昵称:{{ myData.user.user.wechatName }}</view>
             <view class='avatar-nickname'>宝贝昵称:{{ myData.user.user.wechatName }}的宝贝</view>
+            <image class="edit-img" bindtap="toMyEdit" src="../../static/image/edit_new.png" />
             <view class='mine-category'>
               <view class='amount-text'>{{ myData.user.playAmount || 0 }} 播放</view>
               <view class='amount-text'>{{ myData.user.likeAmount || 0 }} 赞</view>
@@ -67,7 +68,7 @@
           <view class="btn-title">我的{{myData.isIOS? '助力' : '拼团'}}</view>
         </view>
         <view class="btn">
-          <image src="../../static/image/message.png" />
+          <image src="../../static/image/message.png" bindtap="goToMessage" />
           <view class="btn-title">消息通知</view>
         </view>
       </view>

+ 11 - 16
component/my/my.wxss

@@ -97,7 +97,7 @@ page {
   border: 2rpx solid #fff;
 
 }
-  
+
 .avatar-msg {
   /* margin-left: 40rpx; */
   /* margin-top: 50rpx; */
@@ -153,22 +153,15 @@ image {
 } */
 
 .edit-img {
-  width: 42rpx;
-  height: 34rpx;
+  width: 24rpx;
+  height: 30rpx;
   display: block;
-  margin-left: 20rpx;
-  margin-right: 10rpx;
-
+  position: absolute;
+  right: 43rpx;
+  bottom: 73rpx;
 
 }
 
-.edit-text {
-  width: 150rpx;
-  /* height: 32rpx; */
-  color: #FFFFFF;
-  font-size: 32rpx;
-  /* line-height:46rpx; */
-}
 
 .only-flower {
   width: 720rpx;
@@ -320,7 +313,7 @@ image {
   box-sizing: border-box;
 }
 
-.my-reading-section-placeholder{
+.my-reading-section-placeholder {
   width: 100%;
   font-size: 24rpx;
   color: #393939;
@@ -339,18 +332,19 @@ image {
   align-items: center;
 }
 
-.title-right image{
+.title-right image {
   width: 15rpx;
   height: 27rpx;
   margin-left: 10rpx;
 }
+
 .set-msg-temp {
   position: absolute;
   width: 100%;
   height: 248rpx;
 }
 
-.footer-section{
+.footer-section {
   width: 100%;
   height: 150rpx;
   font-size: 24rpx;
@@ -358,6 +352,7 @@ image {
   text-align: center;
   padding-top: 70rpx;
 }
+
 .placerholder {
   height: 41rpx;
   background: rgba(228, 255, 242, .8);

+ 1 - 1
pages/user/myEdit/myEdit.js

@@ -45,7 +45,7 @@ Page({
     }
     // const uid = wx.getStorageSync('uid');
     const data = {
-      wechatName: e.detail.value.nickname || '',
+      nickName: e.detail.value.nickname || '',
       mobile: '',
       gender: e.detail.value.radioGroup1,
       schoolProvince: '',

BIN
static/image/edit_new.png