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

增加商品浏览足迹

上级 15af712e
module.exports = {
version: '9.14.0',
note: '增加修改个人资料功能(头像、性别、昵称)', // 这个为版本描述,无需修改
version: '9.14.1',
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
......@@ -394,8 +394,10 @@ module.exports = {
return request('/shop/goods/list', true, 'post', data);
},
goodsDetail: function goodsDetail(id) {
var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
return request('/shop/goods/detail', true, 'get', {
id: id
id: id, token: token
});
},
goodsLimitations: function goodsLimitations(goodsId) {
......
......@@ -114,8 +114,9 @@ Page({
})
},
async getGoodsDetailAndKanjieInfo(goodsId) {
const token = wx.getStorageSync('token')
const that = this;
const goodsDetailRes = await WXAPI.goodsDetail(goodsId)
const goodsDetailRes = await WXAPI.goodsDetail(goodsId, token ? token : '')
const goodsKanjiaSetRes = await WXAPI.kanjiaSet(goodsId)
if (goodsDetailRes.code == 0) {
if (goodsDetailRes.data.properties) {
......
......@@ -12,7 +12,9 @@ Page({
this.getUserApiInfo()
},
onShow: function () {
AUTH.wxaCode().then(code => {
this.data.code = code
})
},
getPhoneNumber: function(e) {
if (!e.detail.errMsg || e.detail.errMsg != "getPhoneNumber:ok") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册