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

388 lines
7.1 KiB

6 months ago
6 months ago
5 months ago
6 months ago
4 months ago
6 months ago
5 months ago
6 months ago
5 months ago
5 months ago
6 months ago
5 months ago
6 months ago
6 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
6 months ago
4 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
5 months ago
6 months ago
5 months ago
5 months ago
5 months ago
6 months ago
3 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
5 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 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. this.getImagePhoneOther()
  59. if (!this.$store.state.shop && !this.$store.state.buy) {
  60. uni.reLaunch({
  61. url: '/pages_order/auth/selectionIdentity?back=no&'
  62. })
  63. }
  64. this.$store.commit('getUserInfo')
  65. this.getBannerList()
  66. },
  67. computed: {
  68. ...mapGetters(['userShop']),
  69. },
  70. methods: {
  71. getBannerList() {
  72. this.$api('bannerList', res => {
  73. this.bannerList = res.result
  74. })
  75. },
  76. goToPage(titleIndex) {
  77. this.$store.state.orderDetail = {}
  78. uni.navigateTo({
  79. url: '/pages_order/order/offerOrBillLading?titleIndex=' + titleIndex
  80. })
  81. },
  82. getImagePhoneOther() {
  83. this.$api('getImagePhoneOther', res => {
  84. })
  85. },
  86. }
  87. }
  88. </script>
  89. <style scoped lang="scss">
  90. * {
  91. box-sizing: border-box;
  92. }
  93. .page {
  94. background-color: #2e394d;
  95. min-height: 100vh;
  96. background-image: url('../../static/image/index/1.png');
  97. // 供应商
  98. .supplier {
  99. display: flex;
  100. flex-direction: column;
  101. // height: calc(100vh - 120rpx - 120rpx);
  102. background-color: #2e394d;
  103. .topItem {
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. // height: 30%;
  108. background-size: cover;
  109. .imageFrame {
  110. width: 90%;
  111. height: 90%;
  112. //padding:80rpx;
  113. }
  114. }
  115. .threeHeOne {
  116. display: flex;
  117. padding: 20rpx 40rpx 10rpx;
  118. flex-direction: column;
  119. // height: 60%;
  120. .oneItem {
  121. display: flex;
  122. // height: 33%;
  123. .left {
  124. display: flex;
  125. flex-direction: column;
  126. justify-content: center;
  127. align-items: center;
  128. gap: 10rpx;
  129. width: 33%;
  130. background-color: #1e293d;
  131. color: white;
  132. font-size: 26rpx;
  133. .subText {
  134. text-align: center;
  135. width: 80%;
  136. background-color: #2e394d;
  137. padding: 0 20rpx;
  138. }
  139. }
  140. .right {
  141. //height: 30%;
  142. width: 66%;
  143. padding: 20rpx;
  144. background-image: url('../../static/image/index/1.png');
  145. background-size: cover;
  146. font-size: 20rpx;
  147. color: white;
  148. }
  149. }
  150. .twoItem {
  151. display: flex;
  152. justify-content: space-between;
  153. gap: 20rpx;
  154. // height: 33%;
  155. margin-top: 20rpx;
  156. padding: 10rpx;
  157. .left {
  158. width: 60%;
  159. padding: 20rpx;
  160. background-color: #1e293d;
  161. }
  162. .right {
  163. width: 40%;
  164. padding: 20rpx;
  165. background-color: #1e293d;
  166. }
  167. }
  168. .threeItem {
  169. display: flex;
  170. //width: 100vw;
  171. // height: 33%;
  172. .left {
  173. display: flex;
  174. flex-direction: column;
  175. justify-content: center;
  176. align-items: center;
  177. gap: 20rpx;
  178. width: 33%;
  179. background-color: #1e293d;
  180. color: white;
  181. font-size: 26rpx;
  182. .subText {
  183. text-align: center;
  184. background-color: #2e394d;
  185. width: 80%;
  186. padding: 0 20rpx;
  187. }
  188. }
  189. .right {
  190. //height: 200rpx;
  191. width: 66%;
  192. padding: 20rpx;
  193. background-image: url('../../static/image/index/1.png');
  194. background-size: cover;
  195. font-size: 20rpx;
  196. color: white;
  197. }
  198. }
  199. }
  200. .btns {
  201. display: flex;
  202. justify-content: center;
  203. align-items: center;
  204. gap: 40rpx;
  205. .oneBtn {
  206. display: flex;
  207. align-items: center;
  208. justify-content: center;
  209. width: 40%;
  210. height: 70rpx;
  211. border-radius: 40rpx;
  212. color: #1F1C39;
  213. font-size: 28rpx;
  214. margin: 20rpx 10rpx 0 0;
  215. background: #f2f2f2;
  216. //margin-top: 20rpx;
  217. border-radius: 40rpx;
  218. }
  219. .twoBtn {
  220. display: flex;
  221. align-items: center;
  222. justify-content: center;
  223. width: 40%;
  224. height: 70rpx;
  225. border-radius: 40rpx;
  226. color: #1F1C39;
  227. font-size: 28rpx;
  228. margin: 20rpx 10rpx 0 0;
  229. background: #f2f2f2;
  230. //margin-top: 20rpx;
  231. border-radius: 40rpx;
  232. }
  233. }
  234. }
  235. // 采购商
  236. .purchaser {
  237. display: flex;
  238. flex-direction: column;
  239. //gap: 40rpx;
  240. background-color: #2e394d;
  241. .topItem {
  242. display: flex;
  243. justify-content: center;
  244. align-items: center;
  245. height: 280rpx;
  246. background-image: url('../../static/image/index/1.png');
  247. background-size: cover;
  248. .imageFrame {
  249. width: 90%;
  250. // height: 90%;
  251. //padding:80rpx;
  252. }
  253. }
  254. .threeHeOne {
  255. display: flex;
  256. padding: 20rpx 40rpx 10rpx;
  257. flex-direction: column;
  258. .oneItem {
  259. display: flex;
  260. .left {
  261. display: flex;
  262. flex-direction: column;
  263. justify-content: center;
  264. align-items: center;
  265. gap: 10rpx;
  266. width: 33%;
  267. background-color: #1e293d;
  268. color: white;
  269. font-size: 26rpx;
  270. .subText {
  271. background-color: #2e394d;
  272. padding: 0 20rpx;
  273. }
  274. }
  275. .right {
  276. height: 180rpx;
  277. width: 66%;
  278. padding: 20rpx;
  279. background-image: url('../../static/image/index/1.png');
  280. background-size: cover;
  281. font-size: 20rpx;
  282. color: white;
  283. }
  284. }
  285. .twoItem {
  286. display: flex;
  287. justify-content: space-between;
  288. gap: 20rpx;
  289. height: 280rpx;
  290. margin-top: 20rpx;
  291. padding: 10rpx;
  292. .left {
  293. width: 60%;
  294. padding: 20rpx;
  295. background-color: #1e293d;
  296. }
  297. .right {
  298. width: 40%;
  299. padding: 20rpx;
  300. background-color: #1e293d;
  301. }
  302. }
  303. .threeItem {
  304. display: flex;
  305. //width: 100vw;
  306. .left {
  307. display: flex;
  308. flex-direction: column;
  309. justify-content: center;
  310. align-items: center;
  311. gap: 20rpx;
  312. width: 33%;
  313. background-color: #1e293d;
  314. color: white;
  315. font-size: 26rpx;
  316. .subText {
  317. background-color: #2e394d;
  318. padding: 0 20rpx;
  319. }
  320. }
  321. .right {
  322. height: 200rpx;
  323. width: 66%;
  324. padding: 20rpx;
  325. background-image: url('../../static/image/index/1.png');
  326. background-size: cover;
  327. font-size: 20rpx;
  328. color: white;
  329. }
  330. }
  331. }
  332. }
  333. }
  334. </style>