shop-card 路径错误

This commit is contained in:
sugar1569 2018-09-30 16:08:52 +08:00
parent cb294655d9
commit ecc32b229a
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@
window.$productAttr = <?php echo json_encode($productAttr) ?: '[]'; ?>; window.$productAttr = <?php echo json_encode($productAttr) ?: '[]'; ?>;
window.$productValue = <?php echo json_encode($productValue) ?: '{}'; ?>;</script> window.$productValue = <?php echo json_encode($productValue) ?: '{}'; ?>;</script>
<script <script
type="text/javascript"> requirejs(['vue', 'axios', 'helper', 'store', '{__WAP_PATH}crmeb/module/store/shop-card'], function (Vue, axios, $h, storeApi, shopCard) { type="text/javascript"> requirejs(['vue', 'axios', 'helper', 'store', '{__WAP_PATH}crmeb/module/store/shop-card.js'], function (Vue, axios, $h, storeApi, shopCard) {
new Vue({ new Vue({
el: "#store_detail", el: "#store_detail",
components: {'shop-card': shopCard}, components: {'shop-card': shopCard},

View File

@ -47,7 +47,7 @@
</div> </div>
<script> <script>
var base = new Base64(); var base = new Base64();
requirejs(['vue','store','better-scroll','helper','{__WAP_PATH}crmeb/module/store/shop-card'],function(Vue,storeApi,BScroll,$h,shopCard){ requirejs(['vue','store','better-scroll','helper','{__WAP_PATH}crmeb/module/store/shop-card.js'],function(Vue,storeApi,BScroll,$h,shopCard){
shopCard.install(Vue); shopCard.install(Vue);
var cid = "{$cid}"; var cid = "{$cid}";
new Vue({ new Vue({