You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.4 KiB
JavaScript
74 lines
1.4 KiB
JavaScript
// components/showSpecAndMake/showSpecAndMake.js
|
|
Component({
|
|
/**
|
|
* 组件的属性列表
|
|
*/
|
|
properties: {
|
|
isSpec: Boolean,
|
|
shopName: String,
|
|
spec: Boolean,
|
|
makeList: Array,
|
|
specPrice: String,
|
|
showSpec: String,
|
|
productCount: String,
|
|
selectProduct: Object,
|
|
color:String,
|
|
specList:Array,
|
|
promotionPrice:String
|
|
},
|
|
|
|
/**
|
|
* 组件的初始数据
|
|
*/
|
|
data: {
|
|
isSpec: "",
|
|
shopName: "",
|
|
spec: Boolean,
|
|
makeList: Array,
|
|
specPrice: String,
|
|
showSpec: String,
|
|
productCount: "",
|
|
selectProduct:"",
|
|
color:"",
|
|
specList:Array,
|
|
promotionPrice:String
|
|
},
|
|
options: {
|
|
addGlobalClass: true,
|
|
},
|
|
/**
|
|
* 组件的方法列表
|
|
*/
|
|
|
|
methods: {
|
|
|
|
cy_hide: function () {
|
|
this.triggerEvent("cy_hide");
|
|
},
|
|
cy_changeSpecSellOut: function () {
|
|
this.triggerEvent("cy_changeSpecSellOut");
|
|
},
|
|
/**
|
|
* 修改规格
|
|
*/
|
|
cy_changeSpec: function (e) {
|
|
console.error("guige",e)
|
|
this.triggerEvent("cy_changeSpec",e);
|
|
},
|
|
/**
|
|
* 修改做法
|
|
*/
|
|
cy_changeMake: function (e) {
|
|
this.triggerEvent("cy_changeMake",e);
|
|
},
|
|
cy_addCart:function(){
|
|
this.triggerEvent("cy_addCart");
|
|
},
|
|
cy_subSpecItem:function(){
|
|
this.triggerEvent("cy_subSpecItem");
|
|
},
|
|
cy_addSpecItem:function(){
|
|
this.triggerEvent("cy_addSpecItem");
|
|
}
|
|
}
|
|
}) |