Commit 85085964 by LJM

全局变量

parent 83306b5e
...@@ -34,7 +34,6 @@ export default { ...@@ -34,7 +34,6 @@ export default {
type: String, type: String,
default: '' default: ''
}, },
follow: { follow: {
type: String | Boolean, type: String | Boolean,
default: 'all' default: 'all'
...@@ -57,9 +56,7 @@ export default { ...@@ -57,9 +56,7 @@ export default {
foll: {} foll: {}
}; };
}, },
onShow() {},
mounted() { mounted() {
this.url = this.$globalData.kefu;
const systemInfo = uni.getSystemInfoSync() || {}; const systemInfo = uni.getSystemInfoSync() || {};
this.$options.safeArea = { this.$options.safeArea = {
left: 0, left: 0,
......
<template> <template>
<view class="page-userOrder"> <view class="page-userOrder">
<drag-button-follow follow="left,right" className="drag-button" class="drag-button"></drag-button-follow> <drag-button-follow follow="left,right" className="drag-button" class="drag-button" :url="kfqq_xk"></drag-button-follow>
<view class="top"> <view class="top">
<view class="head row bothSide verCenter"> <view class="head row bothSide verCenter">
<view class="left row verCenter"> <view class="left row verCenter">
...@@ -153,6 +153,7 @@ export default { ...@@ -153,6 +153,7 @@ export default {
format: true format: true
}); });
return { return {
kfqq_xk: '',
time: currentDate, time: currentDate,
arr: ['全部', '待付款', '待收货', '已完结订单'], arr: ['全部', '待付款', '待收货', '已完结订单'],
curr: 0, curr: 0,
...@@ -171,6 +172,9 @@ export default { ...@@ -171,6 +172,9 @@ export default {
} }
}; };
}, },
onLoad() {
this.kfqq_xk = this.$globalData && this.$globalData.kefu;
},
onShow() { onShow() {
this.getData(); this.getData();
}, },
......
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
}, },
onShow() { onShow() {
this.getData(); this.getData();
this.kfqq_xk = this.$globalData.kefu; this.kfqq_xk = this.$globalData && this.$globalData.kefu;
}, },
methods: { methods: {
/** /**
......
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