Merge remote-tracking branch 'origin/master'
| | |
| | | "permission": { |
| | | "scope.userLocation": { |
| | | "desc": "ä½ çä½ç½®ä¿¡æ¯å°ç¨äºå°ç¨åºä½ç½®æ¥å£çææå±ç¤º" |
| | | }, |
| | | "scope.userInfo": { |
| | | "desc": "ä½ ç微信å¢ç§°å°ç¨äºå°ç¨åºå¢ç§°çææå±ç¤º" |
| | | } |
| | | }, |
| | | "componentFramework": "glass-easel", |
| | |
| | | view,text,scroll-view,image{ |
| | | box-sizing: border-box; |
| | | } |
| | | .swiper{ |
| | | box-sizing: border-box; |
| | | } |
| | | page{ |
| | | background-color: #fff; |
| | | --themeColor:#B08771; |
| | |
| | | activeParam: [], |
| | | selParam: '', |
| | | tagCodes: [], |
| | | |
| | | isLoading :false, |
| | | |
| | | cateList: [], |
| | | dataList: [], |
| | |
| | | }) |
| | | }, |
| | | getList() { |
| | | if(this.data.isLoading){ |
| | | return |
| | | } |
| | | this.setData({isLoading:true}) |
| | | const { sortType, query, tagCodes, pageNum, pageSize, catalogCode } = this.data |
| | | getZhongTaiWholecasePage({ |
| | | catalogCode, pageNum, pageSize, tagCodes, sortType, query |
| | |
| | | dataList: [...this.data.dataList, ...res.data.records], |
| | | }) |
| | | } |
| | | }).finally(()=>{ |
| | | this.setData({isLoading:false}) |
| | | }) |
| | | }, |
| | | scrolltolower() { |
| | |
| | | }) |
| | | }, |
| | | tagClick(e) { |
| | | if(this.data.isLoading){ |
| | | return |
| | | } |
| | | const code = e.currentTarget.dataset.code |
| | | const paramIndex = e.currentTarget.dataset.index |
| | | const { cateList, tagCodes, activeParam, activeIndex } = this.data |
| | | const index = tagCodes.indexOf(code) |
| | | |
| | | if (index === -1) { |
| | | // åparamécodeéå¤ |
| | | if (activeParam && activeParam.length > 0) { |
| | | activeParam.forEach(item => { |
| | | const indexTemp = tagCodes.indexOf(item.labelValueCode) |
| | | if (indexTemp > -1) { |
| | | tagCodes.splice(indexTemp, 1) |
| | | } |
| | | }) |
| | | } |
| | | tagCodes.push(code) |
| | | cateList[activeIndex].paramIndex = paramIndex |
| | | cateList[activeIndex].paramName = activeParam[paramIndex].labelValueName |
| | | if (cateList[activeIndex].tempParamIndex==null || cateList[activeIndex].tempParamIndex != paramIndex) { |
| | | // // åparamécodeéå¤ |
| | | // if (activeParam && activeParam.length > 0) { |
| | | // activeParam.forEach(item => { |
| | | // const indexTemp = tagCodes.indexOf(item.labelValueCode) |
| | | // if (indexTemp > -1) { |
| | | // tagCodes.splice(indexTemp, 1) |
| | | // } |
| | | // }) |
| | | // } |
| | | // tagCodes.push(code) |
| | | cateList[activeIndex].tempParamIndex = paramIndex |
| | | cateList[activeIndex].tempParamName = activeParam[paramIndex].labelValueName |
| | | cateList[activeIndex].tempParamCode = code |
| | | } else { |
| | | tagCodes.splice(index, 1) |
| | | cateList[activeIndex].paramIndex = -1 |
| | | cateList[activeIndex].paramName = '' |
| | | // tagCodes.splice(index, 1) |
| | | cateList[activeIndex].tempParamIndex = -1 |
| | | cateList[activeIndex].tempParamName = null |
| | | cateList[activeIndex].tempParamCode = null |
| | | } |
| | | this.setData({ pageNum: 1, dataList: [], total: 0 }) |
| | | this.setData({ tagCodes, cateList }) |
| | | // this.setData({ pageNum: 1, dataList: [], total: 0 }) |
| | | this.setData({cateList }) |
| | | console.log('tagCodes', tagCodes) |
| | | }, |
| | | cancelParam() { |
| | | |
| | | const { cateList } = this.data |
| | | cateList.forEach(item => { |
| | | item.paramIndex = -1 |
| | | item.paramName = item.paramName || '' |
| | | item.tempParamIndex =item.paramIndex |
| | | item.tempParamName =item.paramName |
| | | item.tempParamCode =item.paramCode |
| | | }) |
| | | this.setData({ tagCodes: [], activeParam: [], cateList, activeIndex: -1 }) |
| | | this.setData({ activeParam: [],cateList , activeIndex: -1 }) |
| | | }, |
| | | bindblur() { |
| | | this.setData({ pageNum: 1, dataList: [], total: 0 }) |
| | | this.getList() |
| | | }, |
| | | subParam() { |
| | | subParam() { |
| | | this.setData({ activeParam: [] }) |
| | | this.setData({ pageNum: 1, activeIndex: -1, dataList: [], total: 0 }) |
| | | const { cateList } = this.data |
| | | var codes = [] |
| | | cateList.forEach(item => { |
| | | item.paramIndex =item.tempParamIndex |
| | | item.paramName =item.tempParamName |
| | | item.paramCode =item.tempParamCode |
| | | if(item.paramIndex >-1 && item.paramCode){ |
| | | codes.push(item.paramCode) |
| | | } |
| | | }) |
| | | this.setData({tagCodes:codes, pageNum: 1, activeIndex: -1, dataList: [], total: 0 }) |
| | | this.getList() |
| | | }, |
| | | changeShowParams(e) { |
| | |
| | | <scroll-view class="query_wrap_scroll" scroll-x> |
| | | <view class="query_wrap"> |
| | | <view data-index="{{ index }}" wx:for="{{ cateList }}" class="item" bindtap="changeShowParams"> |
| | | <view class="name">{{ item.paramName || item.labelName }}</view> |
| | | <view class="name">{{ item.tempParamName || item.labelName }}</view> |
| | | <van-icon name="{{ activeIndex === index ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | </view> |
| | |
| | | <!-- param --> |
| | | <view wx:if="{{ activeParam && activeParam.length > 0 }}" class="query_param"> |
| | | <view class="list"> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ cateList[activeIndex].paramIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ cateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="cancelParam">åæ¶</view> |
| | |
| | | console.log('code', code) |
| | | console.log('tagCodes', tagCodes) |
| | | console.log(secondCateList) |
| | | if (index === -1) { |
| | | if ( secondCateList[activeIndex].tempParamIndex==null || secondCateList[activeIndex].tempParamIndex != paramIndex) { |
| | | // åparamécodeéå¤ |
| | | // if (activeParam && activeParam.length > 0) { |
| | | // activeParam.forEach(item => { |
| | |
| | | width: 242rpx; |
| | | flex-shrink: 0; |
| | | margin-bottom: 32rpx; |
| | | &:nth-last-child(1){ |
| | | margin-right: auto; |
| | | } |
| | | .img_wrap { |
| | | width: 242rpx; |
| | | border-radius: 8rpx; |
| | |
| | | </view> |
| | | <view wx:if="{{ activeParam.length > 0 }}" class="query_form"> |
| | | <view class="list"> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="cancelParam">åæ¶</view> |
| | |
| | | flex-shrink: 0; |
| | | margin-bottom: 32rpx; |
| | | } |
| | | .main_content .main_right .goods_list .item:nth-last-child(1) { |
| | | margin-right: auto; |
| | | } |
| | | .main_content .main_right .goods_list .item .img_wrap { |
| | | width: 242rpx; |
| | | border-radius: 8rpx; |
| | |
| | | }, |
| | | videoClick(e) { |
| | | const { videourl } = e.currentTarget.dataset |
| | | wx.previewMedia({ |
| | | sources: [{ url: videourl, type: 'video' }] |
| | | }) |
| | | |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(videourl,this ); |
| | | } |
| | | console.log(videourl+"-------------------------------------") |
| | | // wx.previewMedia({ |
| | | // sources: [{ url: videourl, type: 'video' }] |
| | | // }) |
| | | }, |
| | | priviewFull(e){ |
| | | const item = e.currentTarget.dataset.item |
| | |
| | | const item = e.currentTarget.dataset.item |
| | | console.log('item', item); |
| | | if(item.openType == 'video'){ |
| | | wx.previewMedia({ |
| | | sources: [{ url: item.openContent, type: 'video' }] |
| | | }) |
| | | |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(item.openContent,this ); |
| | | } |
| | | // wx.previewMedia({ |
| | | // sources: [{ url: item.openContent, type: 'video' }] |
| | | // }) |
| | | } |
| | | if(item.openType == 'link'){ |
| | | wx.navigateTo({ |
| | |
| | | const code = e.currentTarget.dataset.code |
| | | const paramIndex = e.currentTarget.dataset.index |
| | | const { cateList, tagCodes, activeParam, activeIndex } = this.data |
| | | const index = tagCodes.indexOf(code) |
| | | |
| | | if(index === -1){ |
| | | // if(activeParam && activeParam.length > 0){ |
| | | // activeParam.forEach(item => { |
| | | // const indexTemp = tagCodes.indexOf(item.labelValueCode) |
| | | // if(indexTemp > -1){ |
| | | // tagCodes.splice(indexTemp, 1) |
| | | // } |
| | | // }) |
| | | // } |
| | | // tagCodes.push(code) |
| | | const index = tagCodes.indexOf(code) |
| | | if( cateList[activeIndex].tempParamIndex==null || cateList[activeIndex].tempParamIndex != paramIndex){ |
| | | cateList[activeIndex].tempParamIndex = paramIndex |
| | | cateList[activeIndex].tempParamName = activeParam[paramIndex].labelValueName |
| | | cateList[activeIndex].tempParamCode = code |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": {} |
| | | "usingComponents": { |
| | | "videoPlay": "/components/videoPlay/index" |
| | | } |
| | | } |
| | |
| | | .item { |
| | | width: 324rpx; |
| | | margin-bottom: 32rpx; |
| | | &:nth-last-child(1){ |
| | | margin-right: auto; |
| | | } |
| | | .img_wrap { |
| | | width: 100%; |
| | | height: 182rpx; |
| | |
| | | |
| | | .full { |
| | | position: absolute; |
| | | top: 32rpx; |
| | | right: 32rpx; |
| | | top: 16rpx; |
| | | left: 16rpx; |
| | | font-size: 20rpx; |
| | | color: rgba(255, 255, 255, 0.8); |
| | | width: 112rpx; |
| | | height: 42rpx; |
| | | width:52rpx; |
| | | height: 46rpx; |
| | | background: rgba(0, 0, 0, 0.54); |
| | | border-radius: 30rpx; |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | |
| | | <scroll-view class="query_wrap_scroll" scroll-x> |
| | | <view class="query_wrap"> |
| | | <view data-index="{{ index }}" wx:for="{{ cateList }}" class="item" bindtap="changeShowParams"> |
| | | <view class="name">{{ item.paramName || item.labelName }}</view> |
| | | <view class="name">{{ item.tempParamName || item.labelName }}</view> |
| | | <van-icon name="{{ activeIndex === index ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | </view> |
| | |
| | | <!-- param --> |
| | | <view wx:if="{{ activeParam && activeParam.length > 0 }}" class="query_param"> |
| | | <view class="list"> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ cateList[activeIndex].paramIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ cateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="cancelParam">åæ¶</view> |
| | |
| | | <view wx:for="{{ dataList }}" data-item="{{item}}" class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="{{ item.coverImage }}" class="img"></image> |
| | | <view wx:if="{{ item.openType == 'link' }}" data-item="{{item}}" bindtap="priviewFull" class="full"> |
| | | <image class="icon" src="../../static/icon/ic_720.png" mode="widthFix"></image> |
| | | <text>å
¨æ¯</text> |
| | | <view wx:if="{{ item.openType == 'link' }}" data-item="{{item}}" bindtap="priviewFull" class="full"> |
| | | <text>VR</text> |
| | | </view> |
| | | <image wx:if="{{ item.openType == 'video' }}" bindtap="videoClick" data-videourl="{{ item.openContent }}" class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | |
| | | </view> |
| | | |
| | | |
| | | <videoPlay class="videoPlay"/> |
| | | </view> |
| | |
| | | flex-wrap: wrap; |
| | | justify-content: space-around; |
| | | } |
| | | |
| | | .main_content .goods_list .item { |
| | | width: 324rpx; |
| | | margin-bottom: 32rpx; |
| | | } |
| | | .main_content .goods_list .item:nth-last-child(1) { |
| | | margin-right: auto; |
| | | } |
| | | .main_content .goods_list .item .img_wrap { |
| | | width: 100%; |
| | |
| | | } |
| | | .main_content .goods_list .item .img_wrap .full { |
| | | position: absolute; |
| | | top: 32rpx; |
| | | right: 32rpx; |
| | | top: 16rpx; |
| | | left: 16rpx; |
| | | font-size: 20rpx; |
| | | color: rgba(255, 255, 255, 0.8); |
| | | width: 112rpx; |
| | | height: 42rpx; |
| | | width:52rpx; |
| | | height: 46rpx; |
| | | background: rgba(0, 0, 0, 0.54); |
| | | border-radius: 30rpx; |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | |
| | | font-size: 20rpx; |
| | | color: #333333; |
| | | .icon{ |
| | | margin-bottom: 4rpx; |
| | | margin-bottom: 6rpx; |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
| | |
| | | color: #333333; |
| | | } |
| | | .user .btns .item .icon { |
| | | margin-bottom: 4rpx; |
| | | margin-bottom: 6rpx; |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
| | |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.2); |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 9999; |
| | | } |
| | | .video_content .video{ |
| | | position: fixed; |
| | | border-radius: 8rpx; |
| | | top: 50%; |
| | | left: 75rpx; |
| | | transform: translate(0, -50%); |
| | | width: 600rpx; |
| | | top: 40%; |
| | | left: 0; |
| | | width: 750rpx; |
| | | z-index: 10000; |
| | | } |
| | | video{ |
| | | width: 750rpx; |
| | | } |
| | |
| | | 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({ |
| | |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | background-color: #fff; |
| | | margin-bottom: 20rpx; |
| | | overflow: hidden; |
| | | .title { |
| | | font-weight: 500; |
| | | font-size: 36rpx; |
| | | margin-bottom: 16rpx; |
| | | } |
| | | .desc { |
| | | |
| | | line-height: 40rpx; |
| | | font-size: 26rpx; |
| | | color: #555555; |
| | | margin-bottom: 26rpx; |
| | |
| | | .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; |
| | |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | <view class="indicator">{{current}}/{{info.bannerImgList.length}}</view> |
| | | <view class="indicator">{{current + 1}}/{{info.bannerImgList.length}}</view> |
| | | </view> |
| | | <view class="main_content"> |
| | | <view class="title">{{ info.title }}</view> |
| | |
| | | </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> |
| | | <!-- å¯ææ¬ --> |
| | |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | background-color: #fff; |
| | | margin-bottom: 20rpx; |
| | | overflow: hidden; |
| | | } |
| | | .main_content .title { |
| | | font-weight: 500; |
| | |
| | | margin-bottom: 16rpx; |
| | | } |
| | | .main_content .desc { |
| | | line-height: 40rpx; |
| | | font-size: 26rpx; |
| | | color: #555555; |
| | | margin-bottom: 26rpx; |
| | |
| | | } |
| | | .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; |
| | | 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; |
| | |
| | | } |
| | | .detail .line { |
| | | display: flex; |
| | | height: 32rpx; |
| | | margin-bottom: 24rpx; |
| | | padding: 24rpx 0 26rpx; |
| | | border-bottom: 1rpx dashed #E5E5E5; |
| | | } |
| | | .detail .line .label { |
| | | width: auto; |
| | | width: 120rpx; |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | flex-shrink: 0; |
| | | } |
| | | .detail .line .val { |
| | | flex: 1; |
| | |
| | | total: res.data.total, |
| | | dataList: [ ...this.data.dataList, ...res.data.records ] |
| | | }) |
| | | }).finally(()=>{ |
| | | wx.stopPullDownRefresh() |
| | | }) |
| | | }, |
| | | itemClick(e) { |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "usingComponents": { |
| | | "mp-html": "mp-html" |
| | | }, |
| | | "navigationBarTitleText": "" |
| | | } |
| | |
| | | <view class="container"> |
| | | <rich-text nodes="{{ activeHtml }}"></rich-text> |
| | | <view style="width: 100%;height: auto;padding: 0px 40rpx;"> |
| | | <mp-html content="{{activeHtml}}"> </mp-html> |
| | | </view> |
| | |
| | | } |
| | | } |
| | | } |
| | | .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%; |
| | |
| | | margin-top: 8rpx; |
| | | font-weight: 600; |
| | | font-size: 40rpx; |
| | | display: flex; |
| | | display: flex; |
| | | align-items: flex-end; /* è¿ä¼ä½¿åå
ç´ åºé¨å¯¹é½ */ |
| | | justify-content: center; /* è¿ä¼ä½¿åå
ç´ æ°´å¹³å±
ä¸ */ |
| | | } |
| | | } |
| | | } |
| | |
| | | margin-top: 8rpx; |
| | | font-weight: 600; |
| | | font-size: 40rpx; |
| | | display: flex; |
| | | display: flex; |
| | | align-items: flex-end; /* è¿ä¼ä½¿åå
ç´ åºé¨å¯¹é½ */ |
| | | justify-content: center; /* è¿ä¼ä½¿åå
ç´ æ°´å¹³å±
ä¸ */ |
| | | } |
| | | .guide .title { |
| | | font-weight: 500; |
| | |
| | | margin-bottom: 16rpx; |
| | | } |
| | | .address{ |
| | | width: 520rpx; |
| | | width: 440rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | font-size: 26rpx; |
| | |
| | | margin-bottom: 16rpx; |
| | | } |
| | | .main_content .shops .shop .header .left .address { |
| | | width: 520rpx; |
| | | width: 440rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | font-size: 26rpx; |
| | |
| | | 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 class="line"> |
| | | <view class="label">æµç§°</view> |
| | | <view class="val"> |
| | | <input bindchange="getNickName" value="{{ nickname }}" maxlength="{{ 18 }}" type="nickname"/> |
| | | <input bindchange="getNickName" value="{{ nickname }}" maxlength="{{ 10 }}" type="nickname"/> |
| | | </view> |
| | | </view> |
| | | <view class="line"> |
| | |
| | | </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 |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | // export const baseUrl = 'http://192.168.0.135:10027' // æ¬å° |
| | | export const baseUrl = 'https://dmtest.ahapp.net/web_interface' //æµè¯æå¡å¨ |
| | | export const baseUrl = 'http://192.168.0.135:10027' // æ¬å° |
| | | // export const baseUrl = 'https://dmtest.ahapp.net/web_interface' //æµè¯æå¡å¨ |
| | | |
| | | // export const imageUrl = 'https://osswebcdn.zbom.com/jiaxuan/images/' |
| | | |
| | |
| | | import { baseUrl } from "./config" |
| | | import { wxLoginCustomer } from '../api/index' |
| | | |
| | | let number = 0 |
| | | export function request(options){ |
| | | let loading = options.loading || '1' // é»è®¤å¼1æ¾ç¤ºï¼å¦å䏿¾ç¤º |
| | | if(loading == '1'){ |
| | | wx.showLoading() |
| | | number ++ |
| | | } |
| | | return new Promise(resolve => { |
| | | wx.request({ |
| | |
| | | }, |
| | | complete() { |
| | | if(loading == '1'){ |
| | | wx.hideLoading() |
| | | number -- |
| | | if(number == 0){ |
| | | wx.hideLoading() |
| | | } |
| | | } |
| | | } |
| | | }) |
| | |
| | | position: fixed; |
| | | border-radius: 8rpx; |
| | | top: 50%; |
| | | left: 75rpx; |
| | | left: 95rpx; |
| | | transform: translate(0, -50%); |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | background-color: rgba(0, 0, 0, .2); |
| | | z-index: 99999; |
| | | .img1{ |
| | | image{ |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | border-radius: 8rpx ; |
| | | } |
| | | } |
| | | .content{ |
| | | width: 600rpx; |
| | | height: 308rpx; |
| | | padding: 26rpx 0 40rpx; |
| | | width: 560rpx; |
| | | padding: 24rpx 0 16rpx; |
| | | background: rgba(255,255,255,0.8); |
| | | border-radius: 16rpx; |
| | | margin-top: 24rpx; |
| | | text-align: center; |
| | | .title{ |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | margin-bottom: 20rpx; |
| | | font-size: 28rpx; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | .line{ |
| | | font-size: 26rpx; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | line-height: 36rpx; |
| | | line-height: 28rpx; |
| | | } |
| | | } |
| | | .btns{ |
| | | margin-top: 30rpx; |
| | | margin-top: 24rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | .btn{ |
| | | width: 160rpx; |
| | | height: 88rpx; |
| | | height: 72rpx; |
| | | border-radius: 8rpx; |
| | | border: 2rpx solid #FFFFFF; |
| | | display: flex; |
| | |
| | | position: fixed; |
| | | border-radius: 8rpx; |
| | | top: 50%; |
| | | left: 75rpx; |
| | | left: 95rpx; |
| | | transform: translate(0, -50%); |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | background-color: rgba(0, 0, 0, 0.2); |
| | | z-index: 99999; |
| | | } |
| | | .card_wrap .img1 image { |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | border-radius: 8rpx ; |
| | | } |
| | | .card_wrap .content { |
| | | width: 600rpx; |
| | | height: 308rpx; |
| | | padding: 26rpx 0 40rpx; |
| | | width: 560rpx; |
| | | padding: 24rpx 0 16rpx; |
| | | background: rgba(255, 255, 255, 0.8); |
| | | border-radius: 16rpx; |
| | | margin-top: 24rpx; |
| | |
| | | } |
| | | .card_wrap .content .title { |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | margin-bottom: 20rpx; |
| | | font-size: 28rpx; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | .card_wrap .content .line { |
| | | font-size: 26rpx; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | line-height: 36rpx; |
| | | line-height: 28rpx; |
| | | } |
| | | .card_wrap .btns { |
| | | margin-top: 30rpx; |
| | | margin-top: 24rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | } |
| | | .card_wrap .btns .btn { |
| | | width: 160rpx; |
| | | height: 88rpx; |
| | | height: 72rpx; |
| | | border-radius: 8rpx; |
| | | border: 2rpx solid #FFFFFF; |
| | | display: flex; |
| | |
| | | selParam: '', |
| | | tagCodes: [], |
| | | |
| | | |
| | | isLoading:false, |
| | | cateList: [], |
| | | dataList: [], |
| | | total: 0, |
| | |
| | | }) |
| | | }, |
| | | getList() { |
| | | if(this.data.isLoading){ |
| | | return |
| | | } |
| | | |
| | | this.setData({isLoading:true}) |
| | | const { sortType, query, tagCodes, pageNum, pageSize,catalogCode } = this.data |
| | | getZhongTaiWholecasePage({ |
| | | catalogCode,pageNum,pageSize,tagCodes, sortType,query |
| | |
| | | dataList: [...this.data.dataList, ...res.data.records], |
| | | }) |
| | | } |
| | | }).finally(()=>{ |
| | | this.setData({isLoading:false}) |
| | | }) |
| | | }, |
| | | scrolltolower() { |
| | |
| | | }) |
| | | }, |
| | | tagClick(e) { |
| | | if(this.data.isLoading){ |
| | | return |
| | | } |
| | | const code = e.currentTarget.dataset.code |
| | | const paramIndex = e.currentTarget.dataset.index |
| | | const paramIndex = e.currentTarget.dataset.index |
| | | const { cateList, tagCodes, activeParam, activeIndex } = this.data |
| | | const index = tagCodes.indexOf(code) |
| | | |
| | | if(index === -1){ |
| | | // åparamécodeéå¤ |
| | | if(activeParam && activeParam.length > 0){ |
| | | activeParam.forEach(item => { |
| | | const indexTemp = tagCodes.indexOf(item.labelValueCode) |
| | | if(indexTemp > -1){ |
| | | tagCodes.splice(indexTemp, 1) |
| | | } |
| | | }) |
| | | } |
| | | tagCodes.push(code) |
| | | cateList[activeIndex].paramIndex = paramIndex |
| | | cateList[activeIndex].paramName = activeParam[paramIndex].labelValueName |
| | | }else{ |
| | | tagCodes.splice(index, 1) |
| | | cateList[activeIndex].paramIndex = -1 |
| | | cateList[activeIndex].paramName = '' |
| | | const index = tagCodes.indexOf(code) |
| | | if( cateList[activeIndex].tempParamIndex==null || cateList[activeIndex].tempParamIndex != paramIndex){ |
| | | cateList[activeIndex].tempParamIndex = paramIndex |
| | | cateList[activeIndex].tempParamName = activeParam[paramIndex].labelValueName |
| | | cateList[activeIndex].tempParamCode = code |
| | | } else { |
| | | cateList[activeIndex].tempParamIndex = -1 |
| | | cateList[activeIndex].tempParamName = null |
| | | cateList[activeIndex].tempParamCode = null |
| | | } |
| | | this.setData({ tagCodes, cateList }) |
| | | this.setData({cateList }) |
| | | console.log('tagCodes', tagCodes); |
| | | }, |
| | | cancelParam() { |
| | | const { cateList } = this.data |
| | | console.log('cateList', cateList); |
| | | cateList.forEach(item => { |
| | | item.paramIndex = -1 |
| | | item.paramName = item.paramName || '' |
| | | item.tempParamIndex =item.paramIndex |
| | | item.tempParamName =item.paramName |
| | | item.tempParamCode =item.paramCode |
| | | }) |
| | | this.setData({ tagCodes: [],activeParam: [],cateList,activeIndex: -1 }) |
| | | this.setData({ activeParam: [],cateList , activeIndex: -1 }) |
| | | }, |
| | | bindblur() { |
| | | this.setData({ pageNum: 1,dataList: [],total: 0}) |
| | |
| | | }, |
| | | subParam() { |
| | | this.setData({ activeParam: [] }) |
| | | this.setData({ pageNum: 1,activeIndex: -1,dataList: [],total: 0}) |
| | | const { cateList } = this.data |
| | | var codes = [] |
| | | cateList.forEach(item => { |
| | | item.paramIndex =item.tempParamIndex |
| | | item.paramName =item.tempParamName |
| | | item.paramCode =item.tempParamCode |
| | | if(item.paramIndex >-1 && item.paramCode){ |
| | | codes.push(item.paramCode) |
| | | } |
| | | }) |
| | | this.setData({tagCodes:codes, pageNum: 1, activeIndex: -1, dataList: [], total: 0 }) |
| | | this.getList() |
| | | }, |
| | | changeShowParams(e){ |
| | |
| | | <scroll-view class="query_wrap_scroll" scroll-x> |
| | | <view class="query_wrap"> |
| | | <view data-index="{{ index }}" wx:for="{{ cateList }}" class="item" bindtap="changeShowParams"> |
| | | <view class="name">{{ item.paramName || item.labelName }}</view> |
| | | <view class="name">{{ item.tempParamName || item.labelName }}</view> |
| | | <van-icon name="{{ activeIndex === index ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | </view> |
| | |
| | | <!-- param --> |
| | | <view wx:if="{{ activeParam && activeParam.length > 0 }}" class="query_param"> |
| | | <view class="list"> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ cateList[activeIndex].paramIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ cateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="cancelParam">åæ¶</view> |
| | |
| | | tagClick(e) { |
| | | const code = e.currentTarget.dataset.code |
| | | const paramIndex = e.currentTarget.dataset.index |
| | | const { secondCateList, tagCodes, activeParam, activeIndex } = this.data |
| | | const index = tagCodes.indexOf(code) |
| | | if(index === -1){ |
| | | const { secondCateList, tagCodes, activeParam, activeIndex } = this.data |
| | | if( secondCateList[activeIndex].tempParamIndex==null || secondCateList[activeIndex].tempParamIndex != paramIndex){ |
| | | // åparamécodeéå¤ |
| | | // if (activeParam && activeParam.length > 0) { |
| | | // activeParam.forEach(item => { |
| | |
| | | width: 242rpx; |
| | | flex-shrink: 0; |
| | | margin-bottom: 32rpx; |
| | | &:nth-last-child(1){ |
| | | margin-right: auto; |
| | | } |
| | | .img_wrap { |
| | | width: 242rpx; |
| | | border-radius: 8rpx; |
| | |
| | | </view> |
| | | <view wx:if="{{ activeParam.length > 0 }}" class="query_form"> |
| | | <view class="list"> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="cancelParam">åæ¶</view> |
| | |
| | | activeParam: [], |
| | | selParam: '', |
| | | tagCodes: [], |
| | | |
| | | isLoading:false, |
| | | |
| | | cateList: [], |
| | | dataList: [], |
| | |
| | | }) |
| | | }, |
| | | getList() { |
| | | if(this.data.isLoading){ |
| | | return |
| | | } |
| | | |
| | | this.setData({isLoading:true}) |
| | | const { sortType, query, tagCodes, pageNum, pageSize,catalogCode } = this.data |
| | | getZhongTaiRealcasePage({ |
| | | catalogCode,tagCodes,pageNum,pageSize, sortType,query |
| | |
| | | dataList: [...this.data.dataList, ...res.data.records], |
| | | total: res.data.total, |
| | | }) |
| | | }).finally(()=>{ |
| | | this.setData({isLoading:false}) |
| | | }) |
| | | }, |
| | | scrolltolower() { |
| | |
| | | }, |
| | | videoClick(e) { |
| | | const { videourl } = e.currentTarget.dataset |
| | | wx.previewMedia({ |
| | | sources: [{ url: videourl, type: 'video' }] |
| | | }) |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(videourl,this ); |
| | | } |
| | | }, |
| | | priviewFull(e){ |
| | | const item = e.currentTarget.dataset.item |
| | |
| | | } |
| | | }, |
| | | tagClick(e) { |
| | | if(this.data.isLoading){ |
| | | return |
| | | } |
| | | const code = e.currentTarget.dataset.code |
| | | const paramIndex = e.currentTarget.dataset.index |
| | | const { cateList, tagCodes, activeParam, activeIndex } = this.data |
| | | const index = tagCodes.indexOf(code) |
| | | |
| | | if(index === -1){ |
| | | if(activeParam && activeParam.length > 0){ |
| | | activeParam.forEach(item => { |
| | | const indexTemp = tagCodes.indexOf(item.labelValueCode) |
| | | if(indexTemp > -1){ |
| | | tagCodes.splice(indexTemp, 1) |
| | | } |
| | | }) |
| | | } |
| | | tagCodes.push(code) |
| | | cateList[activeIndex].paramIndex = paramIndex |
| | | cateList[activeIndex].paramName = activeParam[paramIndex].labelValueName |
| | | const { cateList, tagCodes, activeParam, activeIndex } = this.data |
| | | if( cateList[activeIndex].tempParamIndex==null || cateList[activeIndex].tempParamIndex != paramIndex){ |
| | | cateList[activeIndex].tempParamIndex = paramIndex |
| | | cateList[activeIndex].tempParamName = activeParam[paramIndex].labelValueName |
| | | cateList[activeIndex].tempParamCode = code |
| | | console.log(code) |
| | | }else{ |
| | | tagCodes.splice(index, 1) |
| | | cateList[activeIndex].paramIndex = -1 |
| | | cateList[activeIndex].paramName = '' |
| | | cateList[activeIndex].tempParamIndex = -1 |
| | | cateList[activeIndex].tempParamName = null |
| | | cateList[activeIndex].tempParamCode = null |
| | | console.log(1) |
| | | } |
| | | this.setData({ tagCodes, cateList }) |
| | | this.setData({ cateList }) |
| | | }, |
| | | cancelParam() { |
| | | const { cateList } = this.data |
| | | cateList.forEach(item => { |
| | | item.paramIndex = -1 |
| | | item.paramName = item.paramName || '' |
| | | item.tempParamIndex = item.paramIndex |
| | | item.tempParamName = item.paramName |
| | | item.tempParamCode = item.paramCode |
| | | }) |
| | | this.setData({ tagCodes: [],activeParam: [],cateList,activeIndex: -1 }) |
| | | this.setData({ activeParam: [],cateList,activeIndex: -1 }) |
| | | }, |
| | | bindblur() { |
| | | this.setData({ pageNum: 1,dataList: [],total: 0}) |
| | | this.getList() |
| | | }, |
| | | subParam() { |
| | | this.setData({ activeParam: [] }) |
| | | const { cateList } = this.data |
| | | var codes =[] |
| | | cateList.forEach(item => { |
| | | item.paramIndex = item.tempParamIndex |
| | | item.paramName = item.tempParamName |
| | | item.paramCode = item.tempParamCode |
| | | if(item.tempParamIndex >-1 && item.tempParamCode){ |
| | | codes.push(item.tempParamCode) |
| | | } |
| | | }) |
| | | this.setData({ activeParam: [],tagCodes:codes }) |
| | | this.setData({ pageNum: 1,activeIndex: -1,dataList: [],total: 0}) |
| | | this.getList() |
| | | }, |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": {} |
| | | "usingComponents": { |
| | | "videoPlay": "/components/videoPlay/index" |
| | | } |
| | | } |
| | |
| | | .item { |
| | | width: 324rpx; |
| | | margin-bottom: 32rpx; |
| | | |
| | | &:nth-last-child(1){ |
| | | margin-right: auto; |
| | | } |
| | | .img_wrap { |
| | | width: 100%; |
| | | height: 182rpx; |
| | |
| | | |
| | | .full { |
| | | position: absolute; |
| | | top: 32rpx; |
| | | right: 32rpx; |
| | | top: 16rpx; |
| | | left: 16rpx; |
| | | font-size: 20rpx; |
| | | color: rgba(255, 255, 255, 0.8); |
| | | width: 112rpx; |
| | | height: 42rpx; |
| | | width:52rpx; |
| | | height: 46rpx; |
| | | background: rgba(0, 0, 0, 0.54); |
| | | border-radius: 30rpx; |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | |
| | | <scroll-view class="query_wrap_scroll" scroll-x> |
| | | <view class="query_wrap"> |
| | | <view data-index="{{ index }}" wx:for="{{ cateList }}" class="item" bindtap="changeShowParams"> |
| | | <view class="name">{{ item.paramName || item.labelName }}</view> |
| | | <view class="name">{{ item.tempParamName || item.labelName }}</view> |
| | | <van-icon name="{{ activeIndex === index ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | </view> |
| | |
| | | <!-- param --> |
| | | <view wx:if="{{ activeParam && activeParam.length > 0 }}" class="query_param"> |
| | | <view class="list"> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ cateList[activeIndex].paramIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | <view data-index="{{index}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ cateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="cancelParam">åæ¶</view> |
| | |
| | | <view wx:for="{{ dataList }}" data-index="index" data-item="{{item}}" class="item {{(index%2 == 0 && index == dataList.length-1)?'lastitem':''}}" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="{{ item.coverImage }}" class="img"></image> |
| | | <view wx:if="{{ item.openType == 'link' }}" data-item="{{item}}" bindtap="priviewFull" class="full"> |
| | | <image class="icon" src="../../static/icon/ic_720.png" mode="widthFix"></image> |
| | | <text>å
¨æ¯</text> |
| | | <view wx:if="{{ item.openType == 'link' }}" data-item="{{item}}" bindtap="priviewFull" class="full"> |
| | | <text>VR</text> |
| | | </view> |
| | | <image wx:if="{{ item.openType == 'video' }}" bindtap="videoClick" data-videourl="{{ item.openContent }}" class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <videoPlay class="videoPlay"/> |
| | | </view> |
| | |
| | | } |
| | | .main_content .goods_list .item .img_wrap .full { |
| | | position: absolute; |
| | | top: 32rpx; |
| | | right: 32rpx; |
| | | top: 16rpx; |
| | | left: 16rpx; |
| | | font-size: 20rpx; |
| | | color: rgba(255, 255, 255, 0.8); |
| | | width: 112rpx; |
| | | height: 42rpx; |
| | | width:52rpx; |
| | | height: 46rpx; |
| | | background: rgba(0, 0, 0, 0.54); |
| | | border-radius: 30rpx; |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.2); |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 9999; |
| | | } |
| | | .video_content .video{ |
| | | position: fixed; |
| | | border-radius: 8rpx; |
| | | top: 50%; |
| | | left: 75rpx; |
| | | transform: translate(0, -50%); |
| | | width: 600rpx; |
| | | top: 40%; |
| | | left: 0; |
| | | width: 750rpx; |
| | | z-index: 10000; |
| | | } |
| | | video{ |
| | | width: 750rpx; |
| | | } |
| | |
| | | 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 { |
| | |
| | | margin-bottom: 16rpx; |
| | | } |
| | | .desc { |
| | | line-height: 40rpx; |
| | | font-size: 26rpx; |
| | | color: #555555; |
| | | margin-bottom: 26rpx; |
| | |
| | | .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; |
| | |
| | | </swiper-item> |
| | | </block> |
| | | </swiper> |
| | | <view class="indicator">{{current}}/{{info.bannerImgList.length}}</view> |
| | | <view class="indicator">{{current + 1}}/{{info.bannerImgList.length}}</view> |
| | | </view> |
| | | <view class="main_content"> |
| | | <view class="title">{{ info.title }}</view> |
| | |
| | | </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> |
| | | <!-- å¯ææ¬ --> |
| | |
| | | <view class="container"> |
| | | |
| | | <!-- åç±» --> |
| | | <view class="home_tabs"> |
| | | <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 30rpx;"> |
| | | <view class="home_tabs" style="width: 100%;"> |
| | | <scroll-view scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;"> |
| | | <view class="scroll_cate"> |
| | | <view bindtap="cateClick" data-code="{{item.labelValueCode}}" wx:for="{{ tagList }}" class="item {{ tagCodes == item.labelValueCode ? 'active': '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | |
| | | .search_fix{ |
| | | position: fixed; |
| | | z-index: 10000; |
| | | width: 100%; |
| | | height: 206rpx; |
| | | background-color: white; |
| | | } |
| | | .search_wrap { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | border: 2rpx solid #B08771; |
| | | padding: 0 30rpx; |
| | | margin-left: 40rpx; |
| | | |
| | | .icon { |
| | | width: 28rpx; |
| | | margin-right: 18rpx; |
| | | } |
| | | } |
| | | |
| | | } |
| | | .everyday { |
| | | width: 670rpx; |
| | | height: 466rpx; |
| | | margin: 40rpx; |
| | | margin: 206rpx 40rpx; |
| | | background: linear-gradient(180deg, #F2E7E1 0%, #FEFEFD 30%, #FFFFFF 100%), #FFFFFF; |
| | | box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(176, 135, 113, 0.2); |
| | | border-radius: 8rpx; |
| | | padding: 30rpx; |
| | | |
| | | .header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | |
| | | .search_fix{ |
| | | position: fixed; |
| | | z-index: 10000; |
| | | width: 100%; |
| | | height: 206rpx; |
| | | background-color: white; |
| | | } |
| | | .search_wrap { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | .everyday { |
| | | width: 670rpx; |
| | | height: 466rpx; |
| | | margin: 40rpx; |
| | | margin: 206rpx 40rpx; |
| | | background: linear-gradient(180deg, #F2E7E1 0%, #FEFEFD 30%, #FFFFFF 100%), #FFFFFF; |
| | | box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(176, 135, 113, 0.2); |
| | | border-radius: 8rpx; |
| | |
| | | .func_lsit { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 20rpx 60rpx; |
| | | padding: 60rpx; |
| | | } |
| | | .func_lsit .item { |
| | | width: 120rpx; |
| | |
| | | } |
| | | .home_ar { |
| | | width: 44rpx; |
| | | } |
| | | .wx-swiper-dots.wx-swiper-dots-horizontal { |
| | | position: absolute; |
| | | right: 0; |
| | | bottom: 0rpx; |
| | | } |
| | | /* æç¤ºç¹çæ ·å¼ */ |
| | | .wx-swiper-dots .wx-swiper-dot { |
| | | width: 60rpx; |
| | | height: 4rpx; |
| | | background: #f4f4f4; |
| | | margin-left: -15rpx; |
| | | border-radius: 5rpx; |
| | | } |
| | | .wx-swiper-dot.wx-swiper-dot-active { |
| | | background: #666666; |
| | | } |
| | |
| | | data: { |
| | | bottomLift: 0, |
| | | checkAll: false, |
| | | enjoyList: [] |
| | | enjoyList: [], |
| | | leftIcon: '<<', |
| | | rightIcon: '>>', |
| | | }, |
| | | |
| | | /** |
| | |
| | | position: fixed; |
| | | border-radius: 8rpx; |
| | | top: 50%; |
| | | left: 75rpx; |
| | | left: 95rpx; |
| | | transform: translate(0, -50%); |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | background-color: rgba(0, 0, 0, .2); |
| | | z-index: 99999; |
| | | .img1{ |
| | | image{ |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | border-radius: 8rpx ; |
| | | } |
| | | } |
| | | .content{ |
| | | width: 600rpx; |
| | | height: 308rpx; |
| | | padding: 26rpx 0 40rpx; |
| | | width: 560rpx; |
| | | padding: 24rpx 0 16rpx; |
| | | background: rgba(255,255,255,0.8); |
| | | border-radius: 16rpx; |
| | | margin-top: 24rpx; |
| | | text-align: center; |
| | | .title{ |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | margin-bottom: 20rpx; |
| | | font-size: 28rpx; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | .line{ |
| | | font-size: 26rpx; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | line-height: 36rpx; |
| | | line-height: 28rpx; |
| | | } |
| | | } |
| | | .btns{ |
| | | margin-top: 30rpx; |
| | | margin-top: 24rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | .btn{ |
| | | width: 160rpx; |
| | | height: 88rpx; |
| | | height: 72rpx; |
| | | border-radius: 8rpx; |
| | | border: 2rpx solid #FFFFFF; |
| | | display: flex; |
| | |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | display: -webkit-box; |
| | | -webkit-line-clamp: 2; |
| | | white-space: break-spaces; |
| | | -webkit-line-clamp: 2; |
| | | -webkit-box-orient: vertical; |
| | | word-break: break-word; |
| | | } |
| | | .date_item .line .content .time { |
| | | font-size: 24rpx; |
| | |
| | | position: fixed; |
| | | border-radius: 8rpx; |
| | | top: 50%; |
| | | left: 75rpx; |
| | | left: 95rpx; |
| | | transform: translate(0, -50%); |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | background-color: rgba(0, 0, 0, 0.2); |
| | | z-index: 99999; |
| | | } |
| | | .card_wrap .img1 image { |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | border-radius: 8rpx ; |
| | | } |
| | | .card_wrap .content { |
| | | width: 600rpx; |
| | | height: 308rpx; |
| | | padding: 26rpx 0 40rpx; |
| | | width: 560rpx; |
| | | padding: 24rpx 0 16rpx; |
| | | background: rgba(255, 255, 255, 0.8); |
| | | border-radius: 16rpx; |
| | | margin-top: 24rpx; |
| | |
| | | } |
| | | .card_wrap .content .title { |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | margin-bottom: 20rpx; |
| | | font-size: 28rpx; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | .card_wrap .content .line { |
| | | font-size: 26rpx; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | line-height: 36rpx; |
| | | line-height: 28rpx; |
| | | } |
| | | .card_wrap .btns { |
| | | margin-top: 30rpx; |
| | | margin-top: 24rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | } |
| | | .card_wrap .btns .btn { |
| | | width: 160rpx; |
| | | height: 88rpx; |
| | | height: 72rpx; |
| | | border-radius: 8rpx; |
| | | border: 2rpx solid #FFFFFF; |
| | | display: flex; |
| | |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | padding: 34rpx 40rpx 40rpx; |
| | | |
| | | margin-bottom: 40rpx; |
| | | .time { |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | padding: 34rpx 40rpx 40rpx; |
| | | margin-bottom: 40rpx; |
| | | } |
| | | .content .time { |
| | | font-weight: 500; |
| | |
| | | <!--pages/sets/protocol.wxml--> |
| | | <view style="width: 100%;height: auto;padding: 0px 40rpx;"> |
| | | <mp-html content="{{content}}"> </mp-html> |
| | | </view> |
| | |
| | | font-weight: 600; |
| | | font-size: 40rpx; |
| | | display: flex; |
| | | align-items: flex-end; /* è¿ä¼ä½¿åå
ç´ åºé¨å¯¹é½ */ |
| | | justify-content: center; /* è¿ä¼ä½¿åå
ç´ æ°´å¹³å±
ä¸ */ |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | position: fixed; |
| | | border-radius: 8rpx; |
| | | top: 50%; |
| | | left: 75rpx; |
| | | left: 95rpx; |
| | | transform: translate(0, -50%); |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | background-color: rgba(0, 0, 0, .2); |
| | | z-index: 999; |
| | | z-index: 99999; |
| | | .img1{ |
| | | image{ |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | border-radius: 8rpx ; |
| | | } |
| | | } |
| | | .content{ |
| | | width: 560rpx; |
| | | padding: 24rpx 0 16rpx; |
| | | background: rgba(255,255,255,0.8); |
| | | border-radius: 16rpx; |
| | | margin-top: 24rpx; |
| | | text-align: center; |
| | | .title{ |
| | | font-weight: 500; |
| | | font-size: 28rpx; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | .line{ |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | line-height: 28rpx; |
| | | } |
| | | } |
| | | .btns{ |
| | | margin-top: 30rpx; |
| | | margin-top: 24rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | .btn{ |
| | | width: 290rpx; |
| | | height: 88rpx; |
| | | width: 160rpx; |
| | | height: 72rpx; |
| | | border-radius: 8rpx; |
| | | border: 2rpx solid #FFFFFF; |
| | | display: flex; |
| | |
| | | color: #fff; |
| | | } |
| | | .save{ |
| | | width: 420rpx; |
| | | margin-left: 20rpx; |
| | | border: none; |
| | | background: linear-gradient( 180deg, #E0B49C 0%, #B68B74 100%); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <view class="card"> |
| | | <image src="../../static/images/mingpian_bg_kehu.png" class="bg"></image> |
| | | <view>æå¡å®¢æ·</view> |
| | | <view class="num" wx:if="{{ userInfo.costomerNum || userInfo.costomerNum == 0 }}">{{ userInfo.costomerNum || '--' }}+</view> |
| | | <view class="num" wx:if="{{ userInfo.costomerNum || userInfo.costomerNum == 0 }}">{{ userInfo.costomerNum || '--' }}+ |
| | | </view> |
| | | <view wx:else class="num">--</view> |
| | | </view> |
| | | </view> |
| | |
| | | font-size: 40rpx; |
| | | display: flex; |
| | | } |
| | | |
| | | .guide .title { |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | |
| | | font-size: 26rpx; |
| | | color: #999999; |
| | | text-align: center; |
| | | align-items: flex-end; /* è¿ä¼ä½¿åå
ç´ åºé¨å¯¹é½ */ |
| | | justify-content: center; /* è¿ä¼ä½¿åå
ç´ æ°´å¹³å±
ä¸ */ |
| | | |
| | | } |
| | | |
| | | .card_wrap { |
| | | position: fixed; |
| | | border-radius: 8rpx; |
| | | top: 50%; |
| | | left: 75rpx; |
| | | left: 95rpx; |
| | | transform: translate(0, -50%); |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | background-color: rgba(0, 0, 0, 0.2); |
| | | z-index: 999; |
| | | z-index: 99999; |
| | | } |
| | | .card_wrap .img1 image { |
| | | width: 600rpx; |
| | | width: 560rpx; |
| | | border-radius: 8rpx ; |
| | | } |
| | | .card_wrap .content { |
| | | width: 560rpx; |
| | | padding: 24rpx 0 16rpx; |
| | | background: rgba(255, 255, 255, 0.8); |
| | | border-radius: 16rpx; |
| | | margin-top: 24rpx; |
| | | text-align: center; |
| | | } |
| | | .card_wrap .content .title { |
| | | font-weight: 500; |
| | | font-size: 28rpx; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | .card_wrap .content .line { |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | line-height: 28rpx; |
| | | } |
| | | .card_wrap .btns { |
| | | margin-top: 30rpx; |
| | | margin-top: 24rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | } |
| | | .card_wrap .btns .btn { |
| | | width: 290rpx; |
| | | height: 88rpx; |
| | | width: 160rpx; |
| | | height: 72rpx; |
| | | border-radius: 8rpx; |
| | | border: 2rpx solid #FFFFFF; |
| | | display: flex; |
| | |
| | | color: #fff; |
| | | } |
| | | .card_wrap .btns .save { |
| | | width: 420rpx; |
| | | margin-left: 20rpx; |
| | | border: none; |
| | | background: linear-gradient(180deg, #E0B49C 0%, #B68B74 100%); |
| | | } |
| | | } |
| | |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | margin-top: 20rpx; |
| | | margin-bottom: 10rpx; |
| | | } |
| | | } |
| | |
| | | border-radius: 8rpx; |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | margin-top: 20rpx; |
| | | margin-top: 20rpx; |
| | | margin-bottom: 10rpx; |
| | | } |
| | |
| | | } |
| | | } |
| | | .main_content{ |
| | | margin-top: -16rpx; |
| | | background-color: #fff; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | padding: 40rpx; |
| | |
| | | <view class="name">æçæ¶è</view> |
| | | <image class="icon" src="../../static/icon/mine_ic_ar.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="line" data-index="3" bindtap="changePath"> |
| | | <view class="line" wx:if="{{userInfo.manageShop}}" data-index="3" bindtap="changePath"> |
| | | <view class="name">é¨åºç®¡ç</view> |
| | | <image class="icon" src="../../static/icon/mine_ic_ar.png" mode="widthFix"></image> |
| | | </view> |
| | |
| | | margin-right: 30rpx; |
| | | } |
| | | .container .main_content { |
| | | margin-top: -16rpx; |
| | | background-color: #fff; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | padding: 40rpx; |
| | |
| | | // export const baseUrl = 'http://192.168.0.135:10027' |
| | | export const baseUrl = 'https://dmtest.ahapp.net/web_interface' // æ¬å° |
| | | export const baseUrl = 'http://192.168.0.135:10027' |
| | | // export const baseUrl = 'https://dmtest.ahapp.net/web_interface' // æ¬å° |
| | | // export const baseUrl = 'http://zbtest.ahapp.net/zbom_interface/jx/wechat/' //æµè¯æå¡å¨ |
| | | |
| | | // export const imageUrl = 'https://osswebcdn.zbom.com/jiaxuan/images/' |
| | |
| | | import { baseUrl } from "./config" |
| | | export function request(options){ |
| | | import { baseUrl } from "./config" |
| | | let number = 0 |
| | | export function request(options) { |
| | | let loading = options.loading || '1' // é»è®¤å¼1æ¾ç¤ºï¼å¦å䏿¾ç¤º |
| | | if(loading == '1'){ |
| | | if (loading == '1') { |
| | | wx.showLoading() |
| | | number++ |
| | | } |
| | | return new Promise(resolve => { |
| | | wx.request({ |
| | |
| | | if (res.data.code === 200) { |
| | | resolve(res.data || true) |
| | | } else { |
| | | if(res.data.code && (res.data.code == 5112 || res.data.code == 5111)){ |
| | | if (res.data.code && (res.data.code == 5112 || res.data.code == 5111)) { |
| | | wx.navigateTo({ |
| | | url: '/pages/login/index', |
| | | }) |
| | |
| | | } |
| | | }, |
| | | fail(err) { |
| | | console.log('err', err); |
| | | console.log('err', err) |
| | | err.message && wx.showToast({ |
| | | title: err.message || 'åçé误', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | complete() { |
| | | if(loading == '1'){ |
| | | wx.hideLoading() |
| | | if (loading == '1') { |
| | | number-- |
| | | if (number == 0) { |
| | | wx.hideLoading() |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | } ) |
| | | }) |
| | | } |
| | | |