| | |
| | | isFold: false, |
| | | info: {}, |
| | | member: {}, |
| | | showShare: false |
| | | showShare: false, |
| | | options: { |
| | | empty: '无参数' |
| | | } |
| | | }, |
| | | changeFold() { |
| | | this.setData({ isFold: !this.data.isFold }) |
| | |
| | | |
| | | |
| | | // export const baseUrl = 'http://192.168.0.135:10027' // 本地 |
| | | export const baseUrl = 'https://dmtest.ahapp.net/web_interface' //测试服务器 |
| | | // export const baseUrl = 'https://dmtest.ahapp.net/web_interface' //测试服务器 |
| | | |
| | | // export const imageUrl = 'https://osswebcdn.zbom.com/jiaxuan/images/' |
| | | export const baseUrl = 'https://dmdev.zhibang.com:8443/web_interface' |
| | | |
| | | // 腾讯地图开发者 key |
| | | export const qqMapKey = 'HIDBZ-2QXL4-TAWUD-XET6Q-EKTJE-CCBSQ' |
| | |
| | | export function request(options){ |
| | | let loading = options.loading || '1' // 默认值1显示,否则不显示 |
| | | if(loading == '1'){ |
| | | wx.showLoading() |
| | | wx.showLoading({mask: true}) |
| | | number ++ |
| | | } |
| | | return new Promise(resolve => { |
| | |
| | | wx.navigateTo({ |
| | | url: '/pages/login/index', |
| | | }) |
| | | wx.showLoading({title: '授权登录中'}) |
| | | }else{ |
| | | getMemberInfo({goLogin:true}).then(res => { |
| | | }) |
| | |
| | | downloadList: temp, |
| | | downloadConfig |
| | | }) |
| | | setTimeout(() => { |
| | | wx.setStorageSync('downloadList', []) |
| | | wx.setStorageSync('downloadConfig', {}) |
| | | }, 500) |
| | | }, |
| | | openParam() { |
| | | const downloadList = this.data.downloadList.filter(i => i.checked) |
| | |
| | | <view> |
| | | <view class="list"> |
| | | <view wx:for="{{ downloadList }}" class="item"> |
| | | <image class="img" src="{{ item.url }}" mode="scaleToFill"></image> |
| | | <image class="img" src="{{ item.url }}" mode="aspectFill"></image> |
| | | <view wx:if="{{ item.paddingStatus == 2 }}" class="shade">等待下载</view> |
| | | <view wx:if="{{ item.paddingStatus == 3 }}" class="shade">下载完成</view> |
| | | <image data-i="{{index}}" bindtap="itemCheck" wx:if="{{ item.checked }}" class="check" src="../../static/icon/ic_select_sel@2x.png"></image> |
| | | <image wx:else data-i="{{index}}" bindtap="itemCheck" class="check" src="../../static/icon/ic_select.png"></image> |
| | | </view> |
| | |
| | | tabsClick(e) { |
| | | const flag = e.currentTarget.dataset.tab |
| | | this.setData({flag}) |
| | | this.setData({total: 0,dataList: [], page: 1}) |
| | | this.setData({total: 0,dataList: [], page: 1, customer: {}}) |
| | | this.getList() |
| | | }, |
| | | itemCheck(e) { |
| | |
| | | </view> |
| | | </view> |
| | | <view class="desc"> |
| | | <view>创建时间:{{ item.creationDate }}</view> |
| | | <view>创建时间:{{ item.creationDate || '' }}</view> |
| | | <view>导购:{{ item.dgName }}</view> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{ flag == 1 }}" class="item"> |
| | | <view class="item_content"> |
| | | <view class="checked_wrap"> |
| | | <image wx:if="{{ item.checked }}" class="icon" src="../../static/icon/ic_video@2x.png" mode="widthFix"></image> |
| | | <image wx:else class="icon" src="../../static/icon/ic_select@2x.png" mode="widthFix"></image> |
| | | <image class="avatar" src=""></image> |
| | | <image data-item="{{ item }}" bindtap="itemCheck" wx:if="{{ customer.userId == item.userId }}" class="icon" src="../../static/icon/ic_video@2x.png" mode="widthFix"></image> |
| | | <image data-item="{{ item }}" bindtap="itemCheck" wx:else class="icon" src="../../static/icon/ic_select@2x.png" mode="widthFix"></image> |
| | | <image class="avatar" src="../../static/images/default_avatar.png"></image> |
| | | </view> |
| | | <!-- --> |
| | | <view class="content"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="desc"> |
| | | <view>创建时间:{{ item.creationDate }}</view> |
| | | <view>创建时间:{{ item.creationDate || '' }}</view> |
| | | <view>导购:{{ item.dgName }}</view> |
| | | </view> |
| | | </view> |
| | |
| | | that.setData({openid:res.data.openid}) |
| | | if (res && res.data !=null && res.data.token!=null) { |
| | | console.log(res) |
| | | wx.hideLoading() |
| | | wx.setStorageSync('member', res.data.users || '') |
| | | wx.setStorageSync('token', res.data.token || '') |
| | | wx.switchTab({ |
| | |
| | | wx.navigateTo({ |
| | | url: '/pages/login/index', |
| | | }) |
| | | wx.hideLoading() |
| | | console.log('登录失败!' + res) |
| | | } |
| | | }, |
| | | fail(err) { |
| | | wx.hideLoading() |
| | | console.log(err) |
| | | } |
| | | }) |
| | |
| | | export const baseUrl = 'http://192.168.0.135:10027' |
| | | // 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 baseUrl = 'https://dmdev.zhibang.com:8443/web_interface' |
| | | |
| | | // export const imageUrl = 'https://osswebcdn.zbom.com/jiaxuan/images/' |
| | | |
| | |
| | | export function request(options) { |
| | | let loading = options.loading || '1' // 默认值1显示,否则不显示 |
| | | if (loading == '1') { |
| | | wx.showLoading() |
| | | wx.showLoading({mask: true}) |
| | | number++ |
| | | } |
| | | return new Promise(resolve=> { |