|
@@ -93,6 +93,19 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ uni.getNetworkType({
|
|
|
|
+ success: function (res) {
|
|
|
|
+ let none = res.networkType
|
|
|
|
+ console.log(res.networkType);
|
|
|
|
+ if(none == 'none'){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ title: '无网络,请连接网络后再试~',
|
|
|
|
+ position: "bottom"
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
this.getDatalist()
|
|
this.getDatalist()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -114,6 +127,7 @@
|
|
materialList: this.datalist
|
|
materialList: this.datalist
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
|
+ console.log(res)
|
|
this.dalist = res.data.data
|
|
this.dalist = res.data.data
|
|
for (let i = 0; i < this.dalist.length; i++) {
|
|
for (let i = 0; i < this.dalist.length; i++) {
|
|
this.total += parseInt(this.dalist[i].rewardMoney)
|
|
this.total += parseInt(this.dalist[i].rewardMoney)
|
|
@@ -122,6 +136,10 @@
|
|
|
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
console.log(err)
|
|
console.log(err)
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ title: '无网络,请连接网络后再试~'
|
|
|
|
+ })
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
// Loading.close()
|
|
// Loading.close()
|
|
})
|
|
})
|
|
@@ -155,9 +173,6 @@
|
|
data: {
|
|
data: {
|
|
storeId:this.$store.state.storeInfo.storeId,
|
|
storeId:this.$store.state.storeInfo.storeId,
|
|
userId:this.$store.state.storeInfo.userId,
|
|
userId:this.$store.state.storeInfo.userId,
|
|
- // scanAddress: '青岛市市北区橡胶谷-B栋', //地址
|
|
|
|
- // longitude: 120.3898355082192, //纬度
|
|
|
|
- // latitude: 36.14788760436011, //经度
|
|
|
|
scanAddress: this.address, //地址
|
|
scanAddress: this.address, //地址
|
|
longitude: this.longitude, //纬度
|
|
longitude: this.longitude, //纬度
|
|
latitude: this.latitude, //经度
|
|
latitude: this.latitude, //经度
|