123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <template>
- <view style="background-color: #FFFFFF;height: 100%;">
- <view class="status_bar">
- <!-- 这里是状态栏 -->
- </view>
- <view class="u-page" style="margin-bottom: 20rpx;">
- <view class="u-m-t-20">
- <u-swiper :list="tabbarList" :height="310" :effect3d="true" border-radius="20" effect3d-previous-margin="20" bg-color="#FFF"></u-swiper>
- </view>
- <view class="u-flex u-m-t-20 u-m-l-20 u-m-r-20">
- <view class="u-flex u-row-center" style="width: 450rpx; height: 70rpx;border-radius: 50rpx;background: rgba(52,140,245,0.1);font-size: 20rpx;color: #348CF5; font-size: 500;">
- <u-image width="45rpx" height="35rpx" src="../../static/sailun/speaker.png" style="margin:10rpx;"></u-image>公告
- </view>
- <u-notice-bar mode="horizontal" :list="noticebarList" :volume-icon="false" bg-color="#FFF" color="#2B2B2B" padding="18rpx 12rpx"></u-notice-bar>
- </view>
- <view class="u-flex u-m-t-20 u-row-around u-m-l-10 u-m-r-10">
- <u-image width="350rpx" src="../../static/sailun/scan_in.png" @click="scancodeIn" mode="widthFix"></u-image>
- <u-image width="350rpx" src="../../static/sailun/scan_out.png" @click="scancodeOut" mode="widthFix"></u-image>
- </view>
- <view class="u-m-t-20">
- <view class="u-m-l-30" style="font-size: 34rpx;">
- 快捷服务
- </view>
- <view class="u-flex u-flex-wrap u-row-center">
- <u-image width="350rpx" height="212rpx" src="../../static/sailun/1.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
- @click="inStock"></u-image>
- <u-image width="350rpx" height="212rpx" src="../../static/sailun/2.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"></u-image>
- <u-image width="350rpx" height="212rpx" src="../../static/sailun/3.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
- @click="inInlineshop"></u-image>
- <u-image width="350rpx" height="212rpx" src="../../static/sailun/4.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
- @click="inIntegral"></u-image>
- </view>
- </view>
- <view class="" @click="ceshi">
- 测试接口是否连接
- </view>
- <view class="u-flex u-row-center u-m-t-30">
- <u-image width="680rpx" src="../../static/sailun/88reward.png" mode="widthFix"></u-image>
- </view>
-
- </view>
- <!-- 与包裹页面所有内容的元素u-page同级,且在它的下方 -->
- <!-- <u-tabbar v-model="current" :list="list"></u-tabbar> -->
- </view>
- </template>
- <script>
- import {request} from '../../common/request/request'
- require("promise.prototype.finally").shim()
- export default {
- data() {
- return {
- tabbarList: [{
- image: '../../static/sailun/swiper1.png'
- },
- {
- image: '../../static/sailun/swiper1.png'
- },
- {
- image: '../../static/sailun/swiper1.png'
- }
- ],
- noticebarList: ['恭喜您获得10000000元积分红包', '恭喜您获得10000000元积分红包', '恭喜您获得10000000元积分红包'],
- };
- },
- methods: {
- ceshi(){
- request({
- url: '/homepage/getBanners',
- method:'post',
- data:{
- storeid:'1000'
- }
- }).then(res => {
- console.log(res)
- }).catch(err => {
- console.log(err)
- })
- .finally(() => {
- // Loading.close()
- })
- },
- scancodeIn() {
- this.$u.route({
- url: 'pages/home/scancode/index',
- })
- },
- scancodeOut() {
- this.$u.route({
- url: 'pages/home/scancode/index',
- })
- },
- inStock() {
- this.$u.route({
- url: 'pages/home/my-stock/my-stock',
- })
- },
- inInlineshop() {
- this.$u.route({
- url: 'pages/home/inline-shop/inline_shop',
- })
- },
- inIntegral() {
- this.$u.route({
- url: 'pages/home/integral-mall/integral_mall',
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .status_bar {
- height: var(--status-bar-height);
- width: 100%;
- background-color: #FFF;
- }
- </style>
|