diff --git a/components/modalView/index.js b/components/modalView/index.js
index f4ebe32..df4e7cc 100644
--- a/components/modalView/index.js
+++ b/components/modalView/index.js
@@ -51,7 +51,21 @@ Component({
},
show:{
type:Boolean,
- value:false
+ value:false,
+ observer(show){
+ if(show){
+ const windowInfo = wx.getWindowInfo();
+ this.createSelectorQuery().select('#modalViewMain').boundingClientRect((res)=>{
+ const viewHeight = res.height;
+ this.setData({
+ dynamicsStyle:`top:${(windowInfo.windowHeight-viewHeight)/2}px;height:${viewHeight}px;`
+ })
+ }).exec();
+ }
+ this.setData({
+ _show:show
+ })
+ }
},
overlayClose:{
type:Boolean,
@@ -60,7 +74,15 @@ Component({
showCloseButton:{
type:Boolean,
value:false
- }
+ },
+ autoFocus:{
+ type:Boolean,
+ value:false
+ },
+ useInput:{
+ type:Boolean,
+ value:false
+ },
},
/**
* 组件的初始数据
@@ -112,21 +134,5 @@ Component({
attached(){
console.log('init model view');
}
- },
- observers:{
- "show"(show){
- if(show){
- const windowInfo = wx.getWindowInfo();
- this.createSelectorQuery().select('#modalViewMain').boundingClientRect((res)=>{
- const viewHeight = res.height;
- this.setData({
- dynamicsStyle:`top:${(windowInfo.windowHeight-viewHeight)/2}px;height:${viewHeight}px;`
- })
- }).exec();
- }
- this.setData({
- _show:show
- })
- }
}
})
\ No newline at end of file
diff --git a/components/modalView/index.wxml b/components/modalView/index.wxml
index e5091fb..f95bdcb 100644
--- a/components/modalView/index.wxml
+++ b/components/modalView/index.wxml
@@ -11,7 +11,9 @@
-
+
{{content}}
diff --git a/pages/order-detail/index.wxml b/pages/order-detail/index.wxml
index df42ba9..50ffd86 100644
--- a/pages/order-detail/index.wxml
+++ b/pages/order-detail/index.wxml
@@ -100,6 +100,10 @@
取件数量
{{orderDetail.package_count}}
+
+ 加价金额
+ {{orderDetail.additional_fee_amount}}
+
订单金额
{{orderDetail.original_amount}}