Commit 85085964 by LJM

全局变量

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