Explorar el Código

大神约见修改

chengjunhui hace 12 horas
padre
commit
3cf00e9c54

BIN
assets/images/home/icon_8.png


+ 4 - 4
expert/consult/consult.wxml

@@ -1,13 +1,13 @@
 <view>
   <view class="box1" wx:if="{{topicList.length}}">
     <view class="hot-title">
-      <view class="line"></view>
+      <!--<view class="line"></view>-->
       <view class="title">擅长话题</view>
     </view>
     <view class="radio-box1 radio-self1">
-      <radio-group bindchange="msgChange">
+      <radio-group bindchange="msgChange" >
         <label class="radio" wx:for="{{topicList}}" wx:key="{{item.id}}">
-          <radio value="{{item.id}}" checked="{{item.checked}}" /><text>{{item.topicName}}</text>
+          <radio value="{{item.id}}" checked="{{item.checked}}"/><text>{{item.topicName}}</text>
         </label>
       </radio-group>
     </view>
@@ -78,7 +78,7 @@
   <!-- 预约申请 -->
   <view class="box4">
     <view class="hot-title">
-      <view class="line"></view>
+      <!--<view class="line"></view>-->
       <view class="title">预约申请</view>
     </view>
     <view class="title1">预约方式</view>

+ 26 - 8
expert/consult/consult.wxss

@@ -12,7 +12,7 @@ page {
 /* 选中后的背景样式 */
 .radio-self1 radio .wx-radio-input.wx-radio-input-checked{
    background: #ffffff;
-   border: 1px solid #ffdc2f;
+   border: 1px solid #2b58a5;
 }
 
 /* 选中后的勾子样式 */
@@ -23,7 +23,7 @@ page {
   color: transparent;
   border-radius: 50%;
   text-align: center;
-  background: #FFDC2F;
+  background: #2b58a5;
   transform: translate(-50%, -50%) scale(1);
   -webkit-transform: translate(-50%, -50%) scale(1);
 }
@@ -39,7 +39,7 @@ page {
   	color: #333333;
   	position: relative;
   }
-  .hot-title .line {
+  /* .hot-title .line {
   	position: absolute;
   	width: 6rpx;
   	height: 41rpx;
@@ -48,7 +48,25 @@ page {
   	top: 0;
   	left: 0;
   	opacity: .5;
+  } */
+  .hot-title .title{
+	position: relative;
+	display: inline-block;
   }
+
+  .hot-title .title::after {
+	display: block;
+	content: "";
+	position: absolute;
+	top: -3%;
+	right: -3%;
+	width: 30rpx;
+	height: 30rpx;
+	background-color: #005eff42;
+	border-radius: 50%;
+	z-index: 1;
+  }
+
 .box1 {
 	padding: 40rpx 30rpx 20rpx 30rpx;
 	box-sizing: border-box;
@@ -151,7 +169,7 @@ page {
 	font-weight: 400;
 	color: #ffffff;
 	border-radius: 28rpx;
-	background-color: #FFDC2F;
+	background-color: #2b58a5;
 }
 .box3 {
 	padding: 47rpx 30rpx 30rpx 30rpx;
@@ -394,7 +412,7 @@ page {
 .btn-sub {
 	width: 690rpx;
 	height: 85rpx;
-	background: #ffdc2f;
+	background: #2b58a5;
 	border-radius: 43rpx;
 	position: fixed;
 	left: 30rpx;
@@ -468,7 +486,7 @@ page {
 	font-size: 28rpx;
 	font-family: PingFang SC, PingFang SC-Regular;
 	font-weight: 400;
-	color: #ffc12f;
+	color: #2b58a5;
 	position: absolute;
 	right: 60rpx;
 	top: 5rpx;
@@ -524,13 +542,13 @@ page {
 .pick-btn {
 	width: 630rpx;
 	height: 85rpx;
-	background: #ffdc2f;
+	background: #2b58a5;
 	border-radius: 43rpx;
 	font-size: 30rpx;
 	font-family: PingFang SC, PingFang SC-Regular;
 	font-weight: 400;
 	text-align: center;
-	color: #1a1a1a;
+	color: #ffffff;
 	margin-left: 60rpx;
 	line-height: 85rpx;
 }

+ 2 - 2
expert/detail/detail.wxml

@@ -27,7 +27,7 @@
   <!-- 擅长话题 -->
   <view class="hua-box" wx:if="{{topicList.length}}">
     <view class="hot-title">
-      <view class="line"></view>
+      <!--<view class="line"></view>-->
       <view class="title">擅长话题</view>
     </view>
     <view class="hua-item" wx:for="{{topicList}}" wx:key="{{item.id}}">
@@ -46,7 +46,7 @@
   <!-- 行家自述 -->
   <view class="desc-box" wx:if="{{detailobj.expertReadme}}">
     <view class="hot-title">
-      <view class="line"></view>
+      <!--<view class="line"></view>-->
       <view class="title">行家自述</view>
     </view>
     <view style="white-space: pre-line;" class="content">

+ 22 - 2
expert/detail/detail.wxss

@@ -136,6 +136,25 @@ page {
   color: #333333;
   position: relative;
 }
+
+.hot-title .title{
+	position: relative;
+	display: inline-block;
+}
+
+.hot-title .title::after {
+	display: block;
+	content: "";
+	position: absolute;
+	top: -3%;
+	right: -3%;
+	width: 30rpx;
+	height: 30rpx;
+	background-color: #005eff42;
+	border-radius: 50%;
+	z-index: 1;
+}
+
 .hot-title .line {
   position: absolute;
   width: 6rpx;
@@ -314,17 +333,18 @@ page {
 .btn {
   width: 582rpx;
   height: 85rpx;
-  background: #ffdc2f;
+  background: #2b58a5;
   border-radius: 43rpx;
   text-align: center;
   line-height: 85rpx;
   font-size: 30rpx;
   font-family: PingFang SC, PingFang SC-Regular;
   font-weight: 400;
-  color: #000;
+  color: #ffffff;
 }
 .no-btn {
   background-color: #e6e6e6;
+  color: #000 !important;
 }
 .selt-btn {
   display: flex;

+ 4 - 1
pages/checkin/index.wxml

@@ -4,7 +4,10 @@
     <view class="user-info">
       <image class="avatar" src="{{userInfo.memberphoto || appAssetsUrl2 + 'new/user.png'}}" mode="aspectFill"></image>
       <view class="user-details">
-        <view class="nickname">{{userInfo.vipname}} 👑</view>
+        <view class="nickname">
+          <text >{{userInfo.vipname}}</text>
+          <image class="vip-icon" src="{{appAssetsUrl2}}wjxy/mine/vip-icon.png"></image>
+        </view>
       </view>
     </view>
     <view class="points-info">

+ 12 - 5
pages/checkin/index.wxss

@@ -40,6 +40,15 @@
   font-size: 32rpx;
   font-weight: 600;
   color: #333;
+  display: flex;
+  align-items: center;
+}
+
+.nickname .vip-icon {
+  flex-shrink: 0;
+  width: 36rpx;
+  height: 30rpx;
+  margin-left: 5rpx;
 }
 
 .points-info {
@@ -186,7 +195,6 @@
   align-items: center;
   justify-content: center;
   /* box-shadow: 0 8rpx 24rpx rgba(74, 144, 226, 0.3); */
-
 }
 
 .checkin-btn.disabled {
@@ -300,11 +308,10 @@
   font-weight: 500;
 }
 
-.task-action.complete{
+.task-action.complete {
   background: #999999;
-
 }
 
-.task-action.complete .action-text{
+.task-action.complete .action-text {
   color: #ffffff;
-}
+}

+ 1 - 0
pages/home/index/activityDetail/activityDetail.js

@@ -471,6 +471,7 @@ Page({
 				  icon: "none",
 				  duration: 1500,
 				});
+				that.popup5.hidePopup();
 				that.popup3.showPopup();
 				// setTimeout(()=>{
 				// 	wx.redirectTo({

+ 14 - 10
pages/home/index/activityDetail/activityDetail.wxml

@@ -218,17 +218,21 @@
           <view class="price-text">活动价格</view>
           <!--  -->
           <view class="content-jifen">
-            <view class="jifen-box" wx:if="{{point > 0}}">
-              <view class="left">
-                <view class="use">
-                  <text>使用</text>
-                  <text>{{usePoints}}</text>
-                  <text>积分,</text>
-                  <text>抵扣</text>
-                  <text>{{dmoney}}</text>
-                  <text>元</text>
+            <!-- wx:if="{{point > 0}}"-->
+            <view class="jifen-box">
+              <view class="jifen-box-left">
+                <image class="jifen-icon" src="/assets/images/home/icon_8.png" mode=""></image>
+                <view class="left">
+                  <view class="use">
+                    <text>使用</text>
+                    <text style="color: #e4393c;">{{usePoints}}</text>
+                    <text>积分,</text>
+                    <text>抵扣</text>
+                    <text>{{dmoney}}</text>
+                    <text>元</text>
+                  </view>
+                  <view class="di" style="margin-top: 10rpx;">剩余积分:{{ point }}</view>
                 </view>
-                <view class="di" style="margin-top: 10rpx;">{{ 1500 }}</view>
               </view>
               <view class="switch {{ open ? '' : 'close-bg' }}" bindtap="changeSwitch">
                 <view class="switch-dot {{ open ? '' : 'close-switch' }}"></view>

+ 13 - 0
pages/home/index/activityDetail/activityDetail.wxss

@@ -995,6 +995,16 @@ page {
   height: 60rpx;
   margin-top: 20rpx;
 }
+.jifen-box-left{
+  display: flex;
+  
+}
+.jifen-box .jifen-icon {
+  width: 46rpx;
+  height: 46rpx;
+  flex-shrink: 0;
+  margin-right: 12rpx;
+}
 .jifen-box .left {
   display: flex;
   flex-direction: column;
@@ -1134,6 +1144,9 @@ page {
   font-weight: 400;
   color: #1a1a1a;
 }
+.left-t-r .icon-shoucang{
+  color: #999999;
+}
 .comment .card .star-box .iconfont-c3 {
   margin-right: 12rpx;
   /* color: #b3b3b3; */

+ 104 - 57
pages/login.js

@@ -25,6 +25,7 @@ Page({
       id: "",
       vipname: "",
       memberphoto: "",
+      mobile: ""
     },
     inviteCode: "",
     showUserBtn: false,
@@ -58,8 +59,8 @@ Page({
         App._post_form(
           "member/authorization",
           "application/json;charset=UTF-8", {
-            code: res.code,
-          },
+          code: res.code,
+        },
           (data) => {
             if (data.code == 0) {
               wx.setStorageSync("openid", data.data.openid);
@@ -170,50 +171,50 @@ Page({
     App._post_form(
       "scoreStu/dailyLogin",
       "", {
-        stuId: util.getUserId(),
-      },
+      stuId: util.getUserId(),
+    },
       function (res) {
         wx.hideToast();
       }
     );
   },
-  // getPhoneNumber(e) {
-  //   var that = this;
-  //   if (e.detail.errMsg != "getPhoneNumber:ok") {
-  //     return;
-  //   }
-  //   var params = {
-  //     encryptedData: e.detail.encryptedData,
-  //     iv: e.detail.iv,
-  //     sessionKey: wx.getStorageSync("session_key"),
-  //   };
-  //   App._post_form(
-  //     "member/decodeUserInfo?encryptedData=" +
-  //     params.encryptedData +
-  //     "&iv=" +
-  //     params.iv +
-  //     "&sessionKey=" +
-  //     params.sessionKey,
-  //     "application/json;charset=UTF-8",
-  //     params,
-  //     function (data) {
-  //       if (data.code == 0) {
-  //         that.setData({
-  //           telInput: data.msg,
-  //           showUserBtn: true,
-  //         });
-  //       }
-  //     },
-  //     function (err) {
-  //       wx.showToast({
-  //         title: "请求失败",
-  //         icon: "none",
-  //         duration: 3500,
-  //       });
-  //       return;
-  //     }
-  //   );
-  // },
+  getPhoneNumber(e) {
+    const that = this;
+    if (e.detail.errMsg != "getPhoneNumber:ok") {
+      return;
+    }
+    var params = {
+      encryptedData: e.detail.encryptedData,
+      iv: e.detail.iv,
+      sessionKey: wx.getStorageSync("session_key"),
+    };
+    App._post_form(
+      "member/decodeUserInfo?encryptedData=" +
+      params.encryptedData +
+      "&iv=" +
+      params.iv +
+      "&sessionKey=" +
+      params.sessionKey,
+      "application/json;charset=UTF-8",
+      params,
+      function (data) {
+        if (data.code == 0) {
+          that.setData({
+            ['params.mobile']: data.msg,
+            disabled: true
+          });
+        }
+      },
+      function (err) {
+        wx.showToast({
+          title: "请求失败",
+          icon: "none",
+          duration: 3500,
+        });
+        return;
+      }
+    );
+  },
   handleAgreePrivacyAuthorization() { },
   getUserInfo() {
     if (!this.data.isCheck) {
@@ -275,7 +276,7 @@ Page({
               //跳到我的约见详情页
               wx.reLaunch({
                 url: `/meet/meet/addmeet?meetId=${this.data.meetId}&expertId=${this.data.expertId}&memberId=${this.data.memberId}`,
-                success() {},
+                success() { },
               });
             } else {
               wx.reLaunch({
@@ -312,6 +313,47 @@ Page({
       loginPopup: false
     })
   },
+  handleRegister() {
+    // if (!this.data.params.imgCode) {
+    //   return util.alert("请输入图形验证码");
+    // }
+    // if (!this.data.params.code && !this.data.disabled) {
+    //   return util.alert("请输入短信证码");
+    // }
+    // if (!this.data.isCheck) {
+    //   return util.alert("请勾选隐私协议");
+    // }
+    // let userInfo = wx.getStorageSync("userInfo");
+    let form = {
+      // captcha: this.data.imgCode,
+      inviteCode: this.data.inviteCode,
+      memberPhoto: this.data.params.memberphoto,
+      mobile: this.data.params.mobile,
+      name: his.data.params.vipname,
+      openid: wx.getStorageSync("openid"),
+      // shortMessageCode: this.data.code,
+    };
+    App._post_form(
+      "auth/appletsRegistered",
+      "application/json;charset=UTF-8",
+      form,
+      (res) => {
+        if (res.code === 0) {
+          wx.setStorageSync("USER", res.memberinfo);
+          console.log(this.data.meetId, 11111111)
+          if (this.data.meetId != "") {
+            wx.reLaunch({
+              url: `/meet/meet/addmeet?meetId=${this.data.meetId}&expertId=${this.data.expertId}&memberId=${this.data.memberId}`,
+            });
+          } else {
+            wx.reLaunch({
+              url: "/pages/home/index/index?login=1",
+            });
+          }
+        }
+      }
+    );
+  },
   register() {
     if (!this.data.params.memberphoto) {
       return tools.alert("请先获取头像信息");
@@ -319,10 +361,15 @@ Page({
     if (!this.data.params.vipname) {
       return tools.alert("请先获取昵称信息");
     }
-    wx.setStorageSync("userInfo", {
-      avatarUrl: this.data.params.memberphoto,
-      nickName: this.data.params.vipname
-    });
+    if (!this.data.params.mobile) {
+      return util.alert("请获取手机号");
+    }
+    // wx.setStorageSync("userInfo", {
+    //   avatarUrl: this.data.params.memberphoto,
+    //   nickName: this.data.params.vipname
+    // });
+    this.handleRegister();
+    return
     wx.navigateTo({
       url: "/pages/register/register?inviteCode=" +
         this.data.inviteCode +
@@ -444,10 +491,10 @@ Page({
           App._post_form(
             "verification/verKey",
             "", {
-              phone: _this.data.telInput,
-              code: _this.data.imgCode,
-              uuid: _this.data.uuid,
-            },
+            phone: _this.data.telInput,
+            code: _this.data.imgCode,
+            uuid: _this.data.uuid,
+          },
             function (res) {
               if (res.code === 0) {
                 setTimeout(() => {
@@ -531,37 +578,37 @@ Page({
   /**
    * 生命周期函数--监听页面初次渲染完成
    */
-  onReady: function () {},
+  onReady: function () { },
 
   /**
    * 生命周期函数--监听页面显示
    */
-  onShow: function () {},
+  onShow: function () { },
 
   /**
    * 生命周期函数--监听页面隐藏
    */
-  onHide: function () {},
+  onHide: function () { },
 
   /**
    * 生命周期函数--监听页面卸载
    */
-  onUnload: function () {},
+  onUnload: function () { },
 
   /**
    * 页面相关事件处理函数--监听用户下拉动作
    */
-  onPullDownRefresh: function () {},
+  onPullDownRefresh: function () { },
 
   /**
    * 页面上拉触底事件的处理函数
    */
-  onReachBottom: function () {},
+  onReachBottom: function () { },
 
   /**
    * 用户点击右上角分享
    */
-  onShareAppMessage: function () {},
+  onShareAppMessage: function () { },
   inviteCodeInput(e) {
     this.setData({
       inviteCode: e.detail.value,

+ 26 - 16
pages/login.wxml

@@ -1,5 +1,4 @@
 <view class='content'>
-
   <view class="app-title">青雲慧小程序</view>
   <image src="{{appAssetsUrl2}}wjxy/login.png" class="li1" bindtap="toHome" />
   <!-- <image src="/assets/images/login.png" class="li1" bindtap="toHome" /> -->
@@ -19,19 +18,23 @@
 			bindgetphonenumber="getPhoneNumber">
 			微信登录
 		</button> -->
-    <button id="agree-btn1" class="btn-submit" hover-class="button-hover" hover-stop-propagation="false" open-type="getUserInfo|agreePrivacyAuthorization" bindtap="getUserInfo" bindagreeprivacyauthorization="handleAgreePrivacyAuthorization">授权登录</button>
+    <button id="agree-btn1" class="btn-submit" hover-class="button-hover" hover-stop-propagation="false" open-type="getUserInfo|agreePrivacyAuthorization" bindtap="getUserInfo" bindagreeprivacyauthorization="handleAgreePrivacyAuthorization">
+      授权登录
+    </button>
   </view>
   <view class="cancel" bindtap="toHome">取消登录</view>
   <button class="btn-submit" bindtap="updateUserInfo" wx:if="{{false}}">获取用户头像信息</button>
-  <view class="footer-t footer-t1" bindtap="goxy" wx:if="{{false}}">登录即代表您同意<text>《用户协议》</text></view>
+  <view class="footer-t footer-t1" bindtap="goxy" wx:if="{{false}}">
+    登录即代表您同意
+    <text>《用户协议》</text>
+  </view>
   <view class="footer-t" wx:if="{{false}}">使用微信登录时将获取您的头像昵称等公开信息</view>
-
   <view class="login-popup" wx:if="{{loginPopup}}">
     <view class="user-info-box">
       <image src="{{appAssetsUrl2}}wjxy/close.png" class='popup-close' bindtap="closePopup"></image>
       <view class="top-title">
-        <text class="title">获取你的昵称、头像</text>
-        <text class="tip">获取用户头像、昵称、主要用于向用户提供具有辨识度的用户中心界面</text>
+        <text class="title">获取你的昵称、头像、手机号</text>
+        <text class="tip">获取用户头像、昵称、手机号、主要用于向用户提供具有辨识度的用户中心界面</text>
       </view>
       <view class="func-box">
         <!-- <u-upload ref="uUpload" v-show="false"></u-upload> -->
@@ -43,7 +46,7 @@
             <view class="box-right">
               <image wx:if="{{params.memberphoto}}" src="{{params.memberphoto}}" mode="aspectFill"></image>
               <image wx:else src="{{appAssetsUrl2+'new/user.png'}}" mode="aspectFill"></image>
-              <text> 〉</text>
+              <text>〉</text>
             </view>
           </view>
         </button>
@@ -54,28 +57,35 @@
           </div>
           <input type="nickname" maxlength="30" placeholder="请点击选择昵称" bindinput="getNickname" value="{{params.vipname}}" />
         </view>
-        <!-- <view class="phone-box">
+        <view class="line"></view>
+        <!--  -->
+        <view class="phone-box">
           <div class="box-left">
             <text class="txt">手机号</text>
           </div>
           <view class="box-right">
             <text>{{telInput || '请点击按钮'}}</text>
-            <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
-              绑定手机号
-            </button>
+            <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">绑定手机号</button>
+          </view>
+        </view>
+        <view class="line"></view>
+        <view class="name-box">
+          <div class="box-left">
+            <text class="txt">邀请码</text>
+          </div>
+          <view class="box-right">
+            <input maxlength="30" placeholder="请填写邀请码" value="{{invitecode}}" />
           </view>
-        </view> -->
+        </view>
       </view>
       <view class="line"></view>
       <button class="custom-style" color="#FACA2E" bindtap="register">注册</button>
     </view>
   </view>
 </view>
-<!-- 
- 目前注册和登录都出自同一接口,即"member/appLogin"
+<!-- 目前注册和登录都出自同一接口,即"member/appLogin"
  在此暂定规则: 响应数据code统一为0
  然后分以下几种情况:
  1.没有此用户,即注册: 有邀请码则存入表数据; 没邀请码则不管
  2.有此用户,即登录: 有邀请码,msg提示"您已经注册,邀请码无法使用"; 没邀请码则不管
- by cyz
- -->
+ by cyz -->

+ 17 - 1
pages/my/index/index.js

@@ -142,7 +142,23 @@ Page({
       url: "/invitationCode/index",
     });
   },
-
+  seeMeet() {
+    if (!this.data.isLogin) {
+      wx.navigateTo({
+        url: '/pages/login',
+      })
+      return false
+    }
+    wx.navigateTo({
+      url: "/meet/meet/meet",
+    });
+  },
+  // 行家工作台
+  handleWork() {
+    wx.navigateTo({
+      url: "/workbench/work/work?id=" + this.data.userInfo.id,
+    });
+  },
   /**
    * VIP升级点击事件
    */

+ 8 - 9
pages/my/index/index.wxml

@@ -81,6 +81,7 @@
             <view class="registration-cards">
                 <image src="/assets/images/user-icon/user-job-icon.png" class="card-icon" bindtap="onJobRegistrationTap"></image>
                 <image src="/assets/images/user-icon/user-activity-icon.png" class="card-icon" bindtap="onActivityRegistrationTap"></image>
+                <image src="/assets/images/user-icon/user-activity-icon.png" class="card-icon" bindtap="seeMeet"></image>
             </view>
         </view>
         <!-- 功能菜单列表 -->
@@ -106,15 +107,6 @@
                 </view>
                 <text class="iconfont icon-jiantou righticon"></text>
             </view>
-            <!--
-                <view class="menu-item" bindtap="handleInvite">
-                    <view class="menu-left">
-                        <image src="/assets/images/user-icon/icon_2.png" class="menu-icon"></image>
-                        <text class="menu-text">我的邀请</text>
-                    </view>
-                    <text class="iconfont icon-jiantou righticon"></text>
-                </view>
-            -->
             <view class="menu-item" bindtap="handleMsg">
                 <view class="menu-left">
                     <image src="/assets/images/user-icon/icon_8.png" class="menu-icon"></image>
@@ -122,6 +114,13 @@
                 </view>
                 <text class="iconfont icon-jiantou righticon"></text>
             </view>
+            <view class="menu-item" bindtap="handleWork" wx:if="{{userInfo.memberRoleStatus == 3 || userInfo.memberRoleStatus == 4 || userInfo.memberRoleStatus == 5}}">
+                <view class="menu-left">
+                    <image src="/assets/images/user-icon/icon_5.png" class="menu-icon"></image>
+                    <text class="menu-text">行家工作台</text>
+                </view>
+                <text class="iconfont icon-jiantou righticon"></text>
+            </view>
             <view class="menu-item" bindtap="onFAQTap">
                 <view class="menu-left">
                     <image src="/assets/images/user-icon/icon_4.png" class="menu-icon"></image>

+ 1 - 1
pages/my/index/index.wxss

@@ -366,7 +366,7 @@
 }
 
 .card-icon {
-  width: 320rpx;
+  width: 200rpx;
   height: 113rpx;
 }
 

+ 4 - 2
pages/my/myData/myData.js

@@ -236,7 +236,9 @@ Page({
 					})
 				}
 			})
-		this.loadDictionary();
+		setTimeout(() => {
+			this.loadDictionary();
+		}, 500);
 		this.searchProvince();
 
 		g1 = [{
@@ -933,7 +935,7 @@ Page({
 					})
 					setTimeout(() => {
 						_this.PushVipInfo();
-						that.getNum();
+						_this.getNum();
 						if (_this.data.nolink === true) {
 							wx.switchTab({
 								url: '/pages/my/index/index'

+ 2 - 2
pages/my/myStudy/myStudy.wxss

@@ -156,8 +156,8 @@
 }
 .tip-item {
   height: 90rpx;
-  background: #fffae1;
-  color: #ffa836;
+  background: #2B58A5;
+  color: #ffffff;
   line-height: 90rpx;
 }
 .btn {

+ 1 - 1
pages/myMember/myMember.wxml

@@ -139,7 +139,7 @@
       <view class="integral">剩余积分:{{memberPoints.remainingPoints}}</view>
       <view class="use-box">
         <view class="use-integral">
-          <view>使用 {{memberPoints.usePoints}} 积分</view>
+          <view>使用 <text class="red-price">{{memberPoints.usePoints}}</text> 积分,</view>
           <view class="deduction">抵扣 {{memberPoints.deductiblePrice}} 元</view>
         </view>
         <switch bindchange="switchChange" />

+ 13 - 4
pages/myMember/myMember.wxss

@@ -866,25 +866,34 @@ page {
   align-items: center;
   text-align: left;
 }
+.buy-content .use-box .use-integral{
+  display: flex;
+  align-items: center;
+
+}
+
+.use-integral .red-price {
+  color: #ec2e26;
+}
 
 .buy-content .use-box .deduction {
-  font-size: 24rpx;
+  /* font-size: 24rpx;
   font-family: "PingFang SC, PingFang SC-Regular";
   font-weight: 400;
-  color: #999999;
+  color: #999999; */
 }
 
 .btn-box .btn {
   width: 437rpx;
   height: 80rpx;
-  background: #ffdc2f;
+  background: #2b58a5;
   border-radius: 40rpx;
   font-size: 32rpx;
   font-family: "PingFang SC, PingFang SC-Regular";
   font-weight: 400;
   text-align: center;
   line-height: 80rpx;
-  color: #333333;
+  /* color: #333333; */
   color: #fff;
 }