日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > vue >内容正文

vue

datatype未定义是什么意思_vue.js一直提示未定义

發布時間:2023/12/20 vue 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 datatype未定义是什么意思_vue.js一直提示未定义 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

.sum_price);

}

temp_status = 1;

}else{

for(var i=0;i

vm.list.status = 0;

}

vm.total_price = 0;

temp_status = 0;

}

//更新數據庫

api.ajax({

url: update_allcart_status_url,

method: 'post',

timeout: 30,

dataType: 'json',

returnAll: false,

data: {

values: {

token: $api.getStorage('token'),

deviceid: api.deviceId,

status: temp_status

}

}

}, function (ret, err) {

if (ret) {

console.log(JSON.stringify(ret));

} else {

api.alert(JSON.stringify(err));

}

});

},200);

},

//單選

single_check:function (index) {

var temp_status = null;

setTimeout(function () {

if(vm.list[index].status){

vm.total_price = Number(vm.total_price) + Number(vm.list[index].sum_price);

temp_status = 1;

}else{

vm.total_price = Number(vm.total_price) - Number(vm.list[index].sum_price);

temp_status = 0;

}

vm.for_all_checked_val();

console.log(vm.list[index].status);

//更新數據庫

api.ajax({

url: update_cart_status_url,

method: 'post',

timeout: 30,

dataType: 'json',

returnAll: false,

data: {

values: {

token: $api.getStorage('token'),

deviceid: api.deviceId,

goods_id: vm.list[index].goods_id,

status: temp_status

}

}

}, function (ret, err) {

if (ret) {

console.log(JSON.stringify(ret));

} else {

api.alert(JSON.stringify(err));

}

});

},200);

},

for_all_checked_val:function () {

for(var i=0;i

if(!vm.list.status){

vm.all_checked_val = false;

return false;

}else{

vm.all_checked_val = true;

}

}

},

//打開商品詳情

open_goods:function (info_id) {

api.openWin({

name: 'index_goods_detail',

url: 'widget://html/index/goods_detail.html',

pageParam: {

info_id: info_id

}

});

},

order_confirm:function () {

api.openWin({

name: 'cart_order_confirm',

url: 'widget://html/cart/order_confirm.html',

});

}

}

});

vm.init();

apiready = function () {

api.setRefreshHeaderInfo({

visible: true,

loadingImg: 'widget://image/refresh.png',

bgColor: '#f4f4f4',

textColor: '#333333',

textDown: '下拉刷新...',

textUp: '松開刷新...',

showTime: true

}, function(ret, err) {

vm.init();

setInterval("api.refreshHeaderLoadDone()",'1000');

});

vm.init();

//監聽網絡連接事件

api.addEventListener({

name: 'update_cart_list'

}, function(ret, err) {

vm.init();

});

};

這個是他原來的代碼,我只是把css和js的路徑改成我的路徑了,其他都沒動,但是一直報錯

總結

以上是生活随笔為你收集整理的datatype未定义是什么意思_vue.js一直提示未定义的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。