[添加单商品]

This commit is contained in:
唐明明
2023-10-15 10:30:16 +08:00
parent cd49194d3a
commit 0b172029eb
11 changed files with 42 additions and 40 deletions

View File

@@ -39,18 +39,18 @@
{ {
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"text": "锶源商城", "text": "锶源商城",
"iconPath": "/static/festival/00.png", "iconPath": "/static/tabBarIcon/04.png",
"selectedIconPath": "/static/festival/00_active.png" "selectedIconPath": "/static/tabBarIcon/04_active.png"
}, },
{ {
"pagePath": "pages/user/index", "pagePath": "pages/user/index",
"text": "锶人中心", "text": "锶人中心",
"iconPath": "/static/festival/02.png", "iconPath": "/static/tabBarIcon/02.png",
"selectedIconPath": "/static/festival/02_active.png" "selectedIconPath": "/static/tabBarIcon/02_active.png"
} }
], ],
"color": "#b6b9bb", "color": "#b6b9bb",
"selectedColor": "#000000", "selectedColor": "#6c78f8",
"borderStyle": "white" "borderStyle": "white"
}, },
"style": "v2", "style": "v2",

View File

@@ -1,9 +1,9 @@
<!-- 双节弹出 --> <!-- 双节弹出 -->
<view class="haveBack" wx:if="{{haveimg}}" catchtouchmove></view> <!-- <view class="haveBack" wx:if="{{haveimg}}" catchtouchmove></view>
<view class="haveCont" wx:if="{{haveimg}}" catchtouchmove> <view class="haveCont" wx:if="{{haveimg}}" catchtouchmove>
<image class="haveCont-img" src="https://api.siyuankunlun.com/storage/images/2023/09/26/0a0d13f2ef6abe6275cc06eed53771d8.png" mode="widthFix"></image> <image class="haveCont-img" src="https://api.siyuankunlun.com/storage/images/2023/09/26/0a0d13f2ef6abe6275cc06eed53771d8.png" mode="widthFix"></image>
<image class="haveCont-close" src="/static/icons/closeBig.png" mode="widthFix" bindtap="haveHIde"></image> <image class="haveCont-close" src="/static/icons/closeBig.png" mode="widthFix" bindtap="haveHIde"></image>
</view> </view> -->
<view class="page-section"> <view class="page-section">
<image class="videoCover" wx:if="{{videoState}}" src="http://cdn.siyuankunlun.com/materials/2022/10/13/cover.png"></image> <image class="videoCover" wx:if="{{videoState}}" src="http://cdn.siyuankunlun.com/materials/2022/10/13/cover.png"></image>
@@ -45,7 +45,7 @@
</view> </view>
<view class="otherText">古海冰泉造就不凡</view> <view class="otherText">古海冰泉造就不凡</view>
<view class="othertitle">{{item.name}}</view> <view class="othertitle">{{item.name}}</view>
<!-- <view class="name">{{item.price.show}}元/箱</view> --> <view class="name">{{item.price.show}}元/箱</view>
</swiper-item> </swiper-item>
</navigator> </navigator>
</swiper> </swiper>

View File

@@ -221,8 +221,8 @@ page {
.other-swiper swiper { .other-swiper swiper {
background: #fff; background: #fff;
height: 400rpx; /* height: 400rpx; */
/* height: 450rpx; */ height: 500rpx;
} }
.other-swiper .slide-image image { .other-swiper .slide-image image {
@@ -246,7 +246,7 @@ page {
.other-swiper .box { .other-swiper .box {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
padding-top: 50%; padding-top: 60%;
position: relative; position: relative;
} }

View File

@@ -39,11 +39,11 @@
<view class="goodsInfo-name"> <view class="goodsInfo-name">
{{mallData.name}} {{mallData.name}}
</view> </view>
<!-- <view class="goodsInfo-info"> <view class="goodsInfo-info">
<view class="goodsInfo-price"> <view class="goodsInfo-price">
<view class="goodsInfo-price-symbol">¥</view>{{mallData.price.show}} <view class="goodsInfo-price-symbol">¥</view>{{mallData.price.show}}
</view> </view>
</view> --> </view>
</view> </view>
<!-- 产品详情 --> <!-- 产品详情 -->
@@ -63,8 +63,8 @@
<view class="goods-info-footer {{barHeight > 30 ? 'iphoneX':''}}">已经到底拉,在往上逛一逛吧</view> <view class="goods-info-footer {{barHeight > 30 ? 'iphoneX':''}}">已经到底拉,在往上逛一逛吧</view>
</view> </view>
<!-- <view class="footer"> <view class="footer">
<view class="number">需<text>{{mallData.price.show}}</text>水滴</view> 之前就是隐藏的 <!-- <view class="number">需<text>{{mallData.price.show}}</text>水滴</view> 之前就是隐藏的 -->
<view class="number">¥<text>{{mallData.price.show}}</text></view> <view class="number">¥<text>{{mallData.price.show}}</text></view>
<view bindtap="buyTap" class="btn">立即购买</view> <view bindtap="buyTap" class="btn">立即购买</view>
</view> --> </view>

View File

@@ -12,7 +12,7 @@
<view class="nowrap itemCont-text">{{item.description}}</view> <view class="nowrap itemCont-text">{{item.description}}</view>
<view class="itemCont-price"> <view class="itemCont-price">
<!-- <image src="/static/icons/newIcon_03.png"></image> --> <!-- <image src="/static/icons/newIcon_03.png"></image> -->
<!-- ¥{{item.price.price_max}} --> ¥{{item.price.price_max}}
</view> </view>
</view> </view>
</navigator> </navigator>

View File

@@ -47,14 +47,14 @@
<view class="label-name">重量</view> <view class="label-name">重量</view>
<view class="label-text">{{weight}}</view> <view class="label-text">{{weight}}</view>
</view> </view>
<view class="label-item"> <!-- <view class="label-item">
<view class="label-name">水滴兑换</view> <view class="label-name">水滴兑换</view>
<view class="label-integral">需{{amount}}水滴</view> <view class="label-integral">需{{amount}}水滴</view>
</view> </view> -->
</view> </view>
<!-- 购买方式 --> <!-- 购买方式 -->
<view class="label payWay" wx:if="{{surplus > 0}}"> <!-- <view class="label payWay" wx:if="{{surplus > 0}}">
<view class="label-name">购买方式</view> <view class="label-name">购买方式</view>
<view class="cashierCont-pay-way"> <view class="cashierCont-pay-way">
<radio-group bindchange="radioChange" style="width: 100%; display: block; height: 270rpx;"> <radio-group bindchange="radioChange" style="width: 100%; display: block; height: 270rpx;">
@@ -74,7 +74,7 @@
</view> </view>
</radio-group> </radio-group>
</view> </view>
</view> </view> -->
</view> </view>
<!-- 底部 --> <!-- 底部 -->

View File

@@ -71,14 +71,14 @@
<image class="payContList-label-arrow" src="{{ payType == 'wechat' ? '/static/icons/check_icon.png' : '/static/icons/userLogin_icon.png'}}"></image> <image class="payContList-label-arrow" src="{{ payType == 'wechat' ? '/static/icons/check_icon.png' : '/static/icons/userLogin_icon.png'}}"></image>
<radio class="radio" value="wechat"></radio> <radio class="radio" value="wechat"></radio>
</view> </view>
<view class="payCont-label {{ payType == 'water' ? 'active' : ''}}" wx:if="{{surplus > 0}}"> <!-- <view class="payCont-label {{ payType == 'water' ? 'active' : ''}}" wx:if="{{surplus > 0}}">
<view class="payContList-label-name"> <view class="payContList-label-name">
<image class="payCont-label-img" src="/static/imgs/wqb.jpg"></image> <image class="payCont-label-img" src="/static/imgs/wqb.jpg"></image>
<text>水滴兑换</text> <text>水滴兑换</text>
</view> </view>
<image class="payContList-label-arrow" src="{{ payType == 'water' ? '/static/icons/check_icon.png' : '/static/icons/userLogin_icon.png'}}"></image> <image class="payContList-label-arrow" src="{{ payType == 'water' ? '/static/icons/check_icon.png' : '/static/icons/userLogin_icon.png'}}"></image>
<radio class="radio" value="water"></radio> <radio class="radio" value="water"></radio>
</view> </view> -->
</radio-group> </radio-group>
<view class="payCont-btn" bindtap="paySubmit">{{ payType == 'wechat' ? '立即支付' : '立即兑换'}}</view> <view class="payCont-btn" bindtap="paySubmit">{{ payType == 'wechat' ? '立即支付' : '立即兑换'}}</view>
</view> </view>

View File

@@ -1,9 +1,9 @@
<view class="Usetop"> <view class="Usetop">
<!-- 双节 --> <!-- 双节 -->
<image class="Usetop-back" mode="aspectFill" src="https://api.siyuankunlun.com/storage/images/2023/09/22/786a12e4d61acb22bcbb2e90cb7ce023.png"></image> <!-- <image class="Usetop-back" mode="aspectFill" src="https://api.siyuankunlun.com/storage/images/2023/09/22/786a12e4d61acb22bcbb2e90cb7ce023.png"></image> -->
<!-- 默认 --> <!-- 默认 -->
<!-- <image class="Usetop-back" mode="aspectFill" src="http://cdn.siyuankunlun.com/materials/2022/10/14/uaer_back.jpg"></image> --> <image class="Usetop-back" mode="aspectFill" src="http://cdn.siyuankunlun.com/materials/2022/10/14/uaer_back.jpg"></image>
<view class="Usetop-range" style="padding-top:{{barHeight + jiaonangheight}}px;"> <view class="Usetop-range" style="padding-top:{{barHeight + jiaonangheight}}px;">
<view class="Usetop-cont" wx:if="{{userLogin}}"> <view class="Usetop-cont" wx:if="{{userLogin}}">
@@ -11,11 +11,11 @@
<image class="Usetop-head-avatar" src="{{avatar ? avatar : '../../static/imgs/default_myHead.png'}}" mode="aspectFill"></image> <image class="Usetop-head-avatar" src="{{avatar ? avatar : '../../static/imgs/default_myHead.png'}}" mode="aspectFill"></image>
<!-- 双节 --> <!-- 双节 -->
<image class="userTop-head-frame" src="https://api.siyuankunlun.com/storage/images/2023/09/22/e4e9b20fe4192e5617fa2eaa630afae8.png" mode=""></image> <!-- <image class="userTop-head-frame" src="https://api.siyuankunlun.com/storage/images/2023/09/22/e4e9b20fe4192e5617fa2eaa630afae8.png" mode=""></image> -->
<!-- 默认 --> <!-- 默认 -->
<!-- <image wx:if="{{identity.order == '1'}}" class="Usetop-head-ancrown" src="http://api.siyuankunlun.com/materials/2022/09/19/ancrown_pt.png" mode=""></image> <image wx:if="{{identity.order == '1'}}" class="Usetop-head-ancrown" src="http://api.siyuankunlun.com/materials/2022/09/19/ancrown_pt.png" mode=""></image>
<image wx:else class="Usetop-head-ancrown" src="http://api.siyuankunlun.com/materials/2022/09/14/ancrown.png" mode=""></image> --> <image wx:else class="Usetop-head-ancrown" src="http://api.siyuankunlun.com/materials/2022/09/14/ancrown.png" mode=""></image>
</view> </view>
<view class="Usetop-text"> <view class="Usetop-text">
{{nickName}} {{nickName}}

View File

@@ -1,5 +1,5 @@
{ {
"description": "项目配置文件", "description": "项目配置文件详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"packOptions": { "packOptions": {
"ignore": [], "ignore": [],
"include": [] "include": []
@@ -37,7 +37,11 @@
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
} },
"useStaticServer": true,
"checkInvalidKey": true,
"disableUseStrict": false,
"useCompilerPlugins": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.17.0", "libVersion": "2.17.0",

View File

@@ -1,6 +1,6 @@
{ {
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "sykl-mall", "projectname": "%E9%94%B6%E6%BA%90%E6%98%86%E4%BB%91",
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": true "urlCheck": true

View File

@@ -1,19 +1,17 @@
"tabBar": { "list": [
"list": [
{ {
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"text": "锶源商城", "text": "锶源商城",
"iconPath": "/static/tabBarIcon/04.png", "iconPath": "/static/festival/00.png",
"selectedIconPath": "/static/tabBarIcon/04_active.png" "selectedIconPath": "/static/festival/00_active.png"
}, },
{ {
"pagePath": "pages/user/index", "pagePath": "pages/user/index",
"text": "锶人中心", "text": "锶人中心",
"iconPath": "/static/tabBarIcon/02.png", "iconPath": "/static/festival/02.png",
"selectedIconPath": "/static/tabBarIcon/02_active.png" "selectedIconPath": "/static/festival/02_active.png"
} }
], ],
"color": "#b6b9bb", "color": "#b6b9bb",
"selectedColor": "#6c78f8", "selectedColor": "#000000",
"borderStyle": "white" "borderStyle": "white"
},