| | |
| | | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/preselect_interface/' |
| | | |
| | | VUE_APP_API = 'http://192.168.0.15:10022/' |
| | | # VUE_APP_API = 'http://192.168.0.15:10024/' |
| | | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/preselect_web_interface/' |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/preselect_web_interface/' |
| | | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/preselect_interface/' |
| | |
| | | |
| | | // æ¥è¯¢èåæ |
| | | export function fetchMenuTree () { |
| | | return request.get('/system/menu/treeNodes') |
| | | return request.get('/system/menu/treeNodes?type=1') |
| | | } |
| | | |
| | | // æåº |
| | |
| | | <view class="img_content_tu_nr"> |
| | | <swiper style="width: 100%; height: 100%;" @change="handlechange" :current="mycurrent" :indicator-dots="false" :circular="true" :interval="1000" :duration="1000"> |
| | | <swiper-item v-for="(item,index) in imgList" :key="index"> |
| | | <view :class="['swiper-item',index==mycurrent ? 'active' : '']"> |
| | | <image :src="item" style="width: 100%;height: 100%;" mode="aspectFit" /> |
| | | <view :class="['swiper-item',index == mycurrent ? 'active' : '']"> |
| | | <image :src="item" style="width: 150%;height: 150%;" mode="aspectFit" /> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="img" :style="{ opacity: opacity, zIndex: zindex }"> |
| | | <view class="img_content"> |
| | | <view class="img_content_tu"> |
| | | <image class="left" src="@/static/ic_left@2x.png" mode="widthFix" @click="jian"></image> |
| | | <view class="img_content_tu_nr"> |
| | | <swiper style="width: 100%; height: 100%;" @change="handlechange" :current="mycurrent" :indicator-dots="false" :circular="true" :interval="1000" :duration="1000"> |
| | | <swiper-item v-for="(item,index) in imgList" :key="index"> |
| | | <view :class="['swiper-item',index == mycurrent ? 'active' : '']"> |
| | | <image :src="item" style="width: 100%;height: 100%;" mode="aspectFit" /> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | <image class="right" src="@/static/ic_right@2x.png" mode="widthFix" @click="add"></image> |
| | | </view> |
| | | <view class="img_content_close"> |
| | | <image src="@/static/ic_close@2x.png" mode="widthFix" @click="close"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | opacity: 0, |
| | | zindex: '-1', |
| | | mycurrent: 0 |
| | | } |
| | | }, |
| | | props: { |
| | | imgList: { |
| | | type: Array, |
| | | default: () => [] |
| | | } |
| | | }, |
| | | methods: { |
| | | add() { |
| | | if (this.imgList.length - 1 === this.mycurrent) return |
| | | this.mycurrent++ |
| | | }, |
| | | jian() { |
| | | if (this.mycurrent === 0) return |
| | | this.mycurrent-- |
| | | }, |
| | | handlechange(e){ |
| | | this.mycurrent=e.detail.current |
| | | }, |
| | | open(i) { |
| | | this.mycurrent = i |
| | | this.zindex = 3 |
| | | this.opacity = 1 |
| | | }, |
| | | close() { |
| | | this.zindex = '-1' |
| | | this.opacity = 0 |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .img { |
| | | width: 100vw; |
| | | height: 100vh; |
| | | background: rgba(0,0,0,0.4); |
| | | position: fixed; |
| | | transition: .2s; |
| | | top: 0; |
| | | left: 0; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | |
| | | .img_content { |
| | | display: flex; |
| | | flex-direction: column; |
| | | .img_content_tu { |
| | | display: flex; |
| | | align-items: center; |
| | | .img_content_tu_nr { |
| | | width: 600px; |
| | | height: 600px; |
| | | padding: 30px; |
| | | box-sizing: border-box; |
| | | border-radius: 8px; |
| | | margin: 0 32px; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-wrap: nowrap; |
| | | .swiper-item{ |
| | | width: 100%; |
| | | border-radius: 30rpx; |
| | | overflow: hidden; |
| | | // åè¿ç§å¤å¼ è½®æå¾åæ¶åºç°å¨ä¸å±çæ
åµä¸å°±ä¸è¦æå®widthäºï¼ä¸ç¶ä½ ä¼åç°previous-marginå next-marginä¼åºç°æ³ä¸å°çææ |
| | | // 妿æ³è¦è®¾ç½®å®½æ¯ä¸å¼ è½®æå¾ç宽度ï¼åªéè¦è®¾ç½®previous-marginånext-marginå°±å¯ä»¥äºï¼æ³è¦è®¾ç½®é«åº¦ç´æ¥æ¹ä¸é¢çheightå°±å¯ä»¥äº |
| | | // width: 450rpx; |
| | | height: 100%; |
| | | // transform: scale(1); |
| | | // transition: all 0.5s ease; |
| | | text-align: center; |
| | | // transition: all 0.5s ease-in-out; |
| | | } |
| | | .img_content_tu_nr_item { |
| | | width: 100%; |
| | | height: 600px; |
| | | image { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | | .left { |
| | | width: 80px; |
| | | height: 80px; |
| | | cursor: pointer; |
| | | } |
| | | .right { |
| | | width: 80px; |
| | | height: 80px; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | .img_content_close { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: 40px; |
| | | image { |
| | | width: 60px; |
| | | height: 60px; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="no"> |
| | | <image src="@/static/default_nodata@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name:"noData" |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .no { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | // margin-top: 36px; |
| | | padding: 36px 0; |
| | | box-sizing: border-box; |
| | | image { |
| | | width: 268px; |
| | | height: 268px; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | |
| | | import store from './store/index.js' |
| | | |
| | | import 'viewerjs/dist/viewer.css' |
| | | import Viewer from 'v-viewer' |
| | | |
| | | Vue.use(Viewer) |
| | | |
| | | Vue.prototype.$store = store; |
| | | |
| | | try { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "requires": true, |
| | | "lockfileVersion": 1, |
| | | "dependencies": { |
| | | "throttle-debounce": { |
| | | "version": "2.3.0", |
| | | "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-2.3.0.tgz", |
| | | "integrity": "sha512-H7oLPV0P7+jgvrk+6mwwwBDmxTaxnu9HMXmloNLXwnNO0ZxZ31Orah2n8lU1eMPvsaowP2CX+USCgyovXfdOFQ==" |
| | | }, |
| | | "v-viewer": { |
| | | "version": "1.6.4", |
| | | "resolved": "https://registry.npmjs.org/v-viewer/-/v-viewer-1.6.4.tgz", |
| | | "integrity": "sha512-LVkiUHpmsbsZXebeNXnu8krRCi5i2n07FeLFxoIVGhw8lVvTBO0ffpbDC6mLEuacCjrIh09HjIqpciwUtWE8lQ==", |
| | | "requires": { |
| | | "throttle-debounce": "^2.0.1", |
| | | "viewerjs": "^1.5.0" |
| | | } |
| | | }, |
| | | "viewerjs": { |
| | | "version": "1.11.6", |
| | | "resolved": "https://registry.npmjs.org/viewerjs/-/viewerjs-1.11.6.tgz", |
| | | "integrity": "sha512-TlhdSp2oEOLFXvEp4psKaeTjR5zBjTRcM/sHUN8PkV1UWuY8HKC8n7GaVdW5Xqnwdr/F1OmzLik1QwDjI4w/nw==" |
| | | } |
| | | } |
| | | } |
| | |
| | | </view> |
| | | </view> |
| | | <view class="productPage_shop" v-if="status === 1 && !pkcontent"> |
| | | <view class="productPage_shop_item" v-for="(item, index) in isSOU ? shopPageDataSou : shopPageData" :key="index" @click="clickshoppageItem(item)"> |
| | | <view class="productPage_shop_item_img"> |
| | | <image :src="item.imgurl ? item.prefixUrl + item.imgurl : ''" mode="widthFix"></image> |
| | | <noData v-if="shopPageData.length === 0 && shopPageDataSou.length === 0" /> |
| | | <template v-else> |
| | | <view class="productPage_shop_item" v-for="(item, index) in isSOU ? shopPageDataSou : shopPageData" :key="index" @click="clickshoppageItem(item)"> |
| | | <view class="productPage_shop_item_img"> |
| | | <image :src="item.imgurl ? item.prefixUrl + item.imgurl : ''" mode="widthFix"></image> |
| | | </view> |
| | | <!-- stringOperations(item.name, 6) --> |
| | | <text>{{item.name}}</text> |
| | | </view> |
| | | <!-- stringOperations(item.name, 6) --> |
| | | <text>{{item.name}}</text> |
| | | </view> |
| | | <view class="productPage_shop_zw"></view> |
| | | <view class="productPage_shop_zw"></view> |
| | | <view class="productPage_shop_zw"></view> |
| | | <view class="productPage_shop_zw"></view> |
| | | <view class="productPage_shop_zw"></view> |
| | | <view class="productPage_shop_zw"></view> |
| | | </template> |
| | | </view> |
| | | <!-- v-if="status === 2" --> |
| | | <view class="productPage_parameter" v-if="isPK && pkcontent"> |
| | |
| | | <bigImg |
| | | ref="bigImg" |
| | | :imgList="imgList"/> |
| | | <!-- æ¥çå¤§å¾ --> |
| | | <bigImg1 |
| | | ref="bigImg1" |
| | | :imgList="imgList"/> |
| | | <!-- æç´¢ --> |
| | | |
| | | <!-- æç´¢ç»ä»¶ --> |
| | |
| | | |
| | | <script> |
| | | import bigImg from '@/components/bigImg.vue' |
| | | import bigImg1 from '@/components/bigImg1.vue' |
| | | import search from '@/components/search.vue' |
| | | import noData from '@/components/noData.vue' |
| | | import { mapState } from 'vuex' |
| | | import { categoryList, goodsList, brandList, h5Image, goodsPage, listForH5 } from '@/apis/index.js' |
| | | export default { |
| | |
| | | page: 1 |
| | | } |
| | | }, |
| | | components: { bigImg, search }, |
| | | components: { bigImg, search, noData, bigImg1 }, |
| | | onLoad() { |
| | | var that = this |
| | | // çå¬é®çç»åé® |
| | |
| | | }) |
| | | } |
| | | }) |
| | | this.$refs.bigImg.open(0) |
| | | // console.log(this.imgList) |
| | | this.$viewerApi({ |
| | | images: this.imgList, |
| | | }) |
| | | // this.$refs.bigImg.open(0) |
| | | // this.$refs.bigImg1.open(0) |
| | | }, |
| | | empty() { |
| | | this.shopList = [] |
| | |
| | | margin-top: 16px; |
| | | .commodityFrom_head { |
| | | width: 100%; |
| | | height: 60px; |
| | | height: 45px; |
| | | padding: 10px 8px; |
| | | box-sizing: border-box; |
| | | background: rgba(0,224,255,0.24) linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(0,0,0,0.21) 100%); |
| | |
| | | flex-direction: column; |
| | | .commodityFrom_body_content_item { |
| | | width: 100%; |
| | | height: 56px; |
| | | height: 45px; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 6px; |
| | |
| | | opacity: 0; |
| | | transform: translate(0%, 0%); |
| | | z-index: -1; |
| | | height: 56px; |
| | | height: 45px; |
| | | display: flex; |
| | | align-items: center; |
| | | background: rgba(0,224,255,0.3); |
| | |
| | | } |
| | | .commodityFrom_body_total { |
| | | width: 100%; |
| | | height: 56px; |
| | | height: 45px; |
| | | display: flex; |
| | | align-items: center; |
| | | .commodityFrom_body_total_item { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .productPage { |
| | | width: 100%; |
| | | padding: 0 22px; |
| | |
| | | margin-top: 16px; |
| | | .productPage_head { |
| | | width: 100%; |
| | | height: 60px; |
| | | height: 45px; |
| | | display: flex; |
| | | align-items: center; |
| | | background: rgba(0,224,255,0.34) linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(0,0,0,0.21) 100%); |