index.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <template>
  2. <!-- 系统消息页面 -->
  3. <view class="header">
  4. <view class="content" v-for="(item,index) in datalist" @click="inDetails" :key="index">
  5. <view class="content-one">
  6. <text class="content-one-first">{{item.title}}</text>
  7. <text class="content-one-second">{{item.data}}</text>
  8. </view>
  9. <!-- 中间的虚线 -->
  10. <view class="content-two">
  11. </view>
  12. <view class="content-three">
  13. {{item.order}}
  14. </view>
  15. <view class="content-four">
  16. 订单编号:{{item.number}}
  17. </view>
  18. <view class="content-four">
  19. 创建时间:{{item.time}}
  20. </view>
  21. <view class="content-four">
  22. 订单条数:{{item.amount}}条
  23. </view>
  24. <view class="content-four">
  25. 联系人:{{item.name}}
  26. </view>
  27. <view class="content-four">
  28. 联系电话:{{item.Telephone}}
  29. </view>
  30. <view class="content-four">
  31. 零售店地址:{{item.address}}
  32. </view>
  33. <view class="content-five">
  34. <text class="content-five-first">查看订单详情</text>
  35. <text class="content-five-second">
  36. <u-icon name="arrow-right"></u-icon>
  37. </text>
  38. </view>
  39. </view>
  40. <view class="header">
  41. <view class="content" v-for="(item,index) in goodsList" :key="index">
  42. <view class="content-one">
  43. <text class="content-one-first">{{item.title}}</text>
  44. <text class="content-one-second">11.26</text>
  45. </view>
  46. <!-- 中间的虚线 -->
  47. <view class="content-two">
  48. </view>
  49. <view class="content-three" style="color:red;">
  50. {{item.data}}
  51. </view>
  52. <view class="content-four-tail">
  53. 促销商品1(规格):{{item.order1}}
  54. </view>
  55. <view class="content-four-tail">
  56. 优惠力度: {{item.order2}}
  57. </view>
  58. <view class="content-four-tail">
  59. 促销商品2(规格):{{item.order3}}
  60. </view>
  61. <view class="content-four-tail">
  62. 优惠力度: {{item.order3}}
  63. </view>
  64. <view class="content-four" style="color:#FF651A;">
  65. {{item.address}}
  66. </view>
  67. <view class="content-five">
  68. <text class="content-five-first">查看订单详情</text>
  69. <text class="content-five-second">
  70. <u-icon name="arrow-right"></u-icon>
  71. </text>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. </template>
  77. <script>
  78. export default {
  79. data() {
  80. return {
  81. datalist: [{
  82. title: '零售店订单信息',
  83. data: '4月22日',
  84. order: '您接收到赛轮轮胎市北店的新订单',
  85. number: '20202000202202',
  86. time: '2020/04/21',
  87. amount: '300',
  88. name: '曹某',
  89. Telephone: '17863993980',
  90. address: '山东省青岛市李沧区某某小区某楼'
  91. }, {
  92. title: '零售店订单信息',
  93. data: '4月22日',
  94. order: '您接收到赛轮轮胎市北店的新订单',
  95. number: '20202000202202',
  96. time: '2020/04/21',
  97. amount: '300',
  98. name: '曹某',
  99. Telephone: '17863993980',
  100. address: '山东省青岛市李沧区某某小区某楼'
  101. },
  102. {
  103. title: '零售店订单信息',
  104. data: '4月22日',
  105. order: '您接收到赛轮轮胎市北店的新订单',
  106. number: '20202000202202',
  107. time: '2020/04/21',
  108. amount: '300',
  109. name: '曹某',
  110. Telephone: '17863993980',
  111. address: '山东省青岛市李沧区某某小区某楼'
  112. },
  113. {
  114. title: '零售店订单信息',
  115. data: '4月22日',
  116. order: '您接收到赛轮轮胎市北店的新订单',
  117. number: '20202000202202',
  118. time: '2020/04/21',
  119. amount: '300',
  120. name: '曹某',
  121. Telephone: '17863993980',
  122. address: '山东省青岛市李沧区某某小区某楼'
  123. },
  124. ],
  125. goodsList: [
  126. {
  127. title: '零售店订单信息',
  128. data: '赛轮集团针对优质客户提供以下优惠活动,立马抢购吧!',
  129. order1: '225/55R17',
  130. order2: '每条胎在零售价基础上优惠20元',
  131. order3: '225/55R17',
  132. order4: '每条胎在零售价基础上优惠20元',
  133. address: '库存有限,赶紧去订单促销活动界面抢购吧。'
  134. },
  135. {
  136. title: '零售店订单信息',
  137. data: '赛轮集团针对优质客户提供以下优惠活动,立马抢购吧!',
  138. order1: '225/55R17',
  139. order2: '每条胎在零售价基础上优惠20元',
  140. order3: '225/55R17',
  141. order4: '每条胎在零售价基础上优惠20元',
  142. address: '库存有限,赶紧去订单促销活动界面抢购吧。'
  143. },
  144. ]
  145. }
  146. },
  147. onLoad() {
  148. },
  149. methods: {
  150. inDetails(){
  151. this.$u.route({
  152. url: 'pages/msg/Order-details/index',
  153. })
  154. }
  155. },
  156. }
  157. </script>
  158. <style lang="scss" scoped>
  159. .content {
  160. width: 702rpx;
  161. height: 447rpx;
  162. margin: 0 auto;
  163. background: #FFFFFF;
  164. margin-top: 20rpx;
  165. box-shadow: 0rpx 0rpx 17rpx 0rpx rgba(78, 60, 63, 0.2);
  166. border-radius: 10rpx;
  167. }
  168. .content-one {
  169. display: flex;
  170. justify-content: space-between;
  171. }
  172. .content-one-first {
  173. font-size: 28rpx;
  174. font-weight: bold;
  175. margin: 20rpx;
  176. }
  177. .content-one-second {
  178. font-size: 24rpx;
  179. color: #B2B2B2;
  180. margin: 20rpx;
  181. }
  182. .content-five {
  183. display: flex;
  184. justify-content: space-between;
  185. }
  186. .content-five-first {
  187. font-size: 24rpx;
  188. font-weight: bold;
  189. margin: 20rpx;
  190. }
  191. .content-five-second {
  192. font-size: 24rpx;
  193. color: #B2B2B2;
  194. margin: 20rpx;
  195. }
  196. // 中间虚线
  197. .content-two {
  198. width: 670rpx;
  199. margin: 0 auto;
  200. border-top: 1rpx solid #ededed;
  201. }
  202. .content-three {
  203. color: #aeaeae;
  204. margin-left: 20rpx;
  205. margin-top: 20rpx;
  206. font-size: 24rpx;
  207. margin-bottom: 27rpx;
  208. }
  209. .content-four {
  210. color: #aeaeae;
  211. margin-left: 20rpx;
  212. margin-top: 6rpx;
  213. font-size: 24rpx;
  214. }
  215. .content-four-tail {
  216. color: #000;
  217. margin-left: 20rpx;
  218. margin-top: 10rpx;
  219. font-size: 24rpx;
  220. }
  221. .content-five {}
  222. </style>