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