fixed 修改商品详情

This commit is contained in:
AERWEN\26795 2023-10-26 13:25:02 +08:00
parent e120e72733
commit cbcb935c0c
6 changed files with 22 additions and 15 deletions

4
app.js
View File

@ -1,8 +1,8 @@
import updateManager from './common/updateManager';
export const ServerBasePath = 'http://localhost:8888/api/';
// export const ServerBasePath = 'http://localhost:8888/api/';
// export const ServerBasePath = 'http://192.168.1.102:8888/api/';
// export const ServerBasePath = 'http://shop.api.aerwen.net/api/';
export const ServerBasePath = 'http://mall.api.aerwen.net/api/';
App({
onLaunch: function () {},

View File

@ -24,12 +24,12 @@
</view>
<block wx:if="{{buttonType === 1}}">
<view class="flex buy-buttons">
<view class="bar-separately {{soldout || !isStock ? 'bar-addCart-disabled' : ''}}" bindtap="toAddCart">
<view class="bar-buy {{soldout || !isStock ? 'bar-addCart-disabled' : ''}}" bindtap="toAddCart">
加入购物车
</view>
<view class="bar-buy {{soldout || !isStock ? 'bar-buyNow-disabled' : ''}}" bindtap="toBuyNow">
<!-- <view class="bar-buy {{soldout || !isStock ? 'bar-buyNow-disabled' : ''}}" bindtap="toBuyNow">
立即购买
</view>
</view> -->
</view>
</block>
<block wx:if="{{isSlotButton}}">

View File

@ -70,7 +70,7 @@
.bar-separately,
.bar-buy {
width: 254rpx;
width: 384rpx;
height: 80rpx;
color: #fff;
display: flex;
@ -86,7 +86,7 @@
.bar-buy {
background-color: #1989fa;
border-radius: 0rpx 40rpx 40rpx 0rpx;
border-radius: 40rpx 40rpx 40rpx 40rpx;
}
.flex {

View File

@ -63,7 +63,13 @@ Page({
],
storeLogo: `${imgPrefix}common/store-logo.png`,
storeName: '云mall标准版旗舰店',
jumpArray: [{
jumpArray: [
{
title: '客服',
url: '',
iconName: 'user_list',
},
{
title: '收藏',
url: '',
iconName: 'star',
@ -471,13 +477,13 @@ Page({
// details.desc = details.desc.replace(/<img[^>]*style\s*=\s*(['"])[^'"]*\1[^>]*>/gi, '<img style="max-width:100%;height:auto;" ');
// details.desc = details.desc.replace(/<img[^>]*>/gi, '<img style="max-3999999996width:100%;height:auto;" >');
if (details.isCollect === true) {
this.data.jumpArray[0].iconName = 'star_filled';
this.data.jumpArray[1].iconName = 'star_filled';
this.setData({
jumpArray: this.data.jumpArray
})
}
else{
this.data.jumpArray[0].iconName = 'star';
this.data.jumpArray[1].iconName = 'star';
this.setData({
jumpArray: this.data.jumpArray
})

View File

@ -12,7 +12,7 @@
list="{{details.images}}"
></t-swiper> -->
<view>
<swiper class="swiper-container" autoplay interval="10000" circular indicator-dots indicator-active-color="#fff">
<swiper class="swiper-container" circular indicator-dots indicator-active-color="#fff">
<!-- 第一个元素是视频 -->
<swiper-item wx:if="{{details.video}}">
<video src="{{details.video}}" autoplay poster="{{details.primaryImage}}" controls style="width: 100%; height: 100%;"></video>
@ -66,7 +66,7 @@
<view class="goods-intro">{{intro}}</view>
</view>
<view class="spu-select" bindtap="showSkuSelectPopup">
<view class="label">选</view>
<view class="label">选择参数</view>
<view class="content">
<view class="{{!selectedAttrStr ? 'tintColor' : ''}}">
{{selectedAttrStr ? buyNum : ''}}{{selectedAttrStr || '请选择'}}
@ -105,7 +105,7 @@
</view>
<!-- 店铺 -->
<view style="padding: 10px;" class="shop-big-box">
<!-- <view style="padding: 10px;" class="shop-big-box">
<view style="padding: 10px;" class="shop-left-box">
<view class="shop-left-img-box" >
<image alt=""
@ -121,7 +121,7 @@
<view class="shop-right-box">
<view class="shop-right-button" bindtap="gotoShop">进店逛逛 ></view>
</view>
</view>
</view> -->
<view class="desc-content">
<view class="desc-content__title" wx:if="{{details.desc.length > 0}}">

View File

@ -229,8 +229,9 @@ page {
}
.desc-content_box [alt] {
width: 100% !important;
/* width: 100% !important; */
max-width: 100%;
height: auto;
}
.goods-bottom-operation {