56 lines
1.1 KiB
JavaScript
56 lines
1.1 KiB
JavaScript
mui.plusReady(function(){
|
|
|
|
})
|
|
|
|
const app = new Vue({
|
|
el: '#app',
|
|
data() {
|
|
return {
|
|
orderList: [
|
|
],
|
|
location: [0,0],
|
|
}
|
|
},
|
|
methods: {
|
|
loadData() {
|
|
// $.ajax({
|
|
// url: qlgUrl("app/note/index"),
|
|
// method: "GET",
|
|
// dataType: 'json',
|
|
// success: (res) => {
|
|
// if(res.status == 1){
|
|
// this.noteData = res.data;
|
|
// }else{
|
|
// mui.alert(res.msg);
|
|
// }
|
|
// },
|
|
// error: function(err){
|
|
// mui.alert("请求失败");
|
|
// self.back();
|
|
// }
|
|
// });
|
|
this.orderList = [
|
|
{
|
|
from_address: '测试dizhi 测试地址测试地址测试地址测试地址测试地址测试地址',
|
|
to_address: '测试地址测试地址测试地址测试地址测试地址测试地址',
|
|
deliver_fee: '8.00',
|
|
fee: '18.00',
|
|
before: '2020/20/20 11:20',
|
|
shop_phone: '15270565303',
|
|
buyer_phone: '15270565304',
|
|
|
|
}
|
|
]
|
|
},
|
|
},
|
|
created() {
|
|
this.loadData();
|
|
plus.geolocation.getCurrentPosition((p) => {
|
|
console.log(p.coords.latitude);
|
|
console.log(p.coords.longitude);
|
|
this.location=[p.coords.latitude, p.coords.longitude];
|
|
},function (err) {
|
|
|
|
})
|
|
},
|
|
}) |