diff --git a/buyer/.npmrc b/buyer/.npmrc new file mode 100644 index 00000000..c1abc22c --- /dev/null +++ b/buyer/.npmrc @@ -0,0 +1,5 @@ +# 默认依赖包指定淘宝源 +registry=https://registry.npm.taobao.org/ +sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ +phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ +electron_mirror=https://npm.taobao.org/mirrors/electron/ \ No newline at end of file diff --git a/buyer/.yarnrc b/buyer/.yarnrc new file mode 100644 index 00000000..bd59a285 --- /dev/null +++ b/buyer/.yarnrc @@ -0,0 +1,5 @@ +registry "https://registry.npmmirror.com" +sass_binary_site "https://npmmirror.com/mirrors/node-sass" +phantomjs_cdnurl "https://npmmirror.com/mirrors/phantomjs" +electron_mirror "https://npmmirror.com/mirrors/electron" + diff --git a/buyer/src/api/common.js b/buyer/src/api/common.js index def96a12..68bebf68 100644 --- a/buyer/src/api/common.js +++ b/buyer/src/api/common.js @@ -81,3 +81,14 @@ export function articleDetail (id) { method: Method.GET }); } + + + + +// 获取IM接口前缀 +export function getIMDetail () { + return request({ + url: `${commonUrl}/common/IM`, + method: Method.GET + }); +} diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index 5424a266..2bff47f4 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -224,7 +224,7 @@ export default { count: 1, // 商品数量 imgIndex: 0, // 展示图片下标 currentSelceted: [], // 当前商品sku - imgList: [{}], // 商品图片列表 + imgList: [{url:''}], // 商品图片列表 skuDetail: this.detail.data, // sku详情 goodsSpecList: this.detail.specs, // 商品spec promotionMap: { diff --git a/buyer/src/config/index.js b/buyer/src/config/index.js index 17a6b2f3..7569684e 100644 --- a/buyer/src/config/index.js +++ b/buyer/src/config/index.js @@ -1,30 +1,12 @@ module.exports = { - /** - * @description 配置显示在浏览器标签的title、底部信息、部分信息展示的值 - */ - title: "lili-shop", - /** - * @description icp证 - */ - icpCard: "", - - company:{ - href:"https://pickmall.cn", - name:"北京宏业汇成科技有限公司" - }, - /** - * @description icp备案号 - */ - icpMessage: "京ICP备20009696号-1", - /** - * @description 是否使用国际化,默认为false - * 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'} - * 用来在菜单中显示文字 - */ - useI18n: false, - /** - * @description 高德web端申请的api key - */ - aMapKey: "b440952723253aa9fe483e698057bf7d", - + title: "lili-shop", //配置显示在浏览器标签的title、底部信息、部分信息展示的值 + icpCard: "", // icp证 + company: { + href: "https://pickmall.cn", + name: "北京宏业汇成科技有限公司", + }, //公司信息 + icpMessage: "京ICP备20009696号-1", //icp备案 + aMapKey: "b440952723253aa9fe483e698057bf7d", //高德web端申请的api key + enableCDN: true, //生产环境 是否启用cdn加载 vue等js + port:10000, //端口 }; diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue index 33b72bff..7554bb1e 100644 --- a/buyer/src/pages/GoodsDetail.vue +++ b/buyer/src/pages/GoodsDetail.vue @@ -13,14 +13,24 @@