Commit 31db5b07 authored by 李晓兵's avatar 李晓兵

'浏览器打开插件'

parents cddfef43 4e64c179
Pipeline #4116 canceled with stages
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="item.notice_type==2" class="detail-wrap" @click="goDetail"> <div v-if="item.notice_type==2" class="detail-wrap" @click="goDetail(item.notice_id)">
<div class="detail-wrap-content"> <div class="detail-wrap-content">
<span>查看详情</span> <span>查看详情</span>
<img src="@/assets/messageCenter/right-gray.png" > <img src="@/assets/messageCenter/right-gray.png" >
...@@ -119,9 +119,12 @@ export default { ...@@ -119,9 +119,12 @@ export default {
} }
} }
}, },
goDetail () { goDetail (e) {
this.$router.push({ this.$router.push({
name: 'RejectDetail', name: 'RejectDetail',
params: {
notice_id: e,
},
}) })
}, },
getInfo () { getInfo () {
......
...@@ -9,14 +9,41 @@ ...@@ -9,14 +9,41 @@
<h-content> <h-content>
<div class="userInfo">审批意见</div> <div class="userInfo">审批意见</div>
<div class="info-content"> <div class="info-content">
<p>XXXXXXXXX。请联系业务员重新提交申请,谢谢!</p> <p>{{ notice_detail }}</p>
</div> </div>
</h-content> </h-content>
</h-view> </h-view>
</template> </template>
<script> <script>
export default { export default {
data () {
return {
notice_detail: '',
}
},
beforeRouteEnter (to, from, next) {
next(vm => {
vm.getDetail()
})
},
methods: {
getDetail () {
let vm = this
let url = process.env.basePath + 'app_notice_detail_query'
let param = {
notice_id: vm.$route.params.notice_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.notice_detail = res.info.notice_detail
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
},
} }
</script> </script>
<style lang="less" > <style lang="less" >
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<h-view id="pay-page" class="public-style"> <h-view id="pay-page" class="public-style">
<h-header :proportion="[5,1,1]" class="bar-custom"> <h-header :proportion="[5,1,1]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="changePage"> <img src="@/assets/userBind/arrow.png" @click="changePage" >
<span>支付中心</span> <span>支付中心</span>
</div> </div>
</h-header> </h-header>
...@@ -16,19 +16,19 @@ ...@@ -16,19 +16,19 @@
<list-item :item-height="30"> <list-item :item-height="30">
<item> <item>
<div slot="name" class="name">时间</div> <div slot="name" class="name">时间</div>
<div slot="content">{{ date }}</div> <div slot="content">{{ info.order_date }}</div>
</item> </item>
<item> <item>
<div slot="name" class="name">姓名</div> <div slot="name" class="name">姓名</div>
<div slot="content">{{ userName }}</div> <div slot="content">{{ info.pay_amount_name }}</div>
</item> </item>
<item> <item>
<div slot="name" class="name">订单号</div> <div slot="name" class="name">订单号</div>
<div slot="content">{{ money|orderNum }}</div> <div slot="content">{{ info.order_number }}</div>
</item> </item>
<item> <item>
<div slot="name" class="name">还款金额</div> <div slot="name" class="name">还款金额</div>
<div slot="content">{{ money|currency }}</div> <div slot="content">{{ info.orderamount|currency }}</div>
</item> </item>
</list-item> </list-item>
</div> </div>
...@@ -43,19 +43,19 @@ ...@@ -43,19 +43,19 @@
<list-item :item-height="30"> <list-item :item-height="30">
<item> <item>
<div slot="name" class="name">时间</div> <div slot="name" class="name">时间</div>
<div slot="content">{{ date }}</div> <div slot="content">{{ info.order_date }}</div>
</item> </item>
<item> <item>
<div slot="name" class="name">姓名</div> <div slot="name" class="name">姓名</div>
<div slot="content">{{ userName }}</div> <div slot="content">{{ info.pay_amount_name }}</div>
</item> </item>
<item> <item>
<div slot="name" class="name">订单号</div> <div slot="name" class="name">订单号</div>
<div slot="content">{{ money|orderNum }}</div> <div slot="content">{{ info.order_number }}</div>
</item> </item>
<item> <item>
<div slot="name" class="name">还款金额</div> <div slot="name" class="name">还款金额</div>
<div slot="content">{{ money|currency }}</div> <div slot="content">{{ info.orderamount|currency }}</div>
</item> </item>
</list-item> </list-item>
</div> </div>
...@@ -72,6 +72,13 @@ export default { ...@@ -72,6 +72,13 @@ export default {
return { return {
name: '', name: '',
url: '', url: '',
info: {
order_number: '',
pay_amount_name: '',
order_date: '',
orderamount: '',
order_id: '',
},
showSelect: false, showSelect: false,
showpay: true, showpay: true,
isSuccess: false, isSuccess: false,
...@@ -104,6 +111,22 @@ export default { ...@@ -104,6 +111,22 @@ export default {
vm.showpay = false vm.showpay = false
}, 3000) }, 3000)
}, },
getDetail () {
let vm = this
let url = process.env.basePath + 'order_info_query'
let param = {
order_id: vm.$route.params.order_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
Object.assign(vm.info, res.info)
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
searchResult () { searchResult () {
let vm = this let vm = this
let url = process.env.basePath + 'merchant_query_order' let url = process.env.basePath + 'merchant_query_order'
...@@ -114,6 +137,7 @@ export default { ...@@ -114,6 +137,7 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.getDetail()
if (res.return_code !== '0000') { if (res.return_code !== '0000') {
vm.isFaild = true vm.isFaild = true
vm.isSuccess = false vm.isSuccess = false
...@@ -142,17 +166,17 @@ export default { ...@@ -142,17 +166,17 @@ export default {
color: #FFF; color: #FFF;
border-radius: 6px; border-radius: 6px;
} }
.box{ .box {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-wrap:wrap; flex-wrap: wrap;
} }
button{ button {
color: #fff; color: #fff;
background-color: @headerColor; background-color: @headerColor;
width:50%; width: 50%;
height:40px; height: 40px;
border-radius: 5px; border-radius: 5px;
} }
.my-content { .my-content {
...@@ -200,7 +224,7 @@ export default { ...@@ -200,7 +224,7 @@ export default {
} }
} }
} }
.content{ .content {
background-color: #fff; background-color: #fff;
} }
} }
......
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