mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:13:26 +08:00
【修复】修复APP/H5下sku不弹出的问题。
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user