|
|
@ -384,6 +384,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
import { getSceneData } from '@/core/app' |
|
|
|
import GoodsPosterPopup from '@/components/goods-poster-popup' |
|
|
|
import GoodsPosterPopup from '@/components/goods-poster-popup' |
|
|
|
import * as GoodsApi from '@/api/goods' |
|
|
|
import * as GoodsApi from '@/api/goods' |
|
|
|
import * as goodsCar from '@/api/cart.js' |
|
|
|
import * as goodsCar from '@/api/cart.js' |
|
|
@ -462,6 +463,8 @@ |
|
|
|
that.selectShop = selectShop |
|
|
|
that.selectShop = selectShop |
|
|
|
that.selectShop.price = that.selectShop.price / 100 |
|
|
|
that.selectShop.price = that.selectShop.price / 100 |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
// 记录query参数 |
|
|
|
|
|
|
|
this.onRecordQuery(options) |
|
|
|
// uni.$on("checkSelectShop", function(selectShop) { |
|
|
|
// uni.$on("checkSelectShop", function(selectShop) { |
|
|
|
// console.log("checkSelectShop1",selectShop) |
|
|
|
// console.log("checkSelectShop1",selectShop) |
|
|
|
// if(selectShop && selectShop.goods_sku_id){ |
|
|
|
// if(selectShop && selectShop.goods_sku_id){ |
|
|
@ -489,6 +492,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
// 记录query参数 |
|
|
|
|
|
|
|
onRecordQuery(query) { |
|
|
|
|
|
|
|
const scene = getSceneData(query) |
|
|
|
|
|
|
|
this.goodsId = query.goodsId ? parseInt(query.goodsId) : parseInt(scene.gid) |
|
|
|
|
|
|
|
}, |
|
|
|
getprice(e) { |
|
|
|
getprice(e) { |
|
|
|
let that = this |
|
|
|
let that = this |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|