Commit 469ae2e2 by LJM

js

parent da6a2904
......@@ -2,7 +2,7 @@
<view class="page-inquery">
<navElement title="询价记录">
<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>
</navElement>
<view class="tab row avarage verCenter">
......@@ -40,6 +40,7 @@ export default {
},
data() {
return {
kfqq: '',
curr: 0,
text_arr: [],
list: [],
......@@ -52,6 +53,11 @@ export default {
}
};
},
mounted() {
setTimeout(() => {
this.kfqq = this.$globalData && this.$globalData.kfqq_xk;
}, 500);
},
onShow() {
this.getData();
},
......
<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>
<script>
import { Api_Url } from '@/util/api.js';
import navElement from '@/components/nav.vue';
export default {
components: {
navElement
},
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() {
this.getData();
},
methods: {
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) {
this.list = res.data.list;
} else {
this.list = [];
this.title = res.data.status_val;
this.detail = res.data;
} 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 @@
<text class="tt">我的优惠券</text>
<text class="tip"></text>
</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>
<text class="tt">我的客服</text>
</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