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

'浏览器打开插件'

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