作者 lihongjuan

1

... ... @@ -84,26 +84,25 @@ App({
// showCancel: false
// })
} else if (res.data.code == '0') {
console.log(res)
console.log(888)
// wx.showModal({
// title: '提示',
// content: res.data.msg,
// showCancel: false
// })
// reject(res.data)
wx.showToast({
title: '请重新登陆',
icon: 'none'
})
wx.setStorageSync("token", '')
setTimeout(function(){
console.log(8483489)
},1500)
// setTimeout(function(){
// wx.navigateTo({
// url: '/pages/index/index',
// })
// },1500)
if (res.data.msg =='缺少必要参数:TOKEN'){
wx.showToast({
title: '请重新登陆',
icon: 'none'
})
wx.setStorageSync("token", '')
setTimeout(function(){
wx.navigateTo({
url: '/pages/index/index',
})
},1500)
}
reject(res)
} else {
... ...
{
"pages": [
"pages/homepage/homepage",
"pages/home/stageofpregnancy/stageofpregnancy",
"pages/index/index",
"pages/home/stageofpregnancy/stageofpregnancy",
... ... @@ -89,14 +91,14 @@
},
{
"pagePath": "pages/partner/partner",
"text": "商城",
"text": "严选商城",
"selectedColor": "#FC7E65",
"iconPath": "img/nav03@2x.png",
"selectedIconPath": "img/nav04@2x.png"
},
{
"pagePath": "pages/knowledge/knowledge",
"text": "知识库",
"text": "专家问答",
"selectedColor": "#FC7E65",
"iconPath": "img/nav05@2x.png",
"selectedIconPath": "img/nav06@2x.png"
... ...
... ... @@ -89,4 +89,14 @@
left:0;
right:0;
margin:0 auto
}
.register {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 5;
}
\ No newline at end of file
... ...
... ... @@ -8,7 +8,8 @@ Page({
*/
data: {
maternityid: '',
detailCon: ''
detailCon: '',
explain_pic:''
},
/**
* 生命周期函数--监听页面加载
... ... @@ -31,7 +32,8 @@ Page({
app.post(url, params).then((res) => {
console.log(res)
that.setData({
detailCon: res.list
detailCon: res.list,
explain_pic: res.list.content_imgs
})
}).catch((errMsg) => {})
},
... ... @@ -42,6 +44,25 @@ Page({
})
},
seepic(e) {
console.log(e)
let that = this;
let url = e.currentTarget.dataset.url;
let index = e.currentTarget.dataset.index
wx.previewImage({
current: that.data.explain_pic[index],
urls: that.data.explain_pic,
success: function (res) { },
fail: function (res) { },
complete: function (res) { },
})
// console.log(url)
// this.setData({
// bigpic:url,
// showpic:true
// })
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ...
... ... @@ -37,3 +37,15 @@
<text>可预约时段</text>
</view>
<view class='detail_date'>{{detailCon.free_time}}</view>
<view wx:if='{{explain_pic!=null}}'>
<view class="use useessays">
<view class="doctor_name">个人相册</view>
</view>
<!-- 建档流程图-->
<view class="dangimg">
<view class="dangimgitem" wx:for="{{explain_pic}}" wx:key="" bindtap="seepic" data-url="{{item}}" data-index="{{index}}">
<image src="{{item}}"></image>
</view>
</view>
</view>
... ...
/* pages/cityWide/matronDetail/matronDetail.wxss */
@import '../../home/hometail/hometail.wxss';
.detail_head{
padding-top: 60rpx;
padding-bottom: 32rpx;
... ...
... ... @@ -18,174 +18,340 @@ Page({
duration: 1000,
currentSwiper: 0,
//图文编辑大图片和小图片
edit_img:[
edit_img: [
'http://pi4orwnti.bkt.clouddn.com/editbig@2x.png',
'http://pi4orwnti.bkt.clouddn.com/editbig@2x.png',
'http://pi4orwnti.bkt.clouddn.com/editbig@2x.png',
],
status:1,
page:1,
num:5,
buildlist:[],
keyword:'',
archives_id:'',
//是否收藏
if_collect:'',
//是否点赞
if_touch:'',
isfirst:true,
hospital_address_id:'',
status: 1,
page: 1,
num: 5,
buildlist: [],
keyword: '',
archives_id: '',
//是否收藏
if_collect: '',
//是否点赞
if_touch: '',
isfirst: true,
hospital_address_id: '',
},
onLoad: function (options) {
console.log(options)
let that=this;
that.getbanner();
onLoad: function(options) {
console.log(options)
let that = this;
that.getbanner();
that.setData({
hospital_address_id: options.hospital_address_id
})
that.setData({
hospital_address_id: options.hospital_address_id
})
this.getlist()
// that.getlist(function(data){
// // console.log(data)
// // that.data.buildlist=data;
this.getlist()
// });
console.log(that.data.buildlist)
},
// that.getlist(function(data){
// // console.log(data)
// // that.data.buildlist=data;
// });
console.log(that.data.buildlist)
},
viewImg(e) {
let that=this;
let that = this;
console.log(e)
let index = e.currentTarget.dataset.index;
let archives_id = that.data.archives_id;
let paridx = e.currentTarget.dataset.paridx
console.log(paridx)
console.log(that.data.buildlist)
let img=[];
for (var i=0;i<that.data.buildlist.length;i++){
let img = [];
for (var i = 0; i < that.data.buildlist.length; i++) {
if (i==paridx){
if (i == paridx) {
console.log(9090)
img = that.data.buildlist[i].content_imgs;
}
}
console.log(img)
wx.previewImage({
current: img[index],
urls: img,
success: function (res) { },
fail: function (res) { },
complete: function (res) { },
success: function(res) {},
fail: function(res) {},
complete: function(res) {},
})
},
enter(e){
let that=this;
let url=e.currentTarget.dataset.url;
enter(e) {
let that = this;
let url = e.currentTarget.dataset.url;
console.log(e.currentTarget.dataset.id);
wx.navigateTo({
url: '../../sharepage/sharepage?url=' + url,
})
// if (e.currentTarget.dataset.id==0){
// that.enterurl()
// }else{
// }
},
enterurl(){
wx.navigateTo({
url: '../../processQuery/processQuery',
})
enterurl() {
wx.navigateTo({
url: '../../processQuery/processQuery',
})
},
swiperChange: function (e) {
swiperChange: function(e) {
this.setData({
currentSwiper: e.detail.current
})
},
//获取banner图
getbanner:function(){
let that=this;
var url = '/api/portal/archives/getBanner';
var params = {
//获取banner图
getbanner: function() {
let that = this;
var url = '/api/portal/archives/getBanner';
var params = {
}
app.post(url, params).then((res) => {
console.log(res[0]);
}
app.post(url, params).then((res) => {
console.log(res[0]);
that.setData({
imgUrls: res[0].items
})
}).catch((err) => {
})
},
//搜索
search: function(e) {
let that = this;
that.setData({
keyword: e.detail.value
})
if (e.detail.value == "" || e.detail.value == null) {
that.searchlist()
}
},
that.setData({
imgUrls:res[0].items
})
searchlist: function() {
var that = this;
// that.getlist()
that.setData({
page: 1,
buildlist: []
})
var url = '/api/portal/archives/archivesList';
var params = {
token: wx.getStorageSync('token'),
page: that.data.page,
num: that.data.num,
status: that.data.status,
keyword: that.data.keyword,
hospital_address_id: that.data.hospital_address_id
}
app.post(url, params).then((res) => {
console.log(res)
console.log(that.data.buildlist)
if (res == "") {
that.setData({
buildlist: []
}).catch((err) => {
})
},
//搜索
search:function(e){
let that=this;
that.setData({
keyword:e.detail.value
})
} else {
that.setData({
buildlist: res
})
}
let newbuildlist = that.data.buildlist;
for (var i = 0; i < newbuildlist.length; i++) {
newbuildlist[i].showword = true
if (newbuildlist[i].content_text.length > 80) {
console.log(1)
newbuildlist[i].openword = true
newbuildlist[i].content_text = newbuildlist[i].content_text.substring(0, 80);
} else {
console.log(2)
newbuildlist[i].openword = false
}
if (newbuildlist[i].content_imgs == null) {
console.log(3)
newbuildlist[i].content_imgs = []
} else {
newbuildlist[i].content_imgs = newbuildlist[i].content_imgs.slice(0, 3);
}
if(e.detail.value==""||e.detail.value==null){
that.searchlist()
}
},
searchlist:function(){
var that=this;
// that.getlist()
that.setData({
page:1,
buildlist:[]
buildlist: that.data.buildlist.concat(newbuildlist)
})
console.log(that.data.buildlist)
var url = '/api/portal/archives/archivesList';
var params = {
token: wx.getStorageSync('token'),
page: that.data.page,
num: that.data.num,
status: that.data.status,
keyword: that.data.keyword,
hospital_address_id: that.data.hospital_address_id
}).catch((err) => {
})
},
finish(e) {
var that = this;
// that.getlist()
that.setData({
page: 1,
buildlist: []
})
var url = '/api/portal/archives/archivesList';
var params = {
token: wx.getStorageSync('token'),
page: that.data.page,
num: that.data.num,
status: that.data.status,
keyword: that.data.keyword,
hospital_address_id: that.data.hospital_address_id
}
app.post(url, params).then((res) => {
console.log(res)
console.log(that.data.buildlist)
if (res == "") {
that.setData({
buildlist: []
})
} else {
that.setData({
buildlist: res
})
}
app.post(url, params).then((res) => {
console.log(res)
console.log(that.data.buildlist)
if (res == "") {
that.setData({
buildlist: []
let newbuildlist = that.data.buildlist;
})
} else {
that.setData({
for (var i = 0; i < newbuildlist.length; i++) {
buildlist: res
newbuildlist[i].showword = true
if (newbuildlist[i].content_text.length > 80) {
console.log(1)
newbuildlist[i].openword = true
newbuildlist[i].content_text = newbuildlist[i].content_text.substring(0, 80);
} else {
console.log(2)
newbuildlist[i].openword = false
}
})
if (newbuildlist[i].content_imgs == null) {
console.log(3)
newbuildlist[i].content_imgs = []
} else {
newbuildlist[i].content_imgs = newbuildlist[i].content_imgs.slice(0, 3);
}
}
that.setData({
buildlist: that.data.buildlist.concat(newbuildlist)
})
console.log(that.data.buildlist)
let newbuildlist = that.data.buildlist;
}).catch((err) => {
})
},
//最新 最热
new: function() {
this.setData({
page: 1,
status: 1,
buildlist: []
})
this.getlist()
},
hot: function() {
this.setData({
page: 1,
status: 2,
buildlist: []
})
this.getlist()
},
//获取列表
getlist() {
let that = this;
var url = '/api/portal/archives/archivesList';
var params = {
token: wx.getStorageSync('token'),
page: that.data.page,
num: that.data.num,
status: that.data.status,
keyword: that.data.keyword,
hospital_address_id: that.data.hospital_address_id
}
app.post(url, params).then((res) => {
console.log(res)
console.log(that.data.buildlist)
if (res == "") {
that.setData({
buildlist: that.data.buildlist
})
} else {
let newbuildlist = res;
console.log(newbuildlist)
for (var i = 0; i < newbuildlist.length; i++) {
newbuildlist[i].showword = true
... ... @@ -209,222 +375,139 @@ Page({
}
console.log(res)
that.setData({
buildlist: that.data.buildlist.concat(newbuildlist)
})
console.log(that.data.buildlist)
console.log(that.data.buildlist)
}
}).catch((err) => {
})
},
//最新 最热
new:function(){
this.setData({
page:1,
status: 1,
buildlist:[]
})
this.getlist()
},
hot:function(){
this.setData({
page: 1,
status: 2,
buildlist:[]
})
this.getlist()
},
//获取列表
getlist(){
let that=this;
var url = '/api/portal/archives/archivesList';
var params = {
token: wx.getStorageSync('token'),
page:that.data.page,
num:that.data.num,
status:that.data.status,
keyword:that.data.keyword,
hospital_address_id: that.data.hospital_address_id
}
app.post(url, params).then((res) => {
console.log(res)
console.log(that.data.buildlist)
if(res==""){
that.setData({
buildlist: that.data.buildlist
})
}else{
}).catch((err) => {
let newbuildlist = res;
console.log(newbuildlist)
})
for (var i = 0; i <newbuildlist.length; i++) {
newbuildlist[i].showword = true
if (newbuildlist[i].content_text.length > 80) {
console.log(1)
newbuildlist[i].openword = true
newbuildlist[i].content_text = newbuildlist[i].content_text.substring(0, 80);
}else{
console.log(2)
newbuildlist[i].openword = false
}
if (newbuildlist[i].content_imgs==null){
console.log(3)
newbuildlist[i].content_imgs = []
} else{
newbuildlist[i].content_imgs = newbuildlist[i].content_imgs.slice(0, 3);
}
},
}
console.log(res)
that.setData({
buildlist: that.data.buildlist.concat(newbuildlist)
})
console.log(that.data.buildlist)
}
/**
* 生命周期函数--监听页面加载
*/
//收藏
collect: function(e) {
let that = this;
that.setData({
archives_id: e.currentTarget.dataset.id
})
var collect_id = that.data.archives_id;
var list = that.data.buildlist;
for (var i = 0; i < list.length; i++) {
if (collect_id == list[i].archives_id) {
var collect = list[i].if_collect;
if (collect == 0) {
list[i].if_collect = 1;
} else if (collect == 1) {
list[i].if_collect = 0
}
}
}
that.setData({
buildlist: list
})
//调取收藏的接口
var url = '/api/portal/archives/doCollect';
var params = {
token: wx.getStorageSync('token'),
archives_id: that.data.archives_id
}
app.post(url, params).then((res) => {
console.log(res);
// getCurrentPages()[getCurrentPages().length - 1].onLoad()
}).catch((err) => {
}).catch((err) => {
})
})
},
//点赞
touchstar: function(e) {
let that = this;
that.setData({
archives_id: e.currentTarget.dataset.id
})
var collect_id = that.data.archives_id;
var list = that.data.buildlist;
for (var i = 0; i < list.length; i++) {
if (collect_id == list[i].archives_id) {
var touchstar = list[i].if_touch;
if (touchstar == 0) {
list[i].if_touch = 1;
list[i].touch_num = list[i].touch_num + 1
} else if (touchstar == 1) {
list[i].if_touch = 0;
list[i].touch_num = list[i].touch_num - 1;
}
}
}
that.setData({
buildlist: list
})
},
//调取点赞的接口
var url = '/api/portal/archives/doTouch';
var params = {
token: wx.getStorageSync('token'),
archives_id: that.data.archives_id
}
app.post(url, params).then((res) => {
console.log(res);
// getCurrentPages()[getCurrentPages().length - 1].onLoad()
}).catch((err) => {
/**
* 生命周期函数--监听页面加载
*/
})
},
//收藏
collect:function(e){
let that=this;
that.setData({
archives_id: e.currentTarget.dataset.id
})
var collect_id=that.data.archives_id;
var list=that.data.buildlist;
for(var i=0;i<list.length; i++){
if(collect_id==list[i].archives_id){
var collect=list[i].if_collect;
if(collect==0){
list[i].if_collect=1;
}else if(collect==1){
list[i].if_collect=0
}
}
}
that.setData({
buildlist:list
})
//调取收藏的接口
var url = '/api/portal/archives/doCollect';
var params = {
token: wx.getStorageSync('token'),
archives_id:that.data.archives_id
}
app.post(url, params).then((res) => {
console.log(res);
// getCurrentPages()[getCurrentPages().length - 1].onLoad()
}).catch((err) => {
})
},
//点赞
touchstar:function(e){
let that=this;
that.setData({
archives_id: e.currentTarget.dataset.id
})
var collect_id=that.data.archives_id;
var list=that.data.buildlist;
for(var i=0;i<list.length; i++){
if(collect_id==list[i].archives_id){
var touchstar=list[i].if_touch;
if(touchstar==0){
list[i].if_touch=1;
list[i].touch_num = list[i].touch_num+1
}else if(touchstar==1){
list[i].if_touch=0;
list[i].touch_num = list[i].touch_num-1;
}
}
}
that.setData({
buildlist:list
})
//调取点赞的接口
var url = '/api/portal/archives/doTouch';
var params = {
token: wx.getStorageSync('token'),
archives_id:that.data.archives_id
}
app.post(url, params).then((res) => {
console.log(res);
// getCurrentPages()[getCurrentPages().length - 1].onLoad()
}).catch((err) => {
})
},
//展开收起
operaword(e){
let that = this;
operaword(e) {
let that = this;
let archives_id = e.currentTarget.dataset.archives_id;
console.log(archives_id)
let showword=e.currentTarget.dataset.showword;
let showword = e.currentTarget.dataset.showword;
console.log(showword)
if(showword==true){
if (showword == true) {
console.log(9090)
that.setData({
page:1,
num:50
page: 1,
num: 50
})
var url = '/api/portal/archives/archivesList';
... ... @@ -445,8 +528,8 @@ Page({
for (var obj of newbuildlist) {
console.log(obj.archives_id);
obj.showword =true;
obj.showword = true;
if (obj.content_text.length > 80) {
obj.openword = true
} else {
... ... @@ -454,7 +537,7 @@ Page({
}
console.log(obj);
console.log(archives_id)
if (obj.archives_id == archives_id) {
... ... @@ -462,14 +545,14 @@ Page({
console.log(obj.showword)
obj.showword = false;
obj.ccontent_text = obj.ccontent_text;
if (obj.content_imgs==null){
obj.content_imgs=[]
} else if (obj.content_imgs.length>3){
if (obj.content_imgs == null) {
obj.content_imgs = []
} else if (obj.content_imgs.length > 3) {
obj.content_imgs = obj.content_imgs.slice(0, 3);
}
// if (obj.showword == false) {
// } else {
// obj.showword = true
// obj.content_text = obj.content_text.substring(0, 80);
... ... @@ -477,7 +560,7 @@ Page({
// }
}else{
} else {
obj.content_text = obj.content_text.substring(0, 80);
if (obj.content_imgs == null) {
... ... @@ -510,8 +593,8 @@ Page({
}).catch((err) => {
})
}else{
} else {
let newbuildlist = that.data.buildlist;
console.log(newbuildlist)
... ... @@ -545,26 +628,26 @@ Page({
}
// let newbuildlist=that.data.buildlist;
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
// this.setData({
// buildlist:[],
// page:1
... ... @@ -575,72 +658,72 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
console.log(6666)
let that=this;
that.data.page++;
that.getlist();
console.log(that.data.buildlist)
let that = this;
that.data.page++;
that.getlist();
console.log(that.data.buildlist)
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
},
//建档成功,我要分享
attentionpublic:function(){
wx.navigateTo({
url: '../meshare/meshare?hospital_address_id=' + this.data.hospital_address_id,
})
},
//建档笔记详情
buildtextdetail:function(e){
let that=this;
console.log(e)
var buildtetid=e.currentTarget.dataset.id;
wx.setStorageSync('buildtetid', buildtetid)
that.setData({
archives_id: e.currentTarget.dataset.id
})
wx.navigateTo({
url: '../buildtextdetail/buildtextdetail?buildid=' + buildtetid,
})
},
//建档成功,我要分享
attentionpublic: function() {
wx.navigateTo({
url: '../meshare/meshare?hospital_address_id=' + this.data.hospital_address_id,
})
},
//建档笔记详情
buildtextdetail: function(e) {
let that = this;
console.log(e)
var buildtetid = e.currentTarget.dataset.id;
wx.setStorageSync('buildtetid', buildtetid)
that.setData({
archives_id: e.currentTarget.dataset.id
})
wx.navigateTo({
url: '../buildtextdetail/buildtextdetail?buildid=' + buildtetid,
})
},
//医院详情
enterhostail(e){
//医院详情
enterhostail(e) {
wx.setStorageSync('hospitalid', e.currentTarget.dataset.hosid);
wx.navigateTo({
url: '../hometail/hometail',
})
},
attention:function(){
wx.navigateTo({
url: '../attentionpublic/attentionpublic',
})
}
})
attention: function() {
wx.navigateTo({
url: '../attentionpublic/attentionpublic',
})
}
})
\ No newline at end of file
... ...
... ... @@ -5,7 +5,7 @@
<view class="searchbuildtext">
<view class="search">
<view class="search_hospital">
<input placeholder="搜索医院" class="enterword" bindinput="search" />
<input placeholder="搜索医院" class="enterword" bindinput="search" confirm-type="done" bindconfirm="finish"/>
</view>
<view class="searchimg" bindtap="searchlist">
<image src="http://bronet.ibaby88.cn/aicon02@2x.png"></image>
... ...
... ... @@ -75,6 +75,7 @@ Page({
this.searchlist()
}
},
searchlist:function(){
let that=this;
that.setData({
... ... @@ -175,6 +176,107 @@ Page({
})
},
finish(e) {
let that = this;
that.setData({
page: 1,
buildlist: []
})
// this.getchildinfo();
var url = '/api/portal/childbirth/childbirthList';
var params = {
token: wx.getStorageSync('token'),
page: that.data.page,
num: that.data.num,
status: that.data.status,
keyword: that.data.keyword,
hospital_address_id: that.data.hospital_address_id
}
app.post(url, params).then((res) => {
console.log(res)
if (res == '') {
that.setData({
buildlist: []
})
} else {
// that.setData({
// buildlist: res
// })
let newbuildlist = res;
for (var i = 0; i < newbuildlist.length; i++) {
newbuildlist[i].showword = true
console.log(newbuildlist[i].content_imgs)
if (newbuildlist[i].content_text.length > 80) {
newbuildlist[i].openword = true
newbuildlist[i].content_text = newbuildlist[i].content_text.substring(0, 80);
} else {
newbuildlist[i].openword = false
}
if (newbuildlist[i].content_imgs == null) {
newbuildlist[i].content_imgs = []
} else if (newbuildlist[i].content_imgs.length > 3) {
newbuildlist[i].content_imgs = newbuildlist[i].content_imgs.slice(0, 3);
}
if (newbuildlist[i].production_type == 1) {
newbuildlist[i].production_type = '顺'
} else if (newbuildlist[i].production_type == 2) {
newbuildlist[i].production_type = '剖'
}
if (newbuildlist[i].sex == 1) {
newbuildlist[i].sex = '男宝'
} else if (newbuildlist[i].sex == 2) {
newbuildlist[i].sex = '女宝'
}
}
that.setData({
buildlist: that.data.buildlist.concat(newbuildlist)
})
console.log('090909789', that.data.buildlist)
}
// let newbuildlist = that.data.buildlist;
// for (var i = 0; i < newbuildlist.length; i++) {
// newbuildlist[i].content_text = newbuildlist[i].content_text.substring(0, 80);
// newbuildlist[i].content_imgs = newbuildlist[i].content_imgs.slice(0, 3);
// if (newbuildlist[i].production_type == 1) {
// newbuildlist[i].production_type = '顺'
// } else if (newbuildlist[i].production_type == 2) {
// newbuildlist[i].production_type = '剖'
// }
// if (newbuildlist[i].sex == 1) {
// newbuildlist[i].sex = '男宝'
// } else if (newbuildlist[i].sex == 2) {
// newbuildlist[i].sex = '女宝'
// }
// }
// that.setData({
// buildlist: newbuildlist
// })
// console.log(that.data.buildlist)
}).catch((err) => {
})
},
//最新 最热
new:function(){
this.setData({
... ...
... ... @@ -17,7 +17,7 @@
<view class="new_left">
<view class="search">
<view class="search_hospital">
<input placeholder="搜索医院" class="enterword" bindinput="search" />
<input placeholder="搜索医院" class="enterword" bindinput="search" confirm-type="done" bindconfirm="finish"/>
</view>
<view class="searchimg" bindtap="searchlist">
<image src="http://bronet.ibaby88.cn/aicon02@2x.png"></image>
... ...
... ... @@ -299,7 +299,8 @@ box-sizing:border-box;
width: 642rpx;
position: absolute;
top: 69rpx;
left: 0;
left: 44rpx;
right: 0;
margin: 0 auto;
}
... ...
... ... @@ -262,7 +262,7 @@ Page({
let goodtail_id = that.data.goodtail_id;
return {
title: '活动详情分享', // 转发后 所显示的title
title: '转卖' + that.data.goodetail.title, // 转发后 所显示的title
// path: '/pages/home/buildtextdetail/buildtextdetail?buildid='+buildid+'&gettoken='+newtoken, // 相对的路径
path: '/pages/index/index?goodtail_id=' + goodtail_id + '&status=' + 6,//分娩笔记分享2
//path: '/pages/index/index?childrenid',
... ...
... ... @@ -38,6 +38,8 @@
<view class="good_address">
<view class="address_sign">
<image src="http://bronet.ibaby88.cn/dicon10@2x.png"></image>
</view>
<view class="price_address city_address">{{goodetail.province}}</view>
<view class="price_address detail_address">{{goodetail.city}}</view>
... ... @@ -46,6 +48,8 @@
<view class="good_address" bindtap="paste" data-word="{{goodetail.mobile}}">
<view class="address_sign">
<div class="iconfont icon-weixin" ></div>
<view class="fuzhi">点击可复制</view>
</view>
<view class="price_address detail_address">{{goodetail.mobile}}</view>
</view>
... ...
... ... @@ -44,6 +44,22 @@
height: 32rpx;
font-size: 0;
margin-right: 10rpx;
position: relative
}
.fuzhi{
position: absolute;
top:-40rpx;
right:-121rpx;
width:135rpx;
height:40rpx;
border:1rpx solid #f5f5f5;
font-size: 22rpx;
line-height: 40rpx;
text-align: center;
background-color: rgba(0, 0, 0, 0.4);
color:#fff;
border-radius: 10rpx;
}
.address_sign image {
width: 100%;
... ...
... ... @@ -114,7 +114,9 @@ Page({
star2:'',
star3:'',
star4:'',
explain_pic:[]
explain_pic:[],
bigpic:'',
showpic:false
... ... @@ -137,6 +139,34 @@ Page({
// })
},
seepic(e){
console.log(e)
let that=this;
let url = e.currentTarget.dataset.url;
let index=e.currentTarget.dataset.index
wx.previewImage({
current: that.data.explain_pic[index],
urls: that.data.explain_pic,
success: function (res) { },
fail: function (res) { },
complete: function (res) { },
})
// console.log(url)
// this.setData({
// bigpic:url,
// showpic:true
// })
},
// hidpic(){
// this.setData({
// showpic:false
// })
// },
// no(){
// },
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -1072,11 +1102,20 @@ Page({
}
app.post(url, params).then((res) => {
console.log('医院详情',res)
var len='';
if(res.cname!=null){
len = res.cname.length;
}
len=len-1
console.log(len)
// console.log(len)
// console.log(res.cname[len])
that.setData({
guide_title: res.guide_title,
hostitle:res.title,
hostitle: res.cname != null ? res.cname[len] : res.title,
info: res,
condition: res.condition,
... ...
... ... @@ -207,7 +207,7 @@
<image src="http://bronet.ibaby88.cn/aicon08@2x.png" wx:if="{{star2<3&&star2!=2.5}}"></image>
<image src="http://bronet.ibaby88.cn/pingban.png" wx:if='{{star2==2.5}}'></image>
</view>
<view class="hostel_star">
<image src="http://bronet.ibaby88.cn/aicon07@2x.png" wx:if="{{star2>=4}}"></image>
<image src="http://bronet.ibaby88.cn/aicon08@2x.png" wx:if="{{star2<4&&star2!=3.5}}"></image>
... ... @@ -226,7 +226,7 @@
</view>
<view class="allevelstate" wx:if="{{star2==5}}">无可挑剔,非常满意</view>
<view class="allevelstate" wx:if="{{star2==5}}">无可挑剔,非常满意</view>
<view class="allevelstate" wx:if="{{star2==4.5||star2==4}}">比较满意,仍可改善</view>
<view class="allevelstate" wx:if="{{star2==3||star2==3.5}}">一般,还需改善</view>
<view class="allevelstate" wx:if="{{star2==2||star2==2.5}}">不满意,比较差</view>
... ... @@ -254,7 +254,7 @@
<image src="http://bronet.ibaby88.cn/aicon08@2x.png" wx:if="{{star3<3&&star3!=2.5}}"></image>
<image src="http://bronet.ibaby88.cn/pingban.png" wx:if='{{star3==2.5}}'></image>
</view>
<view class="hostel_star">
<image src="http://bronet.ibaby88.cn/aicon07@2x.png" wx:if="{{star3>=4}}"></image>
<image src="http://bronet.ibaby88.cn/aicon08@2x.png" wx:if="{{star3<4&&star3!=3.5}}"></image>
... ... @@ -268,7 +268,7 @@
</view>
</view>
<view class="allevelstate" wx:if="{{star3==5}}">无可挑剔,非常满意</view>
<view class="allevelstate" wx:if="{{star3==5}}">无可挑剔,非常满意</view>
<view class="allevelstate" wx:if="{{star3==4.5||star3==4}}">比较满意,仍可改善</view>
<view class="allevelstate" wx:if="{{star3==3||star3==3.5}}">一般,还需改善</view>
<view class="allevelstate" wx:if="{{star3==2||star3==2.5}}">不满意,比较差</view>
... ... @@ -280,7 +280,7 @@
<view class="allevalute">
<view class="allevel">
<view class="allevalname">医疗服务</view>
<view class="starlist">
<view class="starlist">
<view class="hostel_star">
<image src="http://bronet.ibaby88.cn/aicon07@2x.png" wx:if="{{star4>=1}}"></image>
<image src="http://bronet.ibaby88.cn/aicon08@2x.png" wx:if="{{star4<1&&star4!=0.5}}"></image>
... ... @@ -296,7 +296,7 @@
<image src="http://bronet.ibaby88.cn/aicon08@2x.png" wx:if="{{star4<3&&star4!=2.5}}"></image>
<image src="http://bronet.ibaby88.cn/pingban.png" wx:if='{{star4==2.5}}'></image>
</view>
<view class="hostel_star">
<image src="http://bronet.ibaby88.cn/aicon07@2x.png" wx:if="{{star4>=4}}"></image>
<image src="http://bronet.ibaby88.cn/aicon08@2x.png" wx:if="{{star4<4&&star4!=3.5}}"></image>
... ... @@ -432,12 +432,18 @@
</view>
<!-- 建档流程图-->
<view class="dangimg">
<view class="dangimgitem" wx:for="{{explain_pic}}" wx:key="">
<image src="{{item}}"></image>
<view wx:if='{{explain_pic.length!=null}}'>
<view class="use useessays">
<view class="doctor_name">攻略图库</view>
</view>
<!-- 建档流程图-->
<view class="dangimg">
<view class="dangimgitem" wx:for="{{explain_pic}}" wx:key="" bindtap="seepic" data-url="{{item}}" data-index="{{index}}">
<image src="{{item}}"></image>
</view>
</view>
</view>
<!-- 建档随笔 -->
<view class="note">
... ... @@ -1322,4 +1328,10 @@
<button class="lj_mecomment" bindtap="melist">顺利卸载,我要上榜</button>
</view>
</view>
<view class="register" wx:if="{{showpic}}" catchtouchmove='true' bindtap="hidpic">
<view class="bigpic" catchtap="no">
<image src="{{bigpic}}" mode="aspectFit"></image>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -861,9 +861,30 @@ font-size:28rpx;
.doctorcontentlist{
padding-bottom:100rpx;
}
.dangimg{
display:flex;
flex-wrap: wrap;
align-items: center;
padding: 31rpx 33rpx;
box-sizing: border-box
}
.dangimgitem{
width:686rpx;
height:500rpx;
width:150rpx;
height:150rpx;
font-size: 0;
margin:10rpx auto 0;
margin-right:20rpx;
}
.dangimgitem image{
width:100%;
height:100%;
}
.bigpic{
width:600rpx;
height:600rpx;
font-size: 0;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%)
}
\ No newline at end of file
... ...
<!-- 文字部分 -->
<view class="word">
<view class="said">和小秘书说说您的情况吧</view>
<view class="provid">我们会根据您的阶段,给您提供更多</view>
<view class="provid">贴心的帮助哦~</view>
<view class="provid"> 我们会根据您的阶段,找到专属的小秘书,拉你进群</view>
<!-- <view class="provid">贴心的帮助哦~</view> -->
</view>
<!-- 轮播图 -->
... ...
... ... @@ -84,17 +84,17 @@ Page({
num: 10,
hostipallist: [],
muitiple: [{
mulid: 1,
name: '距离排序'
}, {
mulid: '',
name: '人气排序'
}, {
mulid: 1,
name: '距离排序'
}, {
mulid: 2,
name: '口碑排序'
name: '口碑排序'
}],
multiple_index: 0,
status: '',
status: 1,
hospitaltypearray: [],
hostipaltype_index: 0,
search_hospital_id: ''
... ... @@ -523,6 +523,38 @@ Page({
})
}).catch((err) => {
console.log(err)
})
},
finish() {
let that = this;
that.setData({
page: 1,
num: 3,
hostipallist: [],
})
var url = '/api/portal/hospital/getHospitalList';
var params = {
lng: that.data.jd,
lat: that.data.wd,
page: that.data.page,
num: that.data.num,
hospital_name: that.data.hospital_name,
service_id: that.data.service_id,
status: that.data.status,
hospital_address_id: that.data.hospital_address_id
}
app.post(url, params).then((res) => {
console.log(res)
that.setData({
hostipallist: res
})
}).catch((err) => {
console.log(err)
})
... ... @@ -584,13 +616,13 @@ Page({
entertail: function(e) {
let token = wx.getStorageSync("token");
if (token == '') {
wx.showToast({
title: '请先登录',
icon: 'none'
})
setTimeout(function () {
setTimeout(function() {
wx.navigateTo({
url: '/pages/index/index',
})
... ... @@ -605,6 +637,7 @@ Page({
},
//建档攻略
... ...
... ... @@ -12,7 +12,7 @@
</view>
<view class="search">
<view class="search_hospital">
<input placeholder="搜索医院" class="enterword" bindinput="searchhospital" />
<input placeholder="搜索医院" class="enterword" bindinput="searchhospital" confirm-type="done" bindconfirm="finish"/>
</view>
<view class="searchimg" bindtap="search">
<image src="http://bronet.ibaby88.cn/aicon02@2x.png"></image>
... ...