[水感应客户端最新]
This commit is contained in:
220
pages/mall/confirm/confirm.js
Normal file
220
pages/mall/confirm/confirm.js
Normal file
@@ -0,0 +1,220 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
data: {
|
||||
goods_id : '', // 店铺id
|
||||
goods_sku : '', // 产品id
|
||||
goods_qty : '', // 产品数量
|
||||
address : '', // 地址
|
||||
addressId : '', // 地址id
|
||||
goodskData : '', // 数据
|
||||
amount : '', // 总金额
|
||||
freight : '', // 运费
|
||||
weight : '', // 重量
|
||||
disabled : true,//按钮
|
||||
paySuccess : false, // 兑换成功显示
|
||||
maxcoupon : '', //拥有兑换券数量
|
||||
coupon_qty : 1, //兑换券数量
|
||||
checked : false//兑换券
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
this.setData({
|
||||
goods_id : options.goodsid,
|
||||
goods_sku : options.skuid,
|
||||
goods_qty : options.qty
|
||||
})
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 获取下单信息
|
||||
this.confirmInfo()
|
||||
},
|
||||
|
||||
/**
|
||||
* 产品下单信息
|
||||
*/
|
||||
confirmInfo (){
|
||||
wx.$api.mall.mallPlace({
|
||||
goods_sku_id: this.data.goods_sku,
|
||||
address_id: this.data.addressId,
|
||||
qty: this.data.goods_qty
|
||||
}).then(res => {
|
||||
this.setData({
|
||||
address : res.data.address,
|
||||
addressId : res.data.address.address_id,
|
||||
goodskData: res.data.detail,
|
||||
amount : res.data.amount,
|
||||
freight : res.data.freight,
|
||||
weight : res.data.weight,
|
||||
maxcoupon : res.data.couponCount
|
||||
})
|
||||
|
||||
// 计算总价格
|
||||
this.totalPrice()
|
||||
}).catch(err => { })
|
||||
},
|
||||
|
||||
/**
|
||||
* 产品数量加减
|
||||
*/
|
||||
goodsNumber(e){
|
||||
let num = this.data.goods_qty,
|
||||
val = e.currentTarget.dataset.type
|
||||
if (val == 'plus'){
|
||||
num ++;
|
||||
}else{
|
||||
if (num > 1){
|
||||
num --;
|
||||
if(num < this.data.coupon_qty) {
|
||||
this.setData({
|
||||
coupon_qty: num
|
||||
})
|
||||
}
|
||||
}else{
|
||||
wx.showToast({
|
||||
title : '商品数量不能小于1',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
this.setData({
|
||||
goods_qty: num
|
||||
})
|
||||
}
|
||||
this.setData({
|
||||
goods_qty: num
|
||||
})
|
||||
|
||||
// 计算总价格
|
||||
this.totalPrice()
|
||||
},
|
||||
|
||||
/**
|
||||
* 是否使用兑换券
|
||||
*/
|
||||
checkedTap() {
|
||||
this.setData({
|
||||
checked: !this.data.checked
|
||||
})
|
||||
|
||||
// 计算总价格
|
||||
this.totalPrice()
|
||||
},
|
||||
|
||||
/**
|
||||
* 兑换券数量加减
|
||||
*/
|
||||
couponNumber(e){
|
||||
let minVal = Math.min(this.data.goods_qty, this.data.maxcoupon)
|
||||
let num = this.data.coupon_qty,
|
||||
val = e.currentTarget.dataset.type
|
||||
if (val == 'plus'){
|
||||
if(num >= minVal){
|
||||
this.setData({
|
||||
coupon_qty: minVal
|
||||
})
|
||||
wx.showToast({
|
||||
title: '兑换券数量超出产品数量或兑换券不足',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
num ++;
|
||||
|
||||
}else{
|
||||
if (num > 1){
|
||||
num --;
|
||||
}else{
|
||||
wx.showToast({
|
||||
title : '兑换券数量不能小于1',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
this.setData({
|
||||
coupon_qty: num
|
||||
})
|
||||
}
|
||||
this.setData({
|
||||
coupon_qty: num
|
||||
})
|
||||
|
||||
// 计算总价格
|
||||
this.totalPrice()
|
||||
},
|
||||
|
||||
/**
|
||||
* 计算总价格
|
||||
*/
|
||||
totalPrice() {
|
||||
let couponQty = this.data.coupon_qty
|
||||
let goodNum = this.data.goods_qty
|
||||
let goodPrice = this.data.goodskData[0].items[0].price
|
||||
let freight = this.data.freight
|
||||
let totalPrice = 0
|
||||
|
||||
totalPrice = this.data.checked ?
|
||||
(goodNum - couponQty) * goodPrice :
|
||||
goodNum * goodPrice
|
||||
if(freight > 0) totalPrice += freight
|
||||
|
||||
this.setData({
|
||||
amount: totalPrice
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 产品确认购买
|
||||
*/
|
||||
buyTap() {
|
||||
wx.showLoading({
|
||||
title: '加载中...',
|
||||
})
|
||||
let that = this
|
||||
let data = {
|
||||
goods_sku_id: this.data.goods_sku,
|
||||
qty : this.data.goods_qty,
|
||||
address_id : this.data.addressId,
|
||||
use_coupon : this.data.checked,
|
||||
coupon_qty : this.data.coupon_qty
|
||||
}
|
||||
wx.$api.mall.mallAffirm(data).then(res => {
|
||||
this.setData({
|
||||
disabled: false
|
||||
})
|
||||
wx.hideLoading()
|
||||
|
||||
if(res.data.can_pay) {
|
||||
wx.redirectTo({
|
||||
url: '/pages/pay/index?order_no=' + res.data.order_no + '&total=' + res.data.total
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
wx.showToast({
|
||||
title: '支付成功',
|
||||
icon: 'none',
|
||||
duration: 2000,
|
||||
//显示透明蒙层,防止触摸穿透
|
||||
mask:true,
|
||||
success: function () {
|
||||
that.setData({
|
||||
paySuccess: true
|
||||
})
|
||||
setTimeout(()=>{
|
||||
wx.redirectTo({
|
||||
url: '/pages/order/index?state=paid'
|
||||
})
|
||||
},3000)
|
||||
}
|
||||
})
|
||||
|
||||
}).catch(err => {
|
||||
this.setData({
|
||||
disabled: true
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
4
pages/mall/confirm/confirm.json
Normal file
4
pages/mall/confirm/confirm.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "订单确认"
|
||||
}
|
||||
81
pages/mall/confirm/confirm.wxml
Normal file
81
pages/mall/confirm/confirm.wxml
Normal file
@@ -0,0 +1,81 @@
|
||||
<!-- 地址 -->
|
||||
<view class="address">
|
||||
<navigator hover-class="none" url="/pages/site/index?type=goodsAddress" class="address-cont" wx:if="{{address}}">
|
||||
<view class="address-top">
|
||||
<view class="address-area">{{address.province.name}}{{address.city.name}}</view>
|
||||
<view class="address-text">{{address.full_address}}</view>
|
||||
</view>
|
||||
<view class="address-name">
|
||||
{{address.name}}<text>{{address.mobile}}</text>
|
||||
</view>
|
||||
<image class="address-arrow" src="/static/icons/orderArrow.png"></image>
|
||||
</navigator>
|
||||
<view class="address-add" wx:else>
|
||||
<navigator hover-class="none" url="/pages/site/index?type=goodsAddress" class="address-go">新增收货地址 +</navigator>
|
||||
</view>
|
||||
<image class="address-img" src="/static/imgs/address.png" mode="widthFix"></image>
|
||||
</view>
|
||||
|
||||
<!-- 商品 -->
|
||||
<view class="list-goods" wx:for="{{goodskData}}" wx:key="stockData">
|
||||
<block wx:for="{{item.items}}" wx:key="items" wx:for-item="items">
|
||||
<image class="list-goods-img" mode="aspectFill" src="{{items.cover ? items.cover : '/static/imgs/default.png'}}"></image>
|
||||
<view class="list-goods-cont">
|
||||
<view class="nowrap list-goods-name">{{items.title}}</view>
|
||||
<view class="list-goods-text">
|
||||
<text>规格 99ml</text>x1
|
||||
</view>
|
||||
<view class="list-goods-parice">
|
||||
产品金额 ¥<text>{{items.price}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 规格 -->
|
||||
<view class="label">
|
||||
<view class="label-item">
|
||||
<view class="label-name">数量</view>
|
||||
<view class="label-number">
|
||||
<view class="number-btn" bindtap="goodsNumber" data-type="remove">-</view>
|
||||
<input bindinput="goodsNumberInput" class="number-input" type="number" value="{{goods_qty}}" disabled />
|
||||
<view class="number-btn" bindtap="goodsNumber" data-type="plus">+</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="label-item">
|
||||
<view class="label-name">快递</view>
|
||||
<view class="label-text">{{freight == 0 ? '免邮' : freight + '元'}}</view>
|
||||
</view>
|
||||
<view class="coupons" wx:if="{{maxcoupon != 0}}">
|
||||
<view class="coupons-item">
|
||||
<view class="label-name">兑换券</view>
|
||||
<view class="label-text">勾选使用<checkbox class="label-text-checkbox" checked="{{checked}}" bindtap="checkedTap" color="#3b7cff" style="transform:scale(.7);" /></view>
|
||||
</view>
|
||||
<view class="coupon-checked" wx:if="{{checked}}">
|
||||
<view class="coupon-checked-name">使用数量</view>
|
||||
<view class="coupon-checked-number">
|
||||
<view class="coupon-checked-btn" bindtap="couponNumber" data-type="remove">-</view>
|
||||
<input class="coupon-checked-input" bindblur="couponNumberInput" type="number" value="{{coupon_qty}}" disabled />
|
||||
<view class="coupon-checked-btn" bindtap="couponNumber" data-type="plus">+</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="label-item">
|
||||
<view class="label-name">金额</view>
|
||||
<view class="label-integral">¥{{amount}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部 -->
|
||||
<view class="footer">
|
||||
<view class="number"><text>¥</text>
|
||||
<view class="number-price">{{amount}}</view>
|
||||
<view class="number-vip">实付金额</view>
|
||||
</view>
|
||||
<view class="btn" bindtap="buyTap" wx:if="{{disabled}}">立即支付</view>
|
||||
<view class="btn active" wx:else>立即支付</view>
|
||||
</view>
|
||||
|
||||
<view class="pack-center pages-hint grey" wx:if="{{paySuccess}}">
|
||||
<image src="/static/icons/loadingGif.gif"></image>
|
||||
<view>疯狂加载中...</view>
|
||||
</view>
|
||||
315
pages/mall/confirm/confirm.wxss
Normal file
315
pages/mall/confirm/confirm.wxss
Normal file
@@ -0,0 +1,315 @@
|
||||
page {
|
||||
background-color: #f5f6f8;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 地址 */
|
||||
.address {
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.address-arrow {
|
||||
position: absolute;
|
||||
right: 15rpx;
|
||||
top: 78rpx;
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
}
|
||||
|
||||
.address-cont {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.address-top {
|
||||
width: calc(100% - 80rpx);
|
||||
}
|
||||
|
||||
.address-area {
|
||||
color: #585866;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.address-text {
|
||||
font-weight: 600;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.address-name text {
|
||||
color: #585866;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
|
||||
.address-img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.address-add {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 30rpx 30rpx 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.address-go {
|
||||
display: inline-block;
|
||||
font-size: 28rpx;
|
||||
line-height: 68rpx;
|
||||
border-radius: 10rpx;
|
||||
color: #df723a;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
|
||||
/* 商品 */
|
||||
|
||||
.list-goods {
|
||||
background-color: #FFFFFF;
|
||||
margin: 30rpx 0;
|
||||
display: flex;
|
||||
padding: 30rpx;
|
||||
border-radius: 15rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.list-goods-img {
|
||||
width: 184rpx;
|
||||
height: 184rpx;
|
||||
margin-right: 30rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.list-goods-cont {
|
||||
width: calc(100% - 214rpx);
|
||||
}
|
||||
|
||||
.list-goods-name {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.list-goods-text {
|
||||
line-height: 90rpx;
|
||||
display: flex;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.list-goods-text text {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.list-goods-parice {
|
||||
text-align: right;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.list-goods-parice text {
|
||||
font-size: 34rpx;
|
||||
}
|
||||
|
||||
/* 规格 */
|
||||
.label {
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.label-item {
|
||||
display: flex;
|
||||
line-height: 100rpx;
|
||||
color: #585866;
|
||||
font-size: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 2rpx solid rgb(243, 243, 243);
|
||||
}
|
||||
|
||||
.label-item:last-child {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.label-integral {
|
||||
color: #3b7cff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.label-name {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.coupons {
|
||||
border-bottom: 2rpx solid rgb(243, 243, 243);
|
||||
padding: 0 30rpx 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.coupons-item {
|
||||
display: flex;
|
||||
line-height: 100rpx;
|
||||
color: #585866;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.coupon-checked {
|
||||
background-color: #fff3ea;
|
||||
padding: 20rpx 30rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.coupon-checked-name {
|
||||
color: #ff9951;
|
||||
font-size: 28rpx;
|
||||
line-height: 42rpx;
|
||||
}
|
||||
|
||||
.coupon-checked-number {
|
||||
position: absolute;
|
||||
right: 0rpx;
|
||||
top: 0rpx;
|
||||
display: flex;
|
||||
background-color:transparent;
|
||||
}
|
||||
|
||||
.coupon-checked-btn {
|
||||
color: #db6815;
|
||||
width: 80rpx;
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
font-size: 38rpx;
|
||||
line-height: 78rpx;
|
||||
}
|
||||
|
||||
.coupon-checked-input {
|
||||
width: 60rpx;
|
||||
border: 2rpx solid #bd5e1b;
|
||||
border-radius: 4rpx;
|
||||
text-align: center;
|
||||
color: #dd620a;
|
||||
height: 36rpx;
|
||||
min-height: 36rpx;
|
||||
display: inline-block;
|
||||
margin-top: 20rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
/*checkbox选中后样式 */
|
||||
.label-text-checkbox {
|
||||
margin-right: -14rpx;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
|
||||
.label-text-checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
||||
background: #ff9951;
|
||||
border-color: #ff9951;
|
||||
}
|
||||
|
||||
.label-text-checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
line-height: 28rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
-webkit-transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
|
||||
.label-price {
|
||||
text-align: right;
|
||||
line-height: 90rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
padding: 0 30rpx 5rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.label-price text {
|
||||
font-size: 34rpx;
|
||||
padding: 0 10rpx;
|
||||
}
|
||||
|
||||
.label-number {
|
||||
display: flex;
|
||||
margin-top: 25rpx;
|
||||
}
|
||||
|
||||
.number-btn {
|
||||
background-color: #f1f1f1;
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
line-height: 46rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.number-input {
|
||||
width: 80rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 底部 */
|
||||
.footer {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
background-color: #272e4f;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
z-index: 9;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.number {
|
||||
flex: 1;
|
||||
line-height: 60px;
|
||||
color: #ffffff;
|
||||
display: flex;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.number text {
|
||||
font-size: 28rpx;
|
||||
padding-top: 5rpx;
|
||||
}
|
||||
|
||||
.number-price {
|
||||
padding: 0 5rpx;
|
||||
font-size: 40rpx;
|
||||
}
|
||||
|
||||
.number-vip {
|
||||
margin-left: 20rpx;
|
||||
color: #8d97a1;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
height: 100%;
|
||||
background-color: #ff9951;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
padding: 0 70rpx;
|
||||
line-height: 60px;
|
||||
}
|
||||
|
||||
.btn.active {
|
||||
background-color: #cacaca;
|
||||
}
|
||||
|
||||
.detailsBrief-back{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.grey {
|
||||
background-color: #f9f9f9;
|
||||
z-index: 99999;
|
||||
}
|
||||
92
pages/mall/coupon/coupon.js
Normal file
92
pages/mall/coupon/coupon.js
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
data: {
|
||||
couponType : 1, // 兑换券类型
|
||||
couponStatus: 1, // 兑换券状态
|
||||
couponArr : [], // 兑换券列表
|
||||
page : {}, // 分页信息
|
||||
lodingStats : false, // 加载状态
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 获取我的兑换券
|
||||
this.couponInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 我的兑换券
|
||||
*/
|
||||
couponInfo(page) {
|
||||
wx.$api.mall.mycoupon({
|
||||
stock : this.data.couponType,
|
||||
status: this.data.couponStatus,
|
||||
page : page || 1
|
||||
}).then(res => {
|
||||
let listArr = this.data.couponArr,
|
||||
newData = []
|
||||
if(page == 1 || page == undefined) listArr = []
|
||||
newData = listArr.concat(res.data.data)
|
||||
this.setData({
|
||||
couponArr : newData,
|
||||
page : res.data.page,
|
||||
lodingStats : false
|
||||
})
|
||||
wx.stopPullDownRefresh()
|
||||
}).catch(err => {
|
||||
this.setData({
|
||||
disabled: true
|
||||
})
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 兑换券-类型
|
||||
*/
|
||||
tabClick(e) {
|
||||
this.setData({
|
||||
couponType: e.currentTarget.dataset.type
|
||||
})
|
||||
// 获取我的兑换券
|
||||
this.couponInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 兑换券-状态
|
||||
*/
|
||||
stateClick(e) {
|
||||
this.setData({
|
||||
couponStatus: e.currentTarget.dataset.status
|
||||
})
|
||||
// 获取我的兑换券
|
||||
this.couponInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
// 获取我的兑换券
|
||||
this.couponInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 上拉加载
|
||||
*/
|
||||
onReachBottom(){
|
||||
this.setData({
|
||||
lodingStats: true
|
||||
})
|
||||
let pageNumber = this.data.page.current
|
||||
if(this.data.page.has_more){
|
||||
pageNumber++
|
||||
|
||||
// 获取我的兑换券
|
||||
this.couponInfo(pageNumber);
|
||||
}
|
||||
}
|
||||
})
|
||||
4
pages/mall/coupon/coupon.json
Normal file
4
pages/mall/coupon/coupon.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "兑换券"
|
||||
}
|
||||
52
pages/mall/coupon/coupon.wxml
Normal file
52
pages/mall/coupon/coupon.wxml
Normal file
@@ -0,0 +1,52 @@
|
||||
<view class="orderFixed">
|
||||
<view class="orderTab">
|
||||
<view class="orderTab-item {{couponType == 1 ? 'active' : ''}}" bindtap="tabClick" data-type="1">
|
||||
<text>1瓶</text>
|
||||
</view>
|
||||
<view class="orderTab-item {{couponType == 2 ? 'active' : ''}}" bindtap="tabClick" data-type="2">
|
||||
<text>2瓶</text>
|
||||
</view>
|
||||
<view class="orderTab-item {{couponType == 3 ? 'active' : ''}}" bindtap="tabClick" data-type="3">
|
||||
<text>3瓶</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="orderState">
|
||||
<view class="orderState-item {{couponStatus == 1 ? 'active' : ''}}" bindtap="stateClick" data-status="1">
|
||||
<text>未使用</text>
|
||||
</view>
|
||||
<view class="orderState-item {{couponStatus == 2 ? 'active' : ''}}" bindtap="stateClick" data-status="2">
|
||||
<text>已使用</text>
|
||||
</view>
|
||||
<view class="orderState-item {{couponStatus == 3 ? 'active' : ''}}" bindtap="stateClick" data-status="3">
|
||||
<text>已过期</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 兑换券列表 -->
|
||||
<view class="coupon">
|
||||
<view class="coupon-list" wx:if="{{couponArr.length > 0}}">
|
||||
<navigator hover-class="none" url="" class="coupon-item {{item.status.value == 1 ? '' : 'active'}}" wx:for="{{couponArr}}" wx:key="couponArr">
|
||||
<view class="coupon-item-name"><text>{{item.stock}}</text>瓶</view>
|
||||
<view class="coupon-item-text">
|
||||
<view class="coupon-item-number">{{item.number}}张</view>
|
||||
<view class="coupon-item-time">有效期至 {{item.actived_at}}</view>
|
||||
<view class="coupon-item-go" wx:if="{{item.status.value == 1}}">去使用</view>
|
||||
<view class="coupon-item-go" wx:elif="{{item.status.value == 2}}">已使用</view>
|
||||
<image class="coupon-item-img" wx:else src="https://cdn.shuiganying.com/images/2023/04/25/bae805f5a3b07b7a62ae95e9eb5eb4be.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</navigator>
|
||||
<view class="pagesLoding" wx:if="{{lodingStats}}">
|
||||
<block wx:if="{{page.has_more}}">
|
||||
<image class="pagesLoding-icon" src="/static/icons/refresh_loding.gif" mode="widthFix"></image>加载中...
|
||||
</block>
|
||||
<block wx:else>
|
||||
没有更多了~
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pack-center pages-hint" wx:else>
|
||||
<image src="/static/imgs/text_null.png"></image>
|
||||
<view>暂无数据</view>
|
||||
</view>
|
||||
</view>
|
||||
182
pages/mall/coupon/coupon.wxss
Normal file
182
pages/mall/coupon/coupon.wxss
Normal file
@@ -0,0 +1,182 @@
|
||||
page {
|
||||
background-color: #f7f9fa;
|
||||
}
|
||||
|
||||
.orderFixed {
|
||||
background-color: #f7f9fa;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 9;
|
||||
height: 220rpx;
|
||||
}
|
||||
|
||||
.orderTab {
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
background-color: white;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.orderTab-item {
|
||||
flex: 2;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.orderTab-item::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: calc(50% - 25rpx);
|
||||
bottom: 0;
|
||||
width: 50rpx;
|
||||
height: 8rpx;
|
||||
background-color: #3b7cff;
|
||||
display: none;
|
||||
border-radius: 90rpx;
|
||||
}
|
||||
|
||||
.orderTab-item.active {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.orderTab-item.active::after {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.orderState {
|
||||
display: flex;
|
||||
padding: 40rpx 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.orderState-item {
|
||||
background-color: white;
|
||||
line-height: 54rpx;
|
||||
padding: 0 25rpx;
|
||||
border-radius: 54rpx;
|
||||
font-size: 28rpx;
|
||||
margin-right: 40rpx;
|
||||
}
|
||||
|
||||
.orderState-item.active {
|
||||
background-color: #3b7cff;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* 列表 */
|
||||
.coupon {
|
||||
padding: 230rpx 30rpx 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.coupon-item {
|
||||
background-image: linear-gradient(to right, #fcefe5, #ffebdc);
|
||||
border-radius: 20rpx;
|
||||
padding: 30rpx 0;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 30rpx;
|
||||
display: flex;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.coupon-item::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
right: -18rpx;
|
||||
top: calc(50% - 18rpx);
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #f7f9fa;
|
||||
}
|
||||
|
||||
.coupon-item-name {
|
||||
width: 150rpx;
|
||||
text-align: center;
|
||||
font-size: 36rpx;
|
||||
color: #ff9951;
|
||||
line-height: 110rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.coupon-item-name::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 2rpx;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background-color: #fdd4b6;
|
||||
}
|
||||
|
||||
.coupon-item-name text {
|
||||
font-size: 60rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.coupon-item-text {
|
||||
width: calc(100% - 150rpx);
|
||||
padding: 10rpx 0 0 40rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.coupon-item-number {
|
||||
color: #ff9951;
|
||||
font-size: 38rpx;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.coupon-item-time {
|
||||
font-size: 28rpx;
|
||||
color: #c06728;
|
||||
}
|
||||
|
||||
.coupon-item-go {
|
||||
position: absolute;
|
||||
right: 40rpx;
|
||||
top: 30rpx;
|
||||
background-color: #ff9951;
|
||||
color: #ffffff;
|
||||
font-size: 28rpx;
|
||||
border-radius: 80rpx;
|
||||
padding: 0 25rpx;
|
||||
line-height: 58rpx;
|
||||
}
|
||||
|
||||
.coupon-item-img {
|
||||
position: absolute;
|
||||
right: 40rpx;
|
||||
top: 15rpx;
|
||||
width: 94rpx;
|
||||
}
|
||||
|
||||
.coupon-item-go.active {
|
||||
background-color: #999999;
|
||||
}
|
||||
|
||||
.coupon-item.active {
|
||||
background-image: linear-gradient(to right, #eeeeee, #eeeeee);
|
||||
|
||||
}
|
||||
|
||||
.coupon-item.active .coupon-item-go {
|
||||
background-color: #c1c1c1;
|
||||
}
|
||||
|
||||
.coupon-item.active .coupon-item-name,
|
||||
.coupon-item.active .coupon-item-number {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.coupon-item.active .coupon-item-time {
|
||||
color: #7a7a7a;
|
||||
}
|
||||
|
||||
.coupon-item.active .coupon-item-name::after {
|
||||
background-color: #dbdbdb;
|
||||
}
|
||||
314
pages/mall/details/details.js
Normal file
314
pages/mall/details/details.js
Normal file
@@ -0,0 +1,314 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
data: {
|
||||
isFixedTop : 0,
|
||||
barHeight : getApp().globalData.barHeight, // 状态栏高度
|
||||
goodsId : '', // 产品id
|
||||
mallData : '', // 产品信息
|
||||
mallContent: '', // 产品简介
|
||||
shareSee : false, // 分享弹出
|
||||
inviteText : '', // 自己的邀请码
|
||||
isParent : false, // 绑定邀请码
|
||||
nameValue : '', // 上级邀请码
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
if(options.invite != undefined) {
|
||||
getApp().globalData.inviteText = options.invite
|
||||
}
|
||||
this.setData({
|
||||
goodsId: options.id
|
||||
})
|
||||
|
||||
// 初始化画布
|
||||
wx.createSelectorQuery().select('#coverCanvas').fields({node: true, size: true}).exec(canvasNode => {
|
||||
const canvas = canvasNode[0].node
|
||||
canvas.width = 375
|
||||
canvas.height = 600
|
||||
this.setData({
|
||||
canvas
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 获取产品详情
|
||||
this.mallInfo();
|
||||
|
||||
// 获取登录状态
|
||||
if(wx.getStorageSync("token") != ''){
|
||||
// 小程序码
|
||||
this.ShareInfo();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 产品详情
|
||||
*/
|
||||
mallInfo (){
|
||||
wx.$api.mall.mallSee(this.data.goodsId).then(res => {
|
||||
this.setData({
|
||||
mallData : res.data,
|
||||
mallContent : res.data.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;"')
|
||||
})
|
||||
}).catch(err => { })
|
||||
},
|
||||
|
||||
/**
|
||||
* 确认购买
|
||||
*/
|
||||
buyTap() {
|
||||
// 获取登录状态
|
||||
if(wx.getStorageSync("token") != ''){
|
||||
if(this.data.mallData.is_parent == true) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/mall/confirm/confirm?goodsid=' + this.data.mallData.goods_id + '&skuid=' + this.data.mallData.skus[0].sku_id + '&qty=1',
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// 显示绑定邀请码弹窗
|
||||
this.setData({
|
||||
isParent: true
|
||||
})
|
||||
|
||||
}else{
|
||||
// 去登录
|
||||
wx.navigateTo({
|
||||
url: "/pages/login/index"
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 小程序码
|
||||
*/
|
||||
ShareInfo() {
|
||||
wx.$api.user.miniShare({
|
||||
url: '/pages/index/index'
|
||||
}).then(res => {
|
||||
this.setData({
|
||||
inviteCode: res.data.qrcode
|
||||
})
|
||||
}).catch(err => {})
|
||||
},
|
||||
|
||||
/**
|
||||
* 分享弹出
|
||||
*/
|
||||
shareTap() {
|
||||
// 获取登录状态
|
||||
if(wx.getStorageSync("token") != ''){
|
||||
this.setData({
|
||||
shareSee: !this.data.shareSee
|
||||
})
|
||||
}else{
|
||||
// 去登录
|
||||
wx.navigateTo({
|
||||
url: "/pages/login/index"
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生成海报
|
||||
*/
|
||||
onCanvas(){
|
||||
wx.showLoading({
|
||||
title: '生成图片中...',
|
||||
mask : true
|
||||
})
|
||||
const canvas = this.data.canvas
|
||||
const ctx = canvas.getContext('2d')
|
||||
const codeImgEl = canvas.createImage()
|
||||
const backBackEl = canvas.createImage()
|
||||
|
||||
codeImgEl.src = this.data.inviteCode //二维码
|
||||
backBackEl.src = this.data.mallData.cover //产品分享图片
|
||||
const codeImgLoding = new Promise((resolve, reason) => {
|
||||
codeImgEl.onload = () => {
|
||||
resolve()
|
||||
}
|
||||
})
|
||||
const backBackLoding = new Promise((resolve, reason) => {
|
||||
backBackEl.onload = () => {
|
||||
resolve()
|
||||
}
|
||||
})
|
||||
Promise.all([codeImgLoding, backBackLoding]).then(() => {
|
||||
// 绘制[二维码-白色背景]
|
||||
ctx.fillStyle = "#ffffff";
|
||||
ctx.fillRect(0, 0, 375, 540);
|
||||
|
||||
ctx.drawImage(backBackEl, 0, 0, 375, 375)
|
||||
|
||||
// 绘制[二维码]
|
||||
ctx.drawImage(codeImgEl, 270, 440, 80, 80)
|
||||
|
||||
// 产品名称
|
||||
ctx.font = "24px Arial"; //字体大小
|
||||
ctx.fillStyle = "#000000"; //字体颜色
|
||||
ctx.fillText(this.data.mallData.name, 25, 420);
|
||||
|
||||
// 产品价格
|
||||
ctx.font = "bold 36px Arial"; //字体大小
|
||||
ctx.fillStyle = "#3b7cff"; //字体颜色
|
||||
ctx.fillText(this.data.mallData.price.price, 25, 480);
|
||||
|
||||
// 海报文字提示
|
||||
ctx.font = "18px Arial"; //字体大小
|
||||
ctx.fillStyle = "#b3b3b3"; //字体颜色
|
||||
ctx.fillText('识别二维码进行查看', 25, 510);
|
||||
|
||||
wx.hideLoading()
|
||||
|
||||
wx.canvasToTempFilePath({
|
||||
canvas: this.data.canvas,
|
||||
success : res => {
|
||||
wx.saveImageToPhotosAlbum({
|
||||
filePath: res.tempFilePath,
|
||||
success: saveRes => {
|
||||
wx.showToast({
|
||||
title: '海报已保存至您的相册',
|
||||
icon : 'none'
|
||||
})
|
||||
this.setData({
|
||||
shareSee: false
|
||||
})
|
||||
},
|
||||
fail: () => {
|
||||
this.setData({
|
||||
shareSee: false
|
||||
})
|
||||
wx.hideLoading()
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '暂未授权小程序写入您的相册,无法存储海报',
|
||||
confirmColor: '#e50d01',
|
||||
confirmText: '去设置',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
wx.openSetting()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
})
|
||||
}).catch(err => {
|
||||
wx.showToast({
|
||||
title: '图片加载失败',
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
邀请码截取
|
||||
*/
|
||||
bindinput(e) {
|
||||
this.setData({
|
||||
nameValue: e.detail.value
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 绑定邀请码
|
||||
*/
|
||||
nameTrue() {
|
||||
wx.$api.mall.levelBind({
|
||||
invite: this.data.nameValue
|
||||
}).then(res => {
|
||||
this.setData({
|
||||
isParent: false
|
||||
})
|
||||
wx.navigateTo({
|
||||
url: '/pages/mall/confirm/confirm?goodsid=' + this.data.mallData.goods_id + '&skuid=' + this.data.mallData.skus[0].sku_id + '&qty=1',
|
||||
})
|
||||
}).catch(err => {})
|
||||
},
|
||||
|
||||
/**
|
||||
* 关闭绑定邀请码弹窗
|
||||
*/
|
||||
nameCancel() {
|
||||
this.setData({
|
||||
isParent: !this.data.isParent
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 删除邀请码
|
||||
*/
|
||||
colseTap() {
|
||||
this.setData({
|
||||
nameValue: ''
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 返回上一页
|
||||
*/
|
||||
returnGo() {
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
fail: err => {
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index?invite=' + getApp().globalData.inviteText
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 回到首页
|
||||
*/
|
||||
returnHome() {
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index?invite=' + getApp().globalData.inviteText
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 监听页面滑动事件
|
||||
*/
|
||||
onPageScroll(e) {
|
||||
this.setData({
|
||||
isFixedTop: parseInt(e.scrollTop)
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 微信分享
|
||||
*/
|
||||
onShareAppMessage(){
|
||||
this.setData({
|
||||
shareSee: false
|
||||
})
|
||||
return {
|
||||
title : this.data.mallData.name,
|
||||
path : "/pages/mall/details/details?id=" + this.data.goodsId + '&invite=' + wx.getStorageSync("invite"),
|
||||
imageUrl: this.data.mallData.cover
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 放大轮播相册图片
|
||||
*/
|
||||
opneBanner(e){
|
||||
let imgs = [],
|
||||
index = e.currentTarget.dataset.index
|
||||
for (let img of e.currentTarget.dataset.imgs){
|
||||
imgs.push(img)
|
||||
}
|
||||
wx.previewImage({
|
||||
urls : imgs,
|
||||
current : imgs[index]
|
||||
})
|
||||
}
|
||||
})
|
||||
4
pages/mall/details/details.json
Normal file
4
pages/mall/details/details.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
144
pages/mall/details/details.wxml
Normal file
144
pages/mall/details/details.wxml
Normal file
@@ -0,0 +1,144 @@
|
||||
<view class="navigation {{isFixedTop > 0 ? 'active' : ''}}" style="padding-top:{{barHeight}}px;">
|
||||
<image bindtap="returnGo" class="navigation-arrow" src="{{isFixedTop > 0 ? '/static/icons/returnBlack.png' : '/static/icons/returnWrite.png'}}"></image>
|
||||
<image bindtap="returnHome" class="navigation-arrow" src="{{isFixedTop > 0 ? '/static/icons/homeBlack.png' : '/static/icons/homeWrite.png'}}"></image>
|
||||
</view>
|
||||
|
||||
<!-- 产品图 -->
|
||||
<view class="banner">
|
||||
<swiper class="swiperCont" indicator-dots indicator-color="rgba(255,255,255,.5)" indicator-active-color="#fff" autoplay="true" circular>
|
||||
<swiper-item data-index="{{index}}" data-imgs="{{mallData.pictures}}" bindtap="opneBanner" wx:for="{{mallData.pictures}}" wx:key="index">
|
||||
<image class="swiperImg" src="{{item}}" mode="aspectFill"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
|
||||
<!-- 商品信息 -->
|
||||
<view class="goodsCont">
|
||||
<view class="goodsWhite goodsInfo">
|
||||
<view class="goodsInfo-top">
|
||||
<view class="goodsInfo-price">
|
||||
<view class="goodsInfo-cost"><text>VIP¥</text>{{mallData.price.vip}}</view>
|
||||
<view class="goodsInfo-vip"><text>市场指导价</text>{{mallData.price.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goodsInfo-name">
|
||||
{{mallData.name}}
|
||||
</view>
|
||||
<view class="goodsInfo-share" bindtap="shareTap">
|
||||
<image class="goodsInfo-share-image" src="/static/icons/goodsShare.png"></image>分享
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="vipOpen">
|
||||
<image class="vipOpen-back" src="https://cdn.shuiganying.com/images/2023/04/01/3b939c9082c917ff01fe4f5ea2ab9dfe.jpg"></image>
|
||||
<view class="vipOpen-cont">
|
||||
<image class="vipOpen-cont-icon" src="https://cdn.shuiganying.com/images/2023/04/04/799f5052f307ba25da99917ee084aaa4.png"></image>
|
||||
<view class="vipOpen-cont-name">
|
||||
<view class="vipOpen-cont-vip">{{mallData.is_vip ? '已成为' : '开通'}}<text>VIP</text></view>
|
||||
<view class="vipOpen-cont-tips">{{mallData.is_vip ? 'AI测肤精准分析您皮肤问题' : '完成皮肤评测成为vip/年'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<navigator hover-class="none" url="/pages/index/index" open-type="switchTab" class="vipOpen-btn">{{mallData.is_vip ? '再次评测' : '立即评测'}}<image class="vipOpen-btn-arrow" src="/static/icons/vipArrow.png"></image>
|
||||
</navigator>
|
||||
</view>
|
||||
|
||||
<view class="goodsWhite goodsItem">
|
||||
<view class="goodsItem-label">
|
||||
<view class="goodsItem-label-name">
|
||||
参数
|
||||
</view>
|
||||
<view class="goodsItem-label-see">
|
||||
<view class="goodsItem-label-block">
|
||||
<view class="goodsItem-label-title">{{mallData.param.weight}}ml</view>
|
||||
<view class="goodsItem-label-tips">净含量</view>
|
||||
</view>
|
||||
<view class="goodsItem-label-block">
|
||||
<view class="goodsItem-label-title">{{mallData.param.product_type}}</view>
|
||||
<view class="goodsItem-label-tips">产品类型</view>
|
||||
</view>
|
||||
<!-- <view class="goodsItem-label-block">
|
||||
<view class="goodsItem-label-title">{{mallData.param.area}}</view>
|
||||
<view class="goodsItem-label-tips">产地</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="goodsItem-label">
|
||||
<view class="goodsItem-label-name">
|
||||
快递
|
||||
</view>
|
||||
<view class="goodsItem-label-text">
|
||||
免邮
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 详情 -->
|
||||
<view class="goodsWhite goodsBrief">
|
||||
<rich-text nodes="{{mallContent}}"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部 -->
|
||||
<view class="footer">
|
||||
<view class="number"><text>¥</text>
|
||||
<view class="number-price">{{mallData.is_vip ? mallData.price.vip : mallData.price.price}}</view>
|
||||
<view class="number-vip">{{mallData.is_vip ? 'VIP会员价' : '市场指导价'}}</view>
|
||||
</view>
|
||||
<view bindtap="buyTap" class="btn">确认购买</view>
|
||||
</view>
|
||||
|
||||
<!-- 产品图 -->
|
||||
<view class="goodsShare {{shareSee ? 'active' : ''}}" catchtouchmove='true'>
|
||||
<view class="goodsShare-back">
|
||||
<image class="goodsShare-photo" src="{{mallData.cover}}" mode="widthFix"></image>
|
||||
<view class="goodsShare-cont">
|
||||
<view class="goodsShare-name">{{mallData.name}}</view>
|
||||
<view class="goodsShare-see">
|
||||
<view class="goodsShare-price">
|
||||
<text>¥</text>{{mallData.price.price}}
|
||||
</view>
|
||||
<view class="goodsShare-tips">
|
||||
识别二维码进行查看
|
||||
</view>
|
||||
<image class="goodsShare-code" src="{{inviteCode}}"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分享弹出 -->
|
||||
<view class="shareBack {{shareSee ? 'active' : ''}}" catchtouchmove='true'></view>
|
||||
<view class="sharePop {{shareSee ? 'active' : ''}}" catchtouchmove='true'>
|
||||
<view class="shareCont">
|
||||
<button class="shareCont-label codeShare-button" open-type="share" hover-class="none">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/03/28/f8b773edc2fe6db8e45f96773b9a8dc4.png"></image>
|
||||
微信好友
|
||||
</button>
|
||||
<view class="shareCont-label" bindtap="onCanvas">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/03/28/cfe0efbb53eaf7911ea5211923859c65.png"></image>
|
||||
保存二维码
|
||||
</view>
|
||||
</view>
|
||||
<view class="shareCancel" bindtap="shareTap">取消</view>
|
||||
</view>
|
||||
|
||||
<!-- 海报canvas -->
|
||||
<canvas type="2d" style="width: 375px; height: 540px;" id="coverCanvas" class="canvas-img" />
|
||||
|
||||
<!-- 是否有上级-邀请码 -->
|
||||
<view class="namePop {{isParent ? 'active' : ''}}"></view>
|
||||
<view class="nameCont {{isParent ? 'active' : ''}}">
|
||||
<view class="nameCont-white">
|
||||
<view class="nameCont-top">
|
||||
<view class="nameCont-title">您的邀请人?</view>
|
||||
<view class="nameCont-input">
|
||||
<input type="text" name="name" value="{{nameValue}}" placeholder="请输入邀请码或邀请人手机号" bindinput="bindinput" />
|
||||
<image wx:if="{{nameValue.length > 1}}" class="nameCont-colse" bindtap="colseTap" src="/static/icons/reportColse_grey.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="nameCont-btn">
|
||||
<view class="nameCont-btn-go" bindtap="nameCancel">暂不绑定</view>
|
||||
<view class="nameCont-btn-go" bindtap="nameTrue">立即绑定</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
545
pages/mall/details/details.wxss
Normal file
545
pages/mall/details/details.wxss
Normal file
@@ -0,0 +1,545 @@
|
||||
page {
|
||||
background-color: #f7faff;
|
||||
}
|
||||
|
||||
/* 返回 */
|
||||
.navigation {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 999;
|
||||
width: 100%;
|
||||
height: 90rpx;
|
||||
background-color: transparent;
|
||||
transition: .2s;
|
||||
}
|
||||
|
||||
.navigation.active {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.navigation-arrow {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
margin: 20rpx 15rpx 0 20rpx;
|
||||
}
|
||||
|
||||
/* 产品图 */
|
||||
.banner {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
padding-top: 100%;
|
||||
}
|
||||
|
||||
.swiperCont,
|
||||
.swiperImg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* 产品详情 */
|
||||
.goodsCont {
|
||||
padding: 30rpx;
|
||||
border-bottom: 60px solid transparent;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.goodsWhite {
|
||||
background-color: #ffffff;
|
||||
box-sizing: border-box;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.goodsInfo {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.goodsInfo-price {
|
||||
display: flex;
|
||||
position: relative;
|
||||
line-height: 52rpx;
|
||||
color: #ff9951;
|
||||
}
|
||||
|
||||
.goodsInfo-cost {
|
||||
font-size: 48rpx;
|
||||
}
|
||||
|
||||
.goodsInfo-cost text {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.goodsInfo-vip {
|
||||
background-color: #fff5ed;
|
||||
border-radius: 80rpx;
|
||||
margin-left: 30rpx;
|
||||
padding: 0 25rpx;
|
||||
height: 52rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.goodsInfo-vip text {
|
||||
font-size: 24rpx;
|
||||
padding-right: 5rpx;
|
||||
}
|
||||
|
||||
.goodsInfo-name {
|
||||
margin-top: 20rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.goodsInfo-share {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
right: 30rpx;
|
||||
display: flex;
|
||||
font-size: 27rpx;
|
||||
line-height: 34rpx;
|
||||
color: #9b9b9b;
|
||||
}
|
||||
|
||||
.goodsInfo-share-image {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
/* 开通vip */
|
||||
.vipOpen {
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
padding-top: 17%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.vipOpen-back {
|
||||
position: absolute;
|
||||
width: calc(100% - 60rpx);
|
||||
height: 100%;
|
||||
top: 0;
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
left: 30rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.vipOpen-cont {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 9;
|
||||
display: flex;
|
||||
padding: 15rpx 55rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.vipOpen-cont-icon {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.vipOpen-cont-name {
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.vipOpen-cont-vip {
|
||||
background-image: linear-gradient(to right, #fbf6d9, #d4af72, #c89a59);
|
||||
-webkit-background-clip: text;
|
||||
color: transparent;
|
||||
font-weight: 600;
|
||||
margin-bottom: 5rpx;
|
||||
font-size: 34rpx;
|
||||
}
|
||||
|
||||
.vipOpen-cont-vip text {
|
||||
font-style: oblique;
|
||||
padding-right: 13rpx;
|
||||
}
|
||||
|
||||
.vipOpen-cont-tips {
|
||||
color: #f4e1c4;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.vipOpen-btn {
|
||||
position: absolute;
|
||||
top: 45rpx;
|
||||
right: 50rpx;
|
||||
display: flex;
|
||||
z-index: 9;
|
||||
line-height: 30rpx;
|
||||
color: #f4e1c4;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.vipOpen-btn-arrow {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
margin: 2rpx 0 0 6rpx;
|
||||
}
|
||||
|
||||
/* 参数 */
|
||||
.goodsItem {
|
||||
padding: 30rpx 30rpx 0;
|
||||
}
|
||||
|
||||
.goodsItem-label {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.goodsItem-label-name {
|
||||
color: #999999;
|
||||
width: 120rpx;
|
||||
line-height: 110rpx;
|
||||
}
|
||||
|
||||
.goodsItem-label-see {
|
||||
display: flex;
|
||||
width: calc(100% - 120rpx);
|
||||
background-color: #f7faff;
|
||||
padding: 10rpx 0;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
|
||||
.goodsItem-label-block {
|
||||
flex: 3;
|
||||
text-align: center;
|
||||
font-size: 26rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.goodsItem-label-block::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
background-color: #d1d1d1;
|
||||
width: 1rpx;
|
||||
height: 60%;
|
||||
top: 20%;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.goodsItem-label-block:first-child::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.goodsItem-label-title {
|
||||
color: #3b7cff;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
|
||||
.goodsItem-label-tips {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.goodsItem-label-text {
|
||||
line-height: 110rpx;
|
||||
}
|
||||
|
||||
/* 详情 */
|
||||
.goodsBrief {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 底部 */
|
||||
.footer {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
background-color: #ffffff;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
z-index: 9;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.number {
|
||||
flex: 1;
|
||||
line-height: 60px;
|
||||
color: #ff9951;
|
||||
display: flex;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.number text {
|
||||
font-size: 28rpx;
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
|
||||
.number-price {
|
||||
padding: 0 5rpx;
|
||||
font-size: 52rpx;
|
||||
}
|
||||
|
||||
.number-vip {
|
||||
margin-left: 20rpx;
|
||||
font-size: 26rpx;
|
||||
color: #8d97a1;
|
||||
padding-top: 6rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
|
||||
.btn {
|
||||
height: 100%;
|
||||
background-color: #ff9951;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
padding: 0 70rpx;
|
||||
line-height: 60px;
|
||||
}
|
||||
|
||||
.detailsBrief-back {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 产品分享弹窗 */
|
||||
.goodsShare {
|
||||
width: 100%;
|
||||
z-index: 9999;
|
||||
position: fixed;
|
||||
bottom: 340rpx;
|
||||
left: 0;
|
||||
padding: 40rpx;
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.goodsShare.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.goodsShare-back {
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
background-color: #ffffff;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.goodsShare-photo {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.goodsShare-cont {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.goodsShare-name {
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.goodsShare-price {
|
||||
font-size: 52rpx;
|
||||
color: #3b7cff;
|
||||
}
|
||||
|
||||
.goodsShare-price text {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.goodsShare-see {
|
||||
position: relative;
|
||||
padding: 40rpx 0 20rpx;
|
||||
}
|
||||
|
||||
.goodsShare-tips {
|
||||
font-size: 28rpx;
|
||||
color: #b3b3b3;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.goodsShare-code {
|
||||
width: 130rpx;
|
||||
height: 130rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 30rpx;
|
||||
}
|
||||
|
||||
/* 分享弹出 */
|
||||
|
||||
.shareBack {
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 9900;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, .6);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.shareBack.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sharePop {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 9999;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: #ffffff;
|
||||
display: none;
|
||||
height: 280rpx;
|
||||
}
|
||||
|
||||
.sharePop.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.shareCont-label image {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
display: block;
|
||||
margin: 0 auto 10rpx;
|
||||
}
|
||||
|
||||
.shareCancel {
|
||||
border-top: 2rpx solid #dddddd;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
|
||||
.shareCont {
|
||||
display: flex;
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
|
||||
.shareCont-label {
|
||||
flex: 2;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.codeShare-button {
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* canvas */
|
||||
.canvas-img {
|
||||
position: fixed;
|
||||
left: -100000%;
|
||||
top: 0;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
|
||||
/* 邀请码弹出 */
|
||||
.namePop {
|
||||
position: fixed;
|
||||
background-color: rgba(0, 0, 0, .5);
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
z-index: 100000;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.namePop.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nameCont {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-pack: center;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 100000;
|
||||
padding: 0 15%;
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nameCont.active {
|
||||
display: -webkit-box;
|
||||
}
|
||||
|
||||
.nameCont-white {
|
||||
background-color: #ffffff;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.nameCont-top {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nameCont-title {
|
||||
font-size: 34rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.nameCont-input {
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
position: relative;
|
||||
background-color: #f3f3f3;
|
||||
border-radius: 10rpx;
|
||||
overflow: hidden;
|
||||
padding: 0 25rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nameCont-input input {
|
||||
width: calc(100% - 40rpx);
|
||||
height: 100%;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.nameCont-colse {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
top: 25rpx;
|
||||
right: 20rpx;
|
||||
position: absolute;
|
||||
z-index: 9;
|
||||
}
|
||||
|
||||
.nameCont-btn {
|
||||
line-height: 100rpx;
|
||||
background-color: #f3f3f3;
|
||||
display: flex;
|
||||
margin-top: 30rpx;
|
||||
border-top: 2rpx solid #dfdfdf;
|
||||
}
|
||||
|
||||
.nameCont-btn-go {
|
||||
text-align: center;
|
||||
flex: 2;
|
||||
}
|
||||
|
||||
.nameCont-btn-go:last-child {
|
||||
position: relative;
|
||||
color: #ff9951;
|
||||
}
|
||||
|
||||
.nameCont-btn-go:last-child::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 2rpx;
|
||||
height: 100%;
|
||||
background-color: #dfdfdf;
|
||||
}
|
||||
32
pages/mall/index.js
Normal file
32
pages/mall/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
data: {
|
||||
goodsArr: [] //商品列表
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
if(options.invite != undefined) {
|
||||
getApp().globalData.inviteText = options.invite
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 获取产品首页
|
||||
this.mallInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 产品首页
|
||||
*/
|
||||
mallInfo (){
|
||||
wx.$api.mall.mallIndex().then(res => {
|
||||
this.setData({
|
||||
goodsArr: res.data.goods
|
||||
})
|
||||
}).catch(err => { })
|
||||
},
|
||||
})
|
||||
4
pages/mall/index.json
Normal file
4
pages/mall/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "产品"
|
||||
}
|
||||
67
pages/mall/index.wxml
Normal file
67
pages/mall/index.wxml
Normal file
@@ -0,0 +1,67 @@
|
||||
<!-- 产品轮播 -->
|
||||
<view class="mallBanner">
|
||||
<view class="mallBanner-cont">
|
||||
<swiper class="mallBanner-see" autoplay="true" circular duration="500" indicator-dots>
|
||||
<swiper-item>
|
||||
<navigator url="/pages/user/about/about">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/05/17/c79743b1de182fbc2dd39188a7c6938c.png" mode="aspectFill" class="mallBanner-img"></image>
|
||||
</navigator>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<navigator url="/pages/user/about/about">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/05/23/1d021dfa811e809b92fe0c49f792560e.png" mode="aspectFill" class="mallBanner-img"></image>
|
||||
</navigator>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 使用场景 -->
|
||||
<view class="scene">
|
||||
<view class="sceneCont">
|
||||
<view class="sceneCont-title">使用场景</view>
|
||||
<image src="https://cdn.shuiganying.com/images/2023/05/17/7b5db9360b5de015c526471dda937495.png" mode="widthFix" class="sceneCont-img"></image>
|
||||
<view class="sceneCont-title">使用方法</view>
|
||||
<view class="sceneCont-item">
|
||||
<view class="sceneCont-label">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/05/17/cf1bafbc092493f8c2b6d2e2a8ab2607.png" mode="aspectFill" class="sceneCont-label-img"></image>
|
||||
<view class="sceneCont-label-text">1.手握瓶身,距离肌肤15公分距离,Z字型喷在脸上;</view>
|
||||
</view>
|
||||
<view class="sceneCont-label">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/05/17/8c3c9abc0e3bc265195c52372ec82723.png" mode="aspectFill" class="sceneCont-label-img"></image>
|
||||
<view class="sceneCont-label-text">2.等待自然风干或用面纸轻轻按压,吸走多余水分;</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 必Buy推荐 -->
|
||||
<view class="goods">
|
||||
<view class="goodsTilte">必Buy推荐</view>
|
||||
<view class="goodsCont">
|
||||
<navigator hover-class="none" class="goodsCont-item" url="./details/details?id={{item.goods_id}}" wx:for="{{goodsArr}}" wx:key="goodsArr">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/05/17/40e80f12b27a8dc25cfb730ffaf7063b.png" mode="aspectFill" class="goodsCont-item-back"></image>
|
||||
<view class="goodsCont-item-cont">
|
||||
<image src="{{item.cover}}" mode="widthFix" class="goodsCont-item-photo"></image>
|
||||
<view class="goodsCont-item-price">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/05/17/054f6658624c4b1ed78bb834a8d3c4d6.png" mode="widthFix" class="goodsCont-item-price-back"></image>
|
||||
<view class="goodsCont-item-price-cont">
|
||||
<view class="goodsCont-item-price-left goodsCont-item-price-black">
|
||||
<view class="goodsCont-item-price-text">市场指导价</view>
|
||||
<view class="goodsCont-item-price-number">¥<text>{{item.price.price}}</text>/{{item.number}}瓶</view>
|
||||
</view>
|
||||
<view class="goodsCont-item-price-right goodsCont-item-price-white">
|
||||
<view class="goodsCont-item-price-text">VIP会员价</view>
|
||||
<view class="goodsCont-item-price-number">¥<text>{{item.price.vip}}</text>/{{item.number}}瓶</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 单图 -->
|
||||
<navigator hover-class="none" url="/pages/health/index" class="nurse">
|
||||
<image class="nurse-img" mode="widthFix" src="https://cdn.shuiganying.com/images/2023/05/19/4c90b7e43fd9e25601f2dca442de34ba.jpg"></image>
|
||||
</navigator>
|
||||
194
pages/mall/index.wxss
Normal file
194
pages/mall/index.wxss
Normal file
@@ -0,0 +1,194 @@
|
||||
page {
|
||||
background-color: #f7faff;
|
||||
}
|
||||
|
||||
/* 产品轮播 */
|
||||
.mallBanner {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mallBanner-cont {
|
||||
position: relative;
|
||||
border-radius: 20rpx;
|
||||
padding-top: 45%;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 0 20rpx rgba(0, 0, 0, .2);
|
||||
}
|
||||
|
||||
.mallBanner-see,
|
||||
.mallBanner-img {
|
||||
border-radius: 20rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* 修改dot形状 */
|
||||
.wx-swiper-dots.wx-swiper-dots-horizontal {
|
||||
bottom: 25rpx;
|
||||
}
|
||||
.wx-swiper-dots .wx-swiper-dot {
|
||||
width: 32rpx; /*宽*/
|
||||
height: 12rpx; /*高*/
|
||||
border-radius: 10rpx; /*圆角*/
|
||||
background-color: transparent;
|
||||
border: 4rpx solid #ffffff;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.wx-swiper-dot-active {
|
||||
background-color:#ffffff !important;
|
||||
}
|
||||
|
||||
/* 使用场景 */
|
||||
.scene {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.sceneCont {
|
||||
background-color: #ffffff;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
|
||||
.sceneCont-title {
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
font-size: 34rpx;
|
||||
}
|
||||
|
||||
.sceneCont-img {
|
||||
width: 100%;
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
|
||||
.sceneCont-item {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.sceneCont-label {
|
||||
flex: 2;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sceneCont-label-img {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
box-shadow: 0 0 20rpx rgba(0, 0, 0, .2);
|
||||
border-radius: 50%;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
|
||||
.sceneCont-label-text {
|
||||
font-size: 24rpx;
|
||||
font-weight: 300;
|
||||
padding: 0 15rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 列表 */
|
||||
.goods {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.goodsTilte {
|
||||
font-weight: 600;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.goodsCont-item {
|
||||
position: relative;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
padding-top: 100%;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
.goodsCont-item-back,
|
||||
.goodsCont-item-cont {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.goodsCont-item-cont {
|
||||
padding: 30rpx 15rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.goodsCont-item-photo {
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.goodsCont-item-price {
|
||||
position: relative;
|
||||
padding-top: 15%;
|
||||
}
|
||||
.goodsCont-item-price-back,
|
||||
.goodsCont-item-price-cont {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.goodsCont-item-price-back {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.goodsCont-item-price-cont {
|
||||
padding: 14rpx 40rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.goodsCont-item-price-text {
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
.goodsCont-item-price-left {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.goodsCont-item-price-white {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.goodsCont-item-price-number {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.goodsCont-item-price-number text {
|
||||
font-weight: 600;
|
||||
font-size: 40rpx;
|
||||
padding-left: 6rpx;
|
||||
}
|
||||
|
||||
.goodsCont-item-price-right {
|
||||
width: 26%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 皮肤护理 */
|
||||
.nurse {
|
||||
width: 100%;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nurse-img {
|
||||
border-radius: 20rpx;
|
||||
width: 100%;
|
||||
}
|
||||
62
pages/mall/list/list.js
Normal file
62
pages/mall/list/list.js
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
data: {
|
||||
goodsArr : [], // 商品列表
|
||||
page : {}, // 分页信息
|
||||
lodingStats : false, // 加载状态
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 获取产品列表
|
||||
this.mallInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取产品列表
|
||||
*/
|
||||
mallInfo (page){
|
||||
wx.$api.mall.mallList({page : page || 1}).then(res => {
|
||||
let listArr = this.data.goodsArr,
|
||||
newData = []
|
||||
if(page == 1 || page == undefined) listArr = []
|
||||
newData = listArr.concat(res.data.data)
|
||||
this.setData({
|
||||
goodsArr : newData,
|
||||
page : res.data.page,
|
||||
lodingStats : false
|
||||
})
|
||||
wx.stopPullDownRefresh()
|
||||
}).catch(err => { })
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
// 获取产品列表
|
||||
this.mallInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 上拉加载
|
||||
*/
|
||||
onReachBottom(){
|
||||
this.setData({
|
||||
lodingStats: true
|
||||
})
|
||||
let pageNumber = this.data.page.current
|
||||
if(this.data.page.has_more){
|
||||
pageNumber++
|
||||
// 获取产品列表
|
||||
this.mallInfo(pageNumber);
|
||||
}
|
||||
}
|
||||
})
|
||||
4
pages/mall/list/list.json
Normal file
4
pages/mall/list/list.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "产品列表"
|
||||
}
|
||||
31
pages/mall/list/list.wxml
Normal file
31
pages/mall/list/list.wxml
Normal file
@@ -0,0 +1,31 @@
|
||||
<!-- 产品列表 -->
|
||||
<view class="product">
|
||||
<view class="product-list" wx:if="{{goodsArr.length > 0}}">
|
||||
<navigator hover-class="none" url="../details/details?id={{item.goods_id}}" class="product-item" wx:for="{{goodsArr}}" wx:key="goodsArr">
|
||||
<image class="product-item-img" mode="aspectFill" src="{{item.cover}}"></image>
|
||||
<view class="product-item-cont">
|
||||
<view class="nowrap product-item-title">{{item.name}}</view>
|
||||
<view class="product-item-specs">{{item.description}}</view>
|
||||
<view class="product-item-see">
|
||||
<view class="product-item-price"><text>¥</text>{{item.price.vip}}<view class="product-item-vip">VIP</view></view>
|
||||
<view class="product-item-number"><text>原价¥</text>{{item.price.price}}</view>
|
||||
</view>
|
||||
<view class="product-item-btn">
|
||||
立即购买<image src="https://cdn.shuiganying.com/images/2023/03/29/bf6111cde69274156b23f87dd4a812f3.png" mode="widthFix" class="product-item-arrow"></image>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
<view class="pagesLoding" wx:if="{{lodingStats}}">
|
||||
<block wx:if="{{page.has_more}}">
|
||||
<image class="pagesLoding-icon" src="/static/icons/refresh_loding.gif" mode="widthFix"></image>加载中...
|
||||
</block>
|
||||
<block wx:else>
|
||||
没有更多了~
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pack-center pages-hint" wx:else>
|
||||
<image src="/static/imgs/text_null.png"></image>
|
||||
<view>暂无数据</view>
|
||||
</view>
|
||||
</view>
|
||||
121
pages/mall/list/list.wxss
Normal file
121
pages/mall/list/list.wxss
Normal file
@@ -0,0 +1,121 @@
|
||||
page {
|
||||
background-color: #f7faff;
|
||||
}
|
||||
|
||||
/* 产品列表 */
|
||||
.product {
|
||||
width: 100%;
|
||||
padding: 30rpx 30rpx 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.product-title {
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
position: relative;
|
||||
height: 340rpx;
|
||||
}
|
||||
|
||||
.product-item-img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
|
||||
.product-item-cont {
|
||||
height: 300rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.product-item-title {
|
||||
line-height: 74rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.product-item-specs,
|
||||
.product-item-number {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.product-item-number {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.product-item-see {
|
||||
margin: 30rpx 0 20rpx;
|
||||
line-height: 48rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.product-item-price {
|
||||
font-size: 38rpx;
|
||||
position: relative;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.product-item-vip {
|
||||
position: absolute;
|
||||
font-size: 20rpx;
|
||||
top: 0;
|
||||
right: -60rpx;
|
||||
background-color: #ff9951;
|
||||
color: #ffffff;
|
||||
display: inline-block;
|
||||
border-radius: 8rpx;
|
||||
padding: 0 10rpx;
|
||||
line-height: 32rpx;
|
||||
transform: scale(.8);
|
||||
}
|
||||
|
||||
.product-item-vip:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: -18rpx;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 10rpx solid;
|
||||
margin-top: -10rpx;
|
||||
border-color: transparent #ff9951 transparent transparent;
|
||||
}
|
||||
|
||||
.product-item-price text {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.product-item-btn {
|
||||
font-size: 26rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 80rpx;
|
||||
height: 76rpx;
|
||||
line-height: 76rpx;
|
||||
border: 2rpx solid #000000;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
width: 96%;
|
||||
margin-left: 2%;
|
||||
}
|
||||
|
||||
.product-item-arrow {
|
||||
width: 18rpx;
|
||||
height: 18rpx;
|
||||
margin-left: 6rpx;
|
||||
}
|
||||
|
||||
.product-item .product-item-img {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.product-item .product-item-cont {
|
||||
padding-left: 340rpx;
|
||||
}
|
||||
68
pages/mall/webView/webView.js
Normal file
68
pages/mall/webView/webView.js
Normal file
@@ -0,0 +1,68 @@
|
||||
// pages/mall/webView/webView.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
h5url: ''
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
this.setData({
|
||||
h5url: decodeURIComponent(options.url)
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/mall/webView/webView.json
Normal file
3
pages/mall/webView/webView.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
pages/mall/webView/webView.wxml
Normal file
1
pages/mall/webView/webView.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<web-view src="{{h5url}}"></web-view>
|
||||
1
pages/mall/webView/webView.wxss
Normal file
1
pages/mall/webView/webView.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/mall/webView/webView.wxss */
|
||||
32
pages/mall/商品老版本/index.js
Normal file
32
pages/mall/商品老版本/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
Page({
|
||||
data: {
|
||||
goodsArr: [] //商品列表
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
if(options.invite != undefined) {
|
||||
getApp().globalData.inviteText = options.invite
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 获取产品首页
|
||||
this.mallInfo();
|
||||
},
|
||||
|
||||
/**
|
||||
* 产品首页
|
||||
*/
|
||||
mallInfo (){
|
||||
wx.$api.mall.mallIndex().then(res => {
|
||||
this.setData({
|
||||
goodsArr: res.data.goods
|
||||
})
|
||||
}).catch(err => { })
|
||||
},
|
||||
})
|
||||
4
pages/mall/商品老版本/index.json
Normal file
4
pages/mall/商品老版本/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "产品"
|
||||
}
|
||||
39
pages/mall/商品老版本/index.wxml
Normal file
39
pages/mall/商品老版本/index.wxml
Normal file
@@ -0,0 +1,39 @@
|
||||
<!-- 产品轮播 -->
|
||||
<view class="mallBanner">
|
||||
<view class="mallBanner-cont">
|
||||
<navigator hover-class="none" url="./list/list" class="mallBannermallBanner-see">
|
||||
<image src="https://cdn.shuiganying.com/images/2023/03/29/cc6547fe6ad1a8bc37d273053c89a546.png" mode="aspectFill" class="mallBanner-img"></image>
|
||||
</navigator>
|
||||
<!-- <swiper class="mallBanner-see" autoplay="true">
|
||||
<swiper-item>
|
||||
<image src="https://cdn.shuiganying.com/images/2023/03/29/cc6547fe6ad1a8bc37d273053c89a546.png" mode="aspectFill" class="mallBanner-img"></image>
|
||||
</swiper-item>
|
||||
</swiper> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 产品列表 -->
|
||||
<view class="product">
|
||||
<view class="product-title">必Buy推荐</view>
|
||||
<view class="product-list">
|
||||
<navigator hover-class="none" url="./details/details?id={{item.goods_id}}" class="product-item" wx:for="{{goodsArr}}" wx:key="goodsArr">
|
||||
<image class="product-item-img" mode="aspectFill" src="{{item.cover}}"></image>
|
||||
<view class="product-item-cont">
|
||||
<view class="nowrap product-item-title">{{item.name}}</view>
|
||||
<view class="product-item-specs">{{item.description}}</view>
|
||||
<view class="product-item-see">
|
||||
<view class="product-item-price"><text>¥</text>{{item.price.vip}}<view class="product-item-vip">VIP</view></view>
|
||||
<view class="product-item-number"><text>原价¥</text>{{item.price.price}}</view>
|
||||
</view>
|
||||
<view class="product-item-btn">
|
||||
立即购买<image src="https://cdn.shuiganying.com/images/2023/03/29/bf6111cde69274156b23f87dd4a812f3.png" mode="widthFix" class="product-item-arrow"></image>
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 单图 -->
|
||||
<navigator hover-class="none" url="/pages/health/index" class="nurse">
|
||||
<image class="nurse-img" mode="widthFix" src="https://cdn.shuiganying.com/images/2023/03/29/5b5f6c1de07496fcda7bb09fac177fcb.png"></image>
|
||||
</navigator>
|
||||
169
pages/mall/商品老版本/index.wxss
Normal file
169
pages/mall/商品老版本/index.wxss
Normal file
@@ -0,0 +1,169 @@
|
||||
page {
|
||||
background-color: #f7faff;
|
||||
}
|
||||
|
||||
/* 产品轮播 */
|
||||
.mallBanner {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mallBanner-cont {
|
||||
position: relative;
|
||||
border-radius: 20rpx;
|
||||
padding-top: 45%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mallBanner-see,
|
||||
.mallBanner-img {
|
||||
border-radius: 20rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* 产品列表 */
|
||||
.product {
|
||||
width: 100%;
|
||||
padding: 10rpx 30rpx 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.product-title {
|
||||
font-size: 36rpx;
|
||||
}
|
||||
|
||||
.product-list {
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
|
||||
.product-item {
|
||||
position: relative;
|
||||
height: 340rpx;
|
||||
}
|
||||
|
||||
.product-item-img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
|
||||
.product-item-cont {
|
||||
height: 300rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.product-item-title {
|
||||
line-height: 74rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.product-item-specs,
|
||||
.product-item-number {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.product-item-number {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.product-item-see {
|
||||
margin: 30rpx 0 20rpx;
|
||||
line-height: 48rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.product-item-price {
|
||||
font-size: 38rpx;
|
||||
position: relative;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.product-item-vip {
|
||||
position: absolute;
|
||||
font-size: 20rpx;
|
||||
top: 0;
|
||||
right: -60rpx;
|
||||
background-color: #ff9951;
|
||||
color: #ffffff;
|
||||
display: inline-block;
|
||||
border-radius: 8rpx;
|
||||
padding: 0 10rpx;
|
||||
line-height: 32rpx;
|
||||
transform: scale(.8);
|
||||
}
|
||||
|
||||
.product-item-vip:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: -18rpx;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 10rpx solid;
|
||||
margin-top: -10rpx;
|
||||
border-color: transparent #ff9951 transparent transparent;
|
||||
}
|
||||
|
||||
.product-item-price text {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.product-item-btn {
|
||||
font-size: 26rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 80rpx;
|
||||
height: 76rpx;
|
||||
line-height: 76rpx;
|
||||
border: 2rpx solid #000000;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
width: 96%;
|
||||
margin-left: 2%;
|
||||
}
|
||||
|
||||
.product-item-arrow {
|
||||
width: 18rpx;
|
||||
height: 18rpx;
|
||||
margin-left: 6rpx;
|
||||
}
|
||||
|
||||
.product-item:nth-child(odd) .product-item-img {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.product-item:nth-child(odd) .product-item-cont {
|
||||
padding-left: 340rpx;
|
||||
}
|
||||
|
||||
.product-item:nth-child(even) .product-item-img {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.product-item:nth-child(even) .product-item-cont {
|
||||
padding-right: 340rpx;
|
||||
}
|
||||
|
||||
/* 皮肤护理 */
|
||||
.nurse {
|
||||
width: 100%;
|
||||
padding: 0 30rpx 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nurse-img {
|
||||
border-radius: 20rpx;
|
||||
width: 100%;
|
||||
}
|
||||
Reference in New Issue
Block a user