【修复】修复APP/H5下sku不弹出的问题。

This commit is contained in:
大灰灰
2022-05-10 00:40:57 +08:00
parent be9e496006
commit 882a2ed1fd

View File

@@ -1,5 +1,6 @@
<template> <template>
<view class="coreshop-padding-bottom-10"> <view class="coreshop-padding-bottom-10">
<view>dsdsads</view>
<view class="select-item" v-for="(item, index) in specList" :key="index"> <view class="select-item" v-for="(item, index) in specList" :key="index">
<view class="coreshop-text-black coreshop-margin-10 coreshop-solid-bottom coreshop-padding-bottom-10">{{ index }}</view> <view class="coreshop-text-black coreshop-margin-10 coreshop-solid-bottom coreshop-padding-bottom-10">{{ index }}</view>
<view class="select-btn"> <view class="select-btn">
@@ -25,8 +26,16 @@
required: true required: true
} }
}, },
created() {
// #ifdef H5 || APP-PLUS
this.specList = JSON.parse(this.spesData);
// #endif
console.log(this.spesData);
console.log(this.specList);
},
watch: { watch: {
spesData: function (val) { spesData: function (val) {
console.log('watch');
let d = JSON.parse(val); let d = JSON.parse(val);
this.specList = d; this.specList = d;
} }