Commit 469ae2e2 by LJM

js

parent da6a2904
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="page-inquery"> <view class="page-inquery">
<navElement title="询价记录"> <navElement title="询价记录">
<template slot="title-bar"> <template slot="title-bar">
<view style="text-align: right;"><text class="iconfont icon-qq"></text></view> <view style="text-align: right;"><a class="iconfont icon-qq" :href="kfqq" target="_blank"></a></view>
</template> </template>
</navElement> </navElement>
<view class="tab row avarage verCenter"> <view class="tab row avarage verCenter">
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
}, },
data() { data() {
return { return {
kfqq: '',
curr: 0, curr: 0,
text_arr: [], text_arr: [],
list: [], list: [],
...@@ -52,6 +53,11 @@ export default { ...@@ -52,6 +53,11 @@ export default {
} }
}; };
}, },
mounted() {
setTimeout(() => {
this.kfqq = this.$globalData && this.$globalData.kfqq_xk;
}, 500);
},
onShow() { onShow() {
this.getData(); this.getData();
}, },
......
<template> <template>
<view class="page-userOrderDetail">订单详情</view> <view class="page-userOrderDetail">
<navElement :title="title">
<template slot="title-bar">
<view style="text-align: right;"><a class="iconfont icon-qq" :href="kfqq" target="_blank"></a></view>
</template>
</navElement>
</view>
</template> </template>
<script> <script>
import { Api_Url } from '@/util/api.js'; import { Api_Url } from '@/util/api.js';
import navElement from '@/components/nav.vue';
export default { export default {
components: {
navElement
},
data() { data() {
return {}; return {
kfqq: '',
title: '',
order_id: '',
detail: {}
};
},
mounted() {
setTimeout(() => {
this.kfqq = this.$globalData && this.$globalData.kfqq_xk;
}, 500);
},
onLoad(options) {
this.order_id = options.order_id;
}, },
onShow() { onShow() {
this.getData(); this.getData();
}, },
methods: { methods: {
getData() { getData() {
this.request(Api_Url + '/order/lists', 'POST', this.searchParams, true, true).then(res => { this.request(Api_Url + '/order/info', 'POST', { order_id: this.order_id }, true, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.list = res.data.list; this.title = res.data.status_val;
} else { this.detail = res.data;
this.list = []; } else if (res.err_code == 21004) {
uni.showToast({
title: res.err_msg,
icon: 'none'
});
setTimeout(() => {
uni.navigateBack({
delta: 1
});
}, 2000);
} else if (res.err_code === 11012) {
uni.navigateTo({
url: '/login'
});
} }
}); });
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<text class="tt">我的优惠券</text> <text class="tt">我的优惠券</text>
<text class="tip"></text> <text class="tip"></text>
</navigator> </navigator>
<a class="box column rowCenter verCenter" :href="kfqq"> <a class="box column rowCenter verCenter" :href="kfqq" target="_blank">
<image src="../../static/qq.png"></image> <image src="../../static/qq.png"></image>
<text class="tt">我的客服</text> <text class="tt">我的客服</text>
</a> </a>
......
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 sign in to comment