|
|
@@ -104,17 +104,14 @@ export default {
|
|
|
size:10,
|
|
|
loading:false,
|
|
|
isMore:false
|
|
|
- }
|
|
|
+ },
|
|
|
+ optionData:null
|
|
|
}
|
|
|
},
|
|
|
- onLoad({store}) {
|
|
|
+ onLoad(options) {
|
|
|
app = this;
|
|
|
- var poiId = uni.getStorageSync("poiId");
|
|
|
- if (!poiId && !store) {
|
|
|
- app.storeId = "7644106137976965139";
|
|
|
- } else {
|
|
|
- app.storeId = poiId;
|
|
|
- }
|
|
|
+ app.storeId = options.store?options.store:'7644106137976965139';
|
|
|
+ app.optionData = options;
|
|
|
app.getData()
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -158,7 +155,7 @@ export default {
|
|
|
getData(){
|
|
|
if (!app.storeId) return ;
|
|
|
app.loading = true;
|
|
|
- Api.data({"store":app.storeId}).then((res)=>{
|
|
|
+ Api.data({"store":app.storeId,"option":JSON.stringify(app.optionData)}).then((res)=>{
|
|
|
app.loading = false;
|
|
|
if (res.code !== 1) {
|
|
|
return app.$dialog.showSuccess(res.msg)
|