二期修改
parent
0cec80bb7d
commit
b41f15c2b1
|
@ -266,6 +266,7 @@
|
|||
this.useArr = [
|
||||
{src: '/static/img/public/shoucactive.png',title: '收藏'},
|
||||
{src: '/static/img/my/hez.png',title: '商务合作'},
|
||||
{src: '/static/img/my/kef.png',title: '售后申请'},
|
||||
]
|
||||
} else {
|
||||
this.useArr = [
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
<scroll-view v-if="shaiArrt.length!=0" scroll-y style="background-color: #FFFFFF;height: 100%;">
|
||||
<view>
|
||||
<view @tap="checkShait(item.id,indexs)"
|
||||
:class="shaiCurrentt==indexs?'dangShait colorb':'xbort color6'"
|
||||
:class="shaiCurrentt==indexs?'dangShait colorh':'xbort color6'"
|
||||
class="fon24 disac shaiEnd" v-for="(item,indexs) in shaiArrt"
|
||||
:key="indexs" style="padding: 30rpx;">
|
||||
<view class="flexs ">{{item.name}}</view>
|
||||
|
@ -119,7 +119,8 @@
|
|||
moIndex:0,
|
||||
pageShow:false,
|
||||
showJian:true,
|
||||
user_type:uni.getStorageSync('user_type')//权限
|
||||
user_type:uni.getStorageSync('user_type'),//权限
|
||||
daCateId:''
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
@ -308,7 +309,8 @@
|
|||
}
|
||||
this.shaiArr.push(obj)
|
||||
})
|
||||
if(this.shaiArr[0].children.length!=0 && this.shaiArr[0].children!=undefined){
|
||||
this.shaiArr.unshift({id:0,name:'全部',pid:0,hasChildren:false})
|
||||
if(this.shaiArr[0].hasChildren){
|
||||
this.shaiArr[0].children.forEach(item=>{
|
||||
let obj = {
|
||||
id:item.id,
|
||||
|
@ -318,6 +320,7 @@
|
|||
}
|
||||
this.shaiArrt.push(obj)
|
||||
})
|
||||
this.shaiArrt.unshift({id:0,name:'全部',pid:0,hasChildren:false})
|
||||
}
|
||||
}
|
||||
},error=>{})
|
||||
|
@ -363,7 +366,7 @@
|
|||
this.shaiCurrent = index
|
||||
this.shaiCurrentt = '-1'
|
||||
if(id=='') this.cid = 0
|
||||
else this.cid = id
|
||||
else this.daCateId = this.cid = id
|
||||
this.page = 1
|
||||
this.isZanw = true
|
||||
this.checkList()
|
||||
|
@ -378,11 +381,13 @@
|
|||
}
|
||||
this.shaiArrt.push(obj)
|
||||
})
|
||||
this.shaiArrt.unshift({id:0,name:'全部',pid:0,hasChildren:false})
|
||||
}
|
||||
},
|
||||
checkShait(id,index){
|
||||
this.shaiCurrentt = index
|
||||
if(id=='') this.cid = 0
|
||||
console.log(id);
|
||||
if(id==0) this.cid = this.daCateId
|
||||
else this.cid = id
|
||||
this.page = 1
|
||||
this.isZanw = true
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -64,5 +64,6 @@
|
|||
"usingComponents": {
|
||||
"status-nav": "/components/status-nav",
|
||||
"foot-tab": "/components/footTab"
|
||||
}
|
||||
},
|
||||
"sitemapLocation": "sitemap.json"
|
||||
}
|
|
@ -402,7 +402,8 @@ var QRCode = __webpack_require__(/*! ../../../jsFile/qrcode.js */ 51).default;va
|
|||
if (_this2.user_type == 'personal') {
|
||||
_this2.useArr = [
|
||||
{ src: '/static/img/public/shoucactive.png', title: '收藏' },
|
||||
{ src: '/static/img/my/hez.png', title: '商务合作' }];
|
||||
{ src: '/static/img/my/hez.png', title: '商务合作' },
|
||||
{ src: '/static/img/my/kef.png', title: '售后申请' }];
|
||||
|
||||
} else {
|
||||
_this2.useArr = [
|
||||
|
|
|
@ -251,8 +251,9 @@ __webpack_require__.r(__webpack_exports__);
|
|||
moIndex: 0,
|
||||
pageShow: false,
|
||||
showJian: true,
|
||||
user_type: uni.getStorageSync('user_type') //权限
|
||||
};
|
||||
user_type: uni.getStorageSync('user_type'), //权限
|
||||
daCateId: '' };
|
||||
|
||||
},
|
||||
onShow: function onShow() {
|
||||
this.$toolAll.tools.guoq();
|
||||
|
@ -440,7 +441,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
|
||||
_this3.shaiArr.push(obj);
|
||||
});
|
||||
if (_this3.shaiArr[0].children.length != 0 && _this3.shaiArr[0].children != undefined) {
|
||||
_this3.shaiArr.unshift({ id: 0, name: '全部', pid: 0, hasChildren: false });
|
||||
if (_this3.shaiArr[0].hasChildren) {
|
||||
_this3.shaiArr[0].children.forEach(function (item) {
|
||||
var obj = {
|
||||
id: item.id,
|
||||
|
@ -450,6 +452,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
|
||||
_this3.shaiArrt.push(obj);
|
||||
});
|
||||
_this3.shaiArrt.unshift({ id: 0, name: '全部', pid: 0, hasChildren: false });
|
||||
}
|
||||
}
|
||||
}, function (error) {});
|
||||
|
@ -495,7 +498,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
this.shaiCurrent = index;
|
||||
this.shaiCurrentt = '-1';
|
||||
if (id == '') this.cid = 0;else
|
||||
this.cid = id;
|
||||
this.daCateId = this.cid = id;
|
||||
this.page = 1;
|
||||
this.isZanw = true;
|
||||
this.checkList();
|
||||
|
@ -510,11 +513,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||
|
||||
_this5.shaiArrt.push(obj);
|
||||
});
|
||||
this.shaiArrt.unshift({ id: 0, name: '全部', pid: 0, hasChildren: false });
|
||||
}
|
||||
},
|
||||
checkShait: function checkShait(id, index) {
|
||||
this.shaiCurrentt = index;
|
||||
if (id == '') this.cid = 0;else
|
||||
console.log(id);
|
||||
if (id == 0) this.cid = this.daCateId;else
|
||||
this.cid = id;
|
||||
this.page = 1;
|
||||
this.isZanw = true;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue