Commit b49ecf46 by liuquan

feature.logistics.v3.2.3.20210421.liuquan

F 修复物流查询不准确问题,重构物流查询方式
F 修复报告列表下拉不刷新问题
U 新增一个量表的答题方式
parent a67623cf
...@@ -711,6 +711,7 @@ Page({ ...@@ -711,6 +711,7 @@ Page({
} else if (res.code == 1 && res.data.status == "2") { } else if (res.code == 1 && res.data.status == "2") {
that.setData({ that.setData({
payFlag: false, payFlag: false,
payFlag1: false,
end_time: '已结束', end_time: '已结束',
sendBtns: true, sendBtns: true,
status: true, status: true,
......
...@@ -8,21 +8,21 @@ ...@@ -8,21 +8,21 @@
<view class="top-text">预计1-3天送达,偏远地区除外</view> <view class="top-text">预计1-3天送达,偏远地区除外</view>
</view> </view>
<view class="logistics"> <view class="logistics">
<view class="logistics-title" wx:if="{{item.status==2}}">等待发货</view> <view class="logistics-title" wx:if="{{item.status==2}}">等待发货</view>
<view class="logistics-title" wx:if="{{item.status==3}}">已发货</view> <view class="logistics-title" wx:if="{{item.status==3}}">已发货</view>
<view class="logistics-title" wx:if="{{item.status==4}}">已签收</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">{{address.name}}</text><text <view class=""><text class="address_name">{{address.name}}</text><text
class="address_call">{{address.phone}}</text></view> class="address_call">{{address.phone}}</text></view>
<view class="address_text">{{address.take_over+address.detail_address}}</view> <view class="address_text">{{address.take_over+address.detail_address}}</view>
</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> -->
...@@ -126,6 +126,6 @@ ...@@ -126,6 +126,6 @@
<!-- <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-ordernumber="{{item.ordernumber}}">查看物流 data-src="/packageA/logistics/logistics" data-ordernumber="{{item.ordernumber}}">查看物流
</view> </view>
</view> </view>
\ No newline at end of file
...@@ -15,10 +15,11 @@ Page({ ...@@ -15,10 +15,11 @@ Page({
time2: '', time2: '',
time3: '', time3: '',
img: '', img: '',
status: '', status: '',//物流状态
sforderid:'',//物流单号
logistics: false, logistics: false,
mobileTail: '', mobileTail: '',
xdorderid: '' ordernumber: '' //订单单号
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -27,20 +28,9 @@ Page({ ...@@ -27,20 +28,9 @@ Page({
let that = this let that = this
that.setData({ that.setData({
img: options.img, img: options.img,
status: options.status, ordernumber: options.ordernumber,
// address: JSON.parse(options.address)
})
this.getOrderAddress(options.ordernumber)
console.log("options", options)
var list = options.num.split(',')
var comlist = options.com.split(',')
that.setData({
xdorderid: options.ordernumber,
list: list,
orderid: list[0],
comlist: comlist,
com: util.isEmpty(comlist[0]) ? 'shunfeng' : comlist[0]
}) })
this.getLogisticsInfo(options.ordernumber);
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -51,19 +41,19 @@ Page({ ...@@ -51,19 +41,19 @@ Page({
/** /**
* 获取最新的订单收货地址 * 获取最新的订单收货地址
*/ */
getOrderAddress(ordernumber) { getLogisticsInfo(ordernumber) {
var that = this; let that = this;
Service.getOrdersAddress({ Service.getOrdersAddress({
ordernumber ordernumber
}).then(res => { }).then(res => {
console.log("res", res) console.log("res", res)
if (res.code == 200) { if (res.code == 200) {
console.log("res.data",res.data) console.log("res.data", res.data)
that.setData({ that.setData({
address: res.data, address: res.data,
mobileTail: res.data.phone.substring(res.data.phone.length - 4), mobileTail: res.data.phone.substring(res.data.phone.length - 4),
}) })
that.getWl() this.getLogisticsNumber(ordernumber);
} else { } else {
wx.showToast({ wx.showToast({
title: res.msg, title: res.msg,
...@@ -80,15 +70,55 @@ Page({ ...@@ -80,15 +70,55 @@ Page({
}) })
}, },
/** /**
* 通过订单单号获取物流单号
*/
getLogisticsNumber(ordernumber) {
let that = this;
Service.getLogisticsNumber({
ordernumber
}).then(res => {
console.log("res.data", res)
if (res.code == 200) {
if (res.data) {
that.setData({
status:res.data.status,
sforderid:res.data.sf_waybillno
})
} else {
that.setData({
status:0,
})
}
that.getWl()
// that.setData({
// address: res.data,
// mobileTail: res.data.phone.substring(res.data.phone.length - 4),
// })
} else {
wx.showToast({
title: res.msg,
icon: 'success',
mask: true
})
}
}).catch(err => {
console.err("getLogisticsNumber", err)
wx.showToast({
title: err,
// icon: 'success',
mask: true
})
})
},
/**
* 获取物流路由 * 获取物流路由
*/ */
getWl: function () { getWl: function () {
var that = this let that = this
var data = {} let data = {}
data.orderid = that.data.orderid; data.orderid = that.data.sforderid;
data.mobileTail = that.data.mobileTail; data.mobileTail = that.data.mobileTail;
data.xdorderid = that.data.xdorderid; data.xdorderid = that.data.ordernumber;
data.com = that.data.com;
data.phone = that.data.mobileTail; data.phone = that.data.mobileTail;
Service.logisticsInfo(data).then((res) => { Service.logisticsInfo(data).then((res) => {
if (res.data) { if (res.data) {
...@@ -103,18 +133,19 @@ Page({ ...@@ -103,18 +133,19 @@ Page({
} }
}) })
}, },
getSf: function (e) { /**
var _this = this * 复制单号
_this.setData({ * @param {*} e
orderid: e.currentTarget.dataset.num */
})
_this.getWl()
},
getNum: function (e) { getNum: function (e) {
wx.setClipboardData({ wx.setClipboardData({
data: this.data.orderid, data: this.data.sforderid,
success: function (res) { success: function (res) {
wx.showToast({
title: '复制成功',
icon: 'success',
mask: true
})
} }
}) })
}, },
......
<!--packageA/logistics/logistics.wxml--> <!--packageA/logistics/logistics.wxml-->
<answer id='answer'></answer> <answer id='answer'></answer>
<view class="pre" wx:if="{{orderid!='null' && list.length>1}}">
<view space='ensp'>因货品存放于不同仓库,您的订单拆分为{{list.length}}个包裹发货,运单号为:
<text bindtap="getSf" data-num="{{item}}" wx:for="{{list}}" wx:key="index">{{item}}{{list.length>index+1?'、':''}}</text>{{list.length>index+1?'':','}}
点击单号可查看物流状态。</view>
</view>
<view class="header"> <view class="header">
<view class="title"> <view class="title">
<view class="img"> <view class="img">
<image src="{{img}}"></image> <image src="{{img}}"></image>
</view> </view>
<view class="marl"> <view class="marl">
<view class="dfh mt" wx:if="{{status==2}}">待发货</view> <view class="dfh mt" wx:if="{{status==0}}">待发货</view>
<view class="dfh" wx:if="{{status==3}}">待收货</view> <view class="dfh" wx:if="{{status==1}}">待收货</view>
<view class="dfh" wx:if="{{status==4}}">已完成</view> <view class="dfh" wx:if="{{status==2}}">已完成</view>
<view class="dh" wx:if="{{orderid!='null' && orderid}}"> <view class="dfh" wx:if="{{status==3}}">已取消</view>
<text wx:if="{{com=='shunfeng'}}">顺丰速运</text> <view class="dfh" wx:if="{{status==4}}">已拒收</view>
:{{orderid}} <view class="dfh" wx:if="{{status==5}}">派件异常</view>
<view class="btn" bindtap="getNum" wx:if="{{orderid!='null' && orderid}}">复制</view> <view class="dfh" wx:if="{{status==6}}">运输中</view>
<view class="dh" wx:if="{{sforderid}}">
<text >顺丰速运</text>
:{{sforderid}}
<view class="btn" bindtap="getNum" wx:if="{{sforderid}}">复制</view>
</view> </view>
<view class="mt" wx:if="{{orderid!='null' && orderid}}"> <view class="mt" wx:if="{{orderid!='null' && orderid}}">
<!-- <text class="wuliuzx">物流咨询:</text> <!-- <text class="wuliuzx">物流咨询:</text>
<text class="wuliutel" bindtap="ddh">95338</text> --> <text class="wuliutel" bindtap="ddh">95338</text> -->
</view> </view>
<view class="mt" wx:if="{{status==2}}"> <view class="mt" wx:if="{{status==0}}">
<text class="wuliuzx02">暂无运单信息</text> <text class="wuliuzx02">暂无运单信息</text>
</view> </view>
</view> </view>
...@@ -49,7 +48,7 @@ ...@@ -49,7 +48,7 @@
</view> </view>
</view> </view>
</block> </block>
<view class="list" wx:if="{{orderid!='null' && orderid}}"> <view class="list" wx:if="{{orderid}}">
<image src="{{arr==''?'/images/yfh.png':'/images/yfh2.png'}}"></image> <image src="{{arr==''?'/images/yfh.png':'/images/yfh2.png'}}"></image>
<view class="list-zi"> <view class="list-zi">
<view class="ztsize" style="font-size:32rpx;">已发货</view> <view class="ztsize" style="font-size:32rpx;">已发货</view>
......
...@@ -134,7 +134,7 @@ text{ ...@@ -134,7 +134,7 @@ text{
.steps .list:first-child .list-zi::before{ .steps .list:first-child .list-zi::before{
position: absolute; position: absolute;
z-index: 100; z-index: 100;
left: 0; left:4rpx ;
top: 0; top: 0;
margin-top: 30rpx; margin-top: 30rpx;
content: ""; content: "";
......
...@@ -110,7 +110,7 @@ Page({ ...@@ -110,7 +110,7 @@ Page({
that.data.requestStatus = true; that.data.requestStatus = true;
var data = { var data = {
page: page, page: page,
// unionid:'oHhp80QCN2WjClijvSyhkEFQcUwY', // unionid:'oHhp80TKmeamBXcKWKjwM-NBrZ94',
unionid: wx.getStorageSync('data').unionid, unionid: wx.getStorageSync('data').unionid,
status: status status: status
}; };
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
data-address="{{item.address}}">修改地址</view> --> data-address="{{item.address}}">修改地址</view> -->
<view class="ckwl" wx:if="{{item.status==2||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-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-ordernumber="{{item.ordernumber}}"> data-src="/packageA/logistics/logistics" 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>
......
...@@ -154,13 +154,13 @@ ...@@ -154,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+1}}" data-img="{{item.drug_arr[0].picture}}" <view bindtap="goLogistics" 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-ordernumber="{{item.ordernumber}}">查看物流 data-ordernumber="{{item.ordernumber}}">查看物流
</view> --> </view>
<!-- </view> --> </view>
\ No newline at end of file \ No newline at end of file
...@@ -45,15 +45,15 @@ Page({ ...@@ -45,15 +45,15 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function () {
this.getReportList();
}, },
/** // /**
* 页面上拉触底事件的处理函数 // * 页面上拉触底事件的处理函数
*/ // */
onReachBottom: function () { // onReachBottom: function () {
}, // },
/** /**
* 量表续答 * 量表续答
* @param {*} e * @param {*} e
...@@ -181,6 +181,7 @@ Page({ ...@@ -181,6 +181,7 @@ Page({
isShow: true, isShow: true,
}) })
} }
wx.stopPullDownRefresh();
}) })
}, },
/** /**
......
<view class="warp" style="height:{{winH}}px;"> <view class="warp" style="height:{{winH}}px;">
<view class="con"> <view class="con">
<!-- 霍兰德职业倾向 --> <!-- 霍兰德职业倾向 -->
<text wx:if="{{hollander&&item.type=='1'}}">第一部分 兴趣倾向,你喜欢做下列事情吗?</text> <text wx:if="{{hollander&&item.type=='1'}}">第一部分 兴趣倾向,你喜欢做下列事情吗?</text>
<text wx:if="{{hollander&&item.type=='2'}}">第二部分 个体经历,你擅长下列活动吗?</text> <text wx:if="{{hollander&&item.type=='2'}}">第二部分 个体经历,你擅长下列活动吗?</text>
<text wx:if="{{hollander&&item.type=='3'}}">第三部分 人格倾向</text> <text wx:if="{{hollander&&item.type=='3'}}">第三部分 人格倾向</text>
...@@ -10,16 +10,41 @@ ...@@ -10,16 +10,41 @@
<text wx:else>{{item.con}}</text> <text wx:else>{{item.con}}</text>
</view> </view>
<block wx:for="{{item.answer}}" wx:for-item="itemName" wx:for-index="index1" wx:key="*this"> <block wx:for="{{item.answer}}" wx:for-item="itemName" wx:for-index="index1" wx:key="*this">
<view class=" answer {{active == index1?'s-active':''}}" hidden="{{(pizibao&& current+1==1)||(pizibao&& current+1==3)||(pizibao&& current+1==4) || (pizibao1&& current+1==10) || (pizibao1&& current+1==11)}}" bindtap='selectData' data-index="{{index1}}" <block wx:if="{{!multipleChoice}}">
data-answer="{{itemName}}" data-score="{{item.score[index1]}}" data-record="{{current}}"> <view class=" answer {{active == index1?'s-active':''}}"
<text>{{itemName}}</text> hidden="{{(pizibao&& current+1==1)||(pizibao&& current+1==3)||(pizibao&& current+1==4) || (pizibao1&& current+1==10) || (pizibao1&& current+1==11)}}"
</view> bindtap='selectData' data-index="{{index1}}" data-answer="{{itemName}}" data-score="{{item.score[index1]}}"
<!--社会支持评定 --> data-record="{{current}}">
<view class="shehui {{((pizibao1&& current+1==10) || (pizibao1&& current+1==11))?'show':'hid'}}">
<view class=" answer1 {{active == index1?'s-active':''}} " bindtap='selectData' data-index="{{index1}}" data-answer="{{itemName}}" data-score="{{item.score[index1]}}" data-record="{{current}}" style="border-left:{{index1%2==0?'none':'0.5px solid #e3e3e3'}};">
<text>{{itemName}}</text> <text>{{itemName}}</text>
</view> </view>
</view> <!--社会支持评定 -->
<view class="shehui {{((pizibao1&& current+1==10) || (pizibao1&& current+1==11))?'show':'hid'}}">
<view class=" answer1 {{active == index1?'s-active':''}} " bindtap='selectData' data-index="{{index1}}"
data-answer="{{itemName}}" data-score="{{item.score[index1]}}" data-record="{{current}}"
style="border-left:{{index1%2==0?'none':'0.5px solid #e3e3e3'}};">
<text>{{itemName}}</text>
</view>
</view>
</block>
<!-- 惰性性攻击的动态评价 -->
<block wx:else>
<block wx:if='{{current == 8 || current == 9 || current == 10}}'>
<view class=" answer {{item.check[index1] == 1?'s-active':''}}"
hidden="{{(pizibao&& current+1==1)||(pizibao&& current+1==3)||(pizibao&& current+1==4) ||(pizibao1&& current+1==56)||(pizibao1&& current+1==58)||(pizibao1&& current+1==59)|| (shzcpd&& current+1==10) || (shzcpd&& current+1==11)}}"
data-index="{{index1}}" data-answer="{{itemName}}" data-score="{{item.score[index1]}}"
data-record="{{current}}" bindtap='selectData' data-btnflag='1'>
<text>{{itemName}}</text>
</view>
</block>
<block wx:else>
<view class=" answer {{active == index1?'s-active':''}}"
hidden="{{(pizibao&& current+1==1)||(pizibao&& current+1==3)||(pizibao&& current+1==4) || (pizibao1&& current+1==56)||(pizibao1&& current+1==58)||(pizibao1&& current+1==59)||(shzcpd&& current+1==10) || (shzcpd&& current+1==11)}}"
data-index="{{index1}}" data-answer="{{itemName}}" data-score="{{item.score[index1]}}"
data-record="{{current}}" bindtap='selectData' data-btnflag='0'>
<text>{{itemName}}</text>
</view>
</block>
</block>
</block> </block>
<!--匹兹堡睡眠质量 --> <!--匹兹堡睡眠质量 -->
<view class="pizibao {{(pizibao&& current+1==1)||(pizibao&& current+1==3)||(pizibao&& current+1==4)?'show':'hid'}}"> <view class="pizibao {{(pizibao&& current+1==1)||(pizibao&& current+1==3)||(pizibao&& current+1==4)?'show':'hid'}}">
...@@ -58,15 +83,33 @@ ...@@ -58,15 +83,33 @@
</block> </block>
</view> </view>
</view> </view>
<view class="btn {{current<all-1?'show':'hid'}}"> <block wx:if='{{!multipleChoice}}'>
<view class="menuebtn1 {{current>0?'menuebtn-active':''}}" bindtap='prev'>上一题</view> <view class="btn {{current<all-1?'show':'hid'}}">
</view> <view class="menuebtn1 {{current>0?'menuebtn-active':''}}" bindtap='prev'>上一题</view>
<view class="btn {{all==current+1?'show':'hid'}}"> </view>
<view class="menuebtn {{current>0?'menuebtn-active':''}}" bindtap='prev'>上一题</view> <view class="btn {{all==current+1?'show':'hid'}}">
<view class="menuebtn {{disab?'show':'hid'}} " style='margin-left:40rpx;'>提交</view> <view class="menuebtn {{current>0?'menuebtn-active':''}}" bindtap='prev'>上一题</view>
<view class="menuebtn menuebtn-active {{disab?'hid':'show'}} " style='margin-left:40rpx;' wx:if='{{sc}}' bindtap='tijiao'>提交</view> <view class="menuebtn {{disab?'show':'hid'}} " style='margin-left:40rpx;'>提交</view>
<view class="menuebtn menuebtn-active {{disab?'hid':'show'}} " style='margin-left:40rpx; background: #999;' wx:if='{{!sc}}'>上传中</view> <view class="menuebtn menuebtn-active {{disab?'hid':'show'}} " style='margin-left:40rpx;' wx:if='{{sc}}'
</view> bindtap='tijiao'>提交</view>
<view class="menuebtn menuebtn-active {{disab?'hid':'show'}} " style='margin-left:40rpx; background: #999;'
wx:if='{{!sc}}'>上传中</view>
</view>
</block>
<block wx:else>
<view class="btn {{current<all?'show':'hid'}}">
<view wx:if="{{!canvas}}" class="menuebtn {{current>0?'menuebtn-active':''}}" bindtap='prev'>上一题</view>
<view class="menuebtn" wx:if='{{!nextFalg[current]}}' style='margin-left:40rpx;' data-cur='{{current}}'>
下一题</view>
<view class="menuebtn menuebtn-active" wx:elif='{{nextFalg[current] && current+1 < all }}'
style='margin-left:40rpx;' bindtap='next' data-cur='{{current}}'>下一题</view>
<block wx:else>
<view class="menuebtn {{disab?'show':'hid'}} " style='margin-left:40rpx;'>提交</view>
<view class="menuebtn menuebtn-active {{disab?'hid':'show'}} " style='margin-left:40rpx;' bindtap='tijiao'>提交
</view>
</block>
</view>
</block>
<view class='all-item'> <view class='all-item'>
<text>{{current+1}}/{{all}}</text> <text>{{current+1}}/{{all}}</text>
</view> </view>
\ No newline at end of file
...@@ -6,7 +6,7 @@ Page({ ...@@ -6,7 +6,7 @@ Page({
reportRedD: false, //报告红点展示 reportRedD: false, //报告红点展示
reportRedNum: 0, //未作报告数量 reportRedNum: 0, //未作报告数量
disabled: true, //防止重复点击 disabled: true, //防止重复点击
version: '3.2.0', version: '3.2.2',
isShow: false, isShow: false,
showClose: true, showClose: true,
}, },
......
'use strict'; 'use strict';
const HOST_xinli = 'https://www.xiaodongai.com/xiaodongai/xinli'; const HOST_xinli = 'https://www.xiaodongai.com/xiaodongai/xinli';
// var HOST_xinli = 'https://www.xiaodongai.com/xiaodongai/xinli_ceshi_copy'; // var HOST_xinli = 'https://www.xiaodongai.com/xiaodongai/xinli_ceshi_copy';
const HOST_xinli_lb = 'https://static.xiaodongai.com/'; const HOST_xinli_lb = 'https://static.xiaodongai.com/';
const HOST_P = "https://static.xiaodongai.com/xiaodongai/"; const HOST_P = "https://static.xiaodongai.com/xiaodongai/";
const HOST_P_K = "https://static.xiaodongai.com/xiaodongai/kongtian/"; 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 = "https://online-cjob.xiaodongai.com/index.php/order/" //订单中心 生产
// const orders = "http://120.53.134.66/index.php/api/" 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/'; // 弃用
...@@ -38,7 +39,8 @@ const url = { ...@@ -38,7 +39,8 @@ const url = {
* begin * begin
* 订单中心 * 订单中心
*/ */
getOrdersAddress:orders+"order_address/getOneByOrderNumber",//获取订单地址 getOrdersAddress:orders+"order_address/getOneByOrderNumber",//获取订单收货地址
getLogisticsNumber:orders+"order_logistics/getOneByOrderNumber",//获取订单物流编号
/** /**
* end * end
*/ */
...@@ -165,5 +167,4 @@ module.exports = { ...@@ -165,5 +167,4 @@ module.exports = {
HOST_yiyuan : HOST_yiyuan, HOST_yiyuan : HOST_yiyuan,
HOST_xinli : HOST_xinli, HOST_xinli : HOST_xinli,
HOST_xinli_lb : HOST_xinli_lb, HOST_xinli_lb : HOST_xinli_lb,
} }
\ No newline at end of file
...@@ -50,7 +50,7 @@ function getUserData(openid) { ...@@ -50,7 +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' // data.openid='oYQX40AHxKlrHu_fVDrp4u486tsY'
return wxRequest.postRequest(getUserDataUrl, data); return wxRequest.postRequest(getUserDataUrl, data);
}; };
/** /**
...@@ -647,7 +647,10 @@ function getOrdersAddress(param){ ...@@ -647,7 +647,10 @@ function getOrdersAddress(param){
var getOrdersAddressUrl = config.url.getOrdersAddress; var getOrdersAddressUrl = config.url.getOrdersAddress;
return wxRequest.postRequest(getOrdersAddressUrl, param) return wxRequest.postRequest(getOrdersAddressUrl, param)
} }
function getLogisticsNumber(param){
var getLogisticsNumberUrl=config.url.getLogisticsNumber;
return wxRequest.postRequest(getLogisticsNumberUrl,param)
}
function getBusStopListPromise(sid, stopType) { function getBusStopListPromise(sid, stopType) {
var getStopListUrl = config.url.getBusStopList; var getStopListUrl = config.url.getBusStopList;
var data = { var data = {
...@@ -751,5 +754,6 @@ module.exports = { ...@@ -751,5 +754,6 @@ module.exports = {
getNormalProduct: getNormalProduct, //正常购买推荐产品 getNormalProduct: getNormalProduct, //正常购买推荐产品
getQuickProduct: getQuickProduct, //快速购买推荐产品 getQuickProduct: getQuickProduct, //快速购买推荐产品
productPay: productPay, //推荐产品支付 productPay: productPay, //推荐产品支付
getOrdersAddress:getOrdersAddress,//获取订单地址 getOrdersAddress:getOrdersAddress,//获取订单收货地址
getLogisticsNumber:getLogisticsNumber,//获取物流单号
} }
\ 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