You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
378 B
20 lines
378 B
const my_assets = require('../../utils/my_assets.js') |
|
|
|
Page({ |
|
data: { |
|
my_asset: '', |
|
}, |
|
|
|
onLoad: function(params) { |
|
var that = this |
|
|
|
my_assets.getAsset(params.sku, function(result) { |
|
var data = getApp().store.sync(result.data) |
|
that.setData({'my_asset': data}) |
|
wx.setStorage({ |
|
key: "my_asset", |
|
data: data |
|
}) |
|
}) |
|
} |
|
})
|
|
|