11 changed files with 374 additions and 228 deletions
@ -0,0 +1,32 @@ |
|||||
|
<template> |
||||
|
<view style="display: flex;flex-direction: column;width: 100%;height: 100%;box-sizing: border-box;"> |
||||
|
|
||||
|
<NavBar ref="nav" navTitle=" " :showIcon="true" > |
||||
|
</NavBar> |
||||
|
<image :src="page.url" style="width: 100%;height: 100vh;" mode="scaleToFill"></image> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
page:{ |
||||
|
url:"", |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
onLoad(options) { |
||||
|
console.log("options",options) |
||||
|
this.page.url = JSON.parse(decodeURIComponent(options.url)) |
||||
|
console.log("as",this.page.url) |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
@ -0,0 +1,60 @@ |
|||||
|
<template> |
||||
|
<view style="display: flex;flex-direction: column; background: #F9F9F8;"> |
||||
|
|
||||
|
<NavBar ref="nav" navTitle=" " :showIcon="true"> |
||||
|
</NavBar> |
||||
|
|
||||
|
<image src="https://supervise.yxtsoft.com/lpk/image/recommend_icon.png" style="width: 100%;height: 60vw;"> |
||||
|
</image> |
||||
|
|
||||
|
<view style="margin-bottom: 50px; min-height: 70vh; background: #fff; margin-left: 15px;margin-right: 15px;margin-top: -20vw; |
||||
|
border-radius: 15px;"> |
||||
|
<!-- 滚动视图 --> |
||||
|
<scroll-view scroll-y="true" style="padding: 10px; width: 100%; height: 100%;" bindscrolltoupper="upper" bindscrolltolower="lower" |
||||
|
bindscroll="scroll"> |
||||
|
|
||||
|
</scroll-view> |
||||
|
</view> |
||||
|
|
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
styleObject: { |
||||
|
'padding-top': '10px', |
||||
|
'padding-bottom': '10px', |
||||
|
'border-radius': '15px', |
||||
|
'background': '#f2f2f2' |
||||
|
}, |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
// 分页的请求 |
||||
|
queryList(pageNo, pageSize) { |
||||
|
let _this = this |
||||
|
_this.$api.myOrderListByUserSid({ |
||||
|
"current": pageNo, |
||||
|
"size": pageSize, |
||||
|
"params": { |
||||
|
"customerSid": getApp().globalData.sid, |
||||
|
"state": '1', //0 未提货 1 已提货 |
||||
|
|
||||
|
} |
||||
|
}).then((resp) => { |
||||
|
// 添加数据源 |
||||
|
this.$refs.paging.complete(resp.records) |
||||
|
}).catch(e => { |
||||
|
// 出错了,点击重试 |
||||
|
_this.$refs.paging.complete(false); |
||||
|
}) |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
Loading…
Reference in new issue