修改接口1
This commit is contained in:
parent
db41a5b392
commit
290e82db6d
27
app.js
27
app.js
@ -1,20 +1,21 @@
|
||||
//app.js
|
||||
var restAjax = require('utils/restAjax.js');
|
||||
var dialog = require('utils/dialog.js');
|
||||
// + 'https://www.xzszwhy.cn/usercenter'
|
||||
App({
|
||||
loginUrl: 'https://www.wgink.ink/usercenter',
|
||||
usercenterUrl: 'https://www.wgink.ink/usercenter',
|
||||
newsUrl: 'https://www.wgink.ink/news',
|
||||
newsContentUrl: 'https://www.wgink.ink',
|
||||
libraryUrl: 'https://www.wgink.ink/library',
|
||||
venueUrl: 'https://www.wgink.ink/venuebooking',
|
||||
activityUrl: 'https://www.wgink.ink/culturalactivity',
|
||||
volunteerUrl: 'https://www.wgink.ink/volunteer',
|
||||
activityUrl: 'https://www.wgink.ink/culturalactivity',
|
||||
volunteerUrl: 'https://www.wgink.ink/volunteer',
|
||||
liveUrl: 'https://www.wgink.ink/live',
|
||||
liveRecordUrl: 'https://www.wgink.ink',
|
||||
socialUrl: 'https://www.wgink.ink/social',
|
||||
loginUrl:restAjax.baseUrl,
|
||||
usercenterUrl:restAjax.baseUrl,
|
||||
newsUrl: restAjax.baseUrl,
|
||||
newsContentUrl: restAjax.baseUrl,
|
||||
libraryUrl: restAjax.baseUrl,
|
||||
venueUrl: restAjax.baseUrl,
|
||||
activityUrl: restAjax.baseUrl,
|
||||
volunteerUrl: restAjax.baseUrl,
|
||||
activityUrl: restAjax.baseUrl,
|
||||
volunteerUrl: restAjax.baseUrl,
|
||||
liveUrl: restAjax.baseUrl,
|
||||
liveRecordUrl: restAjax.baseUrl,
|
||||
socialUrl: restAjax.baseUrl,
|
||||
restAjax: restAjax,
|
||||
dialog: dialog,
|
||||
onLaunch: function () {
|
||||
|
@ -52,7 +52,7 @@ Page({
|
||||
if('200' == code) {
|
||||
for(var item of data.rows) {
|
||||
if('' != item.activityImage) {
|
||||
item.activityImage = app.activityUrl + '/route/file/downloadfile/true/' + item.activityImage;
|
||||
item.activityImage = app.activityUrl + '/route/file/download/true/' + item.activityImage;
|
||||
}
|
||||
}
|
||||
if(1 === self.data.pages.page) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<view class="activity-img">
|
||||
<swiper indicator-dots="false" autoplay="true" >
|
||||
<swiper-item class="swiper-item" wx:for="{{dataMap.activityImageArray}}" wx:for-index="idx" wx:for-item="item" wx:key="activityImageArray">
|
||||
<image src="{{activityUrl}}/route/file/downloadfile/true/{{item}}"></image>
|
||||
<image src="{{activityUrl}}/route/file/download/true/{{item}}"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
|
@ -41,19 +41,19 @@ Page({
|
||||
var photos = [];
|
||||
for(var item of data.rows) {
|
||||
if('' != item.photo) {
|
||||
item.photo = app.volunteerUrl + '/route/file/downloadfile/true/' + item.photo;
|
||||
item.photo = app.volunteerUrl + '/route/file/download/true/' + item.photo;
|
||||
}
|
||||
if('' != item.photos) {
|
||||
var photoArr = item.photos.split(",");
|
||||
for(var i=0; i<photoArr.length; i++) {
|
||||
photoArr[i] = app.volunteerUrl + '/route/file/downloadfile/true/' + photoArr[i];
|
||||
photoArr[i] = app.volunteerUrl + '/route/file/download/true/' + photoArr[i];
|
||||
}
|
||||
item.photos = photoArr
|
||||
}
|
||||
if('' != item.videos) {
|
||||
var videoArr = item.videos.split(",");
|
||||
for(var i=0; i<videoArr.length; i++) {
|
||||
videoArr[i] = app.volunteerUrl + '/route/file/downloadfile/true/' + videoArr[i];
|
||||
videoArr[i] = app.volunteerUrl + '/route/file/download/true/' + videoArr[i];
|
||||
}
|
||||
item.videos = videoArr
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="activity-img">
|
||||
<swiper indicator-dots="false" autoplay="true" >
|
||||
<swiper-item class="swiper-item" wx:for="{{dataMap.activityImageArray}}" wx:for-index="idx" wx:for-item="item" wx:key="activityImageArray">
|
||||
<image src="{{activityUrl}}/route/file/downloadfile/true/{{item}}"></image>
|
||||
<image src="{{activityUrl}}/route/file/download/true/{{item}}"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<view class="broadcast">
|
||||
<view class="broadcast-box" bindtap="goDetail" data-live-plan-id="{{item.livePlanId}}" wx:for="{{live.liveList}}" wx:for-index="idx" wx:for-item="item" wx:key="liveList">
|
||||
<view class="broadcast-img">
|
||||
<image src="{{live.liveUrl}}/route/file/downloadfile/true/{{item.livePlanPhoto}}"></image>
|
||||
<image src="{{live.liveUrl}}/route/file/download/true/{{item.livePlanPhoto}}"></image>
|
||||
<view class="broadcast-status" wx:if="{{item.liveStatus == 0}}">已结束</view>
|
||||
<view class="broadcast-status" wx:elif="{{item.liveStatus == 1}}">未开始</view>
|
||||
<view class="broadcast-status" wx:elif="{{item.liveStatus == 2}}">直播中</view>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<view class="broadcast">
|
||||
<image src="{{liveUrl}}/route/file/downloadfile/true/{{liveDetail.livePlanPhoto}}" wx:if="{{liveDetail.liveStatus == 0}}" style="width:100%; height:100%;"></image>
|
||||
<image src="{{liveUrl}}/route/file/download/true/{{liveDetail.livePlanPhoto}}" wx:if="{{liveDetail.liveStatus == 0}}" style="width:100%; height:100%;"></image>
|
||||
<view class="play-button-box" wx:if="{{liveDetail.liveStatus == 0}}" bindtap="goLiveRecord" data-live-plan-id="{{liveDetail.livePlanId}}">
|
||||
<view class="play-button"></view>
|
||||
</view>
|
||||
|
@ -15,7 +15,7 @@ Page({
|
||||
token: '',
|
||||
userInfo: {},
|
||||
usercenterUrl: app.usercenterUrl,
|
||||
sourcePath: '/route/file/downloadfile/true/',
|
||||
sourcePath: '/route/file/download/true/',
|
||||
phone: '',
|
||||
code: '',
|
||||
isLoading: false
|
||||
|
@ -39,7 +39,7 @@ Page({
|
||||
var covers = data.libraryCover.split(',');
|
||||
var imageArray = [];
|
||||
for(var i = 0, item; item = covers[i++];) {
|
||||
imageArray.push(app.restAjax.path('{libraryUrl}/route/file/downloadfile/true/{cover}', [self.data.libraryUrl, item]));
|
||||
imageArray.push(app.restAjax.path('{libraryUrl}/route/file/download/true/{cover}', [self.data.libraryUrl, item]));
|
||||
}
|
||||
self.setData({
|
||||
library: data,
|
||||
|
@ -17,7 +17,7 @@
|
||||
<view class="name">{{item.creatorName}}</view>
|
||||
<view class="text">{{item.content}}</view>
|
||||
<view class="photo-one">
|
||||
<image src="{{socialUrl}}/route/file/downloadfile/true/{{item.photoArray[0]}}"></image>
|
||||
<image src="{{socialUrl}}/route/file/download/true/{{item.photoArray[0]}}"></image>
|
||||
</view>
|
||||
<view class="date">{{item.gmtCreate}}</view>
|
||||
</view>
|
||||
@ -30,7 +30,7 @@
|
||||
<view class="name">{{item.creatorName}}</view>
|
||||
<view class="text">{{item.content}}</view>
|
||||
<view class="photo-more">
|
||||
<image src="{{socialUrl}}/route/file/downloadfile/true/{{photo}}" wx:for="{{item.photoArray}}" wx:for-item="photo" wx:for-index="photoIndex" wx:key="photoArray"></image>
|
||||
<image src="{{socialUrl}}/route/file/download/true/{{photo}}" wx:for="{{item.photoArray}}" wx:for-item="photo" wx:for-index="photoIndex" wx:key="photoArray"></image>
|
||||
</view>
|
||||
<view class="date">{{item.gmtCreate}}</view>
|
||||
</view>
|
||||
@ -43,7 +43,7 @@
|
||||
<view class="name">{{item.creatorName}}</view>
|
||||
<view class="text">{{item.content}}</view>
|
||||
<view class="video">
|
||||
<video src="{{socialUrl}}/route/file/downloadfile/true/{{item.video}}"></video>
|
||||
<video src="{{socialUrl}}/route/file/download/true/{{item.video}}"></video>
|
||||
</view>
|
||||
<view class="date">{{item.gmtCreate}}</view>
|
||||
</view>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<view class="activity">
|
||||
<view class="activity-box" bindtap="goDetail" data-library-id="{{item.intangibleLibraryId}}" wx:for="{{libraryList}}" wx:for-item="item" wx:for-index="index" wx:key="libraryList">
|
||||
<view class="activity-img">
|
||||
<image src="{{libraryUrl}}/route/file/downloadfile/true/{{item.libraryCoverArray[0]}}"></image>
|
||||
<image src="{{libraryUrl}}/route/file/download/true/{{item.libraryCoverArray[0]}}"></image>
|
||||
</view>
|
||||
<view class="activity-info">
|
||||
<view class="title">
|
||||
|
@ -37,9 +37,11 @@ Page({
|
||||
wx.login({
|
||||
success(res) {
|
||||
if (res.code) {
|
||||
app.restAjax.post(app.restAjax.path('{url}/wxminiapp/auth/login', [app.loginUrl]), {
|
||||
app.restAjax.post(app.restAjax.path('{url}/wechat-miniapp/sign/default', [app.loginUrl]), {
|
||||
jsCode: res.code
|
||||
}, null, function (code, data) {
|
||||
// var token ='elMxZExMVzZ2ZnYyM0JKU1FWRTZKcDFiVFhZeXpGbFBMTFh6c2I0NjNmeWlrU0RwUmlHMDViY1QxY0hsZ1dpdzh1TFhKL0hMT1JRV2pMYkZ0emliNW1LNU0rVHYwNDQvYW5qV0ZwcitoWGhMMENBeFZxTmlDT0FjTThhaDZaM3pFSzFyUXlGbFN5MUlTaE80dG5aNFJYSWFlMEk4a0d0R0kyczRYanIwUUF6VkFmeGdlWEdIM3UzYmdOMWtZYUtrZTZJUVF1bm94V0p4QTlpVDBmb0U1bTkvSCt5UkpqemE3cGxYTDMzZG5SQmVzNXU4dHIxS3l5bHlINURkV1VTWVc2VHFRanVMN0t2eXd0YUhTcHJaQzNYaFhLVEFBYm9MU0hkS1lEaE41d1U9';
|
||||
console.log(data)
|
||||
var tokenArray = data.data.split('_');
|
||||
var token = tokenArray[0];
|
||||
var isRandomUsername = tokenArray[1];
|
||||
@ -52,6 +54,7 @@ Page({
|
||||
app.dialog.msg(data.msg);
|
||||
});
|
||||
} else {
|
||||
console.log(res)
|
||||
app.dialog.msg('登录失败!'+ res.errMsg);
|
||||
}
|
||||
}
|
||||
@ -93,6 +96,7 @@ Page({
|
||||
page: 1,
|
||||
rows: 3
|
||||
}, null, function(code, data) {
|
||||
console.log(data);
|
||||
for(var i = 0, item; item = data.rows[i++];) {
|
||||
item.activityImageArray = item.activityImage.split(',');
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<view class="swiper-box">
|
||||
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" >
|
||||
<swiper-item class="swiper-item" wx:for="{{news.bannerList}}" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:for-index="idx" wx:for-item="item" wx:key="bannerList">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" class="swiper-img" wx:key="swiperImg"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" class="swiper-img" wx:key="swiperImg"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
@ -57,10 +57,10 @@
|
||||
</view>
|
||||
<view class="recommend-container">
|
||||
<view class="recommend-box" wx:for="{{venue.venueList}}" bindtap="goVenueDetail" data-venues-info-Id="{{item.venuesInfoId}}" wx:for-index="index" wx:for-item="item" wx:key="venueList">
|
||||
<image src="{{venue.venueUrl}}/route/file/downloadfile/true/{{item.venuePanoramaArray[0]}}"></image>
|
||||
<image src="{{venue.venueUrl}}/route/file/download/true/{{item.venuePanoramaArray[0]}}"></image>
|
||||
</view>
|
||||
<view class="recommend-box" wx:for="{{activity.activityList}}" bindtap="goActivityDetail" data-activity-library-id="{{item.activityLibraryId}}" wx:for-index="index" wx:for-item="item" wx:key="activityList">
|
||||
<image src="{{activity.activityUrl}}/route/file/downloadfile/true/{{item.activityImageArray[0]}}"></image>
|
||||
<image src="{{activity.activityUrl}}/route/file/download/true/{{item.activityImageArray[0]}}"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -76,7 +76,7 @@
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_1'}}">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-small-pic">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
</view>
|
||||
<view class="news-info">
|
||||
<text>来源:{{item.newsContentResource}}</text>
|
||||
@ -85,7 +85,7 @@
|
||||
</view>
|
||||
<view class="news-box transverse-news" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_2'}}">
|
||||
<view class="news-row-img">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
</view>
|
||||
<view class="news-row-info">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
@ -104,13 +104,13 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="news-row-img">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_4'}}">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-big-pic">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
</view>
|
||||
<view class="news-info">
|
||||
<text>来源:{{item.newsContentResource}}</text>
|
||||
@ -127,7 +127,7 @@
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_6'}}">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-big-pic">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="../../images/play.png" class="play-btn"></image>
|
||||
</view>
|
||||
<view class="news-info">
|
||||
@ -155,7 +155,7 @@
|
||||
</view>
|
||||
<view class="broadcast-container">
|
||||
<view class="broadcast-box" bindtap="goBroadcastDetail" data-live-plan-id="{{item.livePlanId}}" wx:for="{{live.liveList}}" wx:for-index="index" wx:for-item="item" wx:key="liveList">
|
||||
<image src="{{live.liveUrl}}/route/file/downloadfile/true/{{item.livePlanPhoto}}"></image>
|
||||
<image src="{{live.liveUrl}}/route/file/download/true/{{item.livePlanPhoto}}"></image>
|
||||
<view class="broadcast-text">{{item.livePlanName}}</view>
|
||||
<view class="broadcast-status">直播中</view>
|
||||
<view class="broadcast-status" wx:if="{{item.liveStatus == 0}}">已结束</view>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<view class="name">{{item.creatorName}}</view>
|
||||
<view class="text">{{item.content}}</view>
|
||||
<view class="photo-one">
|
||||
<image src="{{socialUrl}}/route/file/downloadfile/true/{{item.photoArray[0]}}"></image>
|
||||
<image src="{{socialUrl}}/route/file/download/true/{{item.photoArray[0]}}"></image>
|
||||
</view>
|
||||
<view class="date">{{item.gmtCreate}}</view>
|
||||
</view>
|
||||
@ -30,7 +30,7 @@
|
||||
<view class="name">{{item.creatorName}}</view>
|
||||
<view class="text">{{item.content}}</view>
|
||||
<view class="photo-more">
|
||||
<image src="{{socialUrl}}/route/file/downloadfile/true/{{photo}}" wx:for="{{item.photoArray}}" wx:for-item="photo" wx:for-index="photoIndex" wx:key="photoArray"></image>
|
||||
<image src="{{socialUrl}}/route/file/download/true/{{photo}}" wx:for="{{item.photoArray}}" wx:for-item="photo" wx:for-index="photoIndex" wx:key="photoArray"></image>
|
||||
</view>
|
||||
<view class="date">{{item.gmtCreate}}</view>
|
||||
</view>
|
||||
@ -43,7 +43,7 @@
|
||||
<view class="name">{{item.creatorName}}</view>
|
||||
<view class="text">{{item.content}}</view>
|
||||
<view class="video">
|
||||
<video src="{{socialUrl}}/route/file/downloadfile/true/{{item.video}}"></video>
|
||||
<video src="{{socialUrl}}/route/file/download/true/{{item.video}}"></video>
|
||||
</view>
|
||||
<view class="date">{{item.gmtCreate}}</view>
|
||||
</view>
|
||||
|
@ -66,7 +66,7 @@ Page({
|
||||
for(var item of data.rows) {
|
||||
if('' != item.photo) {
|
||||
var photoArr = item.photo.split(",");
|
||||
item.photo = app.volunteerUrl + '/route/file/downloadfile/true/' + photoArr[0];
|
||||
item.photo = app.volunteerUrl + '/route/file/download/true/' + photoArr[0];
|
||||
}
|
||||
}
|
||||
self.setData({
|
||||
|
@ -75,7 +75,7 @@ Page({
|
||||
var data = data.substr(9, data.length);
|
||||
data = data.substr(0, data.length - 2);
|
||||
self.setData({
|
||||
photo: app.volunteerUrl + '/route/file/downloadfile/true/' + data,
|
||||
photo: app.volunteerUrl + '/route/file/download/true/' + data,
|
||||
uploadPhoto: data
|
||||
})
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ Page({
|
||||
var data = data.substr(9, data.length);
|
||||
data = data.substr(0, data.length - 2);
|
||||
self.setData({
|
||||
photo: app.volunteerUrl + '/route/file/downloadfile/true/' + data,
|
||||
photo: app.volunteerUrl + '/route/file/download/true/' + data,
|
||||
uploadPhoto: data
|
||||
})
|
||||
}
|
||||
|
@ -29,7 +29,7 @@
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_1'}}">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-small-pic">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
</view>
|
||||
<view class="news-info">
|
||||
<text>来源:{{item.newsContentResource}}</text>
|
||||
@ -38,7 +38,7 @@
|
||||
</view>
|
||||
<view class="news-box transverse-news" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_2'}}">
|
||||
<view class="news-row-img">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
</view>
|
||||
<view class="news-row-info">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
@ -57,13 +57,13 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="news-row-img">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_4'}}">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-big-pic">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
</view>
|
||||
<view class="news-info">
|
||||
<text>来源:{{item.newsContentResource}}</text>
|
||||
@ -80,7 +80,7 @@
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_6'}}">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-big-pic">
|
||||
<image src="{{news.newsUrl}}/route/file/downloadfile/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="{{news.newsUrl}}/route/file/download/true/{{coverItem.contentCoverId}}" wx:for="{{item.newsContentCoverList}}" wx:for-item="coverItem" wx:key="coverItem"></image>
|
||||
<image src="../../images/play.png" class="play-btn"></image>
|
||||
</view>
|
||||
<view class="news-info">
|
||||
|
@ -7,7 +7,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
venueUrl : app.venueUrl,
|
||||
imgRoute : '/route/file/downloadfile/true/',
|
||||
imgRoute : '/route/file/download/true/',
|
||||
token: '',
|
||||
orderList:[],
|
||||
page: 1,
|
||||
|
@ -7,7 +7,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
venueUrl : app.venueUrl,
|
||||
imgRoute : '/route/file/downloadfile/true/',
|
||||
imgRoute : '/route/file/download/true/',
|
||||
token:'',
|
||||
groundBookingId: '',
|
||||
serial: '',
|
||||
|
@ -16,7 +16,7 @@
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" data-content-link="{{item.newsContentLink}}" wx:for="{{trainList}}" wx:key="index">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-small-pic">
|
||||
<image src="{{newsUrl}}/route/file/downloadfile/true/{{item.newsContentCoverList}}"></image>
|
||||
<image src="{{newsUrl}}/route/file/download/true/{{item.newsContentCoverList}}"></image>
|
||||
</view>
|
||||
<view class="news-info">
|
||||
<text>{{item.newsContentPublishTime}}</text>
|
||||
|
@ -39,7 +39,7 @@ Page({
|
||||
}
|
||||
}, function(code, data) {
|
||||
if('200' == code) {
|
||||
data.photo = app.volunteerUrl + '/route/file/downloadfile/true/' + data.photo;
|
||||
data.photo = app.volunteerUrl + '/route/file/download/true/' + data.photo;
|
||||
self.setData({
|
||||
dataMap: data
|
||||
})
|
||||
|
@ -18,7 +18,7 @@ Page({
|
||||
app.dialog.loading('正在加载');
|
||||
var type = options.link.split('.')
|
||||
if (type[type.length-1] == 'pdf') {
|
||||
wx.downloadFile({
|
||||
wx.download({
|
||||
url: options.link,
|
||||
success: function (res) {
|
||||
const filePath = res.tempFilePath
|
||||
|
@ -16,7 +16,7 @@
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" data-content-link="{{item.newsContentLink}}" wx:for="{{trainList}}" wx:key="index">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-small-pic">
|
||||
<image src="{{newsUrl}}/route/file/downloadfile/true/{{item.newsContentCoverList}}"></image>
|
||||
<image src="{{newsUrl}}/route/file/download/true/{{item.newsContentCoverList}}"></image>
|
||||
</view>
|
||||
<view class="news-info">
|
||||
<text>{{item.newsContentPublishTime}}</text>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" data-content-link="{{item.newsContentLink}}" wx:for="{{travelList}}" wx:key="index">
|
||||
<view class="news-title">{{item.newsContentTitle}}</view>
|
||||
<view class="news-small-pic">
|
||||
<image src="{{newsUrl}}/route/file/downloadfile/true/{{item.newsContentCoverList}}"></image>
|
||||
<image src="{{newsUrl}}/route/file/download/true/{{item.newsContentCoverList}}"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
@ -7,7 +7,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
venueUrl : app.venueUrl,
|
||||
imgRoute : '/route/file/downloadfile/true/',
|
||||
imgRoute : '/route/file/download/true/',
|
||||
venueTypeParentId : 'df8b758c-f6d8-465a-9aa8-c451fde47076',
|
||||
page : '1',
|
||||
rows : '10',
|
||||
|
@ -6,7 +6,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
venueUrl: app.venueUrl,
|
||||
imgRoute : '/route/file/downloadfile/true/',
|
||||
imgRoute : '/route/file/download/true/',
|
||||
indicatorDots: true,
|
||||
autoplay: true,
|
||||
venuesInfoId: '',
|
||||
|
@ -47,7 +47,7 @@ Page({
|
||||
for(var item of data.rows) {
|
||||
if('' != item.photo) {
|
||||
var photoArr = item.photo.split(",");
|
||||
item.photo = app.volunteerUrl + '/route/file/downloadfile/true/' + photoArr[0];
|
||||
item.photo = app.volunteerUrl + '/route/file/download/true/' + photoArr[0];
|
||||
}
|
||||
}
|
||||
if(1 === self.data.pages.page) {
|
||||
|
@ -224,4 +224,5 @@ module.exports.get = getForm;
|
||||
module.exports.params = getParamsArg;
|
||||
module.exports.path = buildPath;
|
||||
module.exports.escape = escape;
|
||||
module.exports.file = postFile;
|
||||
module.exports.file = postFile;
|
||||
module.exports.baseUrl='http://49.233.36.36:58099/xzszwhy';
|
Loading…
Reference in New Issue
Block a user