index.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. import history from './../../utils/history';
  2. Page({
  3. onLoad() {},
  4. onReachBottom() {},
  5. data: {
  6. deliverTypeList: [{
  7. deliverType: 'DELIVERY_LOGISTICS',
  8. totalPrice: '100',
  9. disCountTotalPrice: '20',
  10. deliveryCost: '3.0',
  11. carts: [{
  12. skuId: 'id',
  13. name: 'Y',
  14. picList: 'Y',
  15. specDesc: 'Y',
  16. price: 'Y',
  17. sellPrice: 'Y',
  18. quantity: 'Y',
  19. checkedState: 'Y',
  20. status: 'Y',
  21. stockStatus: 'Y',
  22. stock: 'Y',
  23. userLimitType: 'Y'
  24. }, {
  25. skuId: 'id',
  26. name: 'Y',
  27. picList: 'Y',
  28. specDesc: 'Y',
  29. price: 'Y',
  30. sellPrice: 'Y',
  31. quantity: 'Y',
  32. checkedState: 'Y',
  33. status: 'Y',
  34. stockStatus: 'Y',
  35. stock: 'Y',
  36. userLimitType: 'Y'
  37. }, {
  38. skuId: 'id',
  39. name: 'Y',
  40. picList: 'Y',
  41. specDesc: 'Y',
  42. price: 'Y',
  43. sellPrice: 'Y',
  44. quantity: 'Y',
  45. checkedState: 'Y',
  46. status: 'Y',
  47. stockStatus: 'Y',
  48. stock: 'Y',
  49. userLimitType: 'Y'
  50. }, {
  51. skuId: 'id',
  52. name: 'Y',
  53. picList: 'Y',
  54. specDesc: 'Y',
  55. price: 'Y',
  56. sellPrice: 'Y',
  57. quantity: 'Y',
  58. checkedState: 'Y',
  59. status: 'Y',
  60. stockStatus: 'Y',
  61. stock: 'Y',
  62. userLimitType: 'Y'
  63. }, {
  64. skuId: 'id',
  65. name: 'Y',
  66. picList: 'Y',
  67. specDesc: 'Y',
  68. price: 'Y',
  69. sellPrice: 'Y',
  70. quantity: 'Y',
  71. checkedState: 'Y',
  72. status: 'Y',
  73. stockStatus: 'Y',
  74. stock: 'Y',
  75. userLimitType: 'Y'
  76. }, {
  77. skuId: 'id',
  78. name: 'Y',
  79. picList: 'Y',
  80. specDesc: 'Y',
  81. price: 'Y',
  82. sellPrice: 'Y',
  83. quantity: 'Y',
  84. checkedState: 'Y',
  85. status: 'Y',
  86. stockStatus: 'Y',
  87. stock: 'Y',
  88. userLimitType: 'Y'
  89. }, {
  90. skuId: 'id',
  91. name: 'Y',
  92. picList: 'Y',
  93. specDesc: 'Y',
  94. price: 'Y',
  95. sellPrice: 'Y',
  96. quantity: 'Y',
  97. checkedState: 'Y',
  98. status: 'Y',
  99. stockStatus: 'Y',
  100. stock: 'Y',
  101. userLimitType: 'Y'
  102. }, {
  103. skuId: 'id',
  104. name: 'Y',
  105. picList: 'Y',
  106. specDesc: 'Y',
  107. price: 'Y',
  108. sellPrice: 'Y',
  109. quantity: 'Y',
  110. checkedState: 'Y',
  111. status: 'Y',
  112. stockStatus: 'Y',
  113. stock: 'Y',
  114. userLimitType: 'Y'
  115. }, {
  116. skuId: 'id',
  117. name: 'Y',
  118. picList: 'Y',
  119. specDesc: 'Y',
  120. price: 'Y',
  121. sellPrice: 'Y',
  122. quantity: 'Y',
  123. checkedState: 'Y',
  124. status: 'Y',
  125. stockStatus: 'Y',
  126. stock: 'Y',
  127. userLimitType: 'Y'
  128. }]
  129. }, {
  130. deliverType: 'SELF_PICK_UP_DELIVERY',
  131. totalPrice: 'Y',
  132. disCountTotalPrice: 'Y',
  133. deliveryCost: 'Y',
  134. carts: 'Y',
  135. skuId: 'id',
  136. name: 'Y',
  137. picList: 'Y',
  138. specDesc: 'Y',
  139. price: 'Y',
  140. sellPrice: 'Y',
  141. quantity: 'Y',
  142. checkedState: 'Y',
  143. status: 'Y',
  144. stockStatus: 'Y',
  145. stock: 'Y',
  146. userLimitType: 'Y'
  147. }],
  148. styleConfig: {
  149. height: '164rpx',
  150. width: '164rpx',
  151. maxWidth: '686rpx',
  152. stockHight: '36rpx',
  153. nameFontSize: '40rpx',
  154. unitFontSize: '28rpx',
  155. priceFontSize: '35rpx',
  156. priceHeight: '48rpx',
  157. outFlexDirection: 'column',
  158. innerFlexDirection: 'row',
  159. stockFontSize: '24rpx',
  160. nameMarginTop: '0rpx',
  161. nameMarginBtm: '28rpx',
  162. infoMarginLeft: '24rpx',
  163. boxMarginLeft: '0'
  164. },
  165. addressData: {
  166. name: '',
  167. mobile: '',
  168. region: [],
  169. regionCode: [],
  170. address: '',
  171. isDefault: false
  172. },
  173. item: {
  174. name: '书书123书123书123书123书123书123书123',
  175. picList: ['1'],
  176. price: 0.01,
  177. sellPrice: 0.01,
  178. skuId: '10709803748159488',
  179. specDesc: '书12书123书123书123书123书123书123书1233',
  180. status: 'Y',
  181. stock: 99999,
  182. stockStatus: 'Y'
  183. },
  184. background: 'linear-gradient(138.81deg,#007dff 0%,#75c4ff 73%,#6eddff 100%)'
  185. },
  186. onReadyHeader(e) {
  187. console.log(111, e);
  188. },
  189. onComplete(e) {
  190. console.log(e);
  191. },
  192. jump() {
  193. history.push({
  194. title: '主页',
  195. pageType: 'hospital-payment'
  196. });
  197. }
  198. });