Parcourir la source

编辑用户基本信息

sys il y a 2 ans
Parent
commit
1d6d9b207b
4 fichiers modifiés avec 50 ajouts et 6 suppressions
  1. 7 2
      pages.json
  2. 25 0
      pages/my/editInformation.vue
  3. 10 3
      pages/my/index.vue
  4. 8 1
      pages/my/model/my-nav.vue

+ 7 - 2
pages.json

@@ -41,7 +41,6 @@
     ]
   },
   "pages": [
-
     {
       "path": "pages/login/index",
       "style": {
@@ -73,7 +72,6 @@
         "enablePullDownRefresh": false,
         "app-plus": {
           "bounce": "none"
-
         }
       }
     },
@@ -174,6 +172,13 @@
         "navigationBarTextStyle": "white",
         "enablePullDownRefresh": false
       }
+    },
+    {
+      "path": "pages/my/editInformation",
+      "style": {
+        "navigationBarTitleText": "",
+        "enablePullDownRefresh": false
+      }
     }
   ],
   "globalStyle": {

+ 25 - 0
pages/my/editInformation.vue

@@ -0,0 +1,25 @@
+<template>
+  <view class="information-box">
+
+  </view>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+
+    }
+  },
+  methods: {
+
+  }
+}
+</script>
+
+<style scoped lang="scss">
+.information-box{
+
+}
+
+</style>

+ 10 - 3
pages/my/index.vue

@@ -6,11 +6,11 @@
         <view class="my-item">
           <view class="my-content">
             <view class="content-basic">
-              <view class="basic-left">
+              <view class="basic-left" @click="goToUrl(1)">
                 <image class="basic-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
               </view>
               <view class="basic-right">
-                <view class="basic-name">
+                <view @click="goToUrl(1)" class="basic-name">
                   <view class="name-text sys-color-black-0 sys-weight-600">出江湖救急</view>
                   <view class="name-vip">
                     <image class="name-img" src="/static/img/my/svip.png" mode="heightFix"></image>
@@ -19,7 +19,7 @@
                     <image class="name-img" src="/static/img/my/open.png" mode="heightFix"></image>
                   </view>
                 </view>
-                <view class="basic-signature sys-color-gray-9">
+                <view @click="goToUrl(1)" class="basic-signature sys-color-gray-9">
                   都能拿到你
                 </view>
                 <view class="basic-wallet">
@@ -133,6 +133,13 @@ export default {
       if(this.tagNum!==tagNum){
         this.tagNum=tagNum
       }
+    },
+    goToUrl(type){
+      if(type===1){
+        uni.navigateTo({
+          'url':'./editInformation'
+        })
+      }
     }
   }
 }

+ 8 - 1
pages/my/model/my-nav.vue

@@ -6,7 +6,7 @@
       </view>
 
       <view class="header-right">
-        <image class="right-img" src="/static/img/my/edit.png" mode="aspectFill"></image>
+        <image @click="goToUrl(1)" class="right-img" src="/static/img/my/edit.png" mode="aspectFill"></image>
         <image class="right-img" src="/static/img/my/set.png" mode="aspectFill"></image>
       </view>
     </view>
@@ -48,6 +48,13 @@
           this.tabNum=tabNum
           this.$emit('setTabNum',tabNum)
         }
+      },
+      goToUrl(type){
+        if(type===1){
+          uni.navigateTo({
+            'url':'./editInformation'
+          })
+        }
       }
     },
     created() {