|
@@ -60,7 +60,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="content-four">
|
|
<view class="content-four">
|
|
- 注:请完善请完善请完善请完善请完善请完善请完善
|
|
|
|
|
|
+ 注:所有的奖励均在达到签约任务后给予兑现。
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<u-toast ref="repeat" position="bottom" />
|
|
<u-toast ref="repeat" position="bottom" />
|
|
@@ -97,7 +97,7 @@
|
|
rewardIntegral: '', //奖励积分
|
|
rewardIntegral: '', //奖励积分
|
|
longitude: '', //经度
|
|
longitude: '', //经度
|
|
latitude: '', //纬度
|
|
latitude: '', //纬度
|
|
- address: '' //中文地址
|
|
|
|
|
|
+ whole:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -122,7 +122,8 @@
|
|
url: 'pages/home/scancode/index'
|
|
url: 'pages/home/scancode/index'
|
|
})
|
|
})
|
|
uni.$emit('data', {
|
|
uni.$emit('data', {
|
|
- lisi: this.datalist
|
|
|
|
|
|
+ lisi: this.datalist,
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
@@ -146,6 +147,7 @@
|
|
}, 1000);
|
|
}, 1000);
|
|
uni.$on('update', data => {
|
|
uni.$on('update', data => {
|
|
this.datalist = data.materialList
|
|
this.datalist = data.materialList
|
|
|
|
+ this.whole = data
|
|
request({
|
|
request({
|
|
url: '/storeScan/getTyreReword',
|
|
url: '/storeScan/getTyreReword',
|
|
method: 'Post',
|
|
method: 'Post',
|
|
@@ -155,7 +157,7 @@
|
|
materialList: this.datalist
|
|
materialList: this.datalist
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
-
|
|
|
|
|
|
+ console.log(res)
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
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++) {
|
|
@@ -182,7 +184,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
location() {
|
|
location() {
|
|
-
|
|
|
|
|
|
+ console.log(this.whole)
|
|
uni.getNetworkType({
|
|
uni.getNetworkType({
|
|
success: function(res) {
|
|
success: function(res) {
|
|
let none = res.networkType
|
|
let none = res.networkType
|
|
@@ -197,33 +199,7 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
let this_s = this
|
|
let this_s = this
|
|
- uni.getLocation({
|
|
|
|
- type: 'wgs84', // 返回国测局坐标
|
|
|
|
- geocode: true,
|
|
|
|
- success: function(res) {
|
|
|
|
-
|
|
|
|
- this_s.longitude = res.longitude
|
|
|
|
- this_s.latitude = res.latitude
|
|
|
|
- this_s.address = res.address.country + res.address.province + res.address.city + res.address.district + res.address
|
|
|
|
- .street
|
|
|
|
- if (res.address.length == 0) {
|
|
|
|
- uni.showToast({
|
|
|
|
- icon: 'none',
|
|
|
|
- title: '获取地址失败, 请检查是否开启定位权限~~',
|
|
|
|
- position: "bottom"
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- this_s.Submit()
|
|
|
|
- },
|
|
|
|
- fail: function(e) {
|
|
|
|
- uni.showToast({
|
|
|
|
- icon: 'none',
|
|
|
|
- title: '获取地址失败, 请检查是否开启定位权限~~'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this_s.Submit()
|
|
},
|
|
},
|
|
Submit() {
|
|
Submit() {
|
|
this.show = true;
|
|
this.show = true;
|
|
@@ -233,13 +209,13 @@
|
|
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: this.address, //地址
|
|
|
|
- longitude: this.longitude, //纬度
|
|
|
|
- latitude: this.latitude, //经度
|
|
|
|
|
|
+ scanAddress: this.whole.address, //地址
|
|
|
|
+ longitude: this.whole.degree.x,
|
|
|
|
+ latitude: this.whole.degree.y,
|
|
materialList: this.datalist //轮胎参数
|
|
materialList: this.datalist //轮胎参数
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
-
|
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
|
if (res.data.code == 500) {
|
|
if (res.data.code == 500) {
|
|
this.$refs.repeat.show({
|
|
this.$refs.repeat.show({
|