-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
218 additions
and
621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
//app.js | ||
App({ | ||
onLaunch: function () { | ||
|
||
}, | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,4 +313,7 @@ page{ | |
} | ||
.contact { | ||
padding: 40rpx 40rpx 40rpx 40rpx; | ||
} | ||
image { | ||
height: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,47 @@ | ||
var CONFIG = require('../../utils/config.js') | ||
var WxParse = require('../../utils/wxParse/wxParse.js'); | ||
|
||
Page({ | ||
data: { | ||
title: '联系我们', | ||
latitude: 31.838403, | ||
longitude: 120.528958, | ||
scale: 16, | ||
markers: [{ | ||
latitude: 31.838403, | ||
longitude: 120.528958, | ||
name: '华东国际大厦5F' | ||
}] | ||
}, | ||
onLoad: function () { | ||
var that = this; | ||
wx.request({ | ||
url: CONFIG.API_URL.GET_PAGE + '36', | ||
method: 'GET', | ||
data: {}, | ||
header: { | ||
'Accept': 'application/json' | ||
}, | ||
success: function(res) { | ||
console.log(res); | ||
|
||
if (res.statusCode == 200 && res.data.status == 'ok') { | ||
var data = res.data; | ||
|
||
that.setData({page: data.page}); | ||
WxParse.wxParse('content', 'html', data.page.content, that, 25) | ||
} else { | ||
|
||
} | ||
} | ||
}) | ||
}, | ||
onReady:function(){ | ||
// 页面渲染完成 | ||
}, | ||
onShow:function(){ | ||
// 页面显示 | ||
}, | ||
onHide:function(){ | ||
// 页面隐藏 | ||
}, | ||
onUnload:function(){ | ||
// 页面关闭 | ||
}, | ||
go: function(event) { | ||
wx.navigateTo({ | ||
url: '/pages/news/news-details?id=' + event.currentTarget.dataset.type | ||
}) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,10 @@ | ||
<import src="../../utils/wxParse/wxParse.wxml"/> | ||
<view class="page"> | ||
<view class="page__bd"> | ||
<view class="section section_gap"> | ||
<map | ||
style="width: 100%; height: 300px;" | ||
latitude="{{latitude}}" | ||
longitude="{{longitude}}" | ||
markers="{{markers}}" | ||
scale="{{scale}}" | ||
> | ||
</map> | ||
<view class="contact"> | ||
<text>股票:838280 | ||
电话:0512-58161723 | ||
传真:0512-58161711 | ||
地址:江苏省苏州市张家港市滨河路2号 | ||
华东国际大厦5F</text> | ||
</view> | ||
</view> | ||
<view class="page__hd"> | ||
<text class="page__title"></text> | ||
<text class="page__desc"></text> | ||
</view> | ||
</view> | ||
<view class="news-details-content wxParse"> | ||
<template is="wxParse" data="{{wxParseData:content.nodes}}"/> | ||
</view> | ||
</view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.