|
@@ -140,7 +140,7 @@ Page({
|
|
let that = this;
|
|
let that = this;
|
|
if (wx.getStorageSync('storeId')) {
|
|
if (wx.getStorageSync('storeId')) {
|
|
// console.log(wx.getStorageSync('userId'));
|
|
// console.log(wx.getStorageSync('userId'));
|
|
- console.log(wx.getStorageSync('storeId'));
|
|
|
|
|
|
+ // console.log(wx.getStorageSync('storeId'));
|
|
// console.log(wx.getStorageSync('merchSn'));
|
|
// console.log(wx.getStorageSync('merchSn'));
|
|
if (wx.getStorageSync('userId')){
|
|
if (wx.getStorageSync('userId')){
|
|
wx.request({
|
|
wx.request({
|
|
@@ -170,11 +170,11 @@ Page({
|
|
// 同步门店
|
|
// 同步门店
|
|
syncStore: function () {
|
|
syncStore: function () {
|
|
let that = this;
|
|
let that = this;
|
|
- console.log(wx.getStorageSync('merchSn'));
|
|
|
|
|
|
+ // console.log(wx.getStorageSync('merchSn'));
|
|
//获取附件门店信息
|
|
//获取附件门店信息
|
|
util.getLocation((lng, lat) => {
|
|
util.getLocation((lng, lat) => {
|
|
wx.setStorageSync('location', JSON.stringify({ lng, lat }));
|
|
wx.setStorageSync('location', JSON.stringify({ lng, lat }));
|
|
- util.request(api.NearbyList, { longitude: lng, latitude: lat, storeId: that.data.storeId }).then((res) => {
|
|
|
|
|
|
+ util.request(api.NearbyList, { longitude: lng, latitude: lat, storeId: 7 }).then((res) => {
|
|
let nlist = res.data;
|
|
let nlist = res.data;
|
|
// console.log(nlist);
|
|
// console.log(nlist);
|
|
wx.removeStorageSync('nearStoreList');
|
|
wx.removeStorageSync('nearStoreList');
|