ll
liukangdong
2024-07-29 4e64e4f6488f477ec3c75af7864f99bb6ae9964d
ll
已修改16个文件
174 ■■■■ 文件已修改
wechat_jiaxuan/app.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/product.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/product.less 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/product.wxml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/detailDis/product.wxss 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/info.less 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/info.wxml 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/store/info.wxss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/userinfo/index.js 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/userinfo/index.less 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/userinfo/index.wxml 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/pages/userinfo/index.wxss 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/project.private.config.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/detailDis/product.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/detailDis/product.less 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/detailDis/product.wxml 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_jiaxuan/app.json
@@ -79,6 +79,9 @@
  "permission": {
    "scope.userLocation": {
      "desc": "你的位置信息将用于小程序位置接口的效果展示"
    },
    "scope.userInfo": {
      "desc": "你的微信呢称将用于小程序呢称的效果展示"
    }
  },
  "componentFramework": "glass-easel",
wechat_jiaxuan/pages/detailDis/product.js
@@ -11,10 +11,14 @@
    current: 0,
    id: '',
    origin: '',
    isFold: false,
    info: {},
    member: {},
    showShare: false
  },
  changeFold() {
    this.setData({ isFold: !this.data.isFold })
  },
  onLoadLogin(options) {
    this.getDetail(options.id, options.userId || '')
    actionDo({
wechat_jiaxuan/pages/detailDis/product.less
@@ -212,7 +212,16 @@
.detail {
  padding: 52rpx 40rpx 40rpx;
  background-color: #fff;
  .fold{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 84rpx;
    margin-top: 20rpx;
    .icon{
      margin-left: 12rpx;
    }
  }
  .title {
    font-weight: 600;
    font-size: 36rpx;
@@ -221,7 +230,8 @@
  .line {
    display: flex;
    margin-bottom: 20rpx;
    padding: 24rpx 0 26rpx;
    border-bottom: 1rpx dashed #E5E5E5;
    .label {
      width: 120rpx;
      font-size: 24rpx;
wechat_jiaxuan/pages/detailDis/product.wxml
@@ -31,9 +31,15 @@
  </view>
  <view class="detail">
    <view class="title">产品详情</view>
    <view class="line" wx:for="{{ info.productParamList }}">
      <view class="label">{{ item.paramName }}:</view>
      <view class="val">{{ item.paramValue }}</view>
    <block wx:for="{{ info.productParamList }}">
      <view wx:if="{{ index < 5 || isFold }}" class="line" >
        <view class="label">{{ item.paramName }}:</view>
        <view class="val">{{ item.paramValue }}</view>
      </view>
    </block>
    <view wx:if="{{ info.productParamList.length > 5 }}" class="fold" bindtap="changeFold">
      <text>{{ isFold ? '收起' : '展开' }}</text>
      <van-icon class="icon" name="{{ isFold ? 'arrow-up' : 'arrow-down' }}" />
    </view>
  </view>
  <!-- 富文本 -->
wechat_jiaxuan/pages/detailDis/product.wxss
@@ -191,6 +191,16 @@
  padding: 52rpx 40rpx 40rpx;
  background-color: #fff;
}
.detail .fold {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 84rpx;
  margin-top: 20rpx;
}
.detail .fold .icon {
  margin-left: 12rpx;
}
.detail .title {
  font-weight: 600;
  font-size: 36rpx;
@@ -198,7 +208,8 @@
}
.detail .line {
  display: flex;
  margin-bottom: 20rpx;
  padding: 24rpx 0 26rpx;
  border-bottom: 1rpx dashed #E5E5E5;
}
.detail .line .label {
  width: 120rpx;
wechat_jiaxuan/pages/store/info.less
@@ -103,6 +103,9 @@
    }
  }
}
.empty_wrap{
  padding-top: 100rpx;
}
.container{
  overflow: hidden;
  height: 100%;
wechat_jiaxuan/pages/store/info.wxml
@@ -12,7 +12,7 @@
    </view>
    <view class="main_content">
      <view class="title">门店导购</view>
      <scroll-view    scroll-y class="list">
      <scroll-view scroll-y class="list">
        <view class="item" wx:for="{{ info.usersList }}">
          <image data-id="{{ item.iamId }}" bindtap="handleDetail" src="{{ item.imgurlFull ? item.imgurlFull : '../../static/images/default_avatar.png' }}" class="avatar"></image>
          <view data-id="{{ item.iamId }}" bindtap="handleDetail" class="content">
@@ -21,6 +21,9 @@
          </view>
          <view data-phone="{{ item.phone }}" bindtap="callPhone" class="btn">联系TA</view>
        </view>
        <view wx:if="{{ info.usersList.length == 0 }}" class="empty_wrap">
          <image class="default_empty" src="../../static/images/default_empty.png"></image>
        </view>
      </scroll-view>
    </view>
  </view>
wechat_jiaxuan/pages/store/info.wxss
@@ -95,6 +95,9 @@
  color: var(--themeColor);
  border: 1rpx solid var(--themeColor);
}
.empty_wrap {
  padding-top: 100rpx;
}
.container {
  overflow: hidden;
  height: 100%;
wechat_jiaxuan/pages/userinfo/index.js
@@ -2,7 +2,8 @@
  uploadUrl,
  editMember,
  getMemberInfo,
  getArea
  getArea,
  getWxMiniPhone
} from '../../api/index'
Page({
@@ -33,7 +34,19 @@
      val5: '',
    }
  },
  onShow() {
  onLoad() {
    wx.getUserInfo({
      success: function(res) {
        console.log('res', res);
        var userInfo = res.userInfo
        var nickName = userInfo.nickName
        var avatarUrl = userInfo.avatarUrl
        var gender = userInfo.gender //性别 0:未知、1:男、2:女
        var province = userInfo.province
        var city = userInfo.city
        var country = userInfo.country
      }
    })
    this.initData()
  },
  onSubmit() {
@@ -72,6 +85,9 @@
        title: '保存成功',
        icon: 'none'
      })
      setTimeout(() => {
        wx.navigateBack()
      }, 500)
    })
  },
  initData() {
@@ -154,6 +170,18 @@
      })
    }
  },
  getPhoneNumber (e) {
    const data = { ...e.detail }
    getWxMiniPhone({
      encryptedData: data.encryptedData,
      iv: data.iv,
      sessionKey: wx.getStorageSync('sessionKey') || data.iv,
    }).then(res => {
      this.setData({
        phone: res.data
      })
    })
  },
  getNickName(e) {
    this.setData({ nikname: e.detail.value })
  },
@@ -162,11 +190,13 @@
    wx.chooseLocation({
      type: 'wgs84',
      success: (res) => {
        console.log('res', res);
        this.setData({
          longitude: res.longitude,
          latitude: res.latitude,
          address: res.address,
        })
        console.log('address', this.data.address);
      }
    })
  },
wechat_jiaxuan/pages/userinfo/index.less
@@ -40,7 +40,20 @@
      font-size: 30rpx;
      color: #777777;
    }
    .wechat_phone{
      width: 100%;
      flex: 1;
      color: #111111;
      border-bottom: 1rpx solid #e5e5e5;
      display: flex;
      justify-content: space-between;
      .btn{
        font-size: 30rpx;
        color: #B08771;
      }
    }
    .input{
      width: 100%;
      flex: 1;
      color: #111111;
      border-bottom: 1rpx solid #e5e5e5;
wechat_jiaxuan/pages/userinfo/index.wxml
@@ -14,7 +14,10 @@
    </view>
    <view class="line">
      <view class="label">电话</view>
      <van-field type="number" border="{{ false }}" class="input" model:value="{{ phone }}" maxlength="{{ 11 }}" clearable />
      <view class="wechat_phone">
        <van-field type="number" border="{{ false }}" model:value="{{ phone }}" maxlength="{{ 11 }}" clearable />
        <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="btn">微信授权</button>
      </view>
    </view>
    <view class="line">
      <view class="label">城市</view>
@@ -45,7 +48,7 @@
    </view>
    <view class="line">
      <view class="label">面积</view>
      <van-field type="number" border="{{ false }}" class="input" model:value="{{ housearea }}" maxlength="{{ 30 }}" clearable />
      <van-field custom-style="width: 100%" type="digit" border="{{ false }}" class="input" model:value="{{ housearea }}" maxlength="{{ 30 }}" clearable />
      <text>m²</text>
    </view>
    <view class="line">
@@ -69,23 +72,23 @@
      <view class="label">房屋户型</view>
      <view class="val">
        <view class="item">
          <van-field data-str="val1" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <van-field value="{{ houseType.val1 }}" data-str="val1" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <view class="unit">室</view>
        </view>
        <view class="item">
          <van-field data-str="val2" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <van-field value="{{ houseType.val2 }}" data-str="val2" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <view class="unit">厅</view>
        </view>
        <view class="item">
          <van-field data-str="val3" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <van-field value="{{ houseType.val3 }}" data-str="val3" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <view class="unit">厨</view>
        </view>
        <view class="item">
          <van-field data-str="val4" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <van-field value="{{ houseType.val4 }}" data-str="val4" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <view class="unit">卫</view>
        </view>
        <view class="item">
          <van-field data-str="val5" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <van-field value="{{ houseType.val5 }}" data-str="val5" bind:blur="houseBlur" type="number" class="input" maxlength="{{ 3 }}" />
          <view class="unit">阳</view>
        </view>
      </view>
wechat_jiaxuan/pages/userinfo/index.wxss
@@ -42,7 +42,20 @@
  font-size: 30rpx;
  color: #777777;
}
.list .line .wechat_phone {
  width: 100%;
  flex: 1;
  color: #111111;
  border-bottom: 1rpx solid #e5e5e5;
  display: flex;
  justify-content: space-between;
}
.list .line .wechat_phone .btn {
  font-size: 30rpx;
  color: #B08771;
}
.list .line .input {
  width: 100%;
  flex: 1;
  color: #111111;
  border-bottom: 1rpx solid #e5e5e5;
wechat_jiaxuan/project.private.config.json
@@ -60,8 +60,8 @@
        },
        {
          "name": "",
          "pathName": "pages/consult/detail",
          "query": "id=1813577799402684418",
          "pathName": "pages/userinfo/index",
          "query": "",
          "launchMode": "default",
          "scene": null
        }
wechat_staff/pages/detailDis/product.js
@@ -16,6 +16,7 @@
    info: {},
    member: {},
    showShare: false,
    isFold: false,
    enjoyList: []
  },
  onShow(){
@@ -167,6 +168,9 @@
    //   this.setData({showShare: false})
    // })
  },
  changeFold() {
    this.setData({ isFold: !this.data.isFold })
  },
  // onShareAppMessage: function () {
  //   // let { productDetail, userInfo } = this.data
  //   return {
wechat_staff/pages/detailDis/product.less
@@ -194,7 +194,16 @@
.detail {
  padding: 52rpx 40rpx 40rpx;
  background-color: #fff;
  .fold{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 84rpx;
    margin-top: 20rpx;
    .icon{
      margin-left: 12rpx;
    }
  }
  .title {
    font-weight: 600;
    font-size: 36rpx;
@@ -203,9 +212,10 @@
  .line {
    display: flex;
    margin-bottom: 20rpx;
    padding: 24rpx 0 26rpx;
    border-bottom: 1rpx dashed #E5E5E5;
    .label {
      width: auto;
      width: 120rpx;
      font-size: 24rpx;
      color: #666666;
      flex-shrink: 0;
wechat_staff/pages/detailDis/product.wxml
@@ -28,11 +28,17 @@
      </view>
    </view>
  </view>
  <view class="detail">
    <view class="title" bind:tap="goTestPage">产品详情</view>
    <view class="line" wx:for="{{ info.productParamList }}">
      <view class="label">{{ item.paramName }}:</view>
      <view class="val">{{ item.paramValue }}</view>
   <view class="detail">
    <view class="title">产品详情</view>
    <block wx:for="{{ info.productParamList }}">
      <view wx:if="{{ index < 5 || isFold }}" class="line" >
        <view class="label">{{ item.paramName }}:</view>
        <view class="val">{{ item.paramValue }}</view>
      </view>
    </block>
    <view wx:if="{{ info.productParamList.length > 5 }}" class="fold" bindtap="changeFold">
      <text>{{ isFold ? '收起' : '展开' }}</text>
      <van-icon class="icon" name="{{ isFold ? 'arrow-up' : 'arrow-down' }}" />
    </view>
  </view>
  <!-- 富文本 -->