| | |
| | | "permission": { |
| | | "scope.userLocation": { |
| | | "desc": "你的位置信息将用于小程序位置接口的效果展示" |
| | | }, |
| | | "scope.userInfo": { |
| | | "desc": "你的微信呢称将用于小程序呢称的效果展示" |
| | | } |
| | | }, |
| | | "componentFramework": "glass-easel", |
| | |
| | | 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({ |
| | |
| | | .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; |
| | |
| | | |
| | | .line { |
| | | display: flex; |
| | | margin-bottom: 20rpx; |
| | | padding: 24rpx 0 26rpx; |
| | | border-bottom: 1rpx dashed #E5E5E5; |
| | | .label { |
| | | width: 120rpx; |
| | | font-size: 24rpx; |
| | |
| | | </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> |
| | | <!-- 富文本 --> |
| | |
| | | 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; |
| | |
| | | } |
| | | .detail .line { |
| | | display: flex; |
| | | margin-bottom: 20rpx; |
| | | padding: 24rpx 0 26rpx; |
| | | border-bottom: 1rpx dashed #E5E5E5; |
| | | } |
| | | .detail .line .label { |
| | | width: 120rpx; |
| | |
| | | } |
| | | } |
| | | } |
| | | .empty_wrap{ |
| | | padding-top: 100rpx; |
| | | } |
| | | .container{ |
| | | overflow: hidden; |
| | | height: 100%; |
| | |
| | | </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"> |
| | |
| | | </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> |
| | |
| | | color: var(--themeColor); |
| | | border: 1rpx solid var(--themeColor); |
| | | } |
| | | .empty_wrap { |
| | | padding-top: 100rpx; |
| | | } |
| | | .container { |
| | | overflow: hidden; |
| | | height: 100%; |
| | |
| | | uploadUrl, |
| | | editMember, |
| | | getMemberInfo, |
| | | getArea |
| | | getArea, |
| | | getWxMiniPhone |
| | | } from '../../api/index' |
| | | Page({ |
| | | |
| | |
| | | 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() { |
| | |
| | | title: '保存成功', |
| | | icon: 'none' |
| | | }) |
| | | setTimeout(() => { |
| | | wx.navigateBack() |
| | | }, 500) |
| | | }) |
| | | }, |
| | | initData() { |
| | |
| | | }) |
| | | } |
| | | }, |
| | | 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 }) |
| | | }, |
| | |
| | | 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); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | 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; |
| | |
| | | </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> |
| | |
| | | </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"> |
| | |
| | | <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> |
| | |
| | | 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; |
| | |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/consult/detail", |
| | | "query": "id=1813577799402684418", |
| | | "pathName": "pages/userinfo/index", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | } |
| | |
| | | info: {}, |
| | | member: {}, |
| | | showShare: false, |
| | | isFold: false, |
| | | enjoyList: [] |
| | | }, |
| | | onShow(){ |
| | |
| | | // this.setData({showShare: false}) |
| | | // }) |
| | | }, |
| | | changeFold() { |
| | | this.setData({ isFold: !this.data.isFold }) |
| | | }, |
| | | // onShareAppMessage: function () { |
| | | // // let { productDetail, userInfo } = this.data |
| | | // return { |
| | |
| | | .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; |
| | |
| | | |
| | | .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; |
| | |
| | | </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> |
| | | <!-- 富文本 --> |