Commit 59adfe4d by liuquan

合并分支 'liuquan' 到 'XDJK-master'

Liuquan

查看合并请求 !9
parents 1928f7b6 a67623cf
...@@ -151,6 +151,9 @@ Page({ ...@@ -151,6 +151,9 @@ Page({
}) })
} }
}, },
addAddress(){},
editAddress(){},
editOrderAddress(){},
name: function (e) { name: function (e) {
e.detail.value e.detail.value
}, },
...@@ -160,39 +163,4 @@ Page({ ...@@ -160,39 +163,4 @@ Page({
take_over: e.detail.value take_over: e.detail.value
}) })
}, },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
}) })
\ No newline at end of file
...@@ -95,7 +95,6 @@ Page({ ...@@ -95,7 +95,6 @@ Page({
console.log('recorder pause') console.log('recorder pause')
}) })
recorderManager.onError(function (errMsg) { recorderManager.onError(function (errMsg) {
wx.
console.warn('recorder error:', errMsg); console.warn('recorder error:', errMsg);
}); });
recorderManager.onStop((res) => { recorderManager.onStop((res) => {
...@@ -876,7 +875,9 @@ Page({ ...@@ -876,7 +875,9 @@ Page({
* 聊天记录 * 聊天记录
*/ */
chatLog: Util.debouce(function () { chatLog: Util.debouce(function () {
wx.showLoading({mask:true,}); wx.showLoading({
mask: true,
});
wx.navigateTo({ wx.navigateTo({
url: '/packageA/chattingRecords/chattingRecords?id=' + this.data.orderId + '&doctorimage=' + this.data.doctorimage, url: '/packageA/chattingRecords/chattingRecords?id=' + this.data.orderId + '&doctorimage=' + this.data.doctorimage,
}) })
...@@ -1095,7 +1096,7 @@ Page({ ...@@ -1095,7 +1096,7 @@ Page({
if (type == 'InitiateEndService' || type == 'NeverEndService' || type == 'EndOfService' || type == 'reminder' || type == 'reminder2' || type == 'followUp' || type == 'UserInfo' || type == 'LaunchVideo' || type == 'closeVideo' || type == 'hangUpVideo' || type == 'groupTips') { if (type == 'InitiateEndService' || type == 'NeverEndService' || type == 'EndOfService' || type == 'reminder' || type == 'reminder2' || type == 'followUp' || type == 'UserInfo' || type == 'LaunchVideo' || type == 'closeVideo' || type == 'hangUpVideo' || type == 'groupTips') {
item.payload.description = item.payload.data.content; item.payload.description = item.payload.data.content;
item.payload.data = item.payload.data.type; item.payload.data = item.payload.data.type;
} else if (type == 'Prescription' || type == 'UserDrug' || type == 'Checkup' || type == 'report'||type=='RecommendedProducts') { } else if (type == 'Prescription' || type == 'UserDrug' || type == 'Checkup' || type == 'report' || type == 'RecommendedProducts') {
item.payload.description = JSON.parse(item.payload.data.content); item.payload.description = JSON.parse(item.payload.data.content);
item.payload.data = item.payload.data.type; item.payload.data = item.payload.data.type;
} }
...@@ -1221,7 +1222,7 @@ Page({ ...@@ -1221,7 +1222,7 @@ Page({
to: that.data.groupID, to: that.data.groupID,
conversationType: TIM.TYPES.CONV_GROUP, conversationType: TIM.TYPES.CONV_GROUP,
payload: { payload: {
file: res//文件对象 file: res //文件对象
}, },
//临时图片路径 //临时图片路径
path: res.tempFilePaths[0], path: res.tempFilePaths[0],
...@@ -1446,10 +1447,10 @@ Page({ ...@@ -1446,10 +1447,10 @@ Page({
data: JSON.stringify({ data: JSON.stringify({
type: 'report', type: 'report',
content: JSON.stringify({ content: JSON.stringify({
id, //量表id id, //量表id
res_id, //量表id res_id, //量表id
lbname, //量表名称 lbname, //量表名称
time, //量表时间 time, //量表时间
is_type //量表是否允许查看 is_type //量表是否允许查看
}) })
}), }),
...@@ -1483,7 +1484,9 @@ Page({ ...@@ -1483,7 +1484,9 @@ Page({
* 查看报告 * 查看报告
*/ */
lookReport: Util.debouce(function (e) { lookReport: Util.debouce(function (e) {
wx.showLoading({mask:true}); wx.showLoading({
mask: true
});
let that = this; let that = this;
let src = e.currentTarget.dataset.src; let src = e.currentTarget.dataset.src;
let is_type = e.currentTarget.dataset.istype; let is_type = e.currentTarget.dataset.istype;
...@@ -1510,52 +1513,59 @@ Page({ ...@@ -1510,52 +1513,59 @@ Page({
}, 1000, true), }, 1000, true),
/**心理体检 */ /**心理体检 */
getCheckup: Util.debouce(function (e) { getCheckup: Util.debouce(function (e) {
wx.showLoading({mask:true}); wx.showLoading({
mask: true
});
let that = this; let that = this;
let data = {} let data = {}
let code=1; let code = 1;
data.inquiry_id = e.currentTarget.dataset.id; data.inquiry_id = e.currentTarget.dataset.id;
let status= e.currentTarget.dataset.status?e.currentTarget.dataset.status:1; let status = e.currentTarget.dataset.status ? e.currentTarget.dataset.status : 1;
Service.getIsAnswer({inquiryid:data.inquiry_id,groupID: that.data.groupID}).then((res)=>{ Service.getIsAnswer({
if(res.code==0){ inquiryid: data.inquiry_id,
code=res.code; groupID: that.data.groupID
}).then((res) => {
if (res.code == 0) {
code = res.code;
that.setData({ that.setData({
errorToptips: res.msg errorToptips: res.msg
}) })
}else{ } else {
/** /**
* @todo 修改im发生量表收费 * @todo 修改im发生量表收费
*/ */
let url; let url;
let roomService={ let roomService = {
t_unionid: that.data.t_unionid, t_unionid: that.data.t_unionid, //医生unionid
groupID: that.data.groupID, groupID: that.data.groupID, //房间号
orderId:that.data.orderId orderId: that.data.orderId //订单号
} }
wx.setStorageSync('roomService', roomService); wx.setStorageSync('roomService', roomService);
if (status == 0) { if (status == 0) {
url=`/pages/info/info?inquiry=2&inquiry_id=${e.currentTarget.dataset.id}`; url = `/pages/info/info?inquiry=2&inquiry_id=${e.currentTarget.dataset.id}`;
wx.reLaunch({ wx.reLaunch({
url: url, url: url,
}) })
} else { } else {
url= `/pages/info/info?otype=1&inquiry=2&inquiry_id=${e.currentTarget.dataset.id}`; url = `/pages/info/info?otype=1&inquiry=2&inquiry_id=${e.currentTarget.dataset.id}`;
Service.getTestInfo(data).then((res) => { Service.getTestInfo(data).then((res) => {
if (res.code == 1) { if (res.code == 1) {
var data = { var data = {
t_openid: res.data.openid, t_openid: res.data.openid, //医生openid
g_time: res.data.time, z_openid: wx.getStorageSync('data').openid, //患者openid
marketstatus: res.data.marketstatus, g_time: res.data.time, //时间
unitid: res.data.unitid, unitid: res.data.unitid, //医生id
} marketstatus: res.data.marketstatus, //身份id
wx.setStorageSync('weiLb', data); }
console.log("info", data) //未作量表信息
wx.setStorageSync('weiLb', data);
console.log("info", data)
}
})
wx.navigateTo({
url: url,
})
} }
})
wx.navigateTo({
url: url,
})
}
} }
}) })
wx.hideLoading(); wx.hideLoading();
...@@ -1616,7 +1626,9 @@ Page({ ...@@ -1616,7 +1626,9 @@ Page({
* @param {} e * @param {} e
*/ */
viewRecipe: Util.debouce(function (e) { viewRecipe: Util.debouce(function (e) {
wx.showLoading({mask:true}); wx.showLoading({
mask: true
});
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
console.log("item", item) console.log("item", item)
wx.navigateTo({ wx.navigateTo({
...@@ -1637,7 +1649,9 @@ Page({ ...@@ -1637,7 +1649,9 @@ Page({
* payid 支付ID * payid 支付ID
*/ */
buyDrug: Util.debouce(function (e) { buyDrug: Util.debouce(function (e) {
wx.showLoading({mask:true}); wx.showLoading({
mask: true
});
let that = this; let that = this;
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
// isQuick 开药方式 0-正常开药,1-二维码,2-快速开药 // isQuick 开药方式 0-正常开药,1-二维码,2-快速开药
...@@ -1666,7 +1680,7 @@ Page({ ...@@ -1666,7 +1680,7 @@ Page({
} }
}) })
}, 1000, true), }, 1000, true),
/** /**
* 购买产品 buyProduct() * 购买产品 buyProduct()
* isQuick 开药方式0-正常开药,1-二维码,2-快速开药 * isQuick 开药方式0-正常开药,1-二维码,2-快速开药
* name 姓名 * name 姓名
...@@ -1680,8 +1694,8 @@ Page({ ...@@ -1680,8 +1694,8 @@ Page({
*/ */
buyProduct: Util.debouce(function (e) { buyProduct: Util.debouce(function (e) {
wx.showLoading({ wx.showLoading({
title:'加载中', title: '加载中',
mask:true mask: true
}); });
let that = this; let that = this;
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
...@@ -1700,12 +1714,12 @@ Page({ ...@@ -1700,12 +1714,12 @@ Page({
wx.hideLoading(); wx.hideLoading();
} else if (res.code == -1) { } else if (res.code == -1) {
wx.navigateTo({ wx.navigateTo({
url: '/packageA/productOrderInfo/productOrderInfo?scene=' + id + '&isQuick=' + item.isQuick + '&orderId=' + this.data.orderId + '&groupID=' + that.data.groupID, url: '/packageA/productOrderInfo/productOrderInfo?scene=' + id + '&isQuick=' + item.isQuick + '&orderId=' + this.data.orderId + '&groupID=' + that.data.groupID,
success: function() { success: function () {
wx.hideLoading(); wx.hideLoading();
} }
}) })
} else { } else {
wx.hideLoading(); wx.hideLoading();
that.setData({ that.setData({
......
...@@ -556,7 +556,6 @@ ...@@ -556,7 +556,6 @@
} }
.re_con .baogao { .re_con .baogao {
font-size: 34rpx; font-size: 34rpx;
color: #333; color: #333;
line-height: 50rpx; line-height: 50rpx;
......
...@@ -83,12 +83,18 @@ Page({ ...@@ -83,12 +83,18 @@ Page({
}; };
Service.delBuyDrug(data).then((res) => { Service.delBuyDrug(data).then((res) => {
if (res.code == 1) { if (res.code == 1) {
let index = e.currentTarget.dataset.index;
let list = Util.deepClone(that.data.list);
list.splice(index, 1);
that.setData({
list: list
})
wx.showToast({ wx.showToast({
title: '删除成功', title: '删除成功',
icon: 'success', icon: 'success',
mask: true mask: true
}) })
that.getList(1, that.data.nav) // that.getList(1, that.data.nav)
} }
}).catch((Error) => { }).catch((Error) => {
console.warn('error:', Error); // 获取会话资料失败的相关信息 console.warn('error:', Error); // 获取会话资料失败的相关信息
...@@ -137,11 +143,9 @@ Page({ ...@@ -137,11 +143,9 @@ Page({
}) })
}, 2000) }, 2000)
} else { } else {
// newList = res.data; newList = res.data;
newList = newList.concat(res.data);
} }
wx.stopPullDownRefresh() wx.stopPullDownRefresh();
if (newList.length > 0) { if (newList.length > 0) {
that.setData({ that.setData({
list: newList, list: newList,
...@@ -158,7 +162,7 @@ Page({ ...@@ -158,7 +162,7 @@ Page({
wx.hideLoading(); wx.hideLoading();
} }
}).catch(function (Error) { }).catch(function (Error) {
console.warn('error:', Error); // 获取会话资料失败的相关信息 console.warn('error:', Error); //
}); });
}, },
//选择topTab页 //选择topTab页
...@@ -205,13 +209,6 @@ Page({ ...@@ -205,13 +209,6 @@ Page({
} }
}) })
}, 1000, true), }, 1000, true),
// 查看物流-待发货
// goLogistics1: function (e) {
// console.log(1,e.currentTarget.dataset.id)
// wx.navigateTo({
// url: e.currentTarget.dataset.src +'?img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status + '&num=' + e.currentTarget.dataset.num + '&tel=' + e.currentTarget.dataset.tel + '&ordernumber=' + e.currentTarget.dataset.ordernumber+'&com='+e.currentTarget.dataset.com +'&address='+JSON.stringify(e.currentTarget.dataset.address),
// })
// },
/** /**
* 修改地址-待发货2 * 修改地址-待发货2
*/ */
...@@ -220,8 +217,21 @@ Page({ ...@@ -220,8 +217,21 @@ Page({
ordernumber: e.currentTarget.dataset.ordernumber ordernumber: e.currentTarget.dataset.ordernumber
}).then((res) => { }).then((res) => {
if (res.code == 1) { if (res.code == 1) {
return Service.getOrdersAddress({
ordernumber: e.currentTarget.dataset.ordernumber
});
} else {
wx.showToast({
title: res.msg,
icon: 'success',
mask: true
})
return Service.breakPromise();
}
}).then((res) => {
if (res.code == 200) {
wx.navigateTo({ wx.navigateTo({
url: '/packageA/addsite/addsite?item=' + JSON.stringify(e.currentTarget.dataset.address) + '&ordernumber=' + e.currentTarget.dataset.ordernumber, url: '/packageA/addsite/addsite?item=' + JSON.stringify(res.data) + '&ordernumber=' + e.currentTarget.dataset.ordernumber,
}) })
} else { } else {
wx.showToast({ wx.showToast({
...@@ -230,6 +240,13 @@ Page({ ...@@ -230,6 +240,13 @@ Page({
mask: true mask: true
}) })
} }
}).catch(err => {
wx.showToast({
title: err,
icon: 'none',
mask: true
})
}) })
}, 1000, true), }, 1000, true),
/** /**
...@@ -243,7 +260,7 @@ Page({ ...@@ -243,7 +260,7 @@ Page({
//查看物流-待收货+已完成 //查看物流-待收货+已完成
goLogistics: debouce(function (e) { goLogistics: debouce(function (e) {
wx.navigateTo({ wx.navigateTo({
url: e.currentTarget.dataset.src + "?num=" + e.currentTarget.dataset.num + '&tel=' + e.currentTarget.dataset.tel + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status + '&com=' + e.currentTarget.dataset.com + '&address=' + JSON.stringify(e.currentTarget.dataset.address), url: e.currentTarget.dataset.src + "?num=" + e.currentTarget.dataset.num + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status + '&com=' + e.currentTarget.dataset.com,
}) })
}, 1000, true), }, 1000, true),
/** /**
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<template is="noRecord" data="{{...noRecord}}" /> <template is="noRecord" data="{{...noRecord}}" />
</view> </view>
<view wx:else> <view wx:else>
<block wx:for="{{list}}" wx:key="key"> <block wx:for="{{list}}" wx:for-index="index" wx:key="key">
<!-- 药品 --> <!-- 药品 -->
<view class="dingdan"> <view class="dingdan">
<block> <block>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<text wx-if="{{item.status==5}}">订单过期</text> <text wx-if="{{item.status==5}}">订单过期</text>
<text wx-if="{{item.status==7}}">订单作废</text> <text wx-if="{{item.status==7}}">订单作废</text>
</view> </view>
<block wx:for="{{item.prescription}}" wx:key="index" wx:for-item="itemName"> <block wx:for="{{item.prescription}}" wx:key="key" wx:for-item="itemName">
<view class="list "> <view class="list ">
<view class="list-item {{index+1<item.prescription.length?'list-line':''}}"> <view class="list-item {{index+1<item.prescription.length?'list-line':''}}">
<view class="bor"> <view class="bor">
...@@ -52,20 +52,18 @@ ...@@ -52,20 +52,18 @@
<text>(含运费¥{{item.freight}})</text> <text>(含运费¥{{item.freight}})</text>
</view> </view>
<view class="dele flex"> <view class="dele flex">
<view class="delebtn" bindtap="deleBtn" data-ordernumber="{{item.ordernumber}}" <view class="delebtn" bindtap="deleBtn" data-ordernumber="{{item.ordernumber}}" data-index="{{index}}"
wx:if="{{item.status==1 || item.status==4 || item.status==5||item.status==7}}">删除订单</view> wx:if="{{item.status==1 || item.status==4 || item.status==5||item.status==7}}">删除订单</view>
<view class="btns flex"> <view class="btns flex">
<view class="ckwl" wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}" <!-- <view class="ckwl" wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}"
data-address="{{item.address}}">修改地址</view> data-address="{{item.address}}">修改地址</view> -->
<view class="ckwl" wx:if="{{item.status==2}}" bindtap="goLogistics" <!-- <view class="ckwl" wx:if="{{item.status==2}}" bindtap="goLogistics"
data-img="{{item.prescription[0].picture}}" data-id="{{item.id}}" data-status="{{item.status}}" data-img="{{item.prescription[0].picture}}" data-id="{{item.id}}" data-status="{{item.status}}"
data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}" data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}"
data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}"> data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}">
查看物流</view> 查看物流</view> -->
<view class="ckwl" wx:if="{{item.status==3 || item.status==4}}" bindtap="goLogistics" <view class="ckwl" wx:if="{{item.status==2||item.status==3 || item.status==4}}" bindtap="goLogistics"
data-status="{{item.status}}" data-img="{{item.prescription[0].picture}}" data-img="{{item.prescription[0].picture}}" data-status="{{item.status}}" data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}" data-ordernumber="{{item.ordernumber}}">
data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}"
data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}">
查看物流</view> 查看物流</view>
<view class="ljzf" wx:if="{{item.status==3}}" bindtap="confirmReceipt" data-num="{{item.ordernumber}}">确认收货 <view class="ljzf" wx:if="{{item.status==3}}" bindtap="confirmReceipt" data-num="{{item.ordernumber}}">确认收货
</view> </view>
......
...@@ -38,9 +38,16 @@ Page({ ...@@ -38,9 +38,16 @@ Page({
} }
/**药品订单详情 drogOrderDetail()*/ /**药品订单详情 drogOrderDetail()*/
Service.drogOrderDetail(param).then((res)=>{ Service.drogOrderDetail(param).then((res)=>{
console.log("res",res) if(res.code==1){
that.setData({
item:res.data,
list:res.data.drug_arr,
})
}
return Service.getOrdersAddress({ordernumber:res.data.ordernumber});
}).then(res=>{
let address={ let address={
id:res.data.address, id:res.data.id,
openid:wx.getStorageSync('data').openid, openid:wx.getStorageSync('data').openid,
unionid:wx.getStorageSync('data').unionid, unionid:wx.getStorageSync('data').unionid,
detail_address:res.data.detail_address, detail_address:res.data.detail_address,
...@@ -51,10 +58,8 @@ Page({ ...@@ -51,10 +58,8 @@ Page({
area:res.data.area, area:res.data.area,
city:res.data.city, city:res.data.city,
} }
if(res.code==1){ if(res.code==200){
that.setData({ that.setData({
item:res.data,
list:res.data.drug_arr,
address:address address:address
}) })
} }
...@@ -99,7 +104,7 @@ Page({ ...@@ -99,7 +104,7 @@ Page({
}, },
/**复制 */ /**复制 */
copy(e) { copy(e) {
let copy = e.currentTarget.dataset.c; let copy = String(e.currentTarget.dataset.c);
wx.setClipboardData({ wx.setClipboardData({
data: copy, data: copy,
success: function (res) { success: function (res) {
...@@ -167,7 +172,7 @@ editAddress:Util.debouce(function (e) { ...@@ -167,7 +172,7 @@ editAddress:Util.debouce(function (e) {
//查看物流-待收货+已完成 //查看物流-待收货+已完成
goLogistics: Util.debouce(function (e) { goLogistics: Util.debouce(function (e) {
wx.navigateTo({ wx.navigateTo({
url: e.currentTarget.dataset.src + "?num=" + e.currentTarget.dataset.num + '&tel=' + e.currentTarget.dataset.tel + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status+'&com='+e.currentTarget.dataset.com+'&address='+JSON.stringify(e.currentTarget.dataset.address), url: e.currentTarget.dataset.src + "?num=" + e.currentTarget.dataset.num + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status+'&com='+e.currentTarget.dataset.com,
}) })
},1000,true), },1000,true),
}) })
\ No newline at end of file
...@@ -7,62 +7,22 @@ ...@@ -7,62 +7,22 @@
</view> </view>
<view class="top-text">预计1-3天送达,偏远地区除外</view> <view class="top-text">预计1-3天送达,偏远地区除外</view>
</view> </view>
<view class="logistics" wx:if="{{item.status==2}}"> <view class="logistics">
<view class="logistics-title" wx:if="{{item.status==2}}">等待发货</view>
<view class="logistics-title">等待发货</view> <view class="logistics-title" wx:if="{{item.status==3}}">已发货</view>
<view class="logistics-title" wx:if="{{item.status==4}}">已签收</view>
<view class="logistics-text"> <view class="logistics-text">
<view class="addressInfo"> <view class="addressInfo">
<view class="address-icon"> <view class="address-icon">
<text class="cuIcon-location"></text> <text class="cuIcon-location"></text>
</view> </view>
<view> <view>
<view class=""><text class="address_name">{{item.name}}</text><text <view class=""><text class="address_name">{{address.name}}</text><text
class="address_call">{{item.phone}}</text></view> class="address_call">{{address.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view> <view class="address_text">{{address.take_over+address.detail_address}}</view>
</view> </view>
</view> </view>
</view> </view>
<!-- <view>
<text class="cuIcon-right lg text-gray logistics-right"></text>
</view> -->
</view>
<view class="logistics" wx:if="{{item.status==3}}">
<view class="logistics-title">已发货</view>
<view class="logistics-text">
<view class="addressInfo">
<view class="address-icon">
<text class="cuIcon-location"></text>
</view>
<view>
<view class=""><text class="address_name">{{item.name}}</text><text
class="address_call">{{item.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view>
</view>
</view>
<!-- <view>
<text class="cuIcon-right lg text-gray logistics-right"></text>
</view> -->
</view>
<view class="logistics" wx:if="{{item.status==4}}">
<view class="logistics-title">已签收</view>
<view class="logistics-text">
<view class="addressInfo">
<view class="address-icon">
<text class="cuIcon-location"></text>
</view>
<view>
<view class=""><text class="address_name">{{item.name}}</text><text
class="address_call">{{item.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view>
</view>
</view>
<!-- <view> <!-- <view>
<text class="cuIcon-right lg text-gray logistics-right"></text> <text class="cuIcon-right lg text-gray logistics-right"></text>
</view> --> </view> -->
...@@ -163,10 +123,9 @@ ...@@ -163,10 +123,9 @@
<view class="bottom row"> <view class="bottom row">
<!-- <view>查看医生推荐</view> --> <!-- <view>查看医生推荐</view> -->
<view bindtap="viewRecipe" data-item="{{item}}">查看处方</view> <view bindtap="viewRecipe" data-item="{{item}}">查看处方</view>
<view wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}" <!-- <view wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}"
data-address="{{address}}">修改地址</view> data-address="{{address}}">修改地址</view> -->
<view bindtap="goLogistics" data-status="{{item.status}}" data-img="{{item.drug_arr[0].picture}}" <view bindtap="goLogistics" data-status="{{item.status}}" data-img="{{item.drug_arr[0].picture}}"
data-src="/packageA/logistics/logistics" data-num="{{item.express_order}}" data-com="{{item.com}}" data-src="/packageA/logistics/logistics" data-num="{{item.express_order}}" data-com="{{item.com}}" data-ordernumber="{{item.ordernumber}}">查看物流
data-address="{{address}}" data-tel="{{item.phone}}" data-ordernumber="{{item.ordernumber}}">查看物流
</view> </view>
</view> </view>
\ No newline at end of file
...@@ -298,6 +298,11 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before { ...@@ -298,6 +298,11 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
font-weight: 600; font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
} }
.errname { .errname {
......
...@@ -28,14 +28,10 @@ Page({ ...@@ -28,14 +28,10 @@ Page({
that.setData({ that.setData({
img: options.img, img: options.img,
status: options.status, status: options.status,
address: JSON.parse(options.address) // address: JSON.parse(options.address)
}) })
if (options.tel) { this.getOrderAddress(options.ordernumber)
that.setData({ console.log("options", options)
mobileTail: options.tel.substring(options.tel.length - 4),
})
}
console.log("options",options)
var list = options.num.split(',') var list = options.num.split(',')
var comlist = options.com.split(',') var comlist = options.com.split(',')
that.setData({ that.setData({
...@@ -45,7 +41,6 @@ Page({ ...@@ -45,7 +41,6 @@ Page({
comlist: comlist, comlist: comlist,
com: util.isEmpty(comlist[0]) ? 'shunfeng' : comlist[0] com: util.isEmpty(comlist[0]) ? 'shunfeng' : comlist[0]
}) })
that.getWl()
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -53,7 +48,40 @@ Page({ ...@@ -53,7 +48,40 @@ Page({
onShow: function () { onShow: function () {
}, },
/**
* 获取最新的订单收货地址
*/
getOrderAddress(ordernumber) {
var that = this;
Service.getOrdersAddress({
ordernumber
}).then(res => {
console.log("res", res)
if (res.code == 200) {
console.log("res.data",res.data)
that.setData({
address: res.data,
mobileTail: res.data.phone.substring(res.data.phone.length - 4),
})
that.getWl()
} else {
wx.showToast({
title: res.msg,
icon: 'success',
mask: true
})
}
}).catch(err => {
wx.showToast({
title: err,
icon: 'success',
mask: true
})
})
},
/**
* 获取物流路由
*/
getWl: function () { getWl: function () {
var that = this var that = this
var data = {} var data = {}
......
...@@ -16,11 +16,6 @@ ...@@ -16,11 +16,6 @@
<view class="dfh" wx:if="{{status==4}}">已完成</view> <view class="dfh" wx:if="{{status==4}}">已完成</view>
<view class="dh" wx:if="{{orderid!='null' && orderid}}"> <view class="dh" wx:if="{{orderid!='null' && orderid}}">
<text wx:if="{{com=='shunfeng'}}">顺丰速运</text> <text wx:if="{{com=='shunfeng'}}">顺丰速运</text>
<text wx:if="{{com=='jd'}}">京东物流</text>
<text wx:if="{{com=='yuantong'}}">圆通速递</text>
<text wx:if="{{com=='shentong'}}">申通快递</text>
<text wx:if="{{com=='zhongtong'}}">中通快递</text>
<text wx:if="{{com=='yundakuaiyun'}}">韵达快运</text>
:{{orderid}} :{{orderid}}
<view class="btn" bindtap="getNum" wx:if="{{orderid!='null' && orderid}}">复制</view> <view class="btn" bindtap="getNum" wx:if="{{orderid!='null' && orderid}}">复制</view>
</view> </view>
......
...@@ -84,12 +84,18 @@ Page({ ...@@ -84,12 +84,18 @@ Page({
}; };
Service.delBuyDrug(data).then((res) => { Service.delBuyDrug(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
let index=e.currentTarget.dataset.index;
let list=Util.deepClone(that.data.list);
list.splice(index,1);
that.setData({
list:list
})
wx.showToast({ wx.showToast({
title: '删除成功', title: '删除成功',
icon: 'success', icon: 'success',
mask: true mask: true
}) })
that.getList(1, that.data.nav) // that.getList(1, that.data.nav)
} }
}).catch((Error) => { }).catch((Error) => {
console.warn('error:', Error); // 获取会话资料失败的相关信息 console.warn('error:', Error); // 获取会话资料失败的相关信息
...@@ -207,13 +213,6 @@ Page({ ...@@ -207,13 +213,6 @@ Page({
} }
}) })
}, 1000, true), }, 1000, true),
// 查看物流-待发货
// goLogistics1: function (e) {
// console.log(1,e.currentTarget.dataset.id)
// wx.navigateTo({
// url: e.currentTarget.dataset.src +'?img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status + '&num=' + e.currentTarget.dataset.num + '&tel=' + e.currentTarget.dataset.tel + '&ordernumber=' + e.currentTarget.dataset.ordernumber+'&com='+e.currentTarget.dataset.com +'&address='+JSON.stringify(e.currentTarget.dataset.address),
// })
// },
/** /**
* 修改地址-待发货2 * 修改地址-待发货2
*/ */
...@@ -245,7 +244,7 @@ Page({ ...@@ -245,7 +244,7 @@ Page({
//查看物流-待收货+已完成 //查看物流-待收货+已完成
goLogistics: debouce(function (e) { goLogistics: debouce(function (e) {
wx.navigateTo({ wx.navigateTo({
url: e.currentTarget.dataset.src + "?num=" + e.currentTarget.dataset.num + '&tel=' + e.currentTarget.dataset.tel + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status + '&com=' + e.currentTarget.dataset.com + '&address=' + JSON.stringify(e.currentTarget.dataset.address), url: e.currentTarget.dataset.src + "?num=" + e.currentTarget.dataset.num + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status + '&com=' + e.currentTarget.dataset.com,
}) })
}, 1000, true), }, 1000, true),
/** /**
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<template is="noRecord" data="{{...noRecord}}" /> <template is="noRecord" data="{{...noRecord}}" />
</view> </view>
<view wx:else> <view wx:else>
<block wx:for="{{list}}" wx:key="key"> <block wx:for="{{list}}" wx:for-index="index" wx:key="key">
<!-- 推荐产品 --> <!-- 推荐产品 -->
<view class="dingdan"> <view class="dingdan">
<block> <block>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<text wx-if="{{item.status==5}}">订单过期</text> <text wx-if="{{item.status==5}}">订单过期</text>
<text wx-if="{{item.status==7}}">订单作废</text> <text wx-if="{{item.status==7}}">订单作废</text>
</view> </view>
<block wx:for="{{item.prescription}}" wx:key="index" wx:for-item="itemName"> <block wx:for="{{item.prescription}}" wx:key="key" wx:for-item="itemName">
<view class="list "> <view class="list ">
<view class="list-item {{index+1<item.prescription.length?'list-line':''}}"> <view class="list-item {{index+1<item.prescription.length?'list-line':''}}">
<view class="bor"> <view class="bor">
...@@ -52,20 +52,14 @@ ...@@ -52,20 +52,14 @@
<text>(含运费¥{{item.freight}})</text> <text>(含运费¥{{item.freight}})</text>
</view> </view>
<view class="dele flex"> <view class="dele flex">
<view class="delebtn" bindtap="deleBtn" data-ordernumber="{{item.ordernumber}}" <view class="delebtn" bindtap="deleBtn" data-ordernumber="{{item.ordernumber}}" data-index="{{index}}"
wx:if="{{item.status==1 || item.status==4 ||item.status==7}}">删除订单</view> wx:if="{{item.status==1 || item.status==4 ||item.status==7}}" >删除订单</view>
<view class="btns flex"> <view class="btns flex">
<view class="ckwl" wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}" <!-- <view class="ckwl" wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}"
data-address="{{item.address}}">修改地址</view> data-address="{{item.address}}">修改地址</view> -->
<view class="ckwl" wx:if="{{item.status==2}}" bindtap="goLogistics" <view class="ckwl" wx:if="{{item.status==2||item.status==3 || item.status==4}}" bindtap="goLogistics"
data-img="{{item.prescription[0].picture}}" data-id="{{item.id}}" data-status="{{item.status}}"
data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}"
data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}">
查看物流</view>
<view class="ckwl" wx:if="{{item.status==3 || item.status==4}}" bindtap="goLogistics"
data-status="{{item.status}}" data-img="{{item.prescription[0].picture}}" data-status="{{item.status}}" data-img="{{item.prescription[0].picture}}"
data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}" data-src="/packageA/logistics/logistics" data-num="{{item.express_order_new}}" data-com="{{item.com}}" data-ordernumber="{{item.ordernumber}}">
data-address="{{item.address}}" data-tel="{{item.address.phone}}" data-ordernumber="{{item.ordernumber}}">
查看物流</view> 查看物流</view>
<view class="ljzf" wx:if="{{item.status==3}}" bindtap="confirmReceipt" data-num="{{item.ordernumber}}">确认收货 <view class="ljzf" wx:if="{{item.status==3}}" bindtap="confirmReceipt" data-num="{{item.ordernumber}}">确认收货
</view> </view>
......
...@@ -10,7 +10,6 @@ Page({ ...@@ -10,7 +10,6 @@ Page({
list: ["1"], list: ["1"],
index: 0 index: 0
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
...@@ -38,9 +37,15 @@ Page({ ...@@ -38,9 +37,15 @@ Page({
} }
/**药品订单详情 drogOrderDetail()*/ /**药品订单详情 drogOrderDetail()*/
Service.productOrderDetail(param).then((res)=>{ Service.productOrderDetail(param).then((res)=>{
console.log("res",res) if(res.code==200){
that.setData({
item:res.data,
list:res.data.drug_arr,
})
} return Service.getOrdersAddress({ordernumber:res.data.ordernumber});
}).then(res=>{
let address={ let address={
id:res.data.address, id:res.data.id,
openid:wx.getStorageSync('data').openid, openid:wx.getStorageSync('data').openid,
unionid:wx.getStorageSync('data').unionid, unionid:wx.getStorageSync('data').unionid,
detail_address:res.data.detail_address, detail_address:res.data.detail_address,
...@@ -53,8 +58,6 @@ Page({ ...@@ -53,8 +58,6 @@ Page({
} }
if(res.code==200){ if(res.code==200){
that.setData({ that.setData({
item:res.data,
list:res.data.drug_arr,
address:address address:address
}) })
} }
...@@ -99,13 +102,14 @@ Page({ ...@@ -99,13 +102,14 @@ Page({
}, },
/**复制 */ /**复制 */
copy(e) { copy(e) {
let copy = e.currentTarget.dataset.c; let copy =String(e.currentTarget.dataset.c);
console.log("copy",copy)
wx.setClipboardData({ wx.setClipboardData({
data: copy, data: copy,
success: function (res) { success: function (res) {
console.log("res",res)
wx.getClipboardData({ wx.getClipboardData({
success: function (res) { success: function (res) {
console.log("res",res)
wx.showToast({ wx.showToast({
title: '复制成功', title: '复制成功',
}) })
...@@ -168,7 +172,7 @@ editAddress:Util.debouce(function (e) { ...@@ -168,7 +172,7 @@ editAddress:Util.debouce(function (e) {
//查看物流-待收货+已完成 //查看物流-待收货+已完成
goLogistics: Util.debouce(function (e) { goLogistics: Util.debouce(function (e) {
wx.navigateTo({ wx.navigateTo({
url: e.currentTarget.dataset.src + "?num=" + e.currentTarget.dataset.num + '&tel=' + e.currentTarget.dataset.tel + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&img=' + e.currentTarget.dataset.img + '&status=' + e.currentTarget.dataset.status+'&com='+e.currentTarget.dataset.com+'&address='+JSON.stringify(e.currentTarget.dataset.address), url: e.currentTarget.dataset.src + "?num=" + e.currentTarget.dataset.num + '&tel=' + e.currentTarget.dataset.tel + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&img=' + e.currentTarget.dataset.img + '&com='+e.currentTarget.dataset.com,
}) })
},1000,true), },1000,true),
}) })
\ No newline at end of file
...@@ -7,59 +7,54 @@ ...@@ -7,59 +7,54 @@
</view> </view>
<view class="top-text">预计1-3天送达,偏远地区除外</view> <view class="top-text">预计1-3天送达,偏远地区除外</view>
</view> </view>
<view class="logistics" wx:if="{{item.status==2}}"> <view class="logistics" >
<view class="logistics-title" wx:if="{{item.status==2||item.status==1}}">等待发货</view>
<view class="logistics-title">等待发货</view> <view class="logistics-title" wx:if="{{item.status==3}}">已发货</view>
<view class="logistics-text"> <view class="logistics-text">
<view class="addressInfo"> <view class="addressInfo">
<view class="address-icon"> <view class="address-icon">
<text class="cuIcon-location"></text> <text class="cuIcon-location"></text>
</view> </view>
<view> <view>
<view class=""><text class="address_name">{{item.name}}</text><text <view class=""><text class="address_name">{{address.name}}</text><text class="address_call">{{address.phone}}</text>
class="address_call">{{item.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view> </view>
<view class="address_text">{{address.take_over+address.detail_address}}</view>
</view> </view>
</view> </view>
</view>
<!-- <view> <!-- <view>
<text class="cuIcon-right lg text-gray logistics-right"></text> <text class="cuIcon-right lg text-gray logistics-right"></text>
</view> --> </view> -->
</view> </view>
<view class="logistics" wx:if="{{item.status==3}}"> <!-- <view class="logistics" wx:if="{{item.status==3}}">
<view class="logistics-title">已发货</view> <view class="logistics-title">已发货</view>
<view class="logistics-text"> <view class="logistics-text">
<view class="addressInfo"> <view class="addressInfo">
<view class="address-icon"> <view class="address-icon">
<text class="cuIcon-location"></text> <text class="cuIcon-location"></text>
</view> </view>
<view> <view>
<view class=""><text class="address_name">{{item.name}}</text><text <view class=""><text class="address_name">{{item.name}}</text><text class="address_call">{{item.phone}}</text>
class="address_call">{{item.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view> </view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view> </view>
</view> </view>
</view>
<!-- <view> </view> -->
<text class="cuIcon-right lg text-gray logistics-right"></text>
</view> -->
</view>
<view class="logistics" wx:if="{{item.status==4}}"> <view class="logistics" wx:if="{{item.status==4}}">
<view class="logistics-title">已签收</view>
<view class="logistics-title">已签收</view> <view class="logistics-text">
<view class="logistics-text"> <view class="addressInfo">
<view class="addressInfo"> <view class="address-icon">
<view class="address-icon"> <text class="cuIcon-location"></text>
<text class="cuIcon-location"></text> </view>
</view> <view>
<view> <view class=""><text class="address_name">{{item.name}}</text><text class="address_call">{{item.phone}}</text>
<view class=""><text class="address_name">{{item.name}}</text><text
class="address_call">{{item.phone}}</text></view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view> </view>
<view class="address_text">{{item.take_over+item.detail_address}}</view>
</view> </view>
</view> </view>
</view>
<!-- <view> <!-- <view>
<text class="cuIcon-right lg text-gray logistics-right"></text> <text class="cuIcon-right lg text-gray logistics-right"></text>
...@@ -98,7 +93,7 @@ ...@@ -98,7 +93,7 @@
<view class="row order-freight"> <view class="row order-freight">
<view>运费:</view> <view>运费:</view>
<view wx:if="{{item.freight&&item.freight!='0.00'}}">¥ {{item.freight}}</view> <view wx:if="{{item.freight&&item.freight!='0.00'}}">¥ {{item.freight}}</view>
<view wx:else >包邮</view> <view wx:else>包邮</view>
</view> </view>
<view class="actualPay">共{{item.drug_num}}件商品 实付款: <text style="color:#EC5B68;">¥{{item.money}}</text></view> <view class="actualPay">共{{item.drug_num}}件商品 实付款: <text style="color:#EC5B68;">¥{{item.money}}</text></view>
</view> </view>
...@@ -159,13 +154,13 @@ ...@@ -159,13 +154,13 @@
<view>如果回复不及时,可拨打</view> <view>如果回复不及时,可拨打</view>
<view>客服电话:<text style="color:#2684FF;" bindtap="dial">400-1199-218</text> 进行咨询。</view> <view>客服电话:<text style="color:#2684FF;" bindtap="dial">400-1199-218</text> 进行咨询。</view>
</view> </view>
<view class="bottom row"> <!-- <view class="bottom row"> -->
<!-- <view>查看医生推荐</view> --> <!-- <view>查看医生推荐</view> -->
<!-- <view bindtap="viewRecipe" data-item="{{item}}">查看处方</view> --> <!-- <view bindtap="viewRecipe" data-item="{{item}}">查看处方</view> -->
<!-- <view wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}" <!-- <view wx:if="{{item.status==2}}" bindtap="editAddress" data-ordernumber="{{item.ordernumber}}"
data-address="{{address}}">修改地址</view> --> data-address="{{address}}">修改地址</view> -->
<view bindtap="goLogistics" data-status="{{item.status}}" data-img="{{item.drug_arr[0].picture}}" <!-- <view bindtap="goLogistics" data-status="{{item.status+1}}" data-img="{{item.drug_arr[0].picture}}"
data-src="/packageA/logistics/logistics" data-num="{{item.express_order}}" data-com="{{item.com}}" data-src="/packageA/logistics/logistics" data-num="{{item.express_order}}" data-com="{{item.com}}"
data-address="{{address}}" data-tel="{{item.phone}}" data-ordernumber="{{item.ordernumber}}">查看物流 data-ordernumber="{{item.ordernumber}}">查看物流
</view> </view> -->
</view> <!-- </view> -->
\ No newline at end of file \ No newline at end of file
...@@ -272,18 +272,17 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before { ...@@ -272,18 +272,17 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
justify-content: space-between; justify-content: space-between;
padding-left: 18rpx; padding-left: 18rpx;
width: 455rpx; width: 455rpx;
overflow: hidden;
/*超出部分隐藏*/
white-space: nowrap;
/*不换行*/
text-overflow: ellipsis;
/*超出部分文字以...显示*/
} }
.name { .name {
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
font-weight: 600; font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
} }
.errname{ .errname{
width: 400rpx; width: 400rpx;
...@@ -303,7 +302,7 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before { ...@@ -303,7 +302,7 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
color: #666666; color: #666666;
overflow: hidden; overflow: hidden;
/*超出部分隐藏*/ /*超出部分隐藏*/
white-space: nowrap; white-space: 2;
/*不换行*/ /*不换行*/
text-overflow: ellipsis; text-overflow: ellipsis;
/*超出部分文字以...显示*/ /*超出部分文字以...显示*/
......
...@@ -17,6 +17,7 @@ Page({ ...@@ -17,6 +17,7 @@ Page({
that.setData({ that.setData({
item: JSON.parse(options.item) item: JSON.parse(options.item)
}) })
// that.getServiceDetail(options.id)
that.getServiceDetail(options.id) that.getServiceDetail(options.id)
}, },
/** /**
......
...@@ -19,7 +19,6 @@ Page({ ...@@ -19,7 +19,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
}, },
/** /**
...@@ -119,9 +118,11 @@ Page({ ...@@ -119,9 +118,11 @@ Page({
Service.isReport(data).then((res) => { Service.isReport(data).then((res) => {
// 查看列表权限 // 查看列表权限
if (res.data == '1') { if (res.data == '1') {
//可查看
that.setData({ that.setData({
hidden: true hidden: true
}) })
//跳转webview报告页
wx.navigateTo({ wx.navigateTo({
url: '/packageB/webview/webview?id=' + item.res_id + '&lbname=' + item.measure_name + '&share=0&t_openid=' + 0, url: '/packageB/webview/webview?id=' + item.res_id + '&lbname=' + item.measure_name + '&share=0&t_openid=' + 0,
success: function () { success: function () {
...@@ -180,7 +181,6 @@ Page({ ...@@ -180,7 +181,6 @@ Page({
isShow: true, isShow: true,
}) })
} }
}) })
}, },
/** /**
......
...@@ -63,7 +63,7 @@ Page({ ...@@ -63,7 +63,7 @@ Page({
if (otype && otype == 11) { if (otype && otype == 11) {
} else { } else {
console.log(yanzhengid, lb_descript.desc.record_id) console.log('asasasas',yanzhengid, lb_descript.desc.record_id)
if (lb_descript.desc.record_id == -1) { if (lb_descript.desc.record_id == -1) {
this.loadData(); this.loadData();
} else if (yanzhengid == lb_descript.desc.record_id) { } else if (yanzhengid == lb_descript.desc.record_id) {
......
...@@ -58,12 +58,13 @@ view{ ...@@ -58,12 +58,13 @@ view{
font-size: 30rpx; font-size: 30rpx;
font-weight: bolder; font-weight: bolder;
color: #000; color: #000;
line-height: 0.8; line-height: 1;
letter-spacing: 2rpx; letter-spacing: 2rpx;
} }
.nav text:last-child{ .nav text:last-child{
font-weight: 300; font-weight: 300;
font-size: 24rpx; font-size: 24rpx;
height: 24rpx;
letter-spacing: 1rpx; letter-spacing: 1rpx;
color: #3b3b3b; color: #3b3b3b;
} }
...@@ -92,7 +93,7 @@ view{ ...@@ -92,7 +93,7 @@ view{
margin-left: 30rpx; margin-left: 30rpx;
margin-top: 37rpx; margin-top: 37rpx;
font-size: 30rpx; font-size: 30rpx;
font-weight: bold; font-weight: 700;
color: #333333; color: #333333;
} }
.block-con{ .block-con{
...@@ -102,7 +103,6 @@ view{ ...@@ -102,7 +103,6 @@ view{
color: #3a3a3a; color: #3a3a3a;
font-weight: 300; font-weight: 300;
opacity: .8; opacity: .8;
font-family: "Bitstream Vera Serif Bold";
} }
.po-ab{ .po-ab{
position: absolute; position: absolute;
......
const Service = require('../../utils/service.js'); const Service = require('../../utils/service.js');
const Util = require('../../utils/util.js'); const Util = require('../../utils/util.js');
Page({ Page({
data: { data: {
userInfo: '', userInfo: '',
reportRedD: false, //报告红点展示 reportRedD: false, //报告红点展示
reportRedNum: 0, //未作报告数量 reportRedNum: 0, //未作报告数量
disabled:true,//防止重复点击 disabled: true, //防止重复点击
version:'3.2.0', version: '3.2.0',
isShow:false, isShow: false,
showClose:true, showClose: true,
}, },
onLoad: function () { onLoad: function () {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
...@@ -24,13 +23,13 @@ Page({ ...@@ -24,13 +23,13 @@ Page({
wx.setStorageSync('user', res) wx.setStorageSync('user', res)
return Service.getUserData(res.openid) return Service.getUserData(res.openid)
}).then((res) => { }).then((res) => {
wx.setStorageSync('data', res) wx.setStorageSync('data', res)
that.setData({ that.setData({
userInfo:res, userInfo: res,
unionid: res.unionid || '', unionid: res.unionid || '',
nickname: res.nickname || res.name || 0, nickname: res.nickname || res.name || 0,
headimgurl: res.headimgurl || '/images/head-img.png', headimgurl: res.headimgurl || '/images/head-img.png',
isShow:true isShow: true
}) })
// that.resultNot(res.openid) // that.resultNot(res.openid)
}) })
...@@ -43,7 +42,7 @@ Page({ ...@@ -43,7 +42,7 @@ Page({
this.login = this.selectComponent("#login"); this.login = this.selectComponent("#login");
this.answer = this.selectComponent("#answer"); this.answer = this.selectComponent("#answer");
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
...@@ -54,8 +53,8 @@ Page({ ...@@ -54,8 +53,8 @@ Page({
}, },
//菜单栏红点提示 //菜单栏红点提示
resultNot(openid) { resultNot(openid) {
//未做量表提醒 //未做量表提醒
console.log("resultNot") console.log("resultNot")
var data = { var data = {
openid: openid openid: openid
} }
...@@ -94,66 +93,66 @@ Page({ ...@@ -94,66 +93,66 @@ Page({
}) })
}, },
/**跳转页面 */ /**跳转页面 */
goToURL:Util.debouce(function(e){ goToURL: Util.debouce(function (e) {
var that = this; var that = this;
if (that.data.confirm) { if (that.data.confirm) {
return; return;
} }
that.data.confirm = true that.data.confirm = true
var data=wx.getStorageSync('data') var data = wx.getStorageSync('data')
if (Util.isEmpty(data.unionid)) { if (Util.isEmpty(data.unionid)) {
that.login.showLogin(); that.login.showLogin();
} else { } else {
wx.navigateTo({ wx.navigateTo({
url:e.currentTarget.dataset.src, url: e.currentTarget.dataset.src,
}) })
} }
that.data.confirm=false; that.data.confirm = false;
},1000,true), }, 1000, true),
// 我的报告 // 我的报告
myReport:Util.debouce(function() { myReport: Util.debouce(function () {
var that=this; var that = this;
if (that.data.confirm) { if (that.data.confirm) {
return; return;
} }
that.data.confirm = true that.data.confirm = true
var data=wx.getStorageSync('data') var data = wx.getStorageSync('data')
if (Util.isEmpty(data.unionid)) { if (Util.isEmpty(data.unionid)) {
that.login.showLogin(); that.login.showLogin();
} else { } else {
wx.navigateTo({ wx.navigateTo({
url: '/packageB/myReport/myReport?type=0', url: '/packageB/myReport/myReport?type=0',
})
}
that.data.confirm = false;
}, 1000, true),
getUserInfo() {
this.login.showLogin();
},
//客服电话
dial(e) {
let tel = e.currentTarget.dataset.tel;
wx.makePhoneCall({
phoneNumber: tel,
}) })
} },
that.data.confirm=false;
},1000,true),
getUserInfo(){
this.login.showLogin();
},
//客服电话
dial(e) {
let tel = e.currentTarget.dataset.tel;
wx.makePhoneCall({
phoneNumber: tel,
})
},
//设置推送 //设置推送
setPush: function () { setPush: function () {
wx.openSetting() wx.openSetting()
}, },
//登陆后组件回调方法刷新当前页面 //登陆后组件回调方法刷新当前页面
_refreshEvent() { _refreshEvent() {
console.log("刷新"); console.log("刷新");
this.onShow(); this.onShow();
}, },
/** /**
* 图片加载失败函数 * 图片加载失败函数
* @param {any} e * @param {any} e
*/ */
binderrorimg(){ binderrorimg() {
this.setData({ this.setData({
headimgurl:'/images/head-img.png' headimgurl: '/images/head-img.png'
}) })
}, },
}) })
\ No newline at end of file
...@@ -54,7 +54,7 @@ page { ...@@ -54,7 +54,7 @@ page {
height: 48rpx; height: 48rpx;
} }
.server-text { .server-text {
height: 24rpx; height: 28rpx;
font-size: 28rpx; font-size: 28rpx;
font-weight: 300; font-weight: 300;
text-align: left; text-align: left;
...@@ -66,7 +66,7 @@ page { ...@@ -66,7 +66,7 @@ page {
height: 52rpx; height: 52rpx;
font-size: 50rpx; font-size: 50rpx;
color: #333; color: #333;
font-weight: 700; font-weight: bold;
line-height: 54rpx; line-height: 54rpx;
position: absolute; position: absolute;
top: 95rpx; top: 95rpx;
......
...@@ -88,6 +88,12 @@ ...@@ -88,6 +88,12 @@
"pathName": "packageA/productOrderDetail/productOrderDetail", "pathName": "packageA/productOrderDetail/productOrderDetail",
"query": "id=111111111114478", "query": "id=111111111114478",
"scene": null "scene": null
},
{
"name": "pages/docuterInfo/docuterInfo",
"pathName": "pages/docuterInfo/docuterInfo",
"query": "t_unitid=18870",
"scene": 1008
} }
] ]
} }
......
...@@ -8,13 +8,15 @@ const HOST_P_K = "https://static.xiaodongai.com/xiaodongai/kongtian/"; ...@@ -8,13 +8,15 @@ const HOST_P_K = "https://static.xiaodongai.com/xiaodongai/kongtian/";
// const HOST = "https://test-wechat.xiaodongai.com/"; // const HOST = "https://test-wechat.xiaodongai.com/";
const HOST = 'https://www.xiaodongai.com/xiaodongai/kongtian/'; const HOST = 'https://www.xiaodongai.com/xiaodongai/kongtian/';
// const HOST = 'https://www.xiaodongai.com/xiaodongai/ceshi/'; //测试库 // const HOST = 'https://www.xiaodongai.com/xiaodongai/ceshi/'; //测试库
// var HOST = 'http://192.168.0.123:8081/xiaodongai/ceshi/'; //本地 // var HOST = 'http://192.168.0.123:8081/xiaodongai/ceshi/'; //本地
// var HOST = 'http://localhost/xiaodongai/kongtian/'; //本地 // var HOST = 'http://localhost/xiaodongai/kongtian/'; //本地
const patient = "https://online-patient.xiaodongai.com/" //正式新地址 const patient = "https://online-patient.xiaodongai.com/" //推荐产品正式新地址
// const patient = "http://test.patient.xiaodongai.com/" //测试新地址 // const patient = "http://test.patient.xiaodongai.com/" //测试新地址
const orders = "https://online-cjob.xiaodongai.com/index.php/order/" //订单
// const orders = "http://120.53.134.66/index.php/api/"
const HOST_info = 'https://vivshi.com/xiaodongai/kongtian/'; // 弃用 const HOST_info = 'https://vivshi.com/xiaodongai/kongtian/'; // 弃用
const HOST_yiyuan = "https://www.xiaodongai.com/xiaodong_yiyuan/xd_admin/public/index.php/apitest/"; //互联网医院测试 const HOST_yiyuan = "https://www.xiaodongai.com/xiaodong_yiyuan/xd_admin/public/index.php/apitest/"; //互联网医院测试
// var HOST_yiyuan = "https://www.xiaodongai.com/xiaodong_yiyuan/xd_admin/public/index.php/api/"; //互联网医院正式 // var HOST_yiyuan = "https://www.xiaodongai.com/xiaodong_yiyuan/xd_admin/public/index.php/api/"; //互联网医院正式
...@@ -23,12 +25,20 @@ const url = { ...@@ -23,12 +25,20 @@ const url = {
* begin * begin
* 推荐产品 * 推荐产品
*/ */
getNormalProduct :patient+"wechatIteration/Zcprescription/zckyxqs",//正常购买产品 getNormalProduct :patient+"wechatIteration/Zcprescription/zckyxqs", //正常购买产品
getQuickProduct :patient+"wechatIteration/Prescription/kskyxqs",//快速购买产品,扫二维码购买 getQuickProduct :patient+"wechatIteration/Prescription/kskyxqs", //快速购买产品,扫二维码购买
productPay :patient+"wechatIteration/Place_order/place_order",//推荐产品支付 productPay :patient+"wechatIteration/Place_order/place_order", //推荐产品支付
buyProductList :patient+"wechatIteration/order_list/apiOrder",//推荐产品列表 buyProductList :patient+"wechatIteration/order_list/apiOrder", //推荐产品列表
getPayStatusB :patient+"wechatIteration/is_purchase/purchase",//获取产品支付状态 getPayStatusB :patient+"wechatIteration/is_purchase/purchase", //获取产品支付状态
productOrderDetail:patient+"Drugorder/prescription_order_detail", //获取产品订单详情 productOrderDetail:patient+"Drugorder/prescription_order_detail", //获取产品订单详情
/**
* end
*/
/**
* begin
* 订单中心
*/
getOrdersAddress:orders+"order_address/getOneByOrderNumber",//获取订单地址
/** /**
* end * end
*/ */
......
...@@ -28,7 +28,7 @@ function getUserSig(user) { ...@@ -28,7 +28,7 @@ function getUserSig(user) {
let getUserSigUrl = config.url.getUserSig; let getUserSigUrl = config.url.getUserSig;
let data = { let data = {
"user": user "user": user
// "user": "oHhp80fVWvjJn2EYkB5XxhKnVBOo" // "user": "oHhp80bZb-BpXBeyL9EHX1SSoAfU"
} }
return wxRequest.getRequest(getUserSigUrl, data); return wxRequest.getRequest(getUserSigUrl, data);
}; };
...@@ -50,6 +50,7 @@ function getUserData(openid) { ...@@ -50,6 +50,7 @@ function getUserData(openid) {
let getUserDataUrl = config.url.getUserData; let getUserDataUrl = config.url.getUserData;
let data = {}; let data = {};
data.openid = openid; data.openid = openid;
// data.openid='oYQX40HkqeZ36Kuq9M8APvwzizzc'
return wxRequest.postRequest(getUserDataUrl, data); return wxRequest.postRequest(getUserDataUrl, data);
}; };
/** /**
...@@ -642,6 +643,10 @@ function productPay(param) { ...@@ -642,6 +643,10 @@ function productPay(param) {
var productPayUrl = config.url.productPay; var productPayUrl = config.url.productPay;
return wxRequest.postRequest(productPayUrl, param) return wxRequest.postRequest(productPayUrl, param)
} }
function getOrdersAddress(param){
var getOrdersAddressUrl = config.url.getOrdersAddress;
return wxRequest.postRequest(getOrdersAddressUrl, param)
}
function getBusStopListPromise(sid, stopType) { function getBusStopListPromise(sid, stopType) {
var getStopListUrl = config.url.getBusStopList; var getStopListUrl = config.url.getBusStopList;
...@@ -746,4 +751,5 @@ module.exports = { ...@@ -746,4 +751,5 @@ module.exports = {
getNormalProduct: getNormalProduct, //正常购买推荐产品 getNormalProduct: getNormalProduct, //正常购买推荐产品
getQuickProduct: getQuickProduct, //快速购买推荐产品 getQuickProduct: getQuickProduct, //快速购买推荐产品
productPay: productPay, //推荐产品支付 productPay: productPay, //推荐产品支付
getOrdersAddress:getOrdersAddress,//获取订单地址
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment