|
@@ -140,6 +140,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { integralList, festivalList, notice, welfareType, integralTypes } from "@/api/allApi";
|
|
|
+import { getTab,setTab } from '@/utils/auth'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -168,6 +169,10 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ const Tab = getTab();
|
|
|
+ if(Tab == 'gift'){
|
|
|
+ this.activeName = 'giftNotice';
|
|
|
+ };
|
|
|
this.getIntegralTypes();
|
|
|
this.getWelfareList();
|
|
|
this.getList(this.activeName);
|
|
@@ -219,10 +224,11 @@ export default {
|
|
|
});
|
|
|
this.choseList = dataList;
|
|
|
this.curChosed = dataList[0].welfareId;
|
|
|
+ festivalList({ welfareId: this.curChosed }).then(response => {
|
|
|
+ console.log(response.data.data);
|
|
|
+ this.goodsList = response.data.data
|
|
|
+ })
|
|
|
}
|
|
|
-
|
|
|
- }).catch(() => {
|
|
|
- this.goodsList = []
|
|
|
})
|
|
|
},
|
|
|
choseProductAttributeType(item) {
|