| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <template>
- <view class="content">
- <!--轮播图-->
- <view class="banner">
- <swiper :autoplay="true" :circular="true" :interval="3000" class="swiper" :indicator-dots="true">
- <swiper-item class="swiperItem" v-for="(item,index) in slideshowLinks" :key="index">
- <view class="swiperImgView ">
- <image class="swiperImg" :src="item"></image>
- </view>
- </swiper-item>
- </swiper>
- </view>
- <!--商品文字信息-->
- <view class="goods flex-col ">
- <view class=" flex-row justify-between">
- <view class="goodsPrice">
- <text>¥700</text>
- </view>
- <view class="aixinView ">
- <image class=" aixinImg" src="/static/imageIcon/aixin.png"></image>
- </view>
- </view>
- <view class="goodsName">
- <text>商品名字商品名字商品名字商商品名字商品名字商品字商品名字商</text>
- </view>
- <view class="goodsImgTitle">
- <text>商品说明商品名字商品名字字商品名字商品名字商</text>
- </view>
- </view>
- <!--商品详情-->
- <view class="flex-col">
- <view class="goodsDetail flex-row justify-center">
- <text>商品详情</text>
- </view>
- <view class="goodsDetailImgView flex-col" v-for="i in 10" :key="i">
- <image class="goodsDetailImg" mode="widthFix" src="/static/0e733b67a401b9b5776b5196cd5b38e0.jpg"></image>
- </view>
- </view>
- <view :style="{'height':'50px'}"></view>
- <!--底部导航-->
- <view class="goods-carts">
- <uni-goods-nav :options="options" :fill="true" :button-group="buttonGroup" @click="onClick"
- @buttonClick="buttonClick" />
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- options: [{
- icon: 'chat',
- text: '客服'
- }, {
- icon: 'shop',
- text: '店铺',
- info: 2,
- infoBackgroundColor: '#007aff',
- infoColor: "#f5f5f5"
- }, {
- icon: 'cart',
- text: '购物车',
- info: 2
- }],
- buttonGroup: [{
- text: '加入购物车',
- backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
- color: '#fff'
- },
- {
- text: '立即购买',
- backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
- color: '#fff'
- }
- ],
- customButtonGroup: [{
- text: '加入购物车',
- backgroundColor: 'linear-gradient(90deg, #1E83FF, #0053B8)',
- color: '#fff'
- },
- {
- text: '立即购买',
- backgroundColor: 'linear-gradient(90deg, #60F3FF, #088FEB)',
- color: '#fff'
- }
- ],
- slideshowLinks: [
- 'http://rredu.obs.cn-southwest-2.myhuaweicloud.com/upload/20230709/b1a1d6fcfb8b30f13b20607739e1b344.png',
- 'http://rredu.obs.cn-southwest-2.myhuaweicloud.com/upload/20230709/c3d1ebde245651d602211ba7af4d1a92.png',
- 'http://rredu.obs.cn-southwest-2.myhuaweicloud.com/upload/20230709/ee83d2c5934cea4d66a43a3a34d2cf86.png'
- ],
- }
- },
- onLoad() {
- this.getmessage()
- },
- methods: {
- onClick(e) {
- uni.showToast({
- title: `点击${e.content.text}`,
- icon: 'none'
- })
- },
- buttonClick(e) {
- console.log(e)
- this.options[2].info++
- },
- getmessage(){
- this.$api.payTheBill({}).then(res =>{
- console.log(res)
- })
- }
- }
- }
- </script>
- <style>
- @import '/common/css/common.css';
- @import './index.rpx.css';
- </style>
|