fixed 修改商品详情
This commit is contained in:
parent
e120e72733
commit
cbcb935c0c
4
app.js
4
app.js
@ -1,8 +1,8 @@
|
|||||||
import updateManager from './common/updateManager';
|
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://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({
|
App({
|
||||||
onLaunch: function () {},
|
onLaunch: function () {},
|
||||||
|
@ -24,12 +24,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<block wx:if="{{buttonType === 1}}">
|
<block wx:if="{{buttonType === 1}}">
|
||||||
<view class="flex buy-buttons">
|
<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>
|
||||||
<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>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block wx:if="{{isSlotButton}}">
|
<block wx:if="{{isSlotButton}}">
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
.bar-separately,
|
.bar-separately,
|
||||||
.bar-buy {
|
.bar-buy {
|
||||||
width: 254rpx;
|
width: 384rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
.bar-buy {
|
.bar-buy {
|
||||||
background-color: #1989fa;
|
background-color: #1989fa;
|
||||||
border-radius: 0rpx 40rpx 40rpx 0rpx;
|
border-radius: 40rpx 40rpx 40rpx 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
|
@ -63,7 +63,13 @@ Page({
|
|||||||
],
|
],
|
||||||
storeLogo: `${imgPrefix}common/store-logo.png`,
|
storeLogo: `${imgPrefix}common/store-logo.png`,
|
||||||
storeName: '云mall标准版旗舰店',
|
storeName: '云mall标准版旗舰店',
|
||||||
jumpArray: [{
|
jumpArray: [
|
||||||
|
{
|
||||||
|
title: '客服',
|
||||||
|
url: '',
|
||||||
|
iconName: 'user_list',
|
||||||
|
},
|
||||||
|
{
|
||||||
title: '收藏',
|
title: '收藏',
|
||||||
url: '',
|
url: '',
|
||||||
iconName: 'star',
|
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[^>]*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;" >');
|
// details.desc = details.desc.replace(/<img[^>]*>/gi, '<img style="max-3999999996width:100%;height:auto;" >');
|
||||||
if (details.isCollect === true) {
|
if (details.isCollect === true) {
|
||||||
this.data.jumpArray[0].iconName = 'star_filled';
|
this.data.jumpArray[1].iconName = 'star_filled';
|
||||||
this.setData({
|
this.setData({
|
||||||
jumpArray: this.data.jumpArray
|
jumpArray: this.data.jumpArray
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.data.jumpArray[0].iconName = 'star';
|
this.data.jumpArray[1].iconName = 'star';
|
||||||
this.setData({
|
this.setData({
|
||||||
jumpArray: this.data.jumpArray
|
jumpArray: this.data.jumpArray
|
||||||
})
|
})
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
list="{{details.images}}"
|
list="{{details.images}}"
|
||||||
></t-swiper> -->
|
></t-swiper> -->
|
||||||
<view>
|
<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}}">
|
<swiper-item wx:if="{{details.video}}">
|
||||||
<video src="{{details.video}}" autoplay poster="{{details.primaryImage}}" controls style="width: 100%; height: 100%;"></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 class="goods-intro">{{intro}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="spu-select" bindtap="showSkuSelectPopup">
|
<view class="spu-select" bindtap="showSkuSelectPopup">
|
||||||
<view class="label">已选</view>
|
<view class="label">选择参数</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="{{!selectedAttrStr ? 'tintColor' : ''}}">
|
<view class="{{!selectedAttrStr ? 'tintColor' : ''}}">
|
||||||
{{selectedAttrStr ? buyNum : ''}}{{selectedAttrStr || '请选择'}}
|
{{selectedAttrStr ? buyNum : ''}}{{selectedAttrStr || '请选择'}}
|
||||||
@ -105,7 +105,7 @@
|
|||||||
</view>
|
</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 style="padding: 10px;" class="shop-left-box">
|
||||||
<view class="shop-left-img-box" >
|
<view class="shop-left-img-box" >
|
||||||
<image alt=""
|
<image alt=""
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<view class="shop-right-box">
|
<view class="shop-right-box">
|
||||||
<view class="shop-right-button" bindtap="gotoShop">进店逛逛 ></view>
|
<view class="shop-right-button" bindtap="gotoShop">进店逛逛 ></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<view class="desc-content">
|
<view class="desc-content">
|
||||||
<view class="desc-content__title" wx:if="{{details.desc.length > 0}}">
|
<view class="desc-content__title" wx:if="{{details.desc.length > 0}}">
|
||||||
|
@ -229,8 +229,9 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.desc-content_box [alt] {
|
.desc-content_box [alt] {
|
||||||
width: 100% !important;
|
/* width: 100% !important; */
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.goods-bottom-operation {
|
.goods-bottom-operation {
|
||||||
|
Loading…
Reference in New Issue
Block a user