作者 liaolinfeng

2019年1月30号上传,主要写墓地部分,新建墓地,已建墓地,关注墓地

要显示太多修改。

为保证性能只显示 21 of 21+ 个文件。

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
... ...
App({
onLaunch: function () {
// 展示本地存储能力
var logs = wx.getStorageSync('logs') || []
},
post: function (url, data, headerParams) {
/**
... ... @@ -23,7 +22,7 @@ App({
//init
let that = this;
let postData = data;
let baseUrl = 'http://192.168.1.7/anleguo/public';
let baseUrl = 'http://anleguo.w.bronet.cn';
// let baseUrl = 'http://192.168.1.15/public';
// postData.signature = that.makeSign(postData);
//网络请求
... ... @@ -40,26 +39,11 @@ App({
if (res.data.code == '20000') {
resolve(res.data.data);
} else if (res.data.code == '40000') {//返回错误提示信息
console.log(res)
wx.showToast({
title: res.data.msg,
icon: 'none'
})
// wx.showModal({
// title: '提示',
// // content: res.data.msg,
// success: function (res) {
// if (res.confirm) {
// wx.removeStorageSync('token');
// wx.navigateTo({
// // url: '/pages/startRecord/startRecord',
// })
// }
// }
// })
} else if (res.data.code == '40001') {//返回错误提示信息
wx.showModal({
title: '提示',
... ... @@ -107,7 +91,7 @@ App({
wx.hideNavigationBarLoading()
}, 600)
},
error: function (e) {
fail: function (e) {
reject('网络出错');
// wx.hideLoading()
wx.hideNavigationBarLoading()
... ... @@ -116,6 +100,59 @@ App({
});
return promise;
},
/**
* 自定义上传文件,返回文件路径
* +-------------------
* @filetype{String} 文件类型.image,video,audio,file
* @filePath String 要传的文件路径
* +-------------------
* @return url 返回文件路径
*/
upload (filetype, file) {
var promise = new Promise((resolve, reject) => {
wx.showNavigationBarLoading()
wx.showLoading({
title: '上传中',
})
let url = 'http://anleguo.w.bronet.cn/portal/common/upload';
let head = {
'XX-Token': wx.getStorageSync('token'),
'XX-Device-Type': ''
}
let typename = {
filetype: filetype
}
wx.uploadFile({
url: url, //仅为示例,非真实的接口地址
filePath: file,
name: 'file',
header: {},
formData: typename,
success: function (res) {
console.log('上传文件后',res)
let temdata = JSON.parse(res.data);
let urlobj = {
url: temdata.data.preview_url
}
resolve(urlobj);
wx.hideNavigationBarLoading();
wx.hideLoading();
},
fail: function (res) {
reject('网络出错');
wx.hideNavigationBarLoading()
wx.hideLoading()
},
complete: () => {
wx.hideNavigationBarLoading()
wx.hideLoading()
},
})
});
return promise;
},
formCollect(id) {
let url = '/sign/formid'
let params = {
... ... @@ -132,7 +169,10 @@ App({
let date = new Date();
let month = date.getMonth() + 1;
let day = date.getDate();
return date.getFullYear() + '年' + (month > 9 ? month : ('0' + month)) + '月' + (day > 9 ? day : ('0' + day)) + '日';
let dayobj={};
dayobj.newdate = date.getFullYear() + '年' + (month > 9 ? month : ('0' + month)) + '月' + (day > 9 ? day : ('0' + day)) + '日';
dayobj.date = date.getFullYear() + '-' + (month > 9 ? month : ('0' + month)) + '-' + (day > 9 ? day : ('0' + day)) ;
return dayobj
},
initDate(a) {
let date1 = new Date();
... ... @@ -152,6 +192,19 @@ App({
let str = 'bronet' + strtime + 'beijing'
return md5(md5(str))
},
//数组变字符串,中间用,隔开
array_to_string(arr){
let str='';
for (let i = 0; i < arr.length;i++){
if (i == (arr.length-1)){
str +=arr[i]
}else{
str += arr[i]+','
}
}
return str;
},
globalData: {
userInfo: null,
baseUrl: 'http://beijing.w.bronet.cn'
... ...
{
"pages": [
"pages/index/index",
"pages/personecenter/code/code",
"pages/personecenter/exchange/exchange",
"pages/personecenter/recharge/recharge",
"pages/mainindex/mainindex",
... ... @@ -13,7 +12,6 @@
"pages/newcemetery/attentionmudi/attentionmudi",
"pages/publicmemory/herolist/herolist",
"pages/newcemetery/myancestral/myancestral",
"pages/newcemetery/xianshimudi/xianshimudi",
"pages/newcemetery/jizu/jizu",
"pages/newcemetery/wangshangmudi/wangshangmudi",
"pages/newcemetery/gaobieting/gaobieting",
... ... @@ -52,7 +50,6 @@
"pages/publicindex/publicindex",
"pages/main/searchpage/searchpage",
"pages/main/detail/detail",
"pages/logs/logs",
"pages/newcemetery/increasezuci/increasezuci",
"pages/newcemetery/usehelp/usehelp",
... ... @@ -62,8 +59,11 @@
"pages/newcemetery/diepeopleinfo/diepeopleinfo",
"pages/newcemetery/zucimemberremark/zucimemberremark",
"pages/newcemetery/jianjie/jianjie",
"pages/newcemetery/searchmudilist/searchmudilist"
"pages/newcemetery/searchmudilist/searchmudilist",
"pages/newcemetery/xinjianwangluomudi/xinjianwangluomudi",
"pages/newcemetery/xinjianxianshimudi/xinjianxianshimudi",
"pages/newcemetery/xianshimudi/xianshimudi",
"pages/personecenter/code/code"
],
"window": {
"backgroundTextStyle": "light",
... ...
... ... @@ -8,3 +8,61 @@
padding: 200rpx 0;
box-sizing: border-box;
}
wxParse-img{
width: 100% !important;
}
.wxParse-strong{
font-weight: bold !important;
}
@font-face {font-family: "iconfont";
src: url('//at.alicdn.com/t/font_1000553_z9jzv7oaaf.eot?t=1548230525508'); /* IE9 */
src: url('//at.alicdn.com/t/font_1000553_z9jzv7oaaf.eot?t=1548230525508#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAa0AAsAAAAADJQAAAZkAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEGAqKcIhTATYCJAMoCxYABCAFhG0HgQcbmArIHpIEIaCAAgAHJG2A+nl+m3/uC8T3TMz1M6px1c5aFMoDsfAjGPnYGrYmrFqgqwhjlfi75YHnZr/NgYZZgRZgwOvW8+MDXIM4o5s9QAAg8Z79XJ1Y/W9pTa9t3su/mTvijUQmUakkoohG0UojQ4qEEFnMq8lJKTQ4J7+6mwECQBkvEGqnzs4APgJZEAysZFIR8EteRA+B8B28lhMzG7QNSPxwI3YPwFb/++gPdcAHwJAR0K3m91PEIHzB+yTOjXBbGqmBu1wYAOanAeAAAgEQAN1bowbAYzUQjtr+BYR8AAJ2cNgLmUlziHmSefpw3rBp+OTICGaoz0erEQFHuT2ABR4MnyXytf/xcIBSQKsVMGtqlsAMWgIsgBlJAA+YSQnAgDlEAvjAPEl7mm06SAAJhvMkAIFhkwQQYPikF/AJnbI5Qh+6AGAlMCdbsR9VIyAYlnKrZUutyD0WmQdYC0jSniDGVvf3Zwx89tPTtNYl+yUaHFyovnvW0FD2wEBmf3+R5oRz0wPvnnuOe695Z/V2jTE2o7Yn0ZTmwmhDl7rbpfmiD33y6QR1k3NTd4BL9p7rfvrbXnvuuvTd9Mo0dbrqGqD1cRS96/wofSfX4dhwjqKOPRrLNTo1dvhm6LKODzjpd7lkG5udDW2ju4em0Uaji7Fb3VVUMFDUjUH35vbHbXLOMvQ46vojTww6G3Y7ZuganPStozr6J1NqpNE56jq4Tie93om+PuDW0CLWb3TK1O9xMQ5lP8Fhi6/1M50DU24OeXQNVvd/etGnyhwazh40L9NzezXOWRk6Ta/aJTvLoO7TOmVmG7UmzjEjUzRozmIgL9L/qer9RAYyhy7oXmTDDPfRtgzXXnHmRuQJIRMQuyep1PhLetUPtX5sdZ/2PudbsbeapPhSBUFbiqvFezUX1AHSTurFB5u4JfZgN9A8qlTap76g8RVLejXnOD9WvJc7rw2QigdqL6r9GVyow2/cwHWCJlfRrY02yEZTWPOC3oTrGkZ0/zRo0SI0SZIWjTH/bNixwsH63I9BaqrgjWDmxtqpKz/3OrJWdO8hYpT9MleNUOsyx62EPNRL0xJHk3llWP1UU7zgB9tQxvZ7wYzKRUeJ2eQoobkUTs1FK9S4LhW4fqlMb9Pnlaumf95de3VarFfFmp1Vk4yZ8V7bsAkZGT+2sjWALEssJwNaeeRPGRkTyCMoLstQPvGquDxqcmTXkSnRkeVrdtZMMmbF2XcRq/JPAVgsiPLEMu588kcOxF9AlXqNlXpMjQsxpaGCQiwNm289aSh3ofkOYYP5j9PSxo1LW/DokUa/URowUckTwtWVeCJJi8aYj0Hca88znq90ZH4VaK+J155nTTulDnAyCiP1z0iGIZ8hadEY8xHrnWfOE//+S4Dp/ATBOJmQ9oKxsR9rb4PxcbY2UQMvBN9e4tyM7wfyhLaphj1tEUd9jKkThBUxuSuMEDYP9PVCRvchc/aYEFrN230qIlYWE1W2vmxdVGxebPju01ExIHomC5PrLgiThLBit3q1Z4yk0byaKuGxkhjPYPaohcJWr5HmMLikB5TPAGDkIhGeCjDSGuCbuWCzn/EvKtx1uNrz3MI5rpqr4L0OfHx9iz/w2rS2E6ya43RzhW3ib3x69FvxrFhYi4bL9AAfBti6lDWj2AQAINgvDOSj4k0ciMBHADCNbXrUJ2Db44L20mbqsAQgRSUF3qDdia1LwnanHDAWxgGOz5NKMAOBRIsEHr4UoASYdjrNgQIOxZYA4G+tAMTOQcDYuAg4O/epBPM1kJx9Bzx2AQ6UrMDhgjTvQEZNUrAiJStmcioZWa68WKICSioMLmClqkKRomjw/CxWUSorMGHBodXGNLaYVVzikNIyabhSKWEkCnkRM1Xcji0slDMlCnk+m6sMzlMqS+JDQiRtLxScKy8CyiQKLBEllhgjRyWGTC65YhK7vBJV+/kFWFIqhUQUPfNu1bOwFErJ1s4IEyyUQZ1mLWbN+yhjS5WRCqfEsASjpyrIFWFMxTCrUFblGCXt2+Vj5VIKlndCuUS8EFxMwrUG395e9G8bRtgF6FmpAEM4IhCJeMgC8ZElohAN9FYlz5GJ5BJZYaFtjkquKhLJlaragaHRFlKVqDhHFmahlImK8/VBPLFKJpWreCUiWYUqiARXsaKAbbk8kZw3zAMAAAAA') format('woff2'),
url('//at.alicdn.com/t/font_1000553_z9jzv7oaaf.woff?t=1548230525508') format('woff'),
url('//at.alicdn.com/t/font_1000553_z9jzv7oaaf.ttf?t=1548230525508') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('//at.alicdn.com/t/font_1000553_z9jzv7oaaf.svg?t=1548230525508#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-zuobiaofill:before {
content: "\e768";
}
.icon-buoumaotubiao06:before {
content: "\e605";
}
.icon-guanbi1:before {
content: "\e7b7";
}
.icon-tianjia:before {
content: "\e7a9";
}
.icon-duigou:before {
content: "\e648";
}
.icon-paixu-:before {
content: "\e601";
}
.icon-jinru:before {
content: "\e600";
}
.icon-jiahao:before {
content: "\e62f";
}
.icon-guanbi:before {
content: "\e643";
}
... ...
// pages/main/detail/detail.js
const app=getApp();
var that;
var wxParse = require('../../../wxParse/wxParse.js')
Page({
/**
... ... @@ -7,12 +10,30 @@ Page({
data: {
},
getNewsDetail(){
let url ='/api/portal/index/getNewsDetail';
let params={
id:that.data.id
}
app.post(url, params).then((res)=>{
console.log(res)
that.setData({
datalist:res
})
wxParse.wxParse('content', 'html', res.content, that, 5);
}).catch((err)=>{
console.log(err)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
that=this;
that.setData({
id:options.id
})
that.getNewsDetail();
},
/**
... ...
<view class="box">
<view class="diepeoplename">著名反派演员计春华去世, 享年57岁</view>
<view class="diepeoplename">{{datalist.title}}</view>
<view class="topnonecontent">
<view class="newsimg">
<image src="../../../img/news.png"></image>
<image src="http://bronet.wangshuwen.com//news.png"></image>
</view>
<text class="toponetitle dietitle">人民网</text>
<text class="toponetitle dietitle" style="margin-left:10rpx">1小时前</text>
</view>
<view class="diepeoplecontent">
<view class="diepeopletext">
端午节将至,除了吃粽子,还有什么讲究?27日上午的东岳庙,用热闹丰富的活动回答了这个问题。北京民俗博物馆在这里举办“我们的节日·端午节系列文化活动”,吸引了来自北京白家庄小学、北方之星翠林幼儿园的近百位小朋友参加。包粽子、画泥人、扎风筝、做香囊,小家伙们成了东岳庙里最忙碌的人,一上午时间,要体验“端午民俗课”的全部内容,可真忙不过来呢!
</view>
<view class='diepeopleimg'>
<image src="../../../img/sacrifice_02@3x.png"></image>
<import src="../../../wxParse/wxParse.wxml" />
<template is='wxParse' data='{{wxParseData:content.nodes}}' />
</view>
<view class="diepeopleimgtitle"> 计春华纪念馆</view>
<view class="diepeopletext">
本次活动还特别安排了“端午民俗知识”讲座。一些小朋友们坐在小板凳上,饶有兴味地听工作人员讲古时候的孩子们怎么过端午节:“那时候大人喝雄黄酒辟邪,小孩就剪艾虎,或者在脑门儿上拿雄黄酒画一个 王老虎 ,民间寓意是虎虎实实,在这一年里不仅会有好身体,也会有好运气。
</view>
</view>
</view>
<view class="textover">本文完</view>
\ No newline at end of file
<view class="textover">本文完</view>
\ No newline at end of file
... ...
... ... @@ -36,7 +36,7 @@
<view class="recommendpeoplebox">
<view class="recommendpeopleitem">
<view class="recommendpeopleitemimg">
<image src="../../../img/choose@3x.png"></image>
<image src="http://bronet.wangshuwen.com//choose@3x.png"></image>
</view>
<view class="recommendpeoplename">雷锋</view>
... ... @@ -45,7 +45,7 @@
</view>
<view class="recommendpeopleitem">
<view class="recommendpeopleitemimg">
<image src="../../../img/choose@3x.png"></image>
<image src="http://bronet.wangshuwen.com//choose@3x.png"></image>
</view>
<view class="recommendpeoplename">雷锋</view>
... ... @@ -54,7 +54,7 @@
</view>
<view class="recommendpeopleitem">
<view class="recommendpeopleitemimg">
<image src="../../../img/choose@3x.png"></image>
<image src="http://bronet.wangshuwen.com//choose@3x.png"></image>
</view>
<view class="recommendpeoplename">雷锋</view>
... ... @@ -63,7 +63,7 @@
</view>
<view class="recommendpeopleitem">
<view class="recommendpeopleitemimg">
<image src="../../../img/choose@3x.png"></image>
<image src="http://bronet.wangshuwen.com//choose@3x.png"></image>
</view>
<view class="recommendpeoplename">雷锋</view>
... ... @@ -72,7 +72,7 @@
</view>
<view class="recommendpeopleitem">
<view class="recommendpeopleitemimg">
<image src="../../../img/choose@3x.png"></image>
<image src="http://bronet.wangshuwen.com//choose@3x.png"></image>
</view>
<view class="recommendpeoplename">雷锋</view>
... ... @@ -81,7 +81,7 @@
</view>
<view class="recommendpeopleitem">
<view class="recommendpeopleitemimg">
<image src="../../../img/choose@3x.png"></image>
<image src="http://bronet.wangshuwen.com//choose@3x.png"></image>
</view>
<view class="recommendpeoplename">雷锋</view>
... ... @@ -90,7 +90,7 @@
</view>
<view class="recommendpeopleitem">
<view class="recommendpeopleitemimg">
<image src="../../../img/choose@3x.png"></image>
<image src="http://bronet.wangshuwen.com//choose@3x.png"></image>
</view>
<view class="recommendpeoplename">雷锋</view>
... ...
// pages/main/mainindex/mainindex.js
const app=getApp();
var that;
Page({
/**
* 页面的初始数据
*/
... ... @@ -23,160 +24,243 @@ Page({
],
currentTab: 0,
peoplenav:[
{
name:'历史名人'
peoplenav: [{
name: '历史名人'
},
{
name:'演艺明星'
name: '演艺明星'
}
],
currentpeopleTab:0,
publishshow:false,
currentpeopleTab: 0,
publishshow: false,
cate: 3, //于家为国,2民俗文化, 3主页信息
page: 1, //第几页
pagenum: 5, //每页显示几条内容
starpage:1,
starnum:10,
datalist: [], //于家为国,民俗文化,主页信息的数据
starlist:[],//追思名人数据
//底部导航
num:1
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(this.data.num)
num: 1,
scroll_height:'556',
isload:true//是否加载更多
},
//隐藏发布弹出层
hideshow(){
hideshow() {
this.setData({
publishshow:false
publishshow: false
})
},
Navigation: function (e) {
Navigation: function(e) {
console.log(e)
var that = this;
that.setData({
num:e.currentTarget.dataset.num
num: e.currentTarget.dataset.num
})
let number=e.currentTarget.dataset.num
if(number==1){
wx.navigateTo({
let number = e.currentTarget.dataset.num
if (number == 1) {
wx.reLaunch({
url: '../mainindex/mainindex',
})
}else if(number==2){
console.log(666)
wx.navigateTo({
} else if (number == 2) {
wx.reLaunch({
url: '../publicindex/publicindex',
})
} else if (number==3) {
} else if (number == 3) {
that.setData({
publishshow:true,
num:1
publishshow: true,
num: 1
})
}else if (number == 4) {
wx.navigateTo({
} else if (number == 4) {
wx.reLaunch({
url: '../mudipageindex/mudipageindex',
})
}else if(number==5){
wx.navigateTo({
} else if (number == 5) {
wx.reLaunch({
url: '../myindex/myindex',
})
}
},
//搜索页
searchlist(){
searchlist() {
wx.navigateTo({
url: '../main/searchpage/searchpage',
})
},
//求子
qiuzi(){
qiuzi() {
wx.navigateTo({
url: '../publish/publish',
})
},
//求财
qiucai(){
qiucai() {
wx.navigateTo({
url: '../publishbox/wealthhall/wealthhall',
})
},
//寺庙
simiao(){
simiao() {
wx.navigateTo({
url: '../publishbox/treasurehall/treasurehall',
})
},
navbarTap: function(e) {
let that=this;
//顶部导航的切换
navbarTap: function (e) {
let that = this;
this.setData({
currentTab: e.currentTarget.dataset.idx,
})
if (e.currentTarget.dataset.idx == '0') {//主页信息
this.setData({
cate: 3,
datalist: [],
page:1
})
this.getdatalist();
} else if (e.currentTarget.dataset.idx == '1') {//于家卫国
this.setData({
cate: 1,
datalist: [],
page:1
})
this.getdatalist();
} else if (e.currentTarget.dataset.idx == '3') {//民俗文化
this.setData({
cate: 2,
datalist:[],
page:1
})
this.getdatalist();
}
},
//获取主页信息,于家为国,民俗文化的数据(cate:1于家为国,2民俗文化,3主页信息)
getdatalist() {
let that = this;
let url = '/api/portal/index/getNewsList';
let params = {
cate: that.data.cate,
page: that.data.page,
num: that.data.pagenum
}
app.post(url, params).then((res) => {
if(res.length>0){
let datalist = that.data.datalist;
let temdata = datalist.concat(res);
that.setData({
datalist: temdata,
isload: true,
page: parseInt(that.data.page) + 1
})
}else{
that.setData({
isload: false,//关闭加载更多
})
}
peoplenavbarTap(e){
console.log(33)
}).catch((err) => {
console.log(err)
})
},
peoplenavbarTap(e) {
let that = this;
this.setData({
currentpeopleTab: e.currentTarget.dataset.peopleidx,
})
},
// 下拉加载
onloading(){
let that=this;
if (that.data.isload){
that.getdatalist();
}
},
//接口:获取演绎明星列表
getStarList(){
let url ='/api/portal/index/getStarList';
let head={
'XX-Token': wx.getStorageSync('token')
}
let params={
page: that.data.starpage,
num:that.data.starnum
}
app.post(url, params,head).then((res)=>{
console.log(res)
that.setData({
starlist:res
})
}).catch((err)=>{
console.log(err)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
that = this;
let windowHeight = wx.getSystemInfoSync().windowHeight // 屏幕的高度
let windowWidth = wx.getSystemInfoSync().windowWidth // 屏幕的宽度
this.setData({
scroll_height: windowHeight * 750 / windowWidth
})
this.setData({
cate: 3,
datalist: [],
page: 1,
starpage:1
})
that.getdatalist();
that.getStarList();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
<!-- 发布弹出层 -->
<!-- 发布弹出层 -->
<import src="../template/templates.wxml" />
<template is="showpublish" data='{{publishshow}}' />
<import src="../template/templates.wxml" />
<template is="showpublish" data='{{publishshow}}' />
<view class="box">
<!-- 底部导航 -->
<!-- 底部导航 -->
<import src="../template/templates.wxml" />
<template is="tabBar" data='{{num}}' />
<view class="search">
<view class="search mainindex_search">
<view class="iconfont icon-sousuo searchicon"></view>
<view class="search_hospital">
<input placeholder="身份证号或纪念堂号" class="enterword" bindinput="searchhospital" bindtap='searchlist'/>
<input placeholder="身份证号或纪念堂号" class="enterword" bindinput="searchhospital" bindtap='searchlist' />
</view>
</view>
<view class="nav">
<!-- 公告 -->
<view class="noticeindex">
公告
</view>
<view class="nav mainindex_nav">
<view wx:for="{{navbar}}" data-idx="{{index}}" class="nav_item {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}
</view>
</view>
<!--主页信息-->
<view class="mainpage" hidden="{{currentTab!==0}}">
<view class="topone">
<!--主页信息,于国危机,民俗文化-->
<scroll-view scroll-y='true' bindscrolltolower='onloading' style='height:{{scroll_height}}rpx'>
<view class="mainpage" wx:if='{{currentTab !== 2}}'>
<!-- style:1纯文字,2文字加一张图片,3文字加视频第一针,4文字加三张图片 -->
<navigator wx:for='{{datalist}}' wx:key url='/pages/main/detail/detail?id={{item.id}}' hover-class="none">
<view class="topone" wx:if='{{item.style=="1"}}'>
<view class="toponetext">
如果你无法简洁的表达你的想法,那只说明你 还不够了解它。
{{item.title}}
</view>
<view class="topnonecontent">
<text class="toponetitle">--阿尔伯特·爱因斯坦</text>
<view class="totop">置顶</view>
<text class="toponetitle">--{{item.author}}</text>
<view class="totop">{{item.is_top=='0'?'置顶':'取消置顶'}}</view>
</view>
</view>
<view class="topone">
<view class="topone" wx:elif='{{item.style=="2"}}'>
<view class="toptwo">
<view class="toponetext toptwotext">
著名反派演员计春华去世,享 年57岁
{{item.title}}
</view>
<view class="toptwoimg ">
<image src="../../../img/NoPath - 副本 (240)@3x.png"></image>
<image src="{{item.imgs[0]}}"></image>
</view>
</view>
<view class="topnonecontent">
<view class="newsimg">
<image src="../../../img/news.png"></image>
<image src="http://bronet.wangshuwen.com//news.png"></image>
</view>
<text class="toponetitle">人民网</text>
<text class="toponetitle">{{item.author}}</text>
<text class="toponetitle" style="margin-left:10rpx">3.2万人祭拜</text>
<view class="totop">置顶</view>
<view class="totop">{{item.is_top=='0'?'置顶':'取消置顶'}}</view>
</view>
</view>
<view class="topone">
<view class="topone" wx:elif='{{item.style=="3"}}'>
<view class="toponetext">
著名反派演员计春华去世,享
年57岁
{{item.title}}
</view>
<video id="myVideo" src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400" binderror="videoErrorCallback" danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video>
<video id="myVideo" src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"
binderror="videoErrorCallback" danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video>
<view class="topnonecontent">
<view class="newsimg">
<image src="../../../img/news.png"></image>
<image src="http://bronet.wangshuwen.com//news.png"></image>
</view>
<text class="toponetitle">人民网</text>
<text class="toponetitle">{{item.author}}</text>
<text class="toponetitle" style="margin-left:10rpx">3.2万人祭拜</text>
</view>
</view>
<view class="topone">
<view class="toptwo">
<view class="toponetext toptwotext">
每逢佳节倍思亲,为家人加个 纪念馆
</view>
<view class="toptwoimg ">
<image src="../../../img/NoPath - 副本 (240)@3x.png"></image>
</view>
</view>
</view>
<view class="topone praylist">
<view class="prayimg">
<image src="../../../img/组 4218@3x.png"></image>
</view>
<view class="prayimg">
<image src="../../../img/组 4218@3x.png"></image>
</view>
<view class="prayimg">
<image src="../../../img/组 4218@3x.png"></image>
</view>
</view>
<view class="tourlist">
<view class="touristname">十一黄金周数万名游客齐聚西纸坊,共享民俗文化盛宴</view>
<view class="tourlist" wx:elif='{{item.style=="4"}}'>
<view class="touristname">{{item.title}}</view>
<view class="tourlistimglist">
<view class="tourlistimg">
<image src="../../../img/product_04@3x.png"></image>
<view class="tourlistimg" wx:for='{{item.imgs}}' wx:key >
<image src="{{item}}"></image>
</view>
<view class="tourlistimg">
<image src="../../../img/product_04@3x.png"></image>
</view>
<view class="tourlistimg">
<image src="../../../img/product_04@3x.png"></image>
</view>
</view>
<view class="carfrienditem">
<view class="carfriend"></view>
<view class="carfriendname">车友之家 1小时前</view>
<view class="carfriendname">{{item.author}} 1小时前</view>
</view>
</view>
<view class="festivalname">
每逢佳节倍思亲,为家人加个纪念馆
<view class="noticeindex">
公告
</view>
</navigator>
</view>
</view>
<!--于家为国-->
<view hidden="{{currentTab!==1}}">
<view class="topone">
<view class="toponetext">
如果你无法简洁的表达你的想法,那只说明你 还不够了解它。
</view>
<view class="topnonecontent">
<text class="toponetitle">--阿尔伯特·爱因斯坦</text>
<view class="totop">置顶</view>
</view>
</view>
<view class="topone">
<view class="toptwo">
<view class="toponetext toptwotext">
著名反派演员计春华去世,享 年57岁
</view>
<view class="toptwoimg ">
<image src="../../../img/NoPath - 副本 (240)@3x.png"></image>
</view>
</view>
<view class="topnonecontent">
<view class="newsimg">
<image src="../../../img/news.png"></image>
</view>
<text class="toponetitle">人民网</text>
<text class="toponetitle" style="margin-left:10rpx">3.2万人祭拜</text>
<view class="totop">置顶</view>
</view>
</view>
<view class="topone">
<view class="toponetext">
著名反派演员计春华去世,享 年57岁
</view>
<video id="myVideo" src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400" binderror="videoErrorCallback" danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video>
<view class="topnonecontent">
<view class="newsimg">
<image src="../../../img/news.png"></image>
</view>
<text class="toponetitle">人民网</text>
<text class="toponetitle" style="margin-left:10rpx">3.2万人祭拜</text>
</view>
<view class="homenoticeindex ">
公告
</view>
</view>
</view>
<!--追思名人-->
<view hidden="{{currentTab!==2}}">
<view wx:else>
<view class="peoplenav">
<view wx:for="{{peoplenav}}" data-peopleidx="{{index}}" class="peoplenav_item {{currentpeopleTab==index ? 'peopleactive' : ''}}" wx:key="unique" bindtap="peoplenavbarTap">{{item.name}}
</view>
</view>
<view class="peoplelist">
<view class="peoplelistitem">
<view class="peoplelistitem" wx:for='{{starlist}}' wx:key>
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_05@3x.png"></image>
</view>
... ... @@ -236,167 +108,15 @@
</view>
</view>
<view class="peoplelistitem">
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
</view>
<view class="peoplecall">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attentionlist">
<view class="attention">关注</view>
<view class="totop">置顶</view>
</view>
</view>
<view class="peoplelistitem">
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
</view>
<view class="peoplecall">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attentionlist">
<view class="attention">关注</view>
<view class="totop">置顶</view>
</view>
</view>
<view class="peoplelistitem">
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
</view>
<view class="peoplecall">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attentionlist">
<view class="attention">关注</view>
<view class="totop">置顶</view>
</scroll-view>
</view>
</view>
<view class="peoplelistitem">
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
</view>
<view class="peoplecall">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attentionlist">
<view class="attention">关注</view>
<view class="totop">置顶</view>
</view>
</view>
</view>
</view>
<!--民俗文化-->
<view hidden="{{currentTab!==3}}">
<view class="topone">
<view class="toptwo">
<view class="toponetext toptwotext folktext">
著名反派演员计春华去世,享 年57岁
</view>
<view class="toptwoimg folkimg">
<image src="../../../img/组 4219@3x.png"></image>
</view>
</view>
<view class="topnonecontent">
<view class="newsimg">
<image src="../../../img/news.png"></image>
</view>
<text class="toponetitle folktitle">人民网</text>
<text class="toponetitle folktitle" style="margin-left:10rpx">1小时前</text>
</view>
</view>
<view class="topone">
<view class="toptwo">
<view class="toponetext toptwotext folktext">
著名反派演员计春华去世,享 年57岁
</view>
<view class="toptwoimg folkimg">
<image src="../../../img/组 4219@3x.png"></image>
</view>
</view>
<view class="topnonecontent">
<view class="newsimg">
<image src="../../../img/news.png"></image>
</view>
<text class="toponetitle folktitle">人民网</text>
<text class="toponetitle folktitle" style="margin-left:10rpx">1小时前</text>
</view>
</view>
<view class="topone">
<view class="toptwo">
<view class="toponetext toptwotext folktext">
著名反派演员计春华去世,享 年57岁
</view>
<view class="toptwoimg folkimg">
<image src="../../../img/组 4219@3x.png"></image>
</view>
</view>
<view class="topnonecontent">
<view class="newsimg">
<image src="../../../img/news.png"></image>
</view>
<text class="toponetitle folktitle">人民网</text>
<text class="toponetitle folktitle" style="margin-left:10rpx">1小时前</text>
</view>
</view>
<view class="tourlist">
<view class="touristname">十一黄金周数万名游客齐聚西纸坊,共享民俗文化盛宴</view>
<view class="tourlistimglist">
<view class="tourlistimg">
<image src="../../../img/product_04@3x.png"></image>
</view>
<view class="tourlistimg">
<image src="../../../img/product_04@3x.png"></image>
</view>
<view class="tourlistimg">
<image src="../../../img/product_04@3x.png"></image>
</view>
</view>
<view class="carfrienditem">
<view class="carfriend"></view>
<view class="carfriendname">车友之家 1小时前</view>
</view>
</view>
</view>
</view>
... ...
@import '../template/templates.wxss';
@import '../icon/icon.wxss';
page{
padding:0 0 120rpx 0;
}
.register{
width: 100%;
height: 100%;
... ... @@ -17,11 +19,6 @@
border-radius: 10px;
position: absolute;
z-index: 6;
/*left:0.4rem;*/
/*top: 3rem;*/
/* left:50%;
transform: translate(-50%,-50%); */
left:0;
right:0;
margin: 0 auto;
... ... @@ -31,7 +28,6 @@
justify-content: space-between;
padding: 0 30rpx;
box-sizing: border-box;
}
.cancelpublic{
width:96rpx;
... ... @@ -99,12 +95,12 @@
}
.nav {
height:60rpx;
height:100rpx;
display:flex;
justify-content:space-between;
align-items: center;
text-align:center;
box-sizing: border-box;
padding:20rpx 20rpx;
background:#fff;
border-bottom:1rpx solid #f5f5f5;
... ... @@ -156,13 +152,16 @@ position:relative;
font-size: 32rpx;
}
.totop{
width:60rpx;
/* width:60rpx; */
height:32rpx;
padding:0 10rpx;
box-sizing: border-box;
border:1px solid rgba(149,27,27,1);
opacity:1;
display: flex;
justify-content: center;
align-items: center;
font-size: 23rpx;
text-align: center;
line-height: 32rpx;
margin-left: 22rpx;
color:#951B1B;
border-radius:4rpx;
... ... @@ -263,6 +262,10 @@ video{
position: relative;
}
.noticeindex{
position: fixed;
bottom:10%;
left:0;
z-index:2;
width:50rpx;
height:120rpx;
font-size: 34rpx;
... ... @@ -273,12 +276,6 @@ opacity:1;
border-radius:0rpx 3rpx 3rpx 0rpx;
text-align: center;
line-height:60rpx;
position: absolute;
top:14rpx;
left:0;
}
.homenoticeindex{
width:50rpx;
... ... @@ -382,3 +379,17 @@ left:0;
.folktitle{
font-size: 22rpx;
}
.mainindex_search{
position: fixed;
top:0;
left:0;
width:100%;
z-index:2;
}
.mainindex_nav{
position: fixed;
top:64rpx;
left:0;
width:100%;
z-index:2;
}
\ No newline at end of file
... ...
... ... @@ -5,90 +5,89 @@ Page({
* 页面的初始数据
*/
data: {
publishshow:false,
publishshow: false,
//底部导航
num:4
num: 4
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
},
//关注墓地
attentionmudi(){
attentionmudi() {
wx.navigateTo({
url: '../newcemetery/attentionmudi/attentionmudi',
})
},
//使用帮助
usehelp(){
usehelp() {
wx.navigateTo({
url: '../newcemetery/usehelp/usehelp',
})
},
//我的祖祠
myzuci(){
myzuci() {
wx.navigateTo({
url: '../newcemetery/wodezuci/wodezuci',
})
},
//已建墓地
alreadymudi(){
alreadymudi() {
wx.navigateTo({
url: '../newcemetery/mudilist/mudilist',
})
},
//新建墓地
newnudi(){
//新建墓地
newnudi() {
wx.navigateTo({
url: '../newcemetery/newmudi/newmudi',
})
},
//隐藏发布弹出层
hideshow(){
hideshow() {
this.setData({
publishshow:false
publishshow: false
})
},
Navigation: function (e) {
//底部导航的切换
Navigation: function(e) {
console.log(e)
var that = this;
that.setData({
num:e.currentTarget.dataset.num
num: e.currentTarget.dataset.num
})
let number=e.currentTarget.dataset.num
if(number==1){
wx.navigateTo({
let number = e.currentTarget.dataset.num
if (number == 1) {
wx.reLaunch({
url: '../mainindex/mainindex',
})
}else if(number==2){
} else if (number == 2) {
console.log(666)
wx.navigateTo({
wx.reLaunch({
url: '../publicindex/publicindex',
})
} else if (number==3) {
} else if (number == 3) {
that.setData({
publishshow:true,
num:1
publishshow: true,
num: 1
})
}else if (number == 4) {
wx.navigateTo({
} else if (number == 4) {
wx.reLaunch({
url: '../mudipageindex/mudipageindex',
})
}else if(number==5){
wx.navigateTo({
} else if (number == 5) {
wx.reLaunch({
url: '../myindex/myindex',
})
}
},
btn_index() {
wx.navigateTo({
url: '../index/index',
... ... @@ -107,49 +106,49 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
... ... @@ -13,7 +13,7 @@
<view class='c_right' bindtap="usehelp">
<!-- 图标 -->
<view class='c_icon'>
<image src='../../img/add_02@3x.png' ></image>
<image src='http://bronet.wangshuwen.com/add_02@3x.png' ></image>
</view>
<!-- 使用帮助 -->
<view class='c_text'>
... ... @@ -24,7 +24,7 @@
<view class='d' bindtap="myzuci">
<!-- 图片 -->
<image src='../../img/ancestors@3x.png'></image>
<image src='http://bronet.wangshuwen.com/ancestors@3x.png'></image>
<!-- 文字 -->
<view class='d_text'>
<!-- 我的祖祠: -->
... ... @@ -35,7 +35,7 @@
<!-- 查看 -->
<view class='d_text_right'>
<view>查看</view>
<!-- <image src='../../img/more@3x.png'></image> -->
<!-- <image src='http://bronet.wangshuwen.com//more@3x.png'></image> -->
<view class='iconfont icon-jinru'></view>
</view>
</view>
... ... @@ -45,7 +45,7 @@
<view class='f_model' bindtap="newnudi">
<!-- 图片 -->
<view class='f_model_img' bindtap='btn_newmd'>
<image src='../../img/mu_01@3x.png'></image>
<image src='http://bronet.wangshuwen.com/mu_01@3x.png'></image>
</view>
<!-- 文字 -->
<view class='f_model_text'>
... ... @@ -55,7 +55,7 @@
<view class='f_model' bindtap="alreadymudi">
<!-- 图片 -->
<view class='f_model_img' bindtap='btn_oldmd'>
<image src='../../img/mu_02@3x.png'></image>
<image src='http://bronet.wangshuwen.com/mu_02@3x.png'></image>
</view>
<!-- 文字 -->
<view class='f_model_text'>
... ... @@ -65,7 +65,7 @@
<view class='f_model' bindtap="attentionmudi">
<!-- 图片 -->
<view class='f_model_img'>
<image src='../../img/mu_03@3x.png'></image>
<image src='http://bronet.wangshuwen.com/mu_03@3x.png'></image>
</view>
<!-- 文字 -->
<view class='f_model_text'>
... ... @@ -73,62 +73,7 @@
</view>
</view>
</view>
<!-- 底层按钮实现 -->
<!--<view class='g'>-->
<!--<view class='g_item' bindtap='btn_index'>-->
<!--&lt;!&ndash; 图片 &ndash;&gt;-->
<!--<view class='g_icon'>-->
<!--<image src='../../img/nav_01@3x.png'></image>-->
<!--</view>-->
<!--&lt;!&ndash; 文字 &ndash;&gt;-->
<!--<view class='g_item_text'>-->
<!--<text>首页</text>-->
<!--</view>-->
<!--</view>-->
<!--<view class='g_item' bindtap='btn_index'>-->
<!--&lt;!&ndash; 图片 &ndash;&gt;-->
<!--<view class='g_icon'>-->
<!--<image src='../../img/nav_02@3x.png'></image>-->
<!--</view>-->
<!--&lt;!&ndash; 文字 &ndash;&gt;-->
<!--<view class='g_item_text'>-->
<!--<text>公祭</text>-->
<!--</view>-->
<!--</view>-->
<!--&lt;!&ndash; 发布 &ndash;&gt;-->
<!--<view class='g_item g_item_big' bindtap='btn_index'>-->
<!--&lt;!&ndash; 图片 &ndash;&gt;-->
<!--<view class='g_icon g_icon_big'>-->
<!--<image src='../../img/nav_03@3x.png'></image>-->
<!--</view>-->
<!--&lt;!&ndash; 文字 &ndash;&gt;-->
<!--<view class='g_item_text g_item_text_big'>-->
<!--<text>发布</text>-->
<!--</view>-->
<!--</view>-->
<!--<view class='g_item' bindtap='btn_index'>-->
<!--&lt;!&ndash; 图片 &ndash;&gt;-->
<!--<view class='g_icon g_icon-on'>-->
<!--<image src='../../img/nav_04_fill@3x.png'></image>-->
<!--</view>-->
<!--&lt;!&ndash; 文字 &ndash;&gt;-->
<!--<view class='g_item_text'>-->
<!--<text>墓地</text>-->
<!--</view>-->
<!--</view>-->
<!--<view class='g_item' bindtap='btn_index'>-->
<!--&lt;!&ndash; 图片 &ndash;&gt;-->
<!--<view class='g_icon'>-->
<!--<image src='../../img/nav_05@3x.png'></image>-->
<!--</view>-->
<!--&lt;!&ndash; 文字 &ndash;&gt;-->
<!--<view class='g_item_text'>-->
<!--<text>我的</text>-->
<!--</view>-->
<!--</view>-->
<!--</view>-->
</view>
</view>
... ...
<!-- 底部导航 -->
<import src="../template/templates.wxml" />
<template is="tabBar" data='{{num}}' />
<import src="../template/templates.wxml" />
<template is="tabBar" data='{{num}}' />
<view class="myhead">
<view class="myheadimg">
<image src="../../img/wish_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//wish_02@3x.png"></image>
</view>
<view class="myinfo">
<view class="myheadname">朱晓明</view>
... ... @@ -15,7 +14,7 @@
<view class="mymoneyitem">
<view class="mymoneyhappy">
<view class="mymoneyimg">
<image src="../../img/组 4396@3x.png"></image>
<image src="http://bronet.wangshuwen.com//组 4396@3x.png"></image>
</view>
<view class="mymoneynum">安乐币</view>
</view>
... ... @@ -26,7 +25,7 @@
<view class="mymoneyitem">
<view class="mymoneyhappy">
<view class="mymoneyimg">
<image src="../../img/组 4396@3x.png"></image>
<image src="http://bronet.wangshuwen.com//组 4396@3x.png"></image>
</view>
<view class="mymoneynum">金币</view>
</view>
... ... @@ -40,18 +39,18 @@
<view class="listitem">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/pro_01@3x.png"></image>
<image src="http://bronet.wangshuwen.com//pro_01@3x.png"></image>
</view>
<view class="listitemname">我的亲友</view>
</view>
<view class="iconfont icon-xiangyou"></view>
</view>
</view>
<view class="listitem">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/pro_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//pro_02@3x.png"></image>
</view>
<view class="listitemname">我的礼簿</view>
</view>
... ... @@ -62,7 +61,7 @@
<view class="listitem">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/pro_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//pro_02@3x.png"></image>
</view>
<view class="listitemname">我的订单</view>
</view>
... ... @@ -73,7 +72,7 @@
<view class="listitem">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/icon-test@3x.png"></image>
<image src="http://bronet.wangshuwen.com//icon-test@3x.png"></image>
</view>
<view class="listitemname">
我的消息
... ... @@ -87,7 +86,7 @@
<view class="listitem">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/pro_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//pro_03@3x.png"></image>
</view>
<view class="listitemname">已购祭品</view>
</view>
... ... @@ -98,7 +97,7 @@
<view class="listitem">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/pro_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//pro_04@3x.png"></image>
</view>
<view class="listitemname">收获地址</view>
</view>
... ... @@ -109,7 +108,7 @@
<view class="listitem">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/pro_05@3x.png"></image>
<image src="http://bronet.wangshuwen.com//pro_05@3x.png"></image>
</view>
<view class="listitemname">我的店铺</view>
</view>
... ... @@ -120,7 +119,7 @@
<view class="listitem">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/pro_06@3x.png"></image>
<image src="http://bronet.wangshuwen.com//pro_06@3x.png"></image>
</view>
<view class="listitemname">关于我们</view>
</view>
... ... @@ -128,22 +127,20 @@
</view>
<view class="listitem">
<navigator class="listitem" url='/pages/personecenter/code/code' hover-class="none">
<view class="listitempic">
<view class="listitemimg">
<image src="../../img/saomiaoerweima@2x.png"></image>
<image src="http://bronet.wangshuwen.com//saomiaoerweima@2x.png"></image>
</view>
<view class="listitemname">绑定二维码</view>
</view>
<view class="iconfont icon-xiangyou"></view>
</view>
</navigator>
</view>
<view class="connectus">
<view class="connectusimg">
<image src="../../img/customerservice@3x.png"></image>
<image src="http://bronet.wangshuwen.com//customerservice@3x.png"></image>
</view>
<view class="connectusname">联系我们</view>
</view>
\ No newline at end of file
... ...
// pages/publicmemory/herolist/herolist.js
const app=getApp();
var that;
Page({
/**
* 页面的初始数据
*/
data: {
page:1,
num:10,
datalist:[]
},
// 接口:获取我关注的墓地
getFollow(){
let url ='/api/portal/cemetery/getFollow';
let head={
'XX-Token':wx.getStorageSync('token')
}
let params={
page: that.data.page,
num:that.data.num
}
app.post(url, params, head).then((res)=>{
console.log(res)
that.setData({
datalist:res
})
}).catch((err)=>{
console.log(err)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
that=this;
that.getFollow();
},
... ...
<import src="../template/templates.wxml" />
<template is="tabBar" data='{{...tabcurrent}}' />
... ... @@ -7,107 +6,28 @@
<view class="search">
<view class="iconfont icon-sousuo searchicon"></view>
<view class="search_hospital">
<input placeholder="名字身份证号或纪念堂号" class="enterword" bindinput="searchhospital"/>
<input placeholder="名字身份证号或纪念堂号" class="enterword" bindinput="searchhospital" />
</view>
</view>
<!--追思名人-->
<view >
<view>
<view class="matry">
关注的墓地列表
</view>
<view class="peoplelist">
<view class="peoplelistitem">
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
</view>
<view class="peoplecall">
<view class="matrypeoplename">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attention">关注</view>
</view>
</view>
<view class="peoplelistitem">
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
</view>
<view class="peoplecall">
<view class="matrypeoplename">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attention">关注</view>
</view>
</view>
<view class="peoplelistitem">
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
</view>
<view class="peoplecall">
<view class="matrypeoplename">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attention">关注</view>
</view>
</view>
<view class="peoplelistitem">
<view class="peoplelistitem" wx:for='{{datalist}}' wx:key>
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
<image src="{{item.thumb}}"></image>
</view>
<view class="peoplecall">
<view class="matrypeoplename">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecallname">{{item.name?item.name:'暂无'}}</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attention">关注</view>
</view>
</view>
<view class="peoplelistitem">
<view class="peoplelistitemimg">
<image src="../../../img/product_05@3x.png"></image>
</view>
<view class="peoplecall">
<view class="matrypeoplename">
<text class="peoplecallname">邓丽君</text>
<text class="peoplecalldate">诞辰24周年</text>
</view>
<view class="attention">关注</view>
</view>
</view>
</view>
</view>
... ...
@import '../../publicmemory/herolist/herolist.wxss';
page{
padding:0;
}
.searchicon {
left:144rpx;
}
... ...
... ... @@ -7,7 +7,7 @@ Page({
data: {
flowernavbar: [{ id: 1, name: '鲜花' }, { id: 2, name: '上香' }, { id: 3, name: '祭品' }],
flowercurrentTab: 0,
imgUrls: ["../../../img/gongxi@3x.png", "../../../img/gongxi@3x.png", "../../../img/gongxi@3x.png", "../../../img/gongxi@3x.png"],
imgUrls: ["http://bronet.wangshuwen.com//gongxi@3x.png", "http://bronet.wangshuwen.com//gongxi@3x.png", "http://bronet.wangshuwen.com//gongxi@3x.png", "http://bronet.wangshuwen.com//gongxi@3x.png"],
indicatorDots: false,
autoplay: true,
interval: 2000,
... ...
<view class="box">
<view class="peopledetailimg">
<image src="../../../img/sun.png"></image>
<image src="http://bronet.wangshuwen.com//sun.png"></image>
</view>
<view class="peopledetailinfo">
... ... @@ -15,7 +15,7 @@
</view>
</view>
<view class="peopledetailcard">
<image src="../../../img/idcard.png"></image>
<image src="http://bronet.wangshuwen.com//idcard.png"></image>
</view>
</view>
... ... @@ -28,61 +28,61 @@
<view class="peoplememorygood">
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明朱小明朱小明朱小明朱小明朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view><view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
... ... @@ -162,7 +162,7 @@
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">祭文悼词</view>
</view>
... ... @@ -174,7 +174,7 @@
<view class="grievehead">
<view class="grieveinfo">
<view class="grievepeopleimg">
<image src="../../../img/kefu1@3x.png"></image>
<image src="http://bronet.wangshuwen.com//kefu1@3x.png"></image>
</view>
<view class="grievename">朱*明</view>
... ... @@ -192,7 +192,7 @@
<view class="grievehead">
<view class="grieveinfo">
<view class="grievepeopleimg">
<image src="../../../img/kefu1@3x.png"></image>
<image src="http://bronet.wangshuwen.com//kefu1@3x.png"></image>
</view>
<view class="grievename">朱*明</view>
... ... @@ -227,7 +227,7 @@
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">人物简介</view>
</view>
... ... @@ -247,7 +247,7 @@
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">纪念文集</view>
</view>
... ... @@ -269,7 +269,7 @@
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">照片</view>
</view>
... ... @@ -278,16 +278,16 @@
<view class="peopleintrotext piclist">
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
</view>
... ... @@ -301,7 +301,7 @@
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">音频文件</view>
</view>
... ... @@ -310,13 +310,13 @@
<view class="peopleintrotext piclist">
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
</view>
</view>
... ... @@ -324,7 +324,7 @@
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">视频影像</view>
</view>
... ... @@ -333,7 +333,7 @@
<view class="peopleintrotext piclist">
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
</view>
... ... @@ -351,7 +351,7 @@
<view class="join">
<view class="joinword">邀请加入</view>
<view class="joinimg">
<image src="../../../img/add_red@3x.png"></image>
<image src="http://bronet.wangshuwen.com//add_red@3x.png"></image>
</view>
</view>
... ... @@ -361,7 +361,7 @@
<view class="memberitem">
<view class="memberitemimg">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="memberitemname">女儿</view>
</view>
... ... @@ -369,7 +369,7 @@
<view class="memberitem">
<view class="memberitemimg">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="memberitemname">女儿</view>
... ...
// pages/publicmemory/peoplememorydetail/peoplememorydetail.js
const app=getApp();
var that;
Page({
/**
* 页面的初始数据
*/
data: {
f:false,
flowernavbar: [{ id: 1, name: '鲜花' }, { id: 2, name: '上香' }, { id: 3, name: '祭品' }],
flowercurrentTab: 0,
imgUrls: ["../../../img/gongxi@3x.png", "../../../img/gongxi@3x.png", "../../../img/gongxi@3x.png", "../../../img/gongxi@3x.png"],
imgUrls: ["http://bronet.wangshuwen.com//gongxi@3x.png", "http://bronet.wangshuwen.com//gongxi@3x.png", "http://bronet.wangshuwen.com//gongxi@3x.png", "http://bronet.wangshuwen.com//gongxi@3x.png"],
indicatorDots: false,
autoplay: true,
ifmold:false,
interval: 2000,
duration: 1000,
currentSwiper: 0,
type:1,
relationship:'',
memorial_id:'',
datalist:[],//墓地详情
usergift:[],//用户赠送的礼物
gift:[],//礼物
textlist:[],//祭文列表
memorialmember:[],//公祭成员
memorial_member_id:''
},
//接口:获取演绎明星/名人公祭/事件公祭/国家公祭日/瞻仰烈士/烈士诞辰纪念日/纪念馆详情
getStarDetail(){
let head={
'XX-Token':wx.getStorageSync('token')
}
let url ='/api/portal/index/getStarDetail';
let params={
memorial_id: that.data.memorial_id
}
app.post(url, params, head).then((res)=>{
that.setData({
datalist:res
})
that.getUserGift();
that.getText();
that.getMemorialMember();
}).catch((err)=>{
console.log(err)
})
},
hidemold(){
that.setData({
ifmold:false
})
},
showmold(e){
that.setData({
ifmold: true,
memorial_member_id: e.currentTarget.id,
})
},
//接口:获取用户赠送礼物(类型(1公祭,2祖祠))
getUserGift(){
let url ='/api/portal/index/getUserGift';
let params={
memorial_id: that.data.memorial_id,
type:that.data.type
}
app.post(url, params).then((res)=>{
console.log(res)
that.setData({
usergift:res
})
}).catch((err)=>{
console.log(err)
})
},
//接口:获取礼物
getGift() {
let url = '/api/portal/index/getGift';
app.post(url, {}).then((res) => {
let cate1 = res.cate1;
let cate2 = res.cate2;
let cate3 = res.cate3;
let temcate1 = [];
let temcate2 = [];
let temcate3 = [];
let tem = [];
for (let i = 0; i < cate1.length; i++) {
tem.push(cate1[i]);
if ((i + 1) != cate1.length) {
if ((i + 1) % 8 == 0) {
temcate1.push(tem);
tem = [];
}
} else {
temcate1.push(tem);
tem = [];
}
}
for (let i = 0; i < cate2.length; i++) {
tem.push(cate2[i]);
if ((i + 1) % 8 == 0) {
temcate2.push(tem);
tem = [];
} else {
temcate2.push(tem);
tem = [];
}
}
for (let i = 0; i < cate3.length; i++) {
tem.push(cate3[i]);
if ((i + 1) % 8 == 0) {
temcate3.push(tem);
tem = [];
} else {
temcate3.push(tem);
tem = [];
}
}
let temgift = [];
temgift.push(temcate1);
temgift.push(temcate2);
temgift.push(temcate3);
that.setData({
gift: temgift
})
}).catch((err) => {
console.log(err)
})
},
//点击礼物献礼物
setitemflower(e) {
let gift = that.data.gift;
let flowercurrentTab = that.data.flowercurrentTab;
let indexs = e.currentTarget.dataset.indexs;//一级下标
let tem = gift[indexs];
let index = e.currentTarget.dataset.index;//二级下标
},
//鲜花,上香,祭品的切换
flowernavbarTap: function (e) {
let that = this;
this.setData({
flowercurrentTab: e.currentTarget.dataset.idx,
})
},
//接口:获取祭文列表
getText(){
let url ='/api/portal/index/getText';
let params={
memorial_id: that.data.datalist.id,
type: that.data.type
}
app.post(url,params).then((res)=>{
console.log(res)
that.setData({
textlist:res
})
}).catch((err)=>{
console.log(err)
})
},
//接口:获取公祭成员
getMemorialMember(){
let url ='/api/portal/index/getMemorialMember';
let params={
memorial_id: that.data.memorial_id
}
app.post(url, params).then((res)=>{
that.setData({
memorialmember:res
})
}).catch((err)=>{
console.log(err)
})
},
// 接口:添加公祭成员
setMemorialMember(){
let url ='/api/portal/index/setMemorialMember';
let head={
'XX-Token':wx.getStorageSync('token')
}
let params={
'memorial_id': that.data.memorial_id
}
app.post(url, params, head).then((res)=>{
}).catch((err)=>{
console.log(err)
})
},
// 接口:设置成员关系
setMemorialRelationship(){
let url ='/api/portal/index/setMemorialRelationship';
let memorialmember = that.data.memorialmember;
let params={
memorial_member_id: that.data.memorial_member_id,
relationship: that.data.relationship
}
app.post(url, params).then((res)=>{
console.log(res)
memorialmember.forEach(function (item, index, arrSelf){
if (item.id == that.data.memorial_member_id){
item.relationship = that.data.relationship;
}
})
that.setData({
memorialmember: memorialmember
})
}).catch((err)=>{
console.log(err)
})
},
voidfun(){
},
setrelationship(e){
that.setData({
relationship:e.detail.value
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
that=this;
that.setData({
memorial_id: options.memorial_id
})
that.getStarDetail();
that.getGift();
that.setMemorialMember();
},
... ... @@ -32,7 +246,6 @@ Page({
let that = this;
this.setData({
flowercurrentTab: e.currentTarget.dataset.idx,
})
},
... ...
<view class="box">
<view class="peopledetailimg">
<image src="../../../img/sun.png"></image>
<image src="{{datalist.thumb}}"></image>
</view>
<view class="peopledetailinfo">
<view class="peopledetailinfoitem">
<view class="peopledetailcard fugaopic">
<image src="../../../img/idcard.png"></image>
<view class='fugaopic_img'>
<image src='../../../img/fugao.png'></image>
</view>
<view>讣告</view>
</view>
<view class="peopledetailmodel">
<view class="peopledetailname">孙中山</view>
<view class="peopledetailname">{{datalist.name}}</view>
<view class="labelist">
<view class="labelitem">1884~1927</view>
<view class="labelitem">浙江人</view>
<view class="labelitem">{{datalist.handle_data.live_time}}</view>
<view class="labelitem">{{datalist.ancestral_home}}人</view>
</view>
</view>
<view class="peopledetailcard">
<image src="../../../img/idcard.png"></image>
<image src="{{datalist.anleguo_code}}"></image>
</view>
</view>
</view>
</view>
<view class="peoplememorygood">
<view class="peoplememorygooditem">
<view class="peoplememorygood">
<view class="peoplememorygooditem" wx:for='{{usergift}}' wx:key>
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<image src="{{item.avatar}}"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明朱小明朱小明朱小明朱小明朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
<view class="peoplememorygoodname">{{item.user_nickname}}</view>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view><view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
<view class="peoplememorygooditem">
<view class="peoplememorygoodimg">
<image src="../../../img/product_03@3x.png"></image>
</view>
<view class="peoplememorygoodname">朱小明</view>
</view>
</view>
<view class="flower">
</view>
<view class="flower">
<view class="flowernav">
<view wx:for="{{flowernavbar}}" data-idx="{{index}}" class="flowernav_item {{flowercurrentTab==index ? 'floweractive' : ''}}" wx:key="unique" bindtap="flowernavbarTap">{{item.name}}
</view>
</view>
<view class="swiper_image">
<view class="swiper_box">
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange">
<block wx:for="{{imgUrls}}" wx:key="doct">
<swiper-item>
<image src="{{item}}" class="slide-image" width="355" height="150" />
<block wx:if='{{gift[flowercurrentTab].length>0}}'>
<swiper-item wx:for='{{gift[flowercurrentTab]}}' wx:key=''
wx:for-index="indexs" wx:for-item="items">
<view class='swiper_itemflower' wx:for='{{items}}' data-index='{{index}}' data-indexs='{{indexs}}' wx:key='' bindtap='setitemflower' >
<view class='itemflowerimg'>
<image src="{{item.thumb}}"></image>
</view>
<view>{{item.title}}</view>
<view class='itemflowertxt'>1天
<text class='{{item.coin==0?"txt_blue":""}}'>{{item.coin==0?'免费':item.coin+'金币'}}</text>
</view>
</view>
</swiper-item>
</block>
<block wx:else>
<swiper-item class='empty'>暂无数据</swiper-item>
</block>
</swiper>
<view class="dots">
<block wx:for="{{imgUrls}}" wx:key="">
<block wx:for="{{gift[flowercurrentTab]}}" wx:key="">
<view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
</block>
</view>
</view>
<view class="morelist">
<view class="moreword">更多</view>
<view>
<view class="morelistitem">
<text class="morelistdate">7-12 22:14</text>
<text class="morelistcontent">朱小明献上了鲜花</text>
</view>
<view class="morelistitem">
<text class="morelistdate">7-12 22:14</text>
<text class="morelistcontent">朱小明献上了鲜花</text>
</view>
<view class="morelistitem">
<text class="morelistdate">7-12 22:14</text>
<text class="morelistcontent">朱小明献上了鲜花</text>
<view class="morelistitem" wx:for='{{usergift}}' wx:key>
<text class="morelistdate">{{item.handle_data.create_date}}</text>
<text class="morelistcontent">{{item.user_nickname}}献上了{{item.title}}</text>
</view>
<view class="morelistitem">
<text class="morelistdate">7-12 22:14</text>
<text class="morelistcontent">朱小明献上了鲜花</text>
</view>
<view class="morelistitem">
<text class="morelistdate">7-12 22:14</text>
<text class="morelistcontent">朱小明献上了鲜花</text>
</view>
</view>
</view>
<view class="ground">
<view class="grounditem">
<view class="groundname">虚拟墓地</view>
<view class="groundname">守灵堂</view>
<view class="groundpeople">7人吊唁</view>
<view class="groundenter">进入</view>
</view>
<view class="grounditem">
<view class="groundname">现实墓地</view>
<view class="groundname">告别厅</view>
<view class="groundpeople">7人吊唁</view>
<view class="groundenter">进入</view>
</view>
<view class="grounditem">
<view class="groundname">墓室</view>
<view class="groundpeople">7人吊唁</view>
<view class="groundenter">进入</view>
</view>
</view>
<view class="grievecontent">
</view>
<view class="grievecontent">
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">祭文悼词</view>
</view>
<view class="slice">共72条</view>
<view class="slice">共{{textlist.length}}条</view>
</view>
<view class="grievebox">
<view class="grievelist">
<view class="grievehead">
<view class="grieveinfo">
<view class="grievepeopleimg">
<image src="../../../img/kefu1@3x.png"></image>
</view>
<view class="grievename">朱*明</view>
</view>
<view class="grievedate">7-12 23:11</view>
</view>
<view class="grievetail">
中国近代民族民主主义革命的开拓者,中国民主革命伟大先行者中
华民国和中国国民党的缔造者,三民主义的倡导者,创立《五权宪 法》
。他首举彻底反帝反封建的旗帜, “起共和而终两千年封建帝制”。
</view>
</view>
<view class="grievelist">
<view class="grievelist" wx:for='{{textlist}}' wx:key>
<view class="grievehead">
<view class="grieveinfo">
<view class="grievepeopleimg">
<image src="../../../img/kefu1@3x.png"></image>
<image src="{{item.avatar}}"></image>
</view>
<view class="grievename">朱*明</view>
<view class="grievename">{{item.user_nickname}}</view>
</view>
<view class="grievedate">7-12 23:11</view>
<view class="grievedate">{{item.handle_data.create_date}}</view>
</view>
<view class="grievetail">
中国近代民族民主主义革命的开拓者,中国民主革命伟大先行者中
华民国和中国国民党的缔造者,三民主义的倡导者,创立《五权宪 法》
。他首举彻底反帝反封建的旗帜, “起共和而终两千年封建帝制”。
{{item.content}}
</view>
</view>
</view>
</view>
<view class="writeoration">
<view class="writeorationword">写祭文</view>
</view>
</view>
<view class="writeoration">
<navigator class="writeorationword" url='/pages/publicmemory/writeoration/writeoration?memorial_id={{memorial_id}}&type={{type}}' hover-class="none">写祭文</navigator>
</view>
<view class="misshead">
<view></view>
<view class="missname">追思殿</view>
</view>
<view class="grievecontent">
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">人物简介</view>
</view>
</view>
<view class="peopleintrotext">
中国近代民族民主主义革命的开拓者,中国民主革命伟大先行者
中华民国和中国国民党的缔造者,三民主义的倡导者,创立《五 权宪法》。
他首举彻底反帝反封建的旗帜,“起共和而终两千年 封建帝制”。
{{datalist.briefcontent}}
</view>
</view>
<view class="grievecontent">
<view class="grievecontent" wx:if='{{f}}'>
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">纪念文集</view>
</view>
</view>
<view class="peopleintrotext">
<view class="peopleintrotextlist">XX纪念孙中山同志</view>
<view class="peopleintrotextlist">XX纪念孙中山同志</view>
... ... @@ -264,62 +152,43 @@
<view class="peopleintrotextlist">XX纪念孙中山同志</view>
</view>
</view>
<view class="grievecontent">
<view class="grievecontent" >
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">照片</view>
</view>
</view>
<view class="peopleintrotext piclist">
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
</view>
<view class="picture" wx:for='{{datalist.imgs}}' wx:key>
<image src="{{item}}"></image>
</view>
</view>
</view>
<view class="grievecontent">
<view class="grievecontent" wx:if='{{f}}'>
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">音频文件</view>
</view>
</view>
<view class="peopleintrotext piclist">
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<image src="http://bronet.wangshuwen.com//product_04@3x.png"></image>
</view>
</view>
</view>
... ... @@ -327,58 +196,46 @@
<view class="grieve">
<view class="grieveitem">
<view class="grieveimg">
<image src="../../../img/files_02@3x.png"></image>
<image src="http://bronet.wangshuwen.com//files_02@3x.png"></image>
</view>
<view class="grieveword">视频影像</view>
</view>
</view>
<view class="peopleintrotext piclist">
<view class="picture">
<image src="../../../img/product_04@3x.png"></image>
<view class="picture" wx:for='{{datalist.videos}}' wx:key>
<video src='{{item}}'></video>
</view>
</view>
</view>
<view class="grievecontent">
<view class="grieve">
<view class="grieveitem joinnum">
成员(2个)
成员({{memorialmember.length}}个)
</view>
<view class="join">
<view class="joinword">邀请加入</view>
<view class="joinimg">
<image src="../../../img/add_red@3x.png"></image>
<image src="http://bronet.wangshuwen.com//add_red@3x.png"></image>
</view>
</view>
</view>
<view class="peopleintrotext">
<view class="memberitem">
<view class="memberitemimg">
<image src="../../../img/product_04@3x.png"></image>
</view>
<view class="memberitemname">女儿</view>
</view>
<view class="memberitem">
<view class="memberitem" wx:for='{{memorialmember}}' wx:key>
<view class="memberitemimg">
<image src="../../../img/product_04@3x.png"></image>
<image src="{{item.avatar}}"></image>
</view>
<view class="memberitemname">女儿</view>
<view class="setconnection">设置和逝者的关系</view>
<view class="memberitemname">{{item.relationship?item.relationship:'暂无'}}</view>
<view class="setconnection" wx:if='{{!item.relationship}}' catchtap='showmold' id='{{item.id}}'>设置和逝者的关系</view>
</view>
</view>
</view>
<!-- 设置于逝者的关系弹框 -->
<view class='mold' wx:if='{{ifmold}}' bindtap='hidemold'>
<view class='mold_main' catchtap='voidfun'>
<view>设置与逝者的关系</view>
<view class='mold_text'>
<textarea placeholder='请输入' placeholder-class='text_p' bindinput='setrelationship'></textarea>
</view>
<view class='mold_btn' catchtap='setMemorialRelationship'>确定</view>
</view>
</view>
\ No newline at end of file
... ...
@import '../../publicmemory/peoplememorydetail/peoplememorydetail.wxss';
@import '../../../swiper.wxss';
.fugaopic{
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-right: 48rpx;
background: #E3E3E3;
color:#333;
font-size:22rpx;
}
.labelitem{
background: #000000;
... ... @@ -44,3 +52,64 @@
border:2rpx solid #000;
color:#000;
}
.fugaopic_img{
width:25rpx;
height: 32rpx;
display: flex;
align-items: center;
justify-content: center;
margin: 0 0 4rpx 0;
}
.fugaopic_img image{
width:100%;
height: 100%;
display: block;
}
.mold{
position: fixed;
top:0;
left:0;
bottom:0;
width:100%;
height: 100%;
background: rgba(0,0,0,0.3);
display: flex;
align-items: center;
justify-content: center;
}
.mold_main{
width:100%;
color:#333;
font-size:36rpx;
text-align: center;
background: #fff;
padding:40rpx 45rpx;
}
.mold_text{
margin: 13rpx 0 0 0;
height: 165rpx;
border:2rpx solid #D1D1D1;
border-radius: 10rpx;
}
.mold_text textarea{
text-align: left;
padding:16rpx 30rpx;
font-size:36rpx;
width:100%;
height: 100%;
}
.text_p{
color:#999;
}
.mold_btn{
width:125rpx;
height: 54rpx;
display: flex;
align-items: center;
justify-content: center;
font-size:32rpx;
color:#fff;
background: #951B1B;
border-radius: 27rpx;
margin: 27rpx auto 0 auto;
}
\ No newline at end of file
... ...