铝交易,微信公众号
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.

384 lines
7.1 KiB

8 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
8 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="page">
  3. <!--顶部栏-->
  4. <topbar showRight="1"></topbar>
  5. <!-- 供应商 -->
  6. <view class="supplier">
  7. <view style="padding: 40rpx 0;"
  8. v-for="(item, index) in bannerList">
  9. <uv-swiper
  10. :list="item"
  11. :height="bannerSize[index]"
  12. keyName="image">
  13. </uv-swiper>
  14. <!-- imgMode="widthFix" -->
  15. </view>
  16. <visualization/>
  17. <!--报价和挂单-->
  18. <view class="btns" v-if="userShop">
  19. <span @click="goToPage(0)" class="oneBtn">
  20. {{ $t('other.supplierQuotation') }}
  21. </span>
  22. <!-- 这个提单不需要了 -->
  23. <!-- <span @click="goToPage(1)" class="twoBtn">
  24. {{ $t('other.supplierBilLading') }}
  25. </span> -->
  26. </view>
  27. </view>
  28. <tabber select="0" />
  29. </view>
  30. </template>
  31. <script>
  32. import topbar from '@/components/base/topbar.vue'
  33. import tabber from '@/components/base/tabbar.vue'
  34. import productList from '@/components/user/productList.vue'
  35. import { mapGetters } from 'vuex'
  36. import changeLanguage from '@/components/base/changeLanguage.vue'
  37. import visualization from '@/components/user/visualization.vue'
  38. export default {
  39. components: {
  40. tabber,
  41. topbar,
  42. productList,
  43. changeLanguage,
  44. visualization,
  45. },
  46. data() {
  47. return {
  48. queryParams: {
  49. pageNo: 1,
  50. pageSize: 10,
  51. title: ''
  52. },
  53. bannerList: [],
  54. bannerSize : ['420rpx', '220rpx', '220rpx'],
  55. }
  56. },
  57. onShow() {
  58. // if (!this.$store.state.shop && !this.$store.state.buy) {
  59. // uni.reLaunch({
  60. // url: '/pages_order/auth/selectionIdentity?back=no&'
  61. // })
  62. // }
  63. if(uni.getStorageSync('token')){
  64. this.$store.commit('getUserInfo')
  65. }
  66. this.getBannerList()
  67. },
  68. computed: {
  69. ...mapGetters(['userShop']),
  70. },
  71. methods: {
  72. getBannerList() {
  73. this.$api('bannerList', res => {
  74. this.bannerList = res.result
  75. })
  76. },
  77. goToPage(titleIndex) {
  78. this.$store.state.orderDetail = {}
  79. uni.navigateTo({
  80. url: '/pages_order/order/offerOrBillLading?titleIndex=' + titleIndex
  81. })
  82. },
  83. }
  84. }
  85. </script>
  86. <style scoped lang="scss">
  87. * {
  88. box-sizing: border-box;
  89. }
  90. .page {
  91. background-color: #2e394d;
  92. min-height: 100vh;
  93. background-image: url('../../static/image/index/1.png');
  94. // 供应商
  95. .supplier {
  96. display: flex;
  97. flex-direction: column;
  98. // height: calc(100vh - 120rpx - 120rpx);
  99. background-color: #2e394d;
  100. .topItem {
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. // height: 30%;
  105. background-size: cover;
  106. .imageFrame {
  107. width: 90%;
  108. height: 90%;
  109. //padding:80rpx;
  110. }
  111. }
  112. .threeHeOne {
  113. display: flex;
  114. padding: 20rpx 40rpx 10rpx;
  115. flex-direction: column;
  116. // height: 60%;
  117. .oneItem {
  118. display: flex;
  119. // height: 33%;
  120. .left {
  121. display: flex;
  122. flex-direction: column;
  123. justify-content: center;
  124. align-items: center;
  125. gap: 10rpx;
  126. width: 33%;
  127. background-color: #1e293d;
  128. color: white;
  129. font-size: 26rpx;
  130. .subText {
  131. text-align: center;
  132. width: 80%;
  133. background-color: #2e394d;
  134. padding: 0 20rpx;
  135. }
  136. }
  137. .right {
  138. //height: 30%;
  139. width: 66%;
  140. padding: 20rpx;
  141. background-image: url('../../static/image/index/1.png');
  142. background-size: cover;
  143. font-size: 20rpx;
  144. color: white;
  145. }
  146. }
  147. .twoItem {
  148. display: flex;
  149. justify-content: space-between;
  150. gap: 20rpx;
  151. // height: 33%;
  152. margin-top: 20rpx;
  153. padding: 10rpx;
  154. .left {
  155. width: 60%;
  156. padding: 20rpx;
  157. background-color: #1e293d;
  158. }
  159. .right {
  160. width: 40%;
  161. padding: 20rpx;
  162. background-color: #1e293d;
  163. }
  164. }
  165. .threeItem {
  166. display: flex;
  167. //width: 100vw;
  168. // height: 33%;
  169. .left {
  170. display: flex;
  171. flex-direction: column;
  172. justify-content: center;
  173. align-items: center;
  174. gap: 20rpx;
  175. width: 33%;
  176. background-color: #1e293d;
  177. color: white;
  178. font-size: 26rpx;
  179. .subText {
  180. text-align: center;
  181. background-color: #2e394d;
  182. width: 80%;
  183. padding: 0 20rpx;
  184. }
  185. }
  186. .right {
  187. //height: 200rpx;
  188. width: 66%;
  189. padding: 20rpx;
  190. background-image: url('../../static/image/index/1.png');
  191. background-size: cover;
  192. font-size: 20rpx;
  193. color: white;
  194. }
  195. }
  196. }
  197. .btns {
  198. display: flex;
  199. justify-content: center;
  200. align-items: center;
  201. gap: 40rpx;
  202. .oneBtn {
  203. display: flex;
  204. align-items: center;
  205. justify-content: center;
  206. width: 40%;
  207. height: 70rpx;
  208. border-radius: 40rpx;
  209. color: #1F1C39;
  210. font-size: 28rpx;
  211. margin: 20rpx 10rpx 0 0;
  212. background: #f2f2f2;
  213. //margin-top: 20rpx;
  214. border-radius: 40rpx;
  215. }
  216. .twoBtn {
  217. display: flex;
  218. align-items: center;
  219. justify-content: center;
  220. width: 40%;
  221. height: 70rpx;
  222. border-radius: 40rpx;
  223. color: #1F1C39;
  224. font-size: 28rpx;
  225. margin: 20rpx 10rpx 0 0;
  226. background: #f2f2f2;
  227. //margin-top: 20rpx;
  228. border-radius: 40rpx;
  229. }
  230. }
  231. }
  232. // 采购商
  233. .purchaser {
  234. display: flex;
  235. flex-direction: column;
  236. //gap: 40rpx;
  237. background-color: #2e394d;
  238. .topItem {
  239. display: flex;
  240. justify-content: center;
  241. align-items: center;
  242. height: 280rpx;
  243. background-image: url('../../static/image/index/1.png');
  244. background-size: cover;
  245. .imageFrame {
  246. width: 90%;
  247. // height: 90%;
  248. //padding:80rpx;
  249. }
  250. }
  251. .threeHeOne {
  252. display: flex;
  253. padding: 20rpx 40rpx 10rpx;
  254. flex-direction: column;
  255. .oneItem {
  256. display: flex;
  257. .left {
  258. display: flex;
  259. flex-direction: column;
  260. justify-content: center;
  261. align-items: center;
  262. gap: 10rpx;
  263. width: 33%;
  264. background-color: #1e293d;
  265. color: white;
  266. font-size: 26rpx;
  267. .subText {
  268. background-color: #2e394d;
  269. padding: 0 20rpx;
  270. }
  271. }
  272. .right {
  273. height: 180rpx;
  274. width: 66%;
  275. padding: 20rpx;
  276. background-image: url('../../static/image/index/1.png');
  277. background-size: cover;
  278. font-size: 20rpx;
  279. color: white;
  280. }
  281. }
  282. .twoItem {
  283. display: flex;
  284. justify-content: space-between;
  285. gap: 20rpx;
  286. height: 280rpx;
  287. margin-top: 20rpx;
  288. padding: 10rpx;
  289. .left {
  290. width: 60%;
  291. padding: 20rpx;
  292. background-color: #1e293d;
  293. }
  294. .right {
  295. width: 40%;
  296. padding: 20rpx;
  297. background-color: #1e293d;
  298. }
  299. }
  300. .threeItem {
  301. display: flex;
  302. //width: 100vw;
  303. .left {
  304. display: flex;
  305. flex-direction: column;
  306. justify-content: center;
  307. align-items: center;
  308. gap: 20rpx;
  309. width: 33%;
  310. background-color: #1e293d;
  311. color: white;
  312. font-size: 26rpx;
  313. .subText {
  314. background-color: #2e394d;
  315. padding: 0 20rpx;
  316. }
  317. }
  318. .right {
  319. height: 200rpx;
  320. width: 66%;
  321. padding: 20rpx;
  322. background-image: url('../../static/image/index/1.png');
  323. background-size: cover;
  324. font-size: 20rpx;
  325. color: white;
  326. }
  327. }
  328. }
  329. }
  330. }
  331. </style>