|
|
@@ -232,10 +232,19 @@ export default {
|
|
|
|
|
|
//涉及记住花材的代码和流程,请全项目搜索关键词remember_item
|
|
|
if(uni.getStorageSync('selectList_'+pageType+'_target_'+currentCustomId)){
|
|
|
+ //console.log(this.getSelectInfo[pageType])
|
|
|
+ //console.log(uni.getStorageSync('selectList_'+pageType+'_target_'+currentCustomId))
|
|
|
this.setSelectInfoByType({ type: pageType, info: uni.getStorageSync('selectList_'+pageType+'_target_'+currentCustomId)})
|
|
|
- }
|
|
|
+ //console.log(this.getSelectInfo[pageType])
|
|
|
+ }else{
|
|
|
+ // this.$store.commit('flushSelectItem',{})
|
|
|
+ // uni.removeStorageSync('selectList_'+pageType+'_target_'+currentCustomId)
|
|
|
+ // console.log(this.getSelectInfo)
|
|
|
+ // console.log(this.getSelectInfo[pageType])
|
|
|
+ // console.log(uni.getStorageSync('selectList_'+pageType+'_target_'+currentCustomId))
|
|
|
+ }
|
|
|
|
|
|
- let currentList = this.getSelectInfo[this.pageType] || [];
|
|
|
+ let currentList = this.getSelectInfo[pageType] || [];
|
|
|
|
|
|
let index = this.allProduct.findIndex(ele => Number(ele.id) == Number(productIdCode))
|
|
|
if(index == -1){
|