提交 d17b3836 编写于 作者: api工厂's avatar api工厂

商品价格自动显示后台设置的会员价

上级 8743d6cd
module.exports = {
version: '10.0.1',
note: '一级分类点击后,不会默认显示全部的二级分类', // 这个为版本描述,无需修改
version: '10.1.0',
note: '商品价格自动显示后台设置的会员价', // 这个为版本描述,无需修改
subDomain: 'tz', // 此处改成你自己的专属域名。什么是专属域名?请看教程 https://www.it120.cc/help/qr6l4m.html
sdkAppID: 1400450467, // 腾讯实时音视频应用编号,请看教程 https://www.it120.cc/help/nxoqsl.html
}
\ No newline at end of file
......@@ -415,10 +415,8 @@ module.exports = {
pushNewGoods: function pushNewGoods(data) {
return request('/shop/goods/putOrUpdate', true, 'post', data);
},
goodsPrice: function goodsPrice(goodsId, propertyChildIds) {
return request('/shop/goods/price', true, 'post', {
goodsId: goodsId, propertyChildIds: propertyChildIds
});
goodsPriceV2: function goodsPriceV2(data) {
return request('/shop/goods/price', true, 'post', data);
},
goodsPriceDaily: function goodsPriceDaily(goodsId) {
var priceId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
......
......@@ -168,8 +168,6 @@ Page({
if (_categoryId) {
this.data.categorySelected.id = _categoryId
this.categories();
} else {
this.data.categorySelected.id = null
}
},
async addShopCar(e) {
......
......@@ -303,7 +303,12 @@ Page({
}
// 计算 sku 价格
if (this.data.canSubmit) {
const res = await WXAPI.goodsPrice(this.data.goodsDetail.basicInfo.id, this.data.propertyChildIds)
const token = wx.getStorageSync('token')
const res = await WXAPI.goodsPriceV2({
token: token ? token : '',
goodsId: this.data.goodsDetail.basicInfo.id,
propertyChildIds: this.data.propertyChildIds
})
if (res.code == 0) {
price = res.data.price
if (this.data.shopType == 'toPingtuan') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册