更改静态资源host
This commit is contained in:
+21
-12
@@ -52,28 +52,37 @@ Component({
|
||||
items: [ ],
|
||||
dialog_visible: false,
|
||||
dialog_content: "",
|
||||
usertype: "",
|
||||
usertype: 2,
|
||||
index_info: "",
|
||||
wenzhen_info: "",
|
||||
my_info: "",
|
||||
next_url: "/Pages/yishi/identity/index",
|
||||
info_inter: 0
|
||||
},
|
||||
ready() {
|
||||
const usertype = wx.getStorageSync('usertype')
|
||||
if (usertype == 3) {
|
||||
|
||||
lifetimes: {
|
||||
attached(){
|
||||
this.setData({
|
||||
usertype: usertype,
|
||||
items: this.data.listAll.list1
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
usertype: usertype,
|
||||
usertype: 2,
|
||||
items: this.data.listAll.list2
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
ready() {
|
||||
const usertype = wx.getStorageSync('usertype')
|
||||
if (usertype == 3) {
|
||||
this.setData({
|
||||
usertype: 3,
|
||||
items: this.data.listAll.list1
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
usertype: 2,
|
||||
items: this.data.listAll.list2
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
startInterval(){
|
||||
let _this = this;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
<van-tabbar active="{{ active }}" bind:change="onChange"
|
||||
active-color="#3CC7C0" inactive-color="#999999" wx:if="{{usertype == 2}}" >
|
||||
<van-tabbar active="{{ active }}" bind:change="onChange" z-index="9999"
|
||||
active-color="#3CC7C0" inactive-color="#999999" wx:if="{{usertype != 3}}" >
|
||||
|
||||
<van-tabbar-item info="{{index_info}}" data-url="{{listAll.list2[0].pagePath}}" url="{{listAll.list2[0].pagePath}}">
|
||||
<image
|
||||
@@ -57,7 +57,7 @@ active-color="#3CC7C0" inactive-color="#999999" wx:if="{{usertype == 2}}" >
|
||||
</van-tabbar-item>
|
||||
</van-tabbar>
|
||||
|
||||
<van-tabbar active="{{ active }}" bind:change="onChange"
|
||||
<van-tabbar active="{{ active }}" bind:change="onChange" z-index="9999"
|
||||
active-color="#74A2FA" inactive-color="#999999" wx:if="{{usertype == 3}}" >
|
||||
<van-tabbar-item info="{{my_info}}" data-url="{{listAll.list1[0].pagePath}}" url="{{listAll.list1[0].pagePath}}">
|
||||
<image
|
||||
|
||||
Reference in New Issue
Block a user