| | |
| | | }) |
| | | const member = wx.getStorageSync('member') |
| | | this.setData({ |
| | | phone: member.phone |
| | | phone: member.phone, |
| | | name: member.name |
| | | }) |
| | | }, |
| | | regionChange(e) { |
| | |
| | | } |
| | | .icon { |
| | | width: 40rpx; |
| | | height: 32rpx; |
| | | } |
| | | .city{ |
| | | flex: 1; |
| | |
| | | {{ addr.provinceName }}{{ addr.cityName }}{{ addr.areaName }} |
| | | </view> |
| | | </picker> --> |
| | | <areaSel bindchange="regionChange" placeholder="请选择所在区域" value="{{['210000000','210500000','210501000']}}" /> |
| | | <areaSel class="city_picler" bindchange="regionChange" placeholder="请选择所在区域" value="{{['210000000','210500000','210501000']}}" /> |
| | | <image class="arrow_right" src="../../static/icon/arrow_right.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="btn" bindtap="onSubmit">立即报名</view> |
| | |
| | | } |
| | | .main_content .line .icon { |
| | | width: 40rpx; |
| | | height: 32rpx; |
| | | } |
| | | .main_content .line .city { |
| | | flex: 1; |
| | |
| | | rect.top // 节点的上边界坐标 |
| | | rect.bottom // 节点的下边界坐标 |
| | | }).exec(res => { |
| | | console.log('res', res); |
| | | console.log(windowInfo.windowHeight) |
| | | this.setData({ videoTop: res[0].top,windowHeight: windowInfo.windowHeight}) |
| | | }) |
| | |
| | | let that = this |
| | | switch (index) { |
| | | case '0': |
| | | if (member && member.phone) { |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index', |
| | | success: function (res) { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | break; |
| | | |
| | | case '1': |
| | |
| | | <view class="item" data-type="2" bindtap="changePath"> |
| | | <image class="img" src="../../static/icon/home_ic_liangchi@2x.png"></image> |
| | | <view class="name">免费量尺</view> |
| | | <view class="placeholder9">分析小帮手</view> |
| | | <view class="placeholder9">一对一设计服务</view> |
| | | </view> |
| | | <view class="item" data-type="1" bindtap="changePath"> |
| | | <image class="img" src="../../static/icon/home_ic_yusuan@2x.png"></image> |
| | |
| | | { |
| | | "usingComponents": { |
| | | "van-field": "@vant/weapp/field/index", |
| | | "van-popup": "@vant/weapp/popup/index" |
| | | "van-popup": "@vant/weapp/popup/index", |
| | | "areaSel": "/components/areaSel/areaSel" |
| | | }, |
| | | "navigationBarTitleText": "个人资料" |
| | | } |
| | |
| | | .picker_wrap{ |
| | | width: 528rpx; |
| | | display: flex; |
| | | border: 1px solid red; |
| | | .city_picler{ |
| | | flex: 1; |
| | | border: 1px solid; |
| | | } |
| | | } |
| | | .text{ |
| | | flex: 1; |
| | |
| | | <view class="label">城市</view> |
| | | <view class="val"> |
| | | <view class="df_ac" style="width: 100%"> |
| | | <picker class="picker" mode="region" value="{{ addr }}" bindchange="positionChange"> |
| | | <view class="picker_wrap"> |
| | | <areaSel class="city_picler" bindchange="regionChange" placeholder="请选择所在区域" value="{{['210000000','210500000','210501000']}}" /> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <!-- <picker class="picker" mode="region" value="{{ addr }}" bindchange="positionChange"> |
| | | <view class="picker_wrap"> |
| | | <view class="text placeholder9" hidden="{{ addr.cityName }}">请选择城市</view> |
| | | <view class="text" hidden="{{ !addr.cityName }}"> |
| | |
| | | </view> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </picker> |
| | | </picker> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | .list .line .picker .picker_wrap { |
| | | width: 528rpx; |
| | | display: flex; |
| | | border: 1px solid red; |
| | | } |
| | | .list .line .picker .picker_wrap .city_picler { |
| | | flex: 1; |
| | | border: 1px solid; |
| | | } |
| | | .list .line .picker .text { |
| | | flex: 1; |
| | |
| | | this.getDetail(options.id) |
| | | } |
| | | }, |
| | | handleShare() { |
| | | wx.navigateToMiniProgram({ |
| | | appId: 'wxcd2b89fd2ff065f8', |
| | | path: `/pages/kefu/index`, |
| | | envVersion: 'trial' |
| | | }) |
| | | }, |
| | | getDetail(id) { |
| | | getCustomizedNewsDetail({id}).then(res => { |
| | | this.setData({ |
| | |
| | | <!-- footer --> |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <button open-type="share" class="item btn" bindtap="handleShare"> |
| | | <!-- <button open-type="share" class="item btn" bindtap="handleShare"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">分享</view> |
| | | </button> --> |
| | | <button class="item btn" bindtap="handleShare"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">分享</view> |
| | | </button> |