bayi 1 ano atrás
pai
commit
2e4836ef02

+ 1 - 1
api/user.js

@@ -32,7 +32,7 @@ module.exports = {
     // 获取收藏列表
     getFavoritesList: data => request('/favorites', 'get', data),
     // 用code获取手机号
-    exchangePhone: data => request('/v3/user/phoneNumber', 'get', data),
+    exchangemobile: data => request('/v3/user/phoneNumber', 'get', data),
     // 绑定手机号
     bindPhone: data => request('/v3/user/bindMobile', 'post', data),
     // 获取邀请的用户列表

+ 0 - 1
components/voucher/index.js

@@ -69,7 +69,6 @@ Component({
       })
     },
     async getVoucher() {
-      console.log('zz', this.data.voucherType);
       if (!this.data.voucherType) {
         let res = await getVoucher({
           id: this.data.id

+ 3 - 3
pages/my/index.wxml

@@ -76,7 +76,7 @@
             <image class='black' src='/static/black.png'></image>
         </view>
         <view class="activation" bindtap="jump" data-url="/salesperson/pages/sale/index"
-            wx:if="{{!userInfo.user.saleUserId}}">
+            wx:if="{{userInfo.user.saleUserId}}">
             <view class="tips">
                 <image src="/static/tjg.png" class="tipsImg" />成为推荐官
             </view>
@@ -88,12 +88,12 @@
             </view>
             <image class='black' src='/static/black.png'></image>
         </view>
-        <view class="activation" bindtap="toGzh">
+        <button class="resetBtn activation" open-type="contact" plain="true">
             <view class="tips">
                 <image src="/static/contact.png" class="tipsImg" />联系我们
             </view>
             <image class='black' src='/static/black.png'></image>
-        </view>
+        </button>
         <!--     <view class="activation" bindtap="jump" data-url="/pages/orderRecord/index">
             <view class="tips">
                 <image src="/static/care.png" class="tipsImg" />购买记录

+ 1 - 2
salesperson/pages/fill/index.js

@@ -9,7 +9,7 @@ Page({
     data: {
         menuTop: app.globalData.menuTop,
         username: '',
-        mobile: '17600188802',
+        mobile: '',
         isSubmit: false
     },
     bindblur(e) {
@@ -44,7 +44,6 @@ Page({
                 mobile,
                 name: username
             })
-            console.log(res);
             wx.redirectTo({
               url: '/salesperson/pages/saleOffice/index',
             })

+ 1 - 1
salesperson/pages/fill/index.wxml

@@ -13,7 +13,7 @@
         <view class="row {{isSubmit&&mobile==''?'r2':''}}">
             <view class="label">*手机号</view>
             <button class="resetBtn" open-type="getPhoneNumber"
-                bindgetphonenumber="getPhoneNumber">{{mobile==''?'请输入手机号':mobile}}</button>
+                bindgetphonenumber="getmobileNumber">{{mobile==''?'请输入手机号':mobile}}</button>
         </view>
     </view>
     <view class="qrCodeBox">

+ 0 - 1
utils/filter.wxs

@@ -53,7 +53,6 @@ function gradeFilter(grade) {
 }
 // 数字满万补w
 function numFilter(num) {
-    console.log(num,'zzz');
     if (!num) {
         return 0
     }

+ 3 - 3
utils/request.js

@@ -6,14 +6,14 @@ const {
         envVersion
     }
 } = wx.getAccountInfoSync();
-if (envVersion == 'develop') {
+// if (envVersion == 'develop') {
     baseUrl = 'https://reader-api.efunbox.cn/wx'
     oldUrl = 'https://reader-api.efunbox.cn'
-} else {
+/* } else {
     baseUrl = 'https://reader-api.ai160.com/wx'
     oldUrl = 'https://reader-api.ai160.com'
 }
-
+ */
 function request(url, method, data, oldBaseUrl = false, intercept = true) {
     let header = {
         'uid': wx.getStorageSync('uid') || '',