|
@@ -135,41 +135,41 @@ var productDetail = new Vue({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getImages: function () {
|
|
|
- var _self = this;
|
|
|
- if (!this.productId) {
|
|
|
- return;
|
|
|
- }
|
|
|
- ProductApi.GetProductDdtailsImages({productId: _self.productId}, function (response) {
|
|
|
- if (response.code === 0 && response.data) {
|
|
|
- _self.images = response.data;
|
|
|
- setTimeout(function () {
|
|
|
- if (isPC) {
|
|
|
- var magnifier = new ImageMagnifier(
|
|
|
- '#imgShown .smallImage li',
|
|
|
- '#imgShown .bigImage',
|
|
|
- '#imgShown .zoomImage',
|
|
|
- '#imgShown .mask',
|
|
|
- '#imgShown .zoom',
|
|
|
- "on"
|
|
|
- ).init();
|
|
|
- } else {
|
|
|
- var swiper = new Swiper('#swiperImage', {
|
|
|
- loop: true,
|
|
|
- autoplay: {
|
|
|
- delay: 2000,
|
|
|
- disableOnInteraction: false
|
|
|
- },
|
|
|
- pagination: {
|
|
|
- el: '.swiper-pagination',
|
|
|
- type: 'fraction'
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }, 500);
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
+ // getImages: function () {
|
|
|
+ // var _self = this;
|
|
|
+ // if (!this.productId) {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // ProductApi.GetProductDdtailsImages({productId: _self.productId}, function (response) {
|
|
|
+ // if (response.code === 0 && response.data) {
|
|
|
+ // _self.images = response.data;
|
|
|
+ // setTimeout(function () {
|
|
|
+ // if (isPC) {
|
|
|
+ // var magnifier = new ImageMagnifier(
|
|
|
+ // '#imgShown .smallImage li',
|
|
|
+ // '#imgShown .bigImage',
|
|
|
+ // '#imgShown .zoomImage',
|
|
|
+ // '#imgShown .mask',
|
|
|
+ // '#imgShown .zoom',
|
|
|
+ // "on"
|
|
|
+ // ).init();
|
|
|
+ // } else {
|
|
|
+ // var swiper = new Swiper('#swiperImage', {
|
|
|
+ // loop: true,
|
|
|
+ // autoplay: {
|
|
|
+ // delay: 2000,
|
|
|
+ // disableOnInteraction: false
|
|
|
+ // },
|
|
|
+ // pagination: {
|
|
|
+ // el: '.swiper-pagination',
|
|
|
+ // type: 'fraction'
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // }, 500);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // },
|
|
|
getProductDetails: function () {
|
|
|
var _self = this;
|
|
|
ProductApi.GetProductDdtails({userId: GLOBAL_USER_ID, productId: _self.productId}, function (response) {
|
|
@@ -317,18 +317,18 @@ var productDetail = new Vue({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getParameters: function () {//获取商品参数
|
|
|
- var _self = this;
|
|
|
- if (!this.productId) {
|
|
|
- return;
|
|
|
- }
|
|
|
- ProductApi.GetProductDdtailsParameter({productId: _self.productId}, function (response) {
|
|
|
- if (response.code === 0 && response.data) {
|
|
|
- _self.parameters = response.data;
|
|
|
- console.log(_self.parameters)
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
+ // getParameters: function () {//获取商品参数
|
|
|
+ // var _self = this;
|
|
|
+ // if (!this.productId) {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // ProductApi.GetProductDdtailsParameter({productId: _self.productId}, function (response) {
|
|
|
+ // if (response.code === 0 && response.data) {
|
|
|
+ // _self.parameters = response.data;
|
|
|
+ // console.log(_self.parameters)
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // },
|
|
|
toggleThisLadder: function (event) {
|
|
|
var el = event.currentTarget;
|
|
|
if ($(el).hasClass("on")) {
|
|
@@ -804,7 +804,7 @@ var productDetail = new Vue({
|
|
|
this.productId = this.couponParam.productId = this.listQuery.productId = $("#productId").val();
|
|
|
this.userId = this.couponParam.userId = this.listQuery.userId = GLOBAL_USER_ID;
|
|
|
this.productStock = $("#productStock").val();
|
|
|
- this.getImages();
|
|
|
+ // this.getImages();
|
|
|
// identity: 0个人,1协销,2会员机构,3供应商,4普通机构
|
|
|
// visibility:3:所有人可见,2:普通机构可见,1:会员机构可见 4:仅医美机构可见
|
|
|
var visible = $("#productVisibility").val() * 1;
|
|
@@ -821,7 +821,7 @@ var productDetail = new Vue({
|
|
|
this.userId = this.couponParam.userId = GLOBAL_USER_ID;
|
|
|
this.getProductDetails();
|
|
|
this.getProductPrice();
|
|
|
- this.getParameters();
|
|
|
+ // this.getParameters();
|
|
|
this.queryProductDetilsCoupons();
|
|
|
this.getCommodityCombinationList();
|
|
|
console.log('GLOBAL_CLUB_TYPE',GLOBAL_CLUB_TYPE)
|