Browse Source

代码提交

zhaoxiaohai 4 years ago
parent
commit
452c649642

+ 3 - 0
components/My_ChangeUser/index.js

@@ -1,5 +1,8 @@
 // components/My_ChangeUser/index.js
 Component({
+    options: {
+        addGlobalClass: true,
+    },
     /**
      * 组件的属性列表
      */

+ 7 - 5
components/My_ChangeUser/index.wxml

@@ -2,11 +2,13 @@
     <view class="input_text_box {{userIndex==index?'optfor':''}}" data-index="{{index}}" bindtap="userChange" wx:for="{{userList}}">
         <image wx:if="{{item.attinfos[0].fobsurl}}" class="input_text_img" src="{{item.attinfos[0].fobsurl}}" mode="aspectFill"></image>
         <image wx:else class="input_text_img" src="/static/userImage.png" mode="aspectFill"></image>
-        <view class="user_name u-line-1">
-            {{item.fname}}
-        </view>
-        <view class="user_identity u-line-1">
-            {{item.frole}}
+        <view class="text_box">
+            <view class="user_name u-line-1">
+                {{item.fname}}
+            </view>
+            <view class="user_identity u-line-1">
+                {{item.frole}}
+            </view>
         </view>
     </view>
 </scroll-view>

+ 15 - 2
components/My_ChangeUser/index.wxss

@@ -1,7 +1,7 @@
 @import "/css/form.wxss";
 
 /* 滑动区域 */
-scroll-view{
+scroll-view {
     height: 330rpx;
 }
 
@@ -21,18 +21,31 @@ scroll-view{
     margin-left: -6rpx;
 }
 
+.text_box {
+    flex: 1;
+    display: flex;
+    align-items: center;
+    height: 100%;
+}
+
 /* 用户名 */
 .user_name {
-    flex: 1;
+    width: 230rpx;
     font-size: 28rpx;
+    height: 40rpx;
+    line-height: 40rpx;
     color: #333333;
     margin-left: 14rpx;
 }
 
 /* 职位 */
 .user_identity {
+    width: 100rpx;
+    height: 40rpx;
+    line-height: 40rpx;
     font-size: 28rpx;
     color: #000000;
+    text-align: right;
 }
 
 /* 选中后样式 */

+ 1 - 1
components/My_SearchInputBox/index.wxss

@@ -28,7 +28,7 @@ input {
     height: 60rpx;
     line-height: 60rpx;
     text-align: center;
-    background: #4BBECF;
+    background: #FFB600;
     border-radius: 10rpx;
     font-size: 28rpx;
     font-weight: 500;

+ 1 - 1
pages/businessPartner/index.wxml

@@ -1,5 +1,5 @@
 <view class="SearchInputBox">
-    <My_SearchInputBox inputColor="#D8D8D8" inputRadius="30" fisadministrator="{{true}}" butText="新合作" marTop="0" route="consociation" bind:searchQuery="searchQuery"></My_SearchInputBox>
+    <My_SearchInputBox inputColor="#E8E3E1" inputRadius="30" fisadministrator="{{true}}" butText="新合作" marTop="0" route="consociation" bind:searchQuery="searchQuery"></My_SearchInputBox>
 </view>
 
 <My_DisplayBox title="商户列表" isMore="{{false}}">

+ 10 - 3
pages/userCenter/index.js

@@ -21,7 +21,7 @@ Page({
         fwechatno: "",
         faddress: "",
         frole: "",
-        YMD:"",//日期
+        YMD: "", //日期
         /* 错误提示 */
         errTips: {
             fname: false, //用户名
@@ -65,9 +65,11 @@ Page({
             frole: userMessage.frole
         })
     },
-    timeChange({detail}){
+    timeChange({
+        detail
+    }) {
         this.setData({
-            fbirthdate:detail.value
+            fbirthdate: detail.value
         })
     },
     /* 修改性别 */
@@ -135,6 +137,11 @@ Page({
                         delta: 1
                     })
                 }, 500)
+            } else {
+                wx.showToast({
+                    title: res.data,
+                    icon: 'none'
+                })
             }
         })
     },