...
|
...
|
@@ -29,20 +29,15 @@ Component({ |
|
|
* 更新属性和数据的方法与更新页面数据的方法类似
|
|
|
*/
|
|
|
methods: {
|
|
|
init(storeId,productId) {
|
|
|
if(productId){
|
|
|
this.setData({
|
|
|
productId
|
|
|
})
|
|
|
}
|
|
|
init() {
|
|
|
return new Promise((resolve) => {
|
|
|
let param = {};
|
|
|
this.dialog = this.selectComponent("#dialog");
|
|
|
wx.getLocation({
|
|
|
success: (res) => {
|
|
|
param.user_latitude = '32.049999';
|
|
|
param.user_longitude = '118.790001';
|
|
|
param.store_id = this.properties.storeId || storeId;
|
|
|
param.user_latitude = res.latitude;
|
|
|
param.user_longitude = res.longitude;
|
|
|
param.store_id = this.properties.storeId;
|
|
|
storeApi.checkStore(param, () => {
|
|
|
wx.hideLoading();
|
|
|
}).then(r => {
|
...
|
...
|
|