Commit e2b030bb by wangzhihui

x修改滚动bug

1 parent e20426f4
...@@ -76,6 +76,11 @@ Component({ ...@@ -76,6 +76,11 @@ Component({
this.setData({ this.setData({
show: false show: false
}) })
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
}, },
confirm() { confirm() {
this.triggerEvent('confirm') this.triggerEvent('confirm')
......
import { orderMixin } from "~/mixins/index"; import {
import { GoodsSource } from "~/constants/mine.js"; orderMixin
import { getOrder } from "~/packageMine/pages/order/utils"; } from "~/mixins/index";
import {
GoodsSource
} from "~/constants/mine.js";
import {
getOrder
} from "~/packageMine/pages/order/utils";
Page({ Page({
behaviors: [orderMixin], behaviors: [orderMixin],
/** /**
...@@ -10,7 +16,7 @@ Page({ ...@@ -10,7 +16,7 @@ Page({
// OrderStatus, // OrderStatus,
expressInfo: null, //物流信息 expressInfo: null, //物流信息
isShowExpressPop: false, isShowExpressPop: false,
logisticsInfo:null, logisticsInfo: null,
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -34,20 +40,27 @@ Page({ ...@@ -34,20 +40,27 @@ Page({
}); });
}, },
queryLogistics(subOrderCode) { queryLogistics(subOrderCode) {
wx.p.api.shopmallApi.queryLogistics({ subOrderCode }).then((data) => { wx.p.api.shopmallApi.queryLogistics({
if(data&&data.expressCode){ subOrderCode
}).then((data) => {
if (data && data.expressCode) {
this.setData({ this.setData({
logisticsInfo: data, logisticsInfo: data,
}) })
} }
}).catch((err) => { }).catch((err) => {
wx.p.sentry.reportError(`查询物流异常:${err.message}`, {subOrderCode,err}); wx.p.sentry.reportError(`查询物流异常:${err.message}`, {
subOrderCode,
err
});
}); });
}, },
getOrderDetail(subOrderCode) { getOrderDetail(subOrderCode) {
wx.p.wxApi.showLoading("加载中..."); wx.p.wxApi.showLoading("加载中...");
wx.p.api.shopmallApi wx.p.api.shopmallApi
.getOrderDetail({ subOrderCode }) .getOrderDetail({
subOrderCode
})
.then((data) => { .then((data) => {
let { let {
provinceName, provinceName,
...@@ -78,16 +91,23 @@ Page({ ...@@ -78,16 +91,23 @@ Page({
console.log(this.data) console.log(this.data)
}) })
.catch((err) => { .catch((err) => {
wx.p.sentry.reportError(`订单详情异常:${err.message}`, {subOrderCode,err}); wx.p.sentry.reportError(`订单详情异常:${err.message}`, {
subOrderCode,
err
});
}) })
.finally(() => { .finally(() => {
wx.hideLoading(); wx.hideLoading();
}); });
}, },
showExpressPop() { showExpressPop() {
this.setData({ this.setData({
isShowExpressPop: true, isShowExpressPop: true,
}); });
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
}, },
}); });
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!