123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592 |
- <template>
- <!-- 商城 -->
- <view class="">
- <!-- <view class="index-navbar"> -->
- <view style="position: relative;">
- <!-- 自定义导航栏 -->
- <image src="../../static/images/index/back.png"
- style="width: 750rpx;height: 1200rpx;position: absolute;top: 0;z-index: -1;" mode=""></image>
- <u-navbar bgColor='rgba(255, 215,215, 1)' :placeholder='true' :fixed='true'>
- <view class="u-nav-slot" slot="left" style="display: flex;">
- <view class="" style="width: 40rpx;height:40rpx;position: relative;">
- <u-badge :absolute='true' :offset="[0,-8]" :type="type" max="99" :value="unReadCount"></u-badge>
- <image @click="tochat" src="../../static/images/index/xiaoxi.png" mode=""
- style="width: 40rpx;height: 40rpx;">
- </image>
- </view>
- <image @click="counter" src="../../static/images/index/compile.png" mode=""
- style="width: 40rpx;height: 40rpx;margin-left: 22rpx;"></image>
- <image src="../../static/images/index/dianhua.png" mode=""
- style="width: 40rpx;height: 40rpx;margin-left: 22rpx;" @click="callphone"></image>
- </view>
- <view class="u-nav-slot" slot="center" style="width: 320rpx;">
- <u-subsection bgColor='rgba(248, 50, 36, 0.1)' activeColor='#F83224' inactiveColor='#222'
- :list="list" :current="current" @change="sectionChange"></u-subsection>
- </view>
- </u-navbar>
- </view>
- <swiper style="height: calc(100vh - 300rpx);" class="index-swiper" :circular="false" :autoplay="false"
- :current="current" @change="swipertotabs">
- <!-- 商城 -->
- <swiper-item>
- <view>
- <kj-express :language='language'></kj-express>
- </view>
- </swiper-item>
- <swiper-item>
- <view>
- <kj-index :language='language'></kj-index>
- </view>
- </swiper-item>
- </swiper>
- <view class="" style="height: 160rpx;"></view>
- <kj-tabbar :value1=0 ref="kjTabbar"></kj-tabbar>
- </view>
- </template>
- <script>
- import {
- conn,
- } from '@/utils/WebIM';
- import {
- recom
- } from "../../network/shopApi.js";
- export default {
- data() {
- return {
- recomlist: [],
-
-
- current: 1,
-
- list1: [{
- name: '推荐',
- }],
-
- banner: [
- 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
- 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
- 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
- ],
- show: true,
- timer: '',
- subsidylist: [],
- packlist: [],
- shippList: [],
- keyword: '',
- page: 1,
- index: 0,
- parent_id: '',
- last_page: '',
- configimage: '',
- url: '',
- unReadCount: 0,
- type: "error",
- language:''
- }
- },
- computed: {
- i18n() {
- return this.$t('index')
- },
- list() {
- var list = []
- list = [this.i18n.border, this.i18n.shop]
- return list
- }
- },
- onReachBottom() {
-
-
-
-
-
-
-
-
- },
- onLoad(options) {
-
-
-
-
-
-
- },
- onShow() {
-
-
-
-
-
-
-
-
-
-
- if (uni.getStorageSync('language') != '') {
- this.language = uni.getStorageSync('language')
- }
-
- this.$refs.kjTabbar.getNumber();
- },
- methods: {
-
- swipertotabs(e) {
- this.current = e.detail.current
- },
-
- sectionChange(index) {
- this.current = index;
-
-
-
-
-
-
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- callphone() {
- uni.$u.http.get('/api/config', {
- params: {
- module: 'basic'
- }
- }).then((res) => {
- console.log(res);
- uni.makePhoneCall({
- phoneNumber: res.service_mobile
- })
- }).catch(() => {
- })
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- counter() {
- uni.navigateTo({
- url: '/pageA/counter'
- })
- },
-
- tochat() {
- uni.navigateTo({
- url: '/pageA/chat/news'
- })
- },
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
- </script>
- <style lang="scss" scoped>
- page {
- background-color: rgba(0, 0, 0, 0)
- }
- .discount {
-
- padding: 0 6rpx;
- height: 36rpx;
- background: #ff1515;
- border-radius: 6rpx;
- position: absolute;
- left: 12rpx;
- top: 12rpx;
- z-index: 10;
- font-family: OriyaMN;
- font-size: 20rpx;
- color: #ffffff;
- line-height: 36rpx;
- text-align: center;
- font-style: normal;
- }
- .index-navbar {
- position: sticky;
- top: 0;
- left: 0;
- width: 750rpx;
- z-index: 100;
- }
- ::v-deep .u-tabs {
- width: 560rpx;
- }
- .taber {
- border-radius: 4rpx;
- padding: 4rpx 8rpx;
- margin-bottom: 10rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 16rpx;
- color: #d48700;
- line-height: 28rpx;
- text-align: left;
- font-style: normal;
- }
- .title {
- font-family: SFPro, SFPro;
- font-weight: 400;
- font-size: 26rpx;
- color: #222222;
-
-
-
- width: 300rpx;
-
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- -webkit-line-clamp: 1;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- }
- .weight {
- font-family: SFPro, SFPro;
- font-weight: 400;
- font-size: 20rpx;
- color: #888888;
- line-height: 24rpx;
- text-align: left;
- font-style: normal;
- margin-left: 12rpx;
- }
- .shopname {
- width: 124rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- white-space: nowrap;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 20rpx;
- color: #666666;
- line-height: 28rpx;
- text-align: left;
- font-style: normal;
- }
- .money {
- font-family: HarmonyOS_Sans_Medium;
- font-size: 28rpx;
- color: #f83224;
- line-height: 38rpx;
- text-align: right;
- font-style: normal;
- }
- .biaoqian {
- height: 28rpx;
- border-radius: 6rpx;
- padding: 6rpx;
- margin-left: 8rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 20rpx;
- color: #ffffff;
- line-height: 30rpx;
- text-align: center;
- overflow: hidden;
- }
- .tag {
-
- border-radius: 14rpx 14rpx 14rpx 0rpx;
- border: 1rpx solid #ffffff;
- padding: 6rpx;
- text-align: center;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 20rpx;
- color: #ffffff;
- line-height: 28rpx;
- text-align: center;
- font-style: normal;
- box-sizing: border-box;
-
- }
- .bigbox {
- width: 340rpx;
-
- background: #ffffff;
- border-radius: 12rpx;
- border: 2rpx solid #ffffff;
- margin-bottom: 22rpx;
- padding: 18rpx 20rpx;
- box-sizing: border-box;
- }
- .smallbox {
- width: 340rpx;
- height: 226rpx;
- background: #ffffff;
- border-radius: 12rpx;
- border: 2rpx solid #ffffff;
- margin-bottom: 22rpx;
- padding: 18rpx 20rpx;
- box-sizing: border-box;
- }
- .shopback {
- width: 750rpx;
- min-height: 1216rpx;
- background: #f4f4f4;
- border-radius: 28rpx 28rpx 0rpx 0rpx;
- padding: 26rpx 24rpx;
- box-sizing: border-box;
- }
- .fenlei {
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 28rpx;
- color: #222222;
- line-height: 40rpx;
- text-align: right;
- font-style: normal;
- margin-left: 8rpx;
- }
- .search {
- width: 702rpx;
- height: 68rpx;
- background: #ffffff;
- border-radius: 34rpx;
- padding: 6rpx 6rpx 6rpx 36rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- box-sizing: border-box;
- .right {
- width: 100rpx;
- height: 56rpx;
- background: #ed0909;
- border-radius: 28rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 26rpx;
- color: #ffffff;
- line-height: 56rpx;
- text-align: center;
- }
- }
- .border {
- width: 2rpx;
- height: 24rpx;
- border: 2rpx solid #979797;
- opacity: 0.2;
- background-color: #979797;
- }
-
-
-
-
-
-
- ::v-deep .u-subsection--button.data-v-b14d3440 {
-
- border-radius: 64rpx !important;
- }
- ::v-deep .u-subsection--button__bar.data-v-b14d3440 {
- border-radius: 32rpx !important;
- }
- </style>
|