|
|
@@ -0,0 +1,750 @@
|
|
|
+<template>
|
|
|
+ <view class="container">
|
|
|
+ <!-- 轮播图 -->
|
|
|
+ <swiper-banner
|
|
|
+ imgScale="1:1"
|
|
|
+ :imgArr="detail.goods_img"
|
|
|
+ :duration="1000"
|
|
|
+ :interval="5000"
|
|
|
+ :circular="true"
|
|
|
+ :autoplay="true"
|
|
|
+ :indicator-dots="true"
|
|
|
+ indicator-active-color="#12B280"
|
|
|
+ indicator-color="rgba(255, 255, 255, .82)"
|
|
|
+ ></swiper-banner>
|
|
|
+ <!-- 轮播图-end -->
|
|
|
+ <!-- 价格信息栏 -->
|
|
|
+ <view class="price_info flex_r flex_ac flex_jb">
|
|
|
+ <view class="price flex_c flex_jb">
|
|
|
+ <view class="text1"> 到手价 </view>
|
|
|
+ <view class="bottom">
|
|
|
+ <span class="text2">
|
|
|
+ {{ goods_price }}
|
|
|
+ </span>
|
|
|
+ <text class="text3">¥{{ detail.min_group_price / 100 }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="price flex_c flex_jb">
|
|
|
+ <view class="text4">预估下单返</view>
|
|
|
+ <view class="text5 bottom">
|
|
|
+ {{ yj_price }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="price flex_c flex_jb">
|
|
|
+ <view class="text6">销量</view>
|
|
|
+ <view class="text7 bottom">{{ detail.sales_tip }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 价格信息栏-end -->
|
|
|
+ <!-- 标题信息栏 -->
|
|
|
+ <view class="title_info">
|
|
|
+ <view class="goods_name">
|
|
|
+ <span class="product-type"> 拼多多 </span>
|
|
|
+ {{ detail.goods_name }}
|
|
|
+ </view>
|
|
|
+ <view class="quan flex_r flex_ac flex_jb" v-if="detail.has_coupon">
|
|
|
+ <view class="left flex_r flex_ac">
|
|
|
+ <view class="quan_price">{{ detail.coupon_discount / 100 }}</view>
|
|
|
+ <view class="flex_c time">
|
|
|
+ <span>专属优惠券</span>
|
|
|
+ <span>
|
|
|
+ {{ $day(detail.coupon_start_time * 1000).format("YYYY.MM.DD") }}
|
|
|
+ -
|
|
|
+ {{ $day(detail.coupon_end_time * 1000).format("YYYY.MM.DD") }}
|
|
|
+ </span>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="split"></view>
|
|
|
+ <view class="right" @click="buttonClick"> 立即领券 </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="mall flex_r flex_ac">
|
|
|
+ <img src="/static/img/shop.png" alt="" class="mall_img" />
|
|
|
+ <view class="text7 bottom">{{ detail.mall_name }}</view>
|
|
|
+ </view>
|
|
|
+ <!-- 标题信息栏-end -->
|
|
|
+ <!-- 产品简介 -->
|
|
|
+ <view class="brief mar_t20">
|
|
|
+ <view class="brief_title flex_r flex_ac">产品简介</view>
|
|
|
+ <view class="brief_con">
|
|
|
+ <!-- <mp-html :content="detail.goods_content" ref="jyf"></mp-html> -->
|
|
|
+ <img
|
|
|
+ v-for="(i, s) in detail.goods_img"
|
|
|
+ :key="s"
|
|
|
+ :src="i"
|
|
|
+ alt=""
|
|
|
+ mode="widthFix"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 产品简介-end -->
|
|
|
+ <!-- 底部导航组件 -->
|
|
|
+ <view class="option">
|
|
|
+ <uni-goods-nav
|
|
|
+ :fill="true"
|
|
|
+ :options="options"
|
|
|
+ :buttonGroup="buttonGroup"
|
|
|
+ @click="onClick"
|
|
|
+ @buttonClick="buttonClick"
|
|
|
+ />
|
|
|
+ <button open-type="share" class="share"></button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+let app = getApp();
|
|
|
+import { post } from "@/request/api.js";
|
|
|
+import mpHtml from "@/uni_modules/mp-html/components/mp-html/mp-html.vue";
|
|
|
+import swiperBanner from "@/components/swiperBanner/index.vue";
|
|
|
+import uniGoodsNav from "@/components/uni-goods-nav/uni-goods-nav.vue";
|
|
|
+import uniNumberBox from "@/components/uni-number-box/uni-number-box.vue";
|
|
|
+import authorizeModule from "@/components/authorize-module/index";
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ mpHtml,
|
|
|
+ uniGoodsNav,
|
|
|
+ swiperBanner,
|
|
|
+ uniNumberBox,
|
|
|
+ authorizeModule,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ imgArr: ["/static/goods5.jpg"],
|
|
|
+ content: "",
|
|
|
+ options: [],
|
|
|
+ buttonGroup: [
|
|
|
+ {
|
|
|
+ text: "分享好友",
|
|
|
+ backgroundColor: "#fff",
|
|
|
+ color: "#000",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: "下单省",
|
|
|
+ backgroundColor: "#46AFE6",
|
|
|
+ color: "#fff",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ btnIndex: 0, // 用户点击按钮事件判断 0:加入购物车;1:立即购买
|
|
|
+ type: null, // 商品类型,1零售 2批发 3精品 4今日值买
|
|
|
+ goodsId: "", // 商品ID
|
|
|
+ id: "", //合伙人套餐ID
|
|
|
+ detail: {
|
|
|
+ goods: {},
|
|
|
+ goods_spec_list: [],
|
|
|
+ }, // 商品详情
|
|
|
+ checked: false, //是否选中协议
|
|
|
+ buyNum: 1, //购买数量
|
|
|
+ pfway: "1", // 批发
|
|
|
+ qhway: "0", //提货方式
|
|
|
+ shopInfo: {}, // 商铺信息
|
|
|
+ // showAuth: false,
|
|
|
+
|
|
|
+ userinfo: {},
|
|
|
+ goodsDa: {},
|
|
|
+ unid: "",
|
|
|
+ goodsSpecIndex: 0,
|
|
|
+ goodsAttrIndex: 0,
|
|
|
+ specId: "0",
|
|
|
+ attrId: "0",
|
|
|
+ afterSpecPrice: 0, // 规格选择后显示价格
|
|
|
+ goods_price: 0, //到手价
|
|
|
+ yj_price: 0, // 返利金额
|
|
|
+ };
|
|
|
+ },
|
|
|
+ onLoad: function (e) {
|
|
|
+ this.userinfo = uni.getStorageSync("userinfo");
|
|
|
+ let token = uni.getStorageSync("token");
|
|
|
+ this.type = e.type;
|
|
|
+ this.goodsDa = e;
|
|
|
+ this.loadData(e);
|
|
|
+
|
|
|
+ if (!token) this.login();
|
|
|
+ },
|
|
|
+ onShow: function () {},
|
|
|
+ methods: {
|
|
|
+ // 商品详情信息
|
|
|
+ loadData(da) {
|
|
|
+ post("v1/cashback/duoduoInfo", da).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.detail = JSON.parse(
|
|
|
+ res.data
|
|
|
+ ).goods_detail_response.goods_details[0];
|
|
|
+ console.log(JSON.parse(res.data));
|
|
|
+ console.log(this.detail);
|
|
|
+ console.log(this.detail.sku_list);
|
|
|
+ this.detail.goods_img = this.detail.goods_gallery_urls;
|
|
|
+ this.goods_price =
|
|
|
+ Math.floor(
|
|
|
+ (this.detail.min_group_price / 100 -
|
|
|
+ this.detail.coupon_discount / 100) *
|
|
|
+ 100
|
|
|
+ ) / 100;
|
|
|
+
|
|
|
+ this.yj_price =
|
|
|
+ Math.floor(
|
|
|
+ (this.detail.min_group_price / 100) *
|
|
|
+ (this.detail.promotion_rate / 1000) *
|
|
|
+ 100
|
|
|
+ ) / 100;
|
|
|
+
|
|
|
+ this.buttonGroup[1].text =
|
|
|
+ "下单省\n¥" + (this.yj_price + this.detail.coupon_discount / 100);
|
|
|
+ } else {
|
|
|
+ uni.showModal({
|
|
|
+ title: "提示",
|
|
|
+ content: res.msg,
|
|
|
+ showCancel: false,
|
|
|
+ success: function (res) {
|
|
|
+ if (res) {
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 去购买
|
|
|
+ ToPayPage: function () {},
|
|
|
+ // 点击底部主页购物车等按钮
|
|
|
+ onClick(e) {
|
|
|
+ console.log(e, "onClick");
|
|
|
+ },
|
|
|
+ // 点击立即购买或加入购物车
|
|
|
+ buttonClick: function (e) {
|
|
|
+ if (e.index === 0) {
|
|
|
+ // console.log(111);
|
|
|
+ // uni.share({
|
|
|
+ // provider: "weixin",
|
|
|
+ // scene: "WXSceneSession",
|
|
|
+ // type: 5,
|
|
|
+ // imageUrl: _this.detail.goods_image_url,
|
|
|
+ // title: _this.detail.goods_name,
|
|
|
+ // miniProgram: {
|
|
|
+ // id: "gh_e871cdeb44e1",
|
|
|
+ // path: "pagesC/shoppingMallType/p_details",
|
|
|
+ // type: 1,
|
|
|
+ // webUrl: "",
|
|
|
+ // },
|
|
|
+ // success: (ret) => {
|
|
|
+ // console.log(JSON.stringify(ret));
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ } else {
|
|
|
+ let _this = this;
|
|
|
+ post("v1/cashback/duoduoZs", {
|
|
|
+ goods_sign: _this.detail.goods_sign,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ let data = JSON.parse(res.data)
|
|
|
+ .goods_promotion_url_generate_response
|
|
|
+ .goods_promotion_url_list[0];
|
|
|
+ console.log(data);
|
|
|
+ wx.navigateToMiniProgram({
|
|
|
+ shortLink: data.weixin_short_link, //上图找到目标小程序的链接
|
|
|
+ //develop开发版;trial体验版;release正式版
|
|
|
+ envVersion: "release",
|
|
|
+ success(res1) {
|
|
|
+ // 打开成功
|
|
|
+ console.log("跳转小程序成功!", res1);
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ login(invite) {
|
|
|
+ let that = this;
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ wx.login({
|
|
|
+ success(res) {
|
|
|
+ if (res.code) {
|
|
|
+ post("v1/appletLogin", {
|
|
|
+ code: res.code,
|
|
|
+ invite: uni.getStorageSync("inviteCode") || "",
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ if (res.data.token) {
|
|
|
+ uni.setStorageSync("token", res.data.token);
|
|
|
+ that.getuserInfo();
|
|
|
+ } else {
|
|
|
+ that.unid = res.data.unid;
|
|
|
+ uni.setStorageSync("unid", res.data.unid);
|
|
|
+ that.shopInfo = app.globalData.shopInfo;
|
|
|
+ // that.SoHAuth(); //调取授权弹窗
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
+ // onauthGetTelSuccess(da) {
|
|
|
+ // this.SoHAuth();
|
|
|
+ // post("v1/getMobile", {
|
|
|
+ // unid: this.unid,
|
|
|
+ // ...da.detail,
|
|
|
+ // }).then((res) => {
|
|
|
+ // if (res.code === 0) {
|
|
|
+ // uni.setStorageSync("token", res.data.token);
|
|
|
+ // this.getuserInfo();
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ async getuserInfo() {
|
|
|
+ this.userinfo = await uni.userfun();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ onShareAppMessage() {
|
|
|
+ // let userinfo = uni.getStorageSync("userinfo");
|
|
|
+ var path = `pagesC/shoppingMallType/p_details?goods_sign=${this.detail.goods_sign}&type=${this.type}`;
|
|
|
+ var title = this.detail.goods_name;
|
|
|
+ console.log(this.detail.goods_name);
|
|
|
+
|
|
|
+ return {
|
|
|
+ title: title,
|
|
|
+ path: path,
|
|
|
+ imageUrl: this.detail.goods_image_url,
|
|
|
+ };
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="scss">
|
|
|
+// 页面配置
|
|
|
+page {
|
|
|
+ background: #f5f5f5;
|
|
|
+}
|
|
|
+
|
|
|
+.container {
|
|
|
+ padding-bottom: 90rpx;
|
|
|
+}
|
|
|
+
|
|
|
+// 页面配置-end
|
|
|
+
|
|
|
+.price_info {
|
|
|
+ background: #fff;
|
|
|
+ margin: 20rpx 0;
|
|
|
+ // height: 92rpx;
|
|
|
+ // width: 100%;
|
|
|
+ padding: 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ .price {
|
|
|
+ height: 100rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .text1,
|
|
|
+ .text4,
|
|
|
+ .text6,
|
|
|
+ .text7 {
|
|
|
+ font-size: 28rpx;
|
|
|
+ }
|
|
|
+ .text1 {
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
+ .text6,
|
|
|
+ .text7 {
|
|
|
+ color: #999;
|
|
|
+ }
|
|
|
+ .text4 {
|
|
|
+ color: #fa2e18;
|
|
|
+ }
|
|
|
+ .text7 {
|
|
|
+ padding-bottom: 8rpx;
|
|
|
+ }
|
|
|
+ .text2,
|
|
|
+ .text5 {
|
|
|
+ font-size: 40rpx;
|
|
|
+ color: #000;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+ .text2::before,
|
|
|
+ .text5::before {
|
|
|
+ content: "¥";
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-weight: normal;
|
|
|
+ }
|
|
|
+ .text5 {
|
|
|
+ color: #fa2e18;
|
|
|
+ }
|
|
|
+ .text3 {
|
|
|
+ color: #999;
|
|
|
+ font-size: 24rpx;
|
|
|
+ text-decoration: line-through;
|
|
|
+ padding-left: 12rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.mall {
|
|
|
+ font-size: 26rpx;
|
|
|
+ background: #fff;
|
|
|
+ margin: 20rpx 0;
|
|
|
+ padding: 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ &_img {
|
|
|
+ width: 36rpx;
|
|
|
+ height: 36rpx;
|
|
|
+ padding: 6rpx;
|
|
|
+ margin-right: 20rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ border: 1rpx solid rgba($color: #cdcdcd, $alpha: 0.5);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 价格信息栏-end
|
|
|
+.quan {
|
|
|
+ color: #e90406;
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin: 20rpx 0;
|
|
|
+ .left {
|
|
|
+ width: 70%;
|
|
|
+ height: 150rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 40rpx;
|
|
|
+ border-radius: 15rpx;
|
|
|
+ background-color: #ffeff0;
|
|
|
+
|
|
|
+ .time {
|
|
|
+ font-size: 26rpx;
|
|
|
+ line-height: 180%;
|
|
|
+ padding-left: 30rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .quan_price {
|
|
|
+ font-size: 40rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+ .quan_price::before {
|
|
|
+ content: "¥";
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-weight: normal;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .split {
|
|
|
+ width: 2rpx;
|
|
|
+ height: 120rpx;
|
|
|
+ border: 2rpx dotted #fcc9c3;
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ width: 30%;
|
|
|
+ height: 150rpx;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 150rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 15rpx;
|
|
|
+ background-color: #ffeff0;
|
|
|
+ }
|
|
|
+}
|
|
|
+// 优惠券-start
|
|
|
+
|
|
|
+// 优惠券-end
|
|
|
+
|
|
|
+// 标题信息栏
|
|
|
+
|
|
|
+.title_info {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ background: #ffffff;
|
|
|
+ padding: 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
+
|
|
|
+.goods_name {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #1b1b1b;
|
|
|
+ font-family: "SourceHanSansCN-Bold";
|
|
|
+ font-weight: bold;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.product-type {
|
|
|
+ font-size: 16rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #fff;
|
|
|
+ height: 26rpx;
|
|
|
+ display: inline-block;
|
|
|
+ line-height: 26rpx;
|
|
|
+ padding: 0 8rpx;
|
|
|
+ border-radius: 4rpx;
|
|
|
+ margin-right: 16rpx;
|
|
|
+ background-color: #e90406;
|
|
|
+}
|
|
|
+
|
|
|
+// 标题信息栏-end
|
|
|
+
|
|
|
+// 产品简介
|
|
|
+.brief {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.brief_con {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ padding: 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ img {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.brief_title {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #1b1b1b;
|
|
|
+ padding: 0 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-bottom: 3rpx solid rgba(0, 0, 0, 0.12);
|
|
|
+ height: 74rpx;
|
|
|
+}
|
|
|
+
|
|
|
+// 产品简介-end
|
|
|
+
|
|
|
+// 底部导航组件
|
|
|
+.option {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ bottom: 0;
|
|
|
+ .share {
|
|
|
+ position: absolute;
|
|
|
+ left: 20rpx;
|
|
|
+ top: 10rpx;
|
|
|
+ width: 348rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ background-color: rgba(153, 50, 50, 0);
|
|
|
+ z-index: 99999;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 底部导航组件-end
|
|
|
+
|
|
|
+// 购买或加入购物车弹窗
|
|
|
+.option_box text {
|
|
|
+ color: #2db389;
|
|
|
+}
|
|
|
+
|
|
|
+.close_img {
|
|
|
+ font-size: 38rpx;
|
|
|
+ color: #999;
|
|
|
+}
|
|
|
+
|
|
|
+.option_box {
|
|
|
+ font-size: 26rpx;
|
|
|
+ margin-top: 80rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.goods_raido:nth-last-child(1) {
|
|
|
+ margin-right: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.num_con {
|
|
|
+ // width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ padding-bottom: 3rpx;
|
|
|
+}
|
|
|
+.quota_text {
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #545454;
|
|
|
+ padding-left: 6rpx;
|
|
|
+}
|
|
|
+.quota_num_text {
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #545454;
|
|
|
+ padding-left: 6rpx;
|
|
|
+}
|
|
|
+.num_str {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #989898;
|
|
|
+}
|
|
|
+
|
|
|
+.goods_option {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ padding-top: 50rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.close_con {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ margin-bottom: 35rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.raido_text {
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #545454;
|
|
|
+ margin-left: 18rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.goods_con {
|
|
|
+ width: calc(100% - 202rpx - 30rpx);
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.goods_img {
|
|
|
+ width: 202rpx;
|
|
|
+ height: 187rpx;
|
|
|
+ margin-right: 30rpx;
|
|
|
+ border-radius: 12rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.confim {
|
|
|
+ width: 100%;
|
|
|
+ height: 80rpx;
|
|
|
+ border-radius: 40rpx;
|
|
|
+ background: #2db389;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 26rpx;
|
|
|
+ margin-top: 44rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.shopping {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ padding: 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 30rpx 30rpx 0 0;
|
|
|
+ background: #fff;
|
|
|
+}
|
|
|
+
|
|
|
+.goods_info {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ align-items: inherit;
|
|
|
+ padding-bottom: 48rpx;
|
|
|
+ border-bottom: 3rpx solid rgba(0, 0, 0, 0.12);
|
|
|
+}
|
|
|
+
|
|
|
+.shop_names {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ font-family: "SourceHanSansCN-Bold";
|
|
|
+ font-weight: bold;
|
|
|
+ color: #1b1b1b;
|
|
|
+ font-size: 32rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.goods_msg {
|
|
|
+ width: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ font-size: 34rpx;
|
|
|
+ color: #18bb88;
|
|
|
+ font-family: "SourceHanSansCN-Medium";
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+.goods_smsg {
|
|
|
+ font-size: 22rpx;
|
|
|
+ color: #ff6d44;
|
|
|
+}
|
|
|
+
|
|
|
+.raido_img {
|
|
|
+ width: 39rpx;
|
|
|
+ height: 35rpx;
|
|
|
+ background: url(~@/static/img/weixuanzhong.png);
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 35rpx 35rpx;
|
|
|
+ background-position: center center;
|
|
|
+}
|
|
|
+
|
|
|
+.raido_box {
|
|
|
+ background: url(~@/static/img/consent.png);
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 39rpx 35rpx;
|
|
|
+ background-position: center center;
|
|
|
+}
|
|
|
+
|
|
|
+// 购买或加入购物车弹窗-end
|
|
|
+
|
|
|
+.goods_teac {
|
|
|
+ .product-txt,
|
|
|
+ .product-text {
|
|
|
+ font-size: 22rpx;
|
|
|
+ color: #787878;
|
|
|
+ }
|
|
|
+
|
|
|
+ .product-text {
|
|
|
+ margin-left: 16rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .red {
|
|
|
+ color: #fa2e18;
|
|
|
+ }
|
|
|
+
|
|
|
+ .fenxiang {
|
|
|
+ font-size: 22rpx;
|
|
|
+ background: rgba(250, 46, 24, 0.08);
|
|
|
+ display: inline-block;
|
|
|
+ border-radius: 6rpx;
|
|
|
+ padding: 0 16rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 商品规格样式-start
|
|
|
+.goods_spec {
|
|
|
+ font-size: 28rpx;
|
|
|
+ padding-top: 28rpx;
|
|
|
+}
|
|
|
+.goods_spec_list {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ padding-top: 20rpx;
|
|
|
+
|
|
|
+ &_item {
|
|
|
+ font-size: 24rpx;
|
|
|
+ padding: 14rpx 28rpx;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ border: 2rpx solid #f7f7f7;
|
|
|
+ margin-right: 12rpx;
|
|
|
+ margin-bottom: 14rpx;
|
|
|
+ background-color: #f7f7f7;
|
|
|
+ }
|
|
|
+ &_item_active {
|
|
|
+ color: #ff6d44;
|
|
|
+ border: 2rpx solid #ff6d44;
|
|
|
+ background-color: #fff8f2;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 商品规格样式-end
|
|
|
+
|
|
|
+::v-deep .uni-numbox {
|
|
|
+ border-radius: 10rpx !important;
|
|
|
+ background-color: #f7f7f7 !important;
|
|
|
+}
|
|
|
+::v-deep .uni-numbox__value {
|
|
|
+ border-radius: 10rpx !important;
|
|
|
+ background-color: #f7f7f7 !important;
|
|
|
+}
|
|
|
+::v-deep .uni-numbox__minus,
|
|
|
+::v-deep .uni-numbox__plus {
|
|
|
+ // border: 1rpx solid #888888 !important;
|
|
|
+ // color: #fff !important;
|
|
|
+ background-color: #f0f0f0 !important;
|
|
|
+}
|
|
|
+::v-deep .uni-tab__right {
|
|
|
+ border-radius: 0 !important;
|
|
|
+ // border: 1rpx ;
|
|
|
+}
|
|
|
+::v-deep .uni-tab__cart-button-right:first-child {
|
|
|
+ border: 1rpx solid#c5c5c5 !important;
|
|
|
+ margin-right: 2rpx;
|
|
|
+}
|
|
|
+::v-deep .uni-tab__cart-button-right:last-child {
|
|
|
+ font-size: 26rpx !important;
|
|
|
+ border: 1rpx solid#46AFE6 !important;
|
|
|
+ margin-left: 2rpx;
|
|
|
+}
|
|
|
+::v-deep .uni-tab__cart-button-right-text {
|
|
|
+ text-align: center !important;
|
|
|
+ font-size: 26rpx !important;
|
|
|
+}
|
|
|
+</style>
|