作者 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)
if (res.data.msg =='缺少必要参数:TOKEN'){
wx.showToast({
title: '请重新登陆',
icon: 'none'
})
wx.setStorageSync("token", '')
setTimeout(function(){
console.log(8483489)
wx.navigateTo({
url: '/pages/index/index',
})
},1500)
// 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"
... ...
... ... @@ -90,3 +90,13 @@
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,28 +18,28 @@ 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:[],
status: 1,
page: 1,
num: 5,
buildlist: [],
keyword:'',
archives_id:'',
keyword: '',
archives_id: '',
//是否收藏
if_collect:'',
if_collect: '',
//是否点赞
if_touch:'',
isfirst:true,
hospital_address_id:'',
if_touch: '',
isfirst: true,
hospital_address_id: '',
},
onLoad: function (options) {
onLoad: function(options) {
console.log(options)
let that=this;
let that = this;
that.getbanner();
that.setData({
... ... @@ -57,17 +57,17 @@ Page({
},
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;
... ... @@ -78,15 +78,15 @@ Page({
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({
... ... @@ -101,20 +101,20 @@ Page({
},
enterurl(){
enterurl() {
wx.navigateTo({
url: '../../processQuery/processQuery',
})
},
swiperChange: function (e) {
swiperChange: function(e) {
this.setData({
currentSwiper: e.detail.current
})
},
//获取banner图
getbanner:function(){
let that=this;
getbanner: function() {
let that = this;
var url = '/api/portal/archives/getBanner';
var params = {
... ... @@ -124,7 +124,7 @@ Page({
that.setData({
imgUrls:res[0].items
imgUrls: res[0].items
})
}).catch((err) => {
... ... @@ -132,22 +132,24 @@ Page({
})
},
//搜索
search:function(e){
let that=this;
search: function(e) {
let that = this;
that.setData({
keyword:e.detail.value
keyword: e.detail.value
})
if(e.detail.value==""||e.detail.value==null){
if (e.detail.value == "" || e.detail.value == null) {
that.searchlist()
}
},
searchlist:function(){
var that=this;
searchlist: function() {
var that = this;
// that.getlist()
that.setData({
page:1,
buildlist:[]
page: 1,
buildlist: []
})
... ... @@ -221,55 +223,136 @@ Page({
}).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
})
}
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);
}
}
that.setData({
buildlist: that.data.buildlist.concat(newbuildlist)
})
console.log(that.data.buildlist)
}).catch((err) => {
})
},
//最新 最热
new:function(){
new: function() {
this.setData({
page:1,
page: 1,
status: 1,
buildlist:[]
buildlist: []
})
this.getlist()
},
hot:function(){
hot: function() {
this.setData({
page: 1,
status: 2,
buildlist:[]
buildlist: []
})
this.getlist()
},
//获取列表
getlist(){
let that=this;
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,
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==""){
if (res == "") {
that.setData({
buildlist: that.data.buildlist
})
}else{
} else {
let newbuildlist = res;
console.log(newbuildlist)
for (var i = 0; i <newbuildlist.length; i++) {
for (var i = 0; i < newbuildlist.length; i++) {
newbuildlist[i].showword = true
... ... @@ -277,15 +360,15 @@ Page({
console.log(1)
newbuildlist[i].openword = true
newbuildlist[i].content_text = newbuildlist[i].content_text.substring(0, 80);
}else{
} else {
console.log(2)
newbuildlist[i].openword = false
}
if (newbuildlist[i].content_imgs==null){
if (newbuildlist[i].content_imgs == null) {
console.log(3)
newbuildlist[i].content_imgs = []
} else{
} else {
newbuildlist[i].content_imgs = newbuildlist[i].content_imgs.slice(0, 3);
}
... ... @@ -321,34 +404,34 @@ Page({
//收藏
collect:function(e){
let that=this;
collect: function(e) {
let that = this;
that.setData({
archives_id: e.currentTarget.dataset.id
})
var collect_id=that.data.archives_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
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
buildlist: list
})
//调取收藏的接口
var url = '/api/portal/archives/doCollect';
var params = {
token: wx.getStorageSync('token'),
archives_id:that.data.archives_id
archives_id: that.data.archives_id
}
app.post(url, params).then((res) => {
console.log(res);
... ... @@ -360,36 +443,36 @@ Page({
},
//点赞
touchstar:function(e){
let that=this;
touchstar: function(e) {
let that = this;
that.setData({
archives_id: e.currentTarget.dataset.id
})
var collect_id=that.data.archives_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;
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
buildlist: list
})
//调取点赞的接口
var url = '/api/portal/archives/doTouch';
var params = {
token: wx.getStorageSync('token'),
archives_id:that.data.archives_id
archives_id: that.data.archives_id
}
app.post(url, params).then((res) => {
console.log(res);
... ... @@ -413,18 +496,18 @@ Page({
//展开收起
operaword(e){
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,7 +528,7 @@ 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
... ... @@ -462,9 +545,9 @@ 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);
}
... ... @@ -477,7 +560,7 @@ Page({
// }
}else{
} else {
obj.content_text = obj.content_text.substring(0, 80);
if (obj.content_imgs == null) {
... ... @@ -510,7 +593,7 @@ Page({
}).catch((err) => {
})
}else{
} else {
let newbuildlist = that.data.buildlist;
console.log(newbuildlist)
... ... @@ -557,14 +640,14 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
// this.setData({
// buildlist:[],
// page:1
... ... @@ -575,30 +658,30 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
console.log(6666)
let that=this;
let that = this;
that.data.page++;
that.getlist();
console.log(that.data.buildlist)
... ... @@ -608,20 +691,20 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
},
//建档成功,我要分享
attentionpublic:function(){
attentionpublic: function() {
wx.navigateTo({
url: '../meshare/meshare?hospital_address_id=' + this.data.hospital_address_id,
})
},
},
//建档笔记详情
buildtextdetail:function(e){
let that=this;
buildtextdetail: function(e) {
let that = this;
console.log(e)
var buildtetid=e.currentTarget.dataset.id;
var buildtetid = e.currentTarget.dataset.id;
wx.setStorageSync('buildtetid', buildtetid)
that.setData({
archives_id: e.currentTarget.dataset.id
... ... @@ -629,16 +712,16 @@ Page({
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(){
attention: function() {
wx.navigateTo({
url: '../attentionpublic/attentionpublic',
})
... ...
... ... @@ -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,
... ...
... ... @@ -432,12 +432,18 @@
</view>
<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="">
<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">
... ... @@ -1323,3 +1329,9 @@
</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: '',
name: '人气排序'
}, {
mulid: 1,
name: '距离排序'
}, {
mulid: '',
name: '人气排序'
}, {
mulid: 2,
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)
})
... ... @@ -590,7 +622,7 @@ Page({
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>
... ...