|
|
@@ -15,41 +15,30 @@
|
|
|
<view class="card-body-box">
|
|
|
<view class="body-title">请选择学习等级</view>
|
|
|
<view class="dj-item-row">
|
|
|
- <ezyActiveVue v-for="cItem in item.levelList" class="ezy-btn-active dj-item"
|
|
|
- @aclick="handleSelect(cItem)" :class="{active: cItem.active}">{{cItem.levelName}}</ezyActiveVue>
|
|
|
+ <ezyActiveVue v-for="cItem in item.levelList" class="ezy-btn-active dj-item" @aclick="handleSelect(cItem)" :class="{active: cItem.active}">{{cItem.levelName}}</ezyActiveVue>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import * as pinduHttp from "@/api/chanpinZiRanPinDu.js"
|
|
|
import ezyActiveVue from "@/components/ezyActive/ezyActive.vue";
|
|
|
-import cacheManager from "@/utils/cacheManager.js";
|
|
|
const porps = defineProps({
|
|
|
item: {
|
|
|
type: Object
|
|
|
}
|
|
|
})
|
|
|
-// 选择产品等级
|
|
|
+ // 选择产品等级
|
|
|
function handleSelect(item) {
|
|
|
porps.item.levelList.forEach(citem => {citem.active = false; if (item.dengjiId == citem.dengjiId) {citem.active = true}})
|
|
|
- const opt = {
|
|
|
- dengjiId: item.dengjiId,
|
|
|
- }
|
|
|
- pinduHttp.getChanpin3DengjiSave(opt).then(res => {
|
|
|
- if (!res.data) {
|
|
|
- return;
|
|
|
- }
|
|
|
- cacheManager.get('contentInfo') && cacheManager.remove('contentInfo');
|
|
|
- // 跳转
|
|
|
- uni.switchTab({
|
|
|
- url: "/pages/chanpinneirong/index"
|
|
|
- })
|
|
|
+
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/chanpinXuanze/cp3/banben?dengjiId=${item.dengjiId}`
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|