青蛙卖大米小程序2024-11-24
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
2.1 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view class="page">
  3. <navbar
  4. bgColor="transparent"
  5. style="position: absolute;"
  6. leftClick @leftClick="$utils.navigateBack" />
  7. <view class="swipe">
  8. <uv-swiper
  9. :list="productDetail.image.split(',')"
  10. indicator
  11. height="520rpx"></uv-swiper>
  12. </view>
  13. <view class="info">
  14. <view class="">
  15. <view class="title">
  16. 三只青蛙低GI大米
  17. </view>
  18. <view class="desc">
  19. 三只青蛙低GI大米500g每罐
  20. </view>
  21. </view>
  22. <view class="">
  23. <view class="price">
  24. <text>9.9</text>
  25. </view>
  26. <view class="oldPrice">
  27. <text>45.9</text>
  28. </view>
  29. </view>
  30. </view>
  31. <uv-parse :content="productDetail.content"></uv-parse>
  32. <!-- 分享和租赁按钮 -->
  33. <submit
  34. @submit="$refs.submitUnitSelect.open()"
  35. @share="share"/>
  36. <!-- 选择规格 -->
  37. <submitUnitSelect ref="submitUnitSelect"/>
  38. </view>
  39. </template>
  40. <script>
  41. import submit from '../components/product/submit.vue'
  42. import submitUnitSelect from '../components/product/submitUnitSelect.vue'
  43. export default {
  44. components : {
  45. submit,
  46. submitUnitSelect
  47. },
  48. data() {
  49. return {
  50. productDetail : {
  51. image : 'https://cdn.uviewui.com/uview/swiper/swiper3.png,https://cdn.uviewui.com/uview/swiper/swiper2.png',
  52. content : '',
  53. }
  54. }
  55. },
  56. onLoad(args) {
  57. console.log(args);
  58. },
  59. methods: {
  60. // 分享商品
  61. share(){
  62. },
  63. // 选择完成规格立即租赁下单
  64. submit(){
  65. }
  66. }
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .page{
  71. .swipe{
  72. }
  73. .info{
  74. padding: 30rpx;
  75. background-color: #fff;
  76. display: flex;
  77. justify-content: space-between;
  78. .title{
  79. font-size: 34rpx;
  80. font-weight: 900;
  81. }
  82. .price{
  83. font-size: 34rpx;
  84. color: $uni-color;
  85. font-weight: 900;
  86. text-align: right;
  87. }
  88. .oldPrice{
  89. font-size: 26rpx;
  90. color: #999;
  91. text-align: right;
  92. text-decoration: line-through;
  93. }
  94. .desc{
  95. font-size: 26rpx;
  96. color: #777;
  97. }
  98. }
  99. .info-unit{
  100. margin-top: 20rpx;
  101. padding: 30rpx;
  102. background-color: #fff;
  103. /deep/ text{
  104. font-size: 26rpx;
  105. }
  106. /deep/ .text{
  107. color: #7C7C7C;
  108. margin-right: 20rpx;
  109. font-size: 26rpx;
  110. }
  111. }
  112. }
  113. </style>