| | |
| | | <view> |
| | | <!-- 名片 --> |
| | | <idCard users="{{ info.users }}" wx:if="{{ info.users && info.users.id }}" /> |
| | | <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" /> |
| | | <view class="main_content"> |
| | | <view class="main_title">{{ info.title }}</view> |
| | | <view class="datetime">发布时间:{{ info.publishDt }}</view> |
| | |
| | | success: (res) => { |
| | | console.log('res', res); |
| | | let addr = { |
| | | // provinceCode: codes[0] + '00', |
| | | provinceCode: res.result.ad_info.adcode.slice(0,2) + '000000', |
| | | provinceName: res.result.ad_info.province, |
| | | // cityCode: codes[1] + '00', |
| | | cityCode: res.result.ad_info.adcode.slice(0,4) + '0000', |
| | | cityName: res.result.ad_info.city, |
| | | // areaCode: codes[2] + '00', |
| | | areaCode: res.result.ad_info.adcode + '00', |
| | | areaName: res.result.ad_info.district, |
| | | } |
| | | this.setData({ addr }) |
| | | |
| | | } |
| | | }) |
| | | }, |
| | |
| | | wx.showToast({ |
| | | title: '报名成功' |
| | | }) |
| | | setTimeout(() => { |
| | | wx.switchTab({ |
| | | url: '/pages/index/index', |
| | | }) |
| | | }, 1000) |
| | | }) |
| | | }, |
| | | // 显示城市弹窗 |
| | | chooseCity () { |
| | | this.setData({ showAreaList: !this.data.showAreaList }) |
| | | console.log('chooseCity', this.data.showAreaList); |
| | | }, |
| | | onFinish(e) { |
| | | const { selectedOptions, value } = e.detail; |
| | |
| | | }, |
| | | positionChange (e) { |
| | | console.log(e.detail.value) |
| | | console.log(e.detail.code) |
| | | const names = e.detail.value |
| | | const codes = e.detail.code |
| | | let addr = { |
| | |
| | | <view class="container"> |
| | | <!-- 名片 --> |
| | | <idCard users="{{ info.users }}" wx:if="{{ info.users && info.users.id }}" /> |
| | | <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" /> |
| | | <view class="main_title">{{ info.title }}</view> |
| | | <view class="time">发布时间:{{ info.publishDt }}</view> |
| | | <view class="fullview_wrap"> |
| | |
| | | <view class="text">{{ info.caseInfo }}</view> |
| | | </view> |
| | | <view class="list"> |
| | | <view wx:for="{{ info.apiSpaceCaseVos }}" class="item"> |
| | | <view wx:for="{{ info.apiSpaceCaseVos }}" wx:for-index="index" class="item"> |
| | | <view class="h1">{{ item.spaceName }}</view> |
| | | <image data-index="{{index}}" data-url="{{ img }}" bindtap="priviewSpace" class="img" wx:for="{{ item.imgList }}" wx:for-item="img" src="{{ img }}" mode="widthFix" /> |
| | | <image data-index="{{index}}" data-url="{{ img }}" bindtap="priviewSpace" class="img" wx:for-index="indexb" wx:for="{{ item.imgList }}" wx:for-item="img" src="{{ img }}" mode="widthFix" /> |
| | | <view class="content">{{ item.spaceDesc }}</view> |
| | | </view> |
| | | </view> |
| | |
| | | info |
| | | } = this.data |
| | | wx.previewImage({ |
| | | urls: info.imageurlList, |
| | | urls: info.bannerImgList, |
| | | current: url |
| | | }) |
| | | }, |
| | |
| | | info |
| | | } = this.data |
| | | wx.previewImage({ |
| | | urls: info.imageurlList, |
| | | urls: info.spaceList.map(i => i.spaceImg), |
| | | current: url |
| | | }) |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | handleShare() { |
| | | console.log('点击了分享'); |
| | | actionDo({ |
| | | actionType: 'share', |
| | | id: this.data.info.id |
| | |
| | | // this.setData({showShare: false}) |
| | | // }) |
| | | }, |
| | | // onShareAppMessage: function () { |
| | | // // let { productDetail, userInfo } = this.data |
| | | // return { |
| | | // title: productDetail.title, |
| | | // path: '/pages/index/index?id=' + productDetail.id + '&shareuserid=' + userInfo.id + '&type=0' |
| | | // } |
| | | // }, |
| | | onShareAppMessage: function () { |
| | | let { info } = this.data |
| | | console.log('点击了分享') |
| | | return { |
| | | path: '/pages/detailDis/product?id=' + info.id + '&userId=' + info.users.id |
| | | } |
| | | }, |
| | | onClose() { |
| | | this.setData({ |
| | | showShare: false |
| | |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| | |
| | | position: relative; |
| | | .img{ |
| | | width: 100%; |
| | | height: 376rpx; |
| | | } |
| | | .play{ |
| | | position: absolute; |
| | |
| | | border-radius: 30rpx; |
| | | font-size: 26rpx; |
| | | color: rgba(255,255,255,0.8); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | .icon{ |
| | | width: 14rpx; |
| | | height: 16rpx; |
| | | margin-left: 14rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .line { |
| | | display: flex; |
| | | height: 32rpx; |
| | | margin-bottom: 24rpx; |
| | | |
| | | margin-bottom: 20rpx; |
| | | .label { |
| | | width: 120rpx; |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .val { |
| | |
| | | <view class="container"> |
| | | <!-- 名片 --> |
| | | <idCard users="{{ info.users }}" wx:if="{{ info.users && info.users.id }}" /> |
| | | <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" /> |
| | | <!-- banner轮播 --> |
| | | <view class="swiper_wrap"> |
| | | <swiper bindchange="bindchange" class="banner_swiper" circular indicator-dots="{{false}}" autoplay style="height:{{bannerHeight}}rpx" duration> |
| | |
| | | <view class="title">产品视频</view> |
| | | <view class="img_wrap"> |
| | | <image class="img" src="{{ info.coverImage }}" mode="widthFix"></image> |
| | | <view bindtap="playVideo" class="play">播放</view> |
| | | <view class="play"> |
| | | <view>播放</view> |
| | | <image bindtap="playVideo" src="../../static/icon/ic_play.png" class="icon"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="detail"> |
| | |
| | | <view class="container"> |
| | | <!-- 名片 --> |
| | | <idCard users="{{ info.users }}" wx:if="{{ info.users && info.users.id }}" /> |
| | | <idCard users="{{ info.users }}" wx:if="{{ origin != 'b' && info.users && info.users.id }}" /> |
| | | <view class="main_title">{{ info.title }}</view> |
| | | <view class="time">发布时间:{{ info.publishDt }}</view> |
| | | <image data-url="{{ item }}" bindtap="priviewSpace" class="info_item" wx:for="{{ info.contentImgList }}" src="{{ item }}" mode="widthFix"></image> |
| | |
| | | const { info, path} = this.data |
| | | wx.navigateToMiniProgram({ |
| | | appId: 'wx208dd1edc0be24ee', |
| | | path: `${map[path]}?origin=b&id=${info.id}`, |
| | | path: `${map[path]}?origin=b&id=${info.id}&userId=${wx.getStorageSync('member').id}`, |
| | | envVersion: 'trial' |
| | | }) |
| | | }, |
| | |
| | | handleDesign() { |
| | | wx.navigateToMiniProgram({ |
| | | appId: 'wx208dd1edc0be24ee', |
| | | path: `/pages/consult/detail?id=${this.data.info.id}&origin=b`, |
| | | path: `/pages/consult/detail?id=${this.data.info.id}&origin=b&userId=${wx.getStorageSync('member').id}`, |
| | | envVersion: 'trial' |
| | | }) |
| | | }, |
| | |
| | | this.setData({showShare: true}) |
| | | }, |
| | | handleShare() { |
| | | console.log('点击了分享'); |
| | | console.log('点击了分享') |
| | | shareContent(this.data.info.id) |
| | | }, |
| | | // onShareAppMessage: function () { |
| | |
| | | <view class="text">{{ info.caseInfo }}</view> |
| | | </view> |
| | | <view class="list"> |
| | | <view wx:for="{{ info.apiSpaceCaseVos }}" class="item"> |
| | | <view wx:for="{{ info.apiSpaceCaseVos }}" wx:for-index="index" class="item"> |
| | | <view class="h1">{{ item.spaceName }}</view> |
| | | <image data-url="{{ img }}" bindtap="priviewSpace" class="img" wx:for="{{ item.imgList }}" wx:for-item="img" src="{{ img }}" mode="widthFix" /> |
| | | <image data-index="{{index}}" data-url="{{ img }}" bindtap="priviewSpace" class="img" wx:for-index="indexb" wx:for="{{ item.imgList }}" wx:for-item="img" src="{{ img }}" mode="widthFix" /> |
| | | <view class="content">{{ item.spaceDesc }}</view> |
| | | </view> |
| | | </view> |
| | |
| | | info |
| | | } = this.data |
| | | wx.previewImage({ |
| | | urls: info.imageurlList, |
| | | urls: info.bannerImgList, |
| | | current: url |
| | | }) |
| | | }, |
| | |
| | | info |
| | | } = this.data |
| | | wx.previewImage({ |
| | | urls: info.imageurlList, |
| | | urls: info.spaceList.map(i => i.spaceImg), |
| | | current: url |
| | | }) |
| | | }, |
| | |
| | | position: relative; |
| | | .img{ |
| | | width: 100%; |
| | | height: 376rpx; |
| | | } |
| | | .play{ |
| | | position: absolute; |
| | |
| | | border-radius: 30rpx; |
| | | font-size: 26rpx; |
| | | color: rgba(255,255,255,0.8); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | .icon{ |
| | | width: 14rpx; |
| | | height: 16rpx; |
| | | margin-left: 14rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .line { |
| | | display: flex; |
| | | height: 32rpx; |
| | | margin-bottom: 24rpx; |
| | | |
| | | margin-bottom: 20rpx; |
| | | .label { |
| | | width: 120rpx; |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .val { |
| | |
| | | <view wx:if="{{ info.video }}" class="video"> |
| | | <view class="title">产品视频</view> |
| | | <view class="img_wrap"> |
| | | <image class="img" src="{{ info.coverImage }}" mode="widthFix"></image> |
| | | <view bindtap="playVideo" class="play">播放</view> |
| | | <image class="img" src="{{ info.coverImage }}" mode="aspectFill"></image> |
| | | <view class="play"> |
| | | <view>播放</view> |
| | | <image bindtap="playVideo" src="../../static/icon/ic_play.png" class="icon"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="detail"> |
| | |
| | | } |
| | | .video .img_wrap .img { |
| | | width: 100%; |
| | | height: 376rpx; |
| | | } |
| | | .video .img_wrap .play { |
| | | position: absolute; |
| | |
| | | border-radius: 30rpx; |
| | | font-size: 26rpx; |
| | | color: rgba(255, 255, 255, 0.8); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .video .img_wrap .play .icon { |
| | | width: 14rpx; |
| | | height: 16rpx; |
| | | margin-left: 14rpx; |
| | | } |
| | | .detail { |
| | | padding: 52rpx 40rpx 40rpx; |
| | |
| | | } |
| | | .detail .line { |
| | | display: flex; |
| | | height: 32rpx; |
| | | margin-bottom: 24rpx; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .detail .line .label { |
| | | width: 120rpx; |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | .detail .line .val { |
| | | flex: 1; |
| | |
| | | console.log('obj', obj); |
| | | let that = this |
| | | getContentShareImg({ |
| | | articleId: obj.id + '&' + obj.joinType, |
| | | articleId: obj.id + '_' + obj.joinType, |
| | | type: '0', |
| | | // pageUrl: path, |
| | | imgurl: obj.coverImage, |