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.

286 lines
6.7 KiB

  1. <template>
  2. <view class="app">
  3. <view class="menu">
  4. <view class="menu-item" @click="currentTitle='打款业绩'">
  5. <text class="menu-item-txt">打款业绩</text>
  6. <view :style="{backgroundColor:currentTitle=='打款业绩'?'#EDAF8B':'white'}" class="menu-item-line"></view>
  7. </view>
  8. <view class="menu-item" @click="currentTitle='出货业绩'">
  9. <text class="menu-item-txt">出货业绩</text>
  10. <view :style="{backgroundColor:currentTitle=='出货业绩'?'#EDAF8B':'white'}" class="menu-item-line"></view>
  11. </view>
  12. <view class="separator-line"></view>
  13. </view>
  14. <view class="separator-section"></view>
  15. <view class="achievement-head">
  16. <view class="achievement-head-left">
  17. <text class="achievement-head-time">2021年4月</text>
  18. <text class="achievement-head-number">打款业绩99999.00</text>
  19. </view>
  20. <view class="achievement-head-right">
  21. <text class="achievement-head-right-txt">全部</text>
  22. <image class="achievement-head-right-img" src="/static/base/select.png"></image>
  23. </view>
  24. </view>
  25. <!-- <view class="product-section">
  26. <text class="prduct-title">轻未来超纤维阻燃粉轻未来超纤维阻燃粉轻未来超纤维阻燃粉</text>
  27. <view class="product-des">
  28. <view class="product-price">
  29. <text class="product-price-sale">5999</text>
  30. <text class="product-price-show">6999</text>
  31. </view>
  32. <text class="product-number">库存2000</text>
  33. </view>
  34. </view>
  35. <view class="separator-section"></view>
  36. <view class="product-detail">
  37. <text class="product-detail-title">产品描述</text>
  38. <view class="product-detail-wrap">
  39. <text class="product-detail-txt">理想是未来事物的美好想象和希望也比喻对某事物榛于最完善境界的观念是人们在实践过程中形成的有实现可能性的对未来社会和自身发展的向往和追求价值观是基于人的一定的思维感官之上而作出的认知理解判断或抉择也就是认定事物判定是非的一种思维或取向本产本具有良好疗效</text>
  40. </view>
  41. <image class="product-detail-img" src="/static/shop/677088217d8a00aa.jpg"></image>
  42. </view>
  43. -->
  44. <!-- <view class="shop-list">
  45. <view class="shop-item">
  46. <view class="shop-item-left">
  47. <text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
  48. <text class="shop-item-left-time">2021年4月23日</text>
  49. </view>
  50. <image src="/static/shop/677088217d8a00aa.jpg" class="shop-item-img">
  51. </image>
  52. </view>
  53. <view class="shop-item">
  54. <view class="shop-item-left">
  55. <text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
  56. <text class="shop-item-left-time">2021年4月23日</text>
  57. </view>
  58. <image src="/static/shop/677088217d8a00aa.jpg" class="shop-item-img">
  59. </image>
  60. </view>
  61. <view class="shop-item">
  62. <view class="shop-item-left">
  63. <text class="shop-item-left-title">通知 | 关于轻未来超轻维阻燃粉外包装升级通知</text>
  64. <text class="shop-item-left-time">2021年4月23日</text>
  65. </view>
  66. <image src="/static/shop/677088217d8a00aa.jpg" class="shop-item-img">
  67. </image>
  68. </view>
  69. </view> -->
  70. </view>
  71. </template>
  72. <script>
  73. export default {
  74. components: {
  75. },
  76. data() {
  77. return {
  78. currentTitle:'打款业绩',
  79. navList: [],//导航列表
  80. advertList: [],//广告列表
  81. hotList: [],//热门推荐
  82. indicatorDots: true,
  83. autoplay: true,
  84. interval: 2000,
  85. duration: 500,
  86. swipeImgs:['/static/shop/677088217d8a00aa.jpg','/static/shop/rem.jpg','/static/shop/b7f2be6053cc88b4.jpg']
  87. }
  88. },
  89. computed: {
  90. changeIndicatorDots(e) {
  91. this.indicatorDots = !this.indicatorDots
  92. },
  93. changeAutoplay(e) {
  94. this.autoplay = !this.autoplay
  95. },
  96. intervalChange(e) {
  97. this.interval = e.target.value
  98. },
  99. durationChange(e) {
  100. this.duration = e.target.value
  101. },
  102. midAdvert(){
  103. if(this.advertList.length === 0) return {};
  104. const res = this.advertList.filter(item=> item.advert_type === 'middle');
  105. return res.length > 0 ? res[0]: {};
  106. },
  107. carousel(){
  108. return this.advertList.filter(item=> item.advert_type === 'carousel');
  109. }
  110. },
  111. onLoad() {
  112. this.loadAdvert();
  113. this.loadNavList();
  114. setTimeout(()=>{
  115. //this.navTo('/pages/address/list')
  116. }, 1000)
  117. },
  118. methods: {
  119. toStoreProduct(){
  120. this.navTo(`/pages/yunProduct/storeProduct`)
  121. },
  122. //加载广告 缓存10分钟
  123. async loadAdvert(){
  124. const res = await this.$request('advert', 'getAdvertList', {}, {
  125. cache: 10*60
  126. });
  127. this.advertList = res.data;
  128. this.log(res);
  129. },
  130. //加载导航 缓存1小时
  131. async loadNavList(){
  132. const res = await this.$request('advert', 'getNavList', {}, {
  133. cache: 60*60*0,
  134. });
  135. this.navList = res.data;
  136. },
  137. }
  138. }
  139. </script>
  140. <style>
  141. page{
  142. background-color: white;
  143. }
  144. </style>
  145. <style scoped lang="scss">
  146. /* 分类 */
  147. .menu{
  148. display: flex;
  149. flex-direction: row;
  150. align-items: center;
  151. background-color: white;
  152. // background-color: yellow;
  153. }
  154. .menu-item{
  155. display: flex;
  156. flex-direction: column;
  157. justify-content: center;
  158. align-items: center;
  159. flex:1;
  160. }
  161. .menu-item-txt{
  162. width: 200rpx;
  163. text-align: center;
  164. display: block;
  165. font-size: 15px;
  166. font-weight: bold;
  167. color: #333333;
  168. height: 104rpx;
  169. line-height: 104rpx;
  170. }
  171. .menu-item-line{
  172. position: relative;
  173. top: -20rpx;
  174. background-color: #EDAF8B;
  175. height:6rpx ;
  176. width: 50rpx;
  177. }
  178. .separator-line{
  179. position: absolute;
  180. left: 49.98%;
  181. width: 2rpx;
  182. background-color:#333333 ;
  183. height: 33rpx;
  184. }
  185. .separator-section{
  186. background-color: $separatorColor;
  187. height: 20rpx;
  188. }
  189. .achievement-head{
  190. margin: 36rpx;
  191. // width: 750rpx;
  192. display: flex;
  193. flex-direction: row;
  194. justify-content: space-between;
  195. align-items: center;
  196. }
  197. .achievement-head-time{
  198. font-size: 18px;
  199. // font-weight: 500;
  200. color: #333333;
  201. padding: 0rpx 0rpx 20rpx;
  202. }
  203. .achievement-head-number{
  204. padding: 10rpx 0rpx 0rpx;
  205. display: block;
  206. font-size: 15px;
  207. font-weight: 500;
  208. color: #999999;
  209. }
  210. .achievement-head-right{
  211. padding: 10rpx 10rpx 10rpx 25rpx;
  212. background-color:#F5F5F5 ;
  213. margin: 0rpx 10rpx 0rpx 0rpx;
  214. border-radius: 6rpx;
  215. }
  216. .achievement-head-right-txt{
  217. font-size: 13px;
  218. font-weight: 500;
  219. color: #333333;
  220. }
  221. .achievement-head-right-img{
  222. position: relative;
  223. top: 2rpx;
  224. display: inline-block;
  225. width: 20rpx;
  226. height: 20rpx;
  227. margin: 0rpx 10rpx;
  228. }
  229. </style>