|
@@ -227,6 +227,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import tabBar from "../../components/tabBar/tabBar";
|
|
import tabBar from "../../components/tabBar/tabBar";
|
|
|
import ScrollNotice from '../../components/scroll-notice/ScrollNotice.vue';
|
|
import ScrollNotice from '../../components/scroll-notice/ScrollNotice.vue';
|
|
|
|
|
+import login from "../login/login";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -279,12 +280,12 @@ export default {
|
|
|
console.log('7777777777777777777777777777777',scene)
|
|
console.log('7777777777777777777777777777777',scene)
|
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
|
this.userInfo = uni.getStorageSync('userInfo');
|
|
this.userInfo = uni.getStorageSync('userInfo');
|
|
|
- this.scanCode(userInfo.otherId,scene);
|
|
|
|
|
|
|
+ this.scanCode(this.userInfo.otherId,scene);
|
|
|
},5000)
|
|
},5000)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 获取经纬度信息
|
|
// 获取经纬度信息
|
|
|
- this.getLocation();
|
|
|
|
|
|
|
+ // this.getLocation();
|
|
|
|
|
|
|
|
//公告信息
|
|
//公告信息
|
|
|
this.getNoticeListData();
|
|
this.getNoticeListData();
|
|
@@ -311,11 +312,13 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
|
scanCode(otherId,memberId){
|
|
scanCode(otherId,memberId){
|
|
|
|
|
+ console.log('绑定开始memberId=>'+memberId)
|
|
|
this.$api.scanCode({
|
|
this.$api.scanCode({
|
|
|
openId:otherId,
|
|
openId:otherId,
|
|
|
memberId:memberId
|
|
memberId:memberId
|
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
|
- console.log('用户绑定成功')
|
|
|
|
|
|
|
+ console.log('用户绑定成功',res)
|
|
|
|
|
+ console.log('绑定结束memberId=>'+memberId)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -452,22 +455,22 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
// 获取经纬度信息
|
|
// 获取经纬度信息
|
|
|
- getLocation() {
|
|
|
|
|
-
|
|
|
|
|
- uni.getLocation({
|
|
|
|
|
- type: 'gcj02',
|
|
|
|
|
- success: function (res) {
|
|
|
|
|
- var latitude = res.latitude; // 纬度
|
|
|
|
|
- var longitude = res.longitude; // 经度
|
|
|
|
|
- var speed = res.speed; // 速度
|
|
|
|
|
- var accuracy = res.accuracy; // 精确度
|
|
|
|
|
- // 在这里可以对位置信息进行处理
|
|
|
|
|
- console.log("纬度:" + latitude + ";经度" + longitude)
|
|
|
|
|
- this.reqParm.latitude = latitude
|
|
|
|
|
- this.reqParm.longitude = longitude
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // getLocation() {
|
|
|
|
|
+ //
|
|
|
|
|
+ // uni.getLocation({
|
|
|
|
|
+ // type: 'gcj02',
|
|
|
|
|
+ // success: function (res) {
|
|
|
|
|
+ // var latitude = res.latitude; // 纬度
|
|
|
|
|
+ // var longitude = res.longitude; // 经度
|
|
|
|
|
+ // var speed = res.speed; // 速度
|
|
|
|
|
+ // var accuracy = res.accuracy; // 精确度
|
|
|
|
|
+ // // 在这里可以对位置信息进行处理
|
|
|
|
|
+ // console.log("纬度:" + latitude + ";经度" + longitude)
|
|
|
|
|
+ // this.reqParm.latitude = latitude
|
|
|
|
|
+ // this.reqParm.longitude = longitude
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
|
|
+ // },
|
|
|
|
|
|
|
|
// 去选择门店
|
|
// 去选择门店
|
|
|
gotoStoreChoose() {
|
|
gotoStoreChoose() {
|