vipPrice.js 448 B

1234567891011121314151617181920212223
  1. // lionfish_comshop/components/vipPrice.js
  2. Component({
  3. properties: {
  4. price: {
  5. type: null,
  6. value: '0',
  7. observer: function(t){
  8. let prePrice = t;
  9. if(Object.prototype.toString.call(t) === '[object Array]') {
  10. prePrice = t.join('.');
  11. }
  12. this.setData({ prePrice })
  13. }
  14. },
  15. type: {
  16. type: String,
  17. value: '0' // 1等级折扣
  18. }
  19. },
  20. data: {
  21. prePrice: 0
  22. }
  23. })