|
@@ -172,7 +172,7 @@
|
|
|
</view>
|
|
|
|
|
|
|
|
|
- <view class="signOut" @click="signOut">退出登录</view>
|
|
|
+ <!-- <view class="signOut" @click="signOut">退出登录</view> -->
|
|
|
|
|
|
|
|
|
</view>
|
|
@@ -196,20 +196,20 @@
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
var that = this;
|
|
|
- uni.getLocation({
|
|
|
- type: 'gcj02',
|
|
|
- success: function(res) {
|
|
|
- console.log(res)
|
|
|
- that.location.lat = res.latitude
|
|
|
- that.location.lng = res.longitude
|
|
|
+ // uni.getLocation({
|
|
|
+ // type: 'gcj02',
|
|
|
+ // success: function(res) {
|
|
|
+ // console.log(res)
|
|
|
+ // that.location.lat = res.latitude
|
|
|
+ // that.location.lng = res.longitude
|
|
|
|
|
|
- that.queryMyDetail()
|
|
|
+ // that.queryMyDetail()
|
|
|
|
|
|
- },
|
|
|
- fail(err) {
|
|
|
+ // },
|
|
|
+ // fail(err) {
|
|
|
|
|
|
- }
|
|
|
- });
|
|
|
+ // }
|
|
|
+ // });
|
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
|
//const wxOpenData = uni.getStorageSync("wxOpenData");
|
|
|
const wxOpenData = this.$store.state.wxOpenData;
|
|
@@ -229,7 +229,7 @@
|
|
|
map() {
|
|
|
console.log("打开地图")
|
|
|
var that = this;
|
|
|
- if (!that.location.lat || !that.location.lng) {
|
|
|
+ if (!that.numList.shopInfo.lat || !that.numList.shopInfo.lng) {
|
|
|
uni.showToast({
|
|
|
title: '该店铺未设置定位',
|
|
|
icon: 'none',
|
|
@@ -237,8 +237,8 @@
|
|
|
});
|
|
|
} else {
|
|
|
uni.openLocation({
|
|
|
- latitude: Number(that.location.lat),
|
|
|
- longitude: Number(that.location.lng),
|
|
|
+ latitude: Number(that.numList.shopInfo.lat),
|
|
|
+ longitude: Number(that.numList.shopInfo.lng),
|
|
|
name: that.numList.shopInfo.shopName,
|
|
|
address: that.numList.shopInfo.provinceName+that.numList.shopInfo.cityName+that.numList.shopInfo.areaName+that.numList.shopInfo.address,
|
|
|
success: function() {
|
|
@@ -467,7 +467,9 @@
|
|
|
padding-top: 30rpx;
|
|
|
}
|
|
|
|
|
|
- .orderNum {
|
|
|
+ .orderNum {
|
|
|
+ width: 36rpx;
|
|
|
+ height: 26rpx;
|
|
|
line-height: 26rpx;
|
|
|
background: #FF0000;
|
|
|
padding: 0 8rpx;
|