作者 王旭宇

realfinish

... ... @@ -69,7 +69,8 @@
"pages/index/goodsDetials/goodsDetials",
"pages/navigate/navigate",
"pages/index/user_comment_detail/user_comment_detail",
"pages/my/paySuccess/paySuccess"
"pages/my/paySuccess/paySuccess",
"pages/my/shenqingshouhou/shengqingshouhou"
],
"window": {
"backgroundTextStyle": "dark",
... ...
... ... @@ -275,6 +275,11 @@ input, textarea {
background-color: #ffda44;
box-shadow: 5rpx 0px 5rpx rgba(248, 207, 38, 0.3);
}
.icon-gouwuches {
font-size: 29rpx;
color: #444;
}
/* 头部信息 */
... ... @@ -354,6 +359,9 @@ input, textarea {
.icon-gouwuche:before {
content: "\e6be";
}
.icon-gouwuches:before {
content: "\e6be";
}
.icon-cuowu:before {
content: "\e657";
... ...
... ... @@ -25,7 +25,8 @@ Page({
chuandi: 0,
chuandis: 0,
xuanzhong: true,
shengyu: 0
shengyu: 0,
freeprice: null,
},
//跳转至详情页
goDetail(e) {
... ... @@ -174,9 +175,7 @@ Page({
that.setData({
all_both_choose: all_both_choose,
})
console.log(all_both_choose + "前")
this.totalPrice();
console.log(all_both_choose+"后")
// this.totalPrice();
},
//fetchUser
fetchUser() {
... ... @@ -225,17 +224,17 @@ Page({
r.data.promotion.forEach(function(ele, index) {
ele.chooseAll=true
for (let v in ele.list) {
ele.list[v].t = false
ele.list[v].flag = true
if (vip == 1) {
var price = ele.list[v].vip_price
price = price.substring(0, price.length - 3) * 1
ele.list[v].goods_price = ele.list[v].number * price
} else {
var price = ele.list[v].price
price = price.substring(0, price.length - 3) * 1
// price = price.substring(0, price.length - 3) * 1
ele.list[v].goods_price = ele.list[v].number * price
}
totalPrice += ele.list[v].goods_price
totalPrice += ele.list[v].price
}
})
chuandis = totalPrice
... ... @@ -244,9 +243,11 @@ Page({
} else {
shipprice = r.data.shipment.price
}
var ship_balance = that.data.shipment.free * 1 - totalPrice
var ship_balance = r.data.shipment.free * 1 - totalPrice
if (ship_balance <= 0) {
shipprice = 0
var shipprices = 0
}else{
var shipprices = ship_balance
}
chuandi = totalPrice * 1 + shipprice * 1
that.setData({
... ... @@ -256,12 +257,15 @@ Page({
number: number,
shipment: r.data.shipment,
shipPrice: r.data.shipment.price,
freeprice:r.data.shipment.free,
shengyu: r.data.minimum_price,
totalPrice: totalPrice,
totalPrice: chuandi,
chuandi:chuandi,
chuandis:chuandis
chuandis:chuandis,
ship_balance:shipprices
});
});
that.totalPrice()
},
//每个商品总价
amount() {
... ... @@ -284,15 +288,15 @@ Page({
})
promotion.forEach(function(ele, index) {
for (let v in ele.list) {
if (vip == 1) {
var price = ele.list[v].vip_price
price = price.substring(0, price.length - 3) * 1
ele.list[v].goods_price = ele.list[v].number * price
} else {
var price = ele.list[v].price
price = price.substring(0, price.length - 3) * 1
ele.list[v].goods_price = ele.list[v].number * price
}
// if (vip == 1) {
// var price = ele.list[v].vip_price
// price = price.substring(0, price.length - 3) * 1
// ele.list[v].goods_price = ele.list[v].number * price
// } else {
// var price = ele.list[v].price
// price = price.substring(0, price.length - 3) * 1
// ele.list[v].goods_price = ele.list[v].number * price
// }
}
})
},
... ... @@ -323,30 +327,33 @@ Page({
promotion.forEach(function(ele, index) {
for (var i in ele.list) {
if (ele.list[i].flag) {
if (that.data.is_vip == 1) {
str_price = ele.list[i].vip_price;
} else {
// if (that.data.is_vip == 1) {
// str_price = ele.list[i].vip_price;
// } else {
str_price = ele.list[i].price;
}
str_price = str_price.substring(0, str_price.length - 3);
str_price = str_price * 1 * ele.list[i].number
price2 = price2 + str_price;
// }
// str_price = str_price.substring(0, str_price.length - 3);
// str_price = str_price * 1 * ele.list[i].number
str_price = ele.list[i].price*ele.list[i].number
// price2 = price2 + str_price;
price2 += ele.list[i].price * ele.list[i].number
}
}
});
price3 = price + price2;
if (price3 > that.data.shipment.free) {
if (price3 >= that.data.freeprice) {
shipPrice = 0
} else {
shipPrice = this.data.shipment.price
shipPrice = this.data.shipPrice
}
var ship_balance = that.data.shipment.free * 1 - price3
var ship_balance = that.data.freeprice * 1 - price3
if (ship_balance <= 0) {
ship_balance = 0
}else{
ship_balance = ship_balance
}
let price4 = price3
let price5 = price3 * 1 + shipPrice * 1
// console.log(price5+"嗯嗯嗯")
that.setData({
totalPrice: price5,
chuandi: price5,
... ... @@ -394,13 +401,19 @@ Page({
title: '删除成功',
icon: 'none'
})
this.totalPrice();
this.fetchCartList();
// this.choose();
// this.choose2();
let a = this.data.shipment.free
this.totalPrice();
console.log(this.data.totalPrice+'啊呀呦')
console.log(this.data.shipment.free + '啊呀呦')
let b = 0
let a = this.data.shipment.free - this.data.totalPrice
if(a<0){
b = 0
}else{
b = a
}
this.setData({
ship_balance: a,
ship_balance: b,
all_both_choose: false,
totalPrice: 0
})
... ... @@ -420,14 +433,13 @@ Page({
*/
onLoad: function(options) {
this.fetchUser();
this.allBothChooses()
console.log(this.data.all_both_choose + "zhong")
console.log(this.data.shipment)
},
// 再逛逛
get_return() {
wx.switchTab({
url: '../../pages/index/index'
});
url: '../index/index',
})
},
//购物车结算
settleAccountGoods() {
... ... @@ -908,12 +920,13 @@ Page({
*/
onShow: function() {
let a=this.data.shipment.free
this.fetchCartList();
this.fetchUser();
this.setData({
// chooseAll: false,
// chooseAll2: false,
totalPrice: 0,
// all_both_choose: false,
all_both_choose: true,
ship_balance:a
})
this.fetchCartNum()
... ...
... ... @@ -9,7 +9,7 @@
<view class='left'>
<view class='note'>提示</view>满{{listlist.shipment.free}}元包邮,还差{{ship_balance}}包邮
</view>
<view class='right' catchtap='get_return'>再逛逛
<view class='right' bindtap='get_return'>再逛逛
<icon class='iconfont icon-icondayu'></icon>
</view>
</view>
... ... @@ -66,7 +66,7 @@
</view> -->
</view>
<view class='single_part_items'>
<view class='single_part_item' wx:for='{{cell.list}}' wx:key='*this' wx:for-index='index' wx:for-item='value'>
<view class='single_part_item' wx:for='{{cell.list}}' wx:key='{{index}}' wx:for-index='index' wx:for-item='value'>
<view class='iconfont icon-weixuanzhong {{value.flag?"active":""}}' catchtap='choose2' data-cell='{{cellindex}}' data-id='{{value.id}}' data-flag='{{value.flag}}' data-index='{{index}}'></view>
<view class='single_part_imgbox'>
<image src='{{value.more.thumbnail}}' mode='widthFix'></image>
... ... @@ -76,7 +76,7 @@
<view class='product_type'>{{value.sku_values}}</view>
<view class='product_action'>
<view class='price'>¥
<text class='detail_price'>{{value.goods_price}}</text>
<text class='detail_price'>{{value.price}}</text>
</view>
<!-- <view class='action_box'>
<view class='short action_btn' catchtap='dec2' data-number='{{value.number}}' data-index='{{index}}' data-cellindex='{{cellindex}}'>-</view>
... ... @@ -108,7 +108,7 @@
<text class='detail_price'>{{totalPrice}} </text>
</view>
</view>
<view class='fee'>
<view class='fee' wx:if='{{ship_balance>0}}'>
含运费{{shipPrice}}元
</view>
</view>
... ...
... ... @@ -6,10 +6,19 @@ page{
width: 100%;
height: 100%;
}
::-webkit-scrollbar{
display: none
}
.icon-icondayu{
color: #000!important;
font-weight: 500!important
}
.page{
width: 100%;
height: 100%;
overflow-x: hidden;
padding-bottom: 100rpx;
box-sizing: border-box
}
.da{
width: 100%;
... ... @@ -22,7 +31,10 @@ page{
line-height: 500rpx;
color: #888;
font-size: 32rpx;
position: relative;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%)
}
.gogogo image{
height: 247rpx;
... ... @@ -45,10 +57,10 @@ page{
top: 50%
}
.cart_box{
height: calc(100% - 100rpx);
flex: 1;
display: flex;
flex-flow: column;
/* height: calc(100% - 100rpx) */
}
.top_label {
height: 85rpx;
... ... @@ -80,12 +92,17 @@ page{
font-size: 24rpx;
padding: 0 40rpx;
}
.left,.right,icon{
display: flex;
align-items: center;
justify-content: center;
color: #222;
}
.right{
width: 150rpx;
height: 100%;
}
.note{
height: 32rpx;
border-radius: 16rpx;
... ... @@ -226,6 +243,7 @@ page{
display: flex;
font-size: 26rpx;
color: #888;
line-height: 100rpx
}
.choose .iconfont {
margin-right: 24rpx;
... ...
... ... @@ -146,10 +146,10 @@
</view>
</view>
</view>
<view class='bottom_btn'>
<view class='bottom_btn' wx:if='{{!showMore}}'>
<view class='hint_btn'>
<view class='shop_car' bindtap='get_car'>
<view class='iconfont icon-gouwuche'></view>
<view class='iconfont icon-gouwuches'></view>
<view>购物车</view>
<view class='cart_count'>{{goods.cartCount}}</view>
</view>
... ...
... ... @@ -74,12 +74,15 @@ page {
.banner_box {
position: relative;
width: 100%;
height: 710rpx;
padding-top: 80rpx;
box-sizing: border-box;
}
.banner_img {
width: 100%;
height: 630rpx;
padding-top: 80rpx;
box-sizing: border-box;
}
.banner_img image {
... ... @@ -711,7 +714,7 @@ page {
.cart_count {
position: absolute;
right: 2rpx;
top: 0;
top: -2rpx;
width: 24rpx;
height: 24rpx;
border-radius: 50%;
... ... @@ -1141,7 +1144,7 @@ page {
.replace_dishes_center {
display: flex;
/* align-items: center */
align-items: center
}
.replace_image {
... ... @@ -1149,6 +1152,9 @@ page {
height: 29rpx;
margin-right: 18rpx;
margin-top: -14rpx;
display: flex;
align-items: center;
justify-content: center
}
.replace_image image {
... ...
... ... @@ -50,6 +50,13 @@ Page({
string:'',
gggPrice: null
},
//进入评论详情
go_comment_detail(e){
var id = e.currentTarget.dataset.id
wx.navigateTo({
url: '../user_comment_detail/user_comment_detail?id='+id,
})
},
//进入基本参数
jumpBasicInfo() {
this.setData({
... ...
... ... @@ -22,7 +22,7 @@
<view wx:else class='banner_box_group '>
距离团购
<text wx:if='{{goods.groupType.group_status==1}}'>开始\t\t\t</text>
<text wx:elif='{{goods.groupType.group_status==2}}'>结束\t\t\t</text> {{day}}天{{hour}}小时{{minute}}分钟
<text wx:elif='{{goods.groupType.group_status==2}}'>结束\t\t\t</text> {{day}}天{{hour}}时{{minute}}分
</view>
</view>
<!-- </view> -->
... ... @@ -39,8 +39,8 @@
<view class='item_list '>
<view class='banner_title '>{{goods.info.title}}</view>
<view class='introduce '>{{goods.info.excerpt}}</view>
<view wx:if='{{groupList.length>0}}'>
<view class='good_price_progress ' wx:if='{{goods.groupType.group_status==2}} '>
<view>
<view class='good_price_progress ' wx:if='{{goods.groupType.group_status==2}}'>
<progress show-info border-radius='4 ' activeColor='#ffda44 ' stroke-width='8 ' percent='{{percent}} ' font-size='12 '></progress>
<text class='group_font '>已拼{{goods.info.group_number}}份\t\t\t\t目标{{goods.info.group_min_number}}份</text>
</view>
... ... @@ -136,7 +136,7 @@
<view class='iconfont icon-jinru icon-jinrus'></view>
</view>
</view>
<view class='user_information_box' wx:for='{{comment}}' wx:for-index='index' wx:key='{{index}}'>
<view class='user_information_box' wx:for='{{comment}}' wx:for-index='index' wx:key='{{index}}' data-id='{{item.id}}' catchtap='go_comment_detail'>
<view class='user_information'>
<view class='the_star'>
<view class='head_portrait'>
... ... @@ -168,7 +168,7 @@
</view>
</view>
</view>
<view class='comments_btn'>
<view class='comments_btn' data-id='{{item.id}}' catchtap='go_comment_detail'>
<view class='iconfont icon-message'></view>
<view class='comments'>评论</view>
</view>
... ... @@ -176,7 +176,7 @@
</view>
<view class='item_list3' wx:if='{{goods.promotion.length>0}}'>
<view class='package_title'>购买含本商品套餐更优惠</view>
<view class='package_box' bindtap='jump_goodsDetial2' data-id='{{item.promotion_id}}' wx:for='{{goods.promotion}}' wx:key='{{item.id}}'>
<view class='package_box' bindtap='jump_goodsDetial2' data-id='{{item.id}}' wx:for='{{goods.promotion}}' wx:key='{{item.id}}'>
<view class='package_img_box'>
<view class='package_img'>
<image src='{{item.thumbnail}}'></image>
... ... @@ -284,9 +284,11 @@
<view class='hint_btn'>
<view>
<navigator class='shop_car' url='../../cart/cart' open-type="switchTab">
<view class='iconfont icon-gouwuche'></view>
<view>购物车</view>
<!-- <view class='iconfont icon-gouwuche'></view>
<view class='gouwuche'>购物车</view> -->
<view class='cart_count'>{{goods.cartCount}}</view>
<view class='iconfont icon-gouwuches'></view>
<view class='shop_car'>购物车</view>
</navigator>
</view>
<view bindtap='collection' bindtap='collection_true' data-id='{{goods.info.id}}'>
... ...
... ... @@ -8,6 +8,20 @@ page {
text{
height: 0!important
}
.icon-gouwuche{
font-size: 29rpx;
color: #444;
background: transparent!important;
box-shadow: 0 0 0 0 transparent!important;
line-height: 30rpx!important;
border-radius: 0!important
}
.gouwuche{
position: absolute;
bottom: 0;
/* left: 50%; */
/* transform: translateX(-50%) */
}
.big_box {
width: 100%;
height: 100%;
... ... @@ -71,12 +85,13 @@ text{
}
.banner_box{
position: relative;
width: 750rpx;
height: 710rpx;
padding-top: 80rpx;
box-sizing: border-box;
}
.banner_img {
height: 630rpx;
padding-top: 80rpx;
box-sizing: border-box;
}
.banner_img image {
... ... @@ -791,11 +806,16 @@ white-space: nowrap;
color: #747b7d;
position: relative;
}
.shop_cars{
width: 60rpx;
height: 58rpx;
position: relative;
}
.cart_count {
position: absolute;
right: 2rpx;
top: 0;
top: -4rpx;
width: 24rpx;
height: 24rpx;
border-radius: 50%;
... ...
... ... @@ -23,7 +23,9 @@ Page({
is_vip: 0,
prices: 0,
origin: 0,
originIndex: 0
originIndex: 0,
jine: 0,
jiesheng: 0,
},
//渲染购物车
fetchCart() {
... ... @@ -142,7 +144,11 @@ Page({
} else {
console.log(total_price + "总价")
wx.navigateTo({
url: '../../my/settle_account/settle_account?sale=' + skuid_arr + '&proId=' + this.data.info.id + '&gPrice=' + total_price
url: '../../my/settle_account/settle_account?sale=' + skuid_arr + '&proId=' + this.data.info.id + '&gPrice=' + this.data.jine
})
that.setData({
jine: 0,
jiesheng:0
})
}
},
... ... @@ -283,6 +289,9 @@ Page({
var that = this;
var goodsList = that.data.goodsList
var chooseAll = that.data.chooseAll
var jine = 0
var jiesheng = 0
var is_vip = that.data.is_vip
if(chooseAll){
chooseAll = false
}else{
... ... @@ -291,13 +300,24 @@ Page({
goodsList.forEach(function(ele, index) {
if (chooseAll) {
ele.t = true
if(is_vip==1){
jine += ele.vip_priceq
}else{
jine += ele.priceq
}
jiesheng += ele.save_priceq
} else {
ele.t = false
jine = 0
jiesheng = 0
}
});
jine = jine - jiesheng
that.setData({
goodsList: goodsList,
chooseAll: chooseAll
chooseAll: chooseAll,
jine: jine,
jiesheng: jiesheng
});
},
//选中商品
... ... @@ -307,18 +327,43 @@ Page({
var indexs = e.currentTarget.dataset.index;
var goodsList = this.data.goodsList
var chooseAll = false
var jiesheng = that.data.jiesheng
var jine = that.data.jine
goodsList.forEach(function(ele, index) {
ele.saveprice = ele.save_price.substring(0, ele.save_price.length - 3)*1
ele.vipprice = ele.vip_price.substring(0, ele.vip_price.length - 3) * 1
ele.ppprice = ele.price.substring(0, ele.price.length - 3) * 1
ele.daprice = null
if(that.data.is_vip==1){
ele.daprice = ele.vipprice
} else {
ele.daprice = ele.ppprice
}
// if(ele.t){
// jine += ele.daprice - ele.save_price
// }
// that.setData({
// jine:jine
// })
if (index == indexs) {
if (ele.t) {
ele.t = false
jine -= (ele.daprice - ele.save_price)
jiesheng -= ele.saveprice
} else {
ele.t = true
jiesheng += ele.saveprice
jine += (ele.daprice - ele.saveprice)
}
that.setData({
jine: jine,
jiesheng: jiesheng
})
}
})
that.setData({
goodsList: goodsList,
chooseAll: chooseAll
chooseAll: chooseAll,
});
},
//加入购物车
... ... @@ -375,7 +420,9 @@ Page({
}
that.setData({
goodsList: goodsList,
chooseAll:false
chooseAll:false,
jine: 0,
jiesheng:0
})
that.fetchCart()
} else {
... ... @@ -397,6 +444,14 @@ Page({
}
app.post(url, params).then(r => {
r.data.list.forEach(function (ele, index) {
ele.priceq = ele.price.substring(0, ele.price.length - 3) * 1
ele.vip_priceq = ele.vip_price.substring(0, ele.vip_price.length - 3) * 1
ele.save_priceq = ele.save_price.substring(0, ele.save_price.length - 3) * 1
if(is_vip==1){
ele.showjine = ele.vip_priceq - ele.save_priceq
}else{
ele.showjine = ele.priceq - ele.save_priceq
}
ele.attprice = ele.price
ele.attvipprice=ele.vip_price
ele.t = false
... ...
... ... @@ -49,7 +49,7 @@
<view class='product_action'>
<view class='price'>¥
<!-- <view> -->
<text class='detail_price' wx:if='{{value.ggprice}}'>{{value.ggprice}}</text>
<text class='detail_price' wx:if='{{value.ggprice}}'>{{value.showjine}}</text>
<text wx:else class='detail_price'>{{value.new_price}}</text>
<!-- </view> -->
<text class='save_after'>已省</text>
... ... @@ -66,15 +66,12 @@
<view class='bottom_btn'>
<view class='hint_btn'>
<navigator class='shop_car' url='../../cart/cart' open-type='switchTab'>
<view class='iconfont icon-gouwuche'></view>
<view>购物车</view>
<view class='cart_count'>{{cart_count}}</view>
</navigator>
<view>
<view class='iconfont '></view><!-- icon-shoucang {{goods.is_favorite==1||shoucang?"active":""}} -->
<view class='shop_car {{info.is_favorite==1||shoucang?"active":""}}'></view>
<view class='shangmianbyn'>
<view class='shangmianbyi'>套餐价</view>
<view class='shangmianber'>¥</view>
<view class='shangmianbsan'>{{jine}}</view>
</view>
<view class='yisheng'>已省¥{{jiesheng}}</view>
</view>
<view class='join_btn' bindtap='join_btn'>加入购物车</view>
<view class='immediately_btn' bindtap='go_pay_sale'>立即购买</view>
... ...
... ... @@ -3,23 +3,28 @@
page {
background: #f3f5f5;
width: 100%;
height: 100%
height: 100%;
}
.page{
.page {
width: 100%;
height: 100%
height: 100%;
}
.page.active{
overflow: hidden
.page.active {
overflow: hidden;
}
.coupons {
font-size: 30rpx;
color: #222;
display: flex;
}
.icon-shoucang.active {
color: #ff6700;
}
.goods_detail {
font-weight: bold;
border-bottom: 3rpx solid #ffda44;
... ... @@ -41,9 +46,10 @@ page {
display: flex;
flex-wrap: wrap;
}
.banner_box image{
.banner_box image {
width: 100%;
height: 100%
height: 100%;
}
.banner_img {
... ... @@ -71,6 +77,7 @@ page {
font-size: 28rpx;
color: #888;
}
.share {
font-size: 28rpx;
color: #222;
... ... @@ -85,6 +92,7 @@ page {
font-size: 28rpx;
margin-top: 10rpx;
}
.banner_character {
height: 100rpx;
display: flex;
... ... @@ -99,7 +107,7 @@ page {
display: flex;
align-items: center;
/* padding-bottom:20rpx; */
box-sizing: border-box
box-sizing: border-box;
}
.money_icon {
... ... @@ -568,7 +576,7 @@ page {
.item_list6 {
padding: 30rpx 25rpx 0rpx;
margin-bottom:120rpx
margin-bottom: 120rpx;
}
.collocation_title {
... ... @@ -618,15 +626,63 @@ page {
justify-content: flex-end;
align-items: center;
position: fixed;
bottom:0;
bottom: 0;
left: 0;
}
.hint_btn {
width: 12%;
width: 36%;
height: 100%;
padding-left: 25rpx;
}
.shangmianbyn {
display: flex;
justify-content: center;
align-items: center;
height: 30rpx;
margin-top: 19rpx;
}
.shangmianbyi {
height: 18rpx;
margin-top: 12rpx;
line-height: 18rpx;
font-size: 18rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(116, 123, 125, 1);
}
.shangmianber {
padding-top: 1rpx;
box-sizing: border-box;
height: 22rpx;
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 800;
color: rgba(93, 194, 72, 1);
line-height: 22rpx;
margin: 8rpx 3rpx 0;
}
.shangmianbsan {
padding-top: 1rpx;
box-sizing: border-box;
height: 30rpx;
font-size: 38rpx;
line-height: 30rpx;
font-family: PingFang SC;
font-weight: 800;
color: rgba(93, 194, 72, 1);
}
.yisheng {
margin-top: 12rpx;
height: 17rpx;
font-size: 18rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(116, 123, 125, 1);
line-height: 17rpx;
}
.shop_car {
... ... @@ -650,7 +706,7 @@ page {
}
.join_btn {
width: 44%;
width: 32%;
height: 100rpx;
background: linear-gradient(to left, #ffda44, #ffb244);
display: flex;
... ... @@ -661,7 +717,7 @@ page {
}
.immediately_btn {
width: 44%;
width: 32%;
height: 100rpx;
background: linear-gradient(to left, #f99115, #f56800);
display: flex;
... ... @@ -671,14 +727,16 @@ page {
color: #fff;
}
.tips{
.tips {
padding: 0 25rpx;
box-sizing: border-box;
}
.tips_content{
.tips_content {
margin-top: 30rpx;
line-height: 40rpx;
}
.item_list7 {
height: 368rpx;
background: rgba(255, 255, 255, 1);
... ... @@ -690,61 +748,75 @@ page {
margin-bottom: 20rpx;
padding: 34rpx 49rpx;
}
/**/
.product_list{
.product_list {
padding: 0 25rpx;
flex: 1;
overflow-y: scroll;
background: #fff;
margin-bottom:120rpx
margin-bottom: 120rpx;
}
.singlepart{
border-top: 22rpx solid #FAFAFA;
.singlepart {
border-top: 22rpx solid #fafafa;
padding-bottom: 100rpx;
box-sizing: border-box
}
.single_part_top{
.single_part_top {
height: 90rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 24rpx;
color: #888;
border-bottom: 1rpx solid #EDEDED;
border-bottom: 1rpx solid #ededed;
}
.single_part_right,.single_part_left{
.single_part_right, .single_part_left {
display: flex;
}
.single_part_left{
color: #222222;
.single_part_left {
color: #222;
font-size: 30rpx;
font-weight: 800;
}
.single_part_left_icon{
color: #EDEDED;
.single_part_left_icon {
color: #ededed;
font-size: 40rpx;
margin-right: 24rpx;
}
.single_part_left_icon.active{
color:#FFDA44
.single_part_left_icon.active {
color: #ffda44;
}
.single_part_item{
.single_part_item {
display: flex;
margin: 50rpx 0 50rpx;
height: 140rpx;
align-items: center;
border-bottom:1rpx solid #fafafa;
border-bottom: 1rpx solid #fafafa;
}
.single_part_item:last-child{
border:0
.single_part_item:last-child {
border: 0;
}
.iconfonts{
.iconfonts {
font-size: 40rpx;
color: #EDEDED;
color: #ededed;
}
.iconfonts.active{
color:#FFDA44
.iconfonts.active {
color: #ffda44;
}
.single_part_imgbox{
.single_part_imgbox {
width: 140rpx;
height: 140rpx;
overflow: hidden;
... ... @@ -752,79 +824,92 @@ page {
margin-right: 40rpx;
}
.single_part_imgbox image{
.single_part_imgbox image {
width: 100%;
}
.single_part_detail{
flex:1;
.single_part_detail {
flex: 1;
height: 100%;
display: flex;
flex-flow: column;
margin-top:-20rpx;
margin-top: -20rpx;
}
.product_action{
.product_action {
font-size: 28rpx;
color: #333;
line-height: 1;
}
.product_title{
.product_title {
color: #333;
font-size: 28rpx;
margin-bottom: 4rpx;
margin-top:-16rpx;
margin-top: -16rpx;
}
.product_type {
height: 30rpx;
overflow: hidden;
color: #888;
font-size: 24rpx;
margin-bottom:2rpx;
margin-bottom: 2rpx;
}
.save_after{
color:#888;
margin-right:6rpx;
.save_after {
color: #888;
margin-right: 6rpx;
}
.product_types {
color: #888;
font-size: 24rpx;
margin-bottom:12rpx;
float: left
margin-bottom: 12rpx;
float: left;
}
.dayuya{
.dayuya {
width: 100rpx;
height: 100rpx;
font-size: 120rpx
font-size: 120rpx;
}
.product_action{
.product_action {
display: flex;
justify-content: space-between;
}
.price{
.price {
font-size: 24rpx;
color: #FF4444;
color: #f44;
}
.detail_price{
.detail_price {
font-size: 34rpx;
font-weight: bold;
margin-right:6rpx;
margin-left:-10rpx;
margin-right: 6rpx;
margin-left: -10rpx;
}
.action_box{
.action_box {
display: flex;
align-items: center;
font-size: 30rpx;
}
.action_btn {
display: flex;
height: 38rpx;
width: 38rpx;
border-radius: 50%;
border: 1rpx solid #94999A;
border: 1rpx solid #94999a;
align-items: center;
justify-content: center;
font-size: 30rpx;
}
.choose_sku{
.choose_sku {
width: 100%;
color: #888;
font-size: 24rpx;
... ... @@ -1011,11 +1096,13 @@ page {
color: #ededed;
font-size: 36rpx;
}
.pickage_display {
font-size: 24rpx;
color: #f44;
margin-top: 47rpx;
}
.money_icon2 {
font-size: 22rpx;
color: #f44;
... ... @@ -1026,19 +1113,21 @@ page {
font-weight: bold;
color: #f44;
}
/*团购样式*/
.banner_box_group{
width:700rpx;
height:45rpx;
.banner_box_group {
width: 700rpx;
height: 45rpx;
position: absolute;
left: 0;
bottom: 0;
background: linear-gradient(to right,#ffda44,transparent);
padding-left:26rpx;
background: linear-gradient(to right, #ffda44, transparent);
padding-left: 26rpx;
z-index: 999;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,255,255,1);
line-height:45rpx;
font-size: 26rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(255, 255, 255, 1);
line-height: 45rpx;
}
... ...
... ... @@ -85,6 +85,7 @@ Page({
packageList: [],
st: '',
sts:'',
sku_values:'',
ast:'',
scrolltop:0,
... ... @@ -233,7 +234,8 @@ Page({
})
}
this.setData({
show_cart_mask: false
show_cart_mask: false,
item: 1
});
},
//渲染商品列表
... ... @@ -330,10 +332,13 @@ Page({
},
//跳转至专题列表
jump_special_list(e) {
var specialid = e.currentTarget.dataset.specialid
// var specialid = e.currentTarget.dataset.specialid
var url = e.currentTarget.dataset.url
if (url != '') {
wx.navigateTo({
url: './special_list/special_list?id=' + specialid,
url: '../navigate/navigate?url=' + url
})
}
},
//切换筛选id
changeId(e) {
... ... @@ -562,7 +567,7 @@ Page({
})
}
time(cut)
let sst = setInterval(time, 1000)
let sst = setInterval(time, 60000)
if (ele.minutes == 0 && ele.seconds == 0) {
clearInterval(sst)
}
... ... @@ -586,42 +591,93 @@ Page({
var percent = 0
r.data.group.forEach(function(ele, index) {
var current = Math.floor(new Date() / 1000)
var qa = new Date().getTime()
console.log(qa)
var shengyu = ele.group_end_date - current
console.log(shengyu)
if (ele.group_status==1){
function times() {
var timess = new Date().getTime()
console.log(timess)
var cut = ele.group_start_date - timess
console.log(cut)
ele.daysa = Math.floor((cut) / (60 * 60 * 24));
ele.hoursa = Math.floor((cut) / (60 * 60)) % 24;
ele.minutesa = Math.floor((cut) / (60)) % 60;
if (ele.daysa < 10) {
ele.daysa = '0' + ele.daysa
}
if (ele.daysa == 0) {
ele.daysa = '00'
}
if (ele.hoursa < 10) {
ele.hoursa = '0' + ele.hoursa
}
if (ele.hoursa == 0) {
ele.hoursa = '00'
}
if (ele.minutesa < 10) {
ele.minutesa = '0' + ele.minutesa
}
if (ele.minutesa == 0) {
ele.minutesa = '00'
}
if (ele.secondsa < 10) {
ele.secondsa = '0' + ele.secondsa
}
if (ele.secondsa == 0) {
ele.secondsa = '00'
}
ele.secondsa = cut % 60
if (ele.secondsa < 0) {
clearInterval(ssts)
}
}
times()
let ssts = setInterval(times, 1000)
if (ele.minutesa == 0 && ele.secondsa < 0) {
clearInterval(ssts)
}
that.setData({
sts: ssts
})
}
if (ele.group_status == 2) {
// if(shengyu>0){
function time() {
var a = new Date().getTime()
a = Math.floor(a / 1000)
var cut_time = ele.group_end_date - a
ele.days = Math.floor((cut_time) / ( 60 * 60 * 24));
ele.hours = Math.floor((cut_time) / ( 60 * 60)) % 24;
ele.minutes = Math.floor((cut_time) / ( 60)) % 60;
ele.days = Math.floor((cut_time) / (60 * 60 * 24));
ele.hours = Math.floor((cut_time) / (60 * 60)) % 24;
ele.minutes = Math.floor((cut_time) / (60)) % 60;
if (ele.days < 10) {
ele.days = '0'+ele.days
ele.days = '0' + ele.days
}
if (ele.days == 0) {
ele.days = '00'
}
if (ele.hours < 10) {
ele.hours = '0'+ele.hours
ele.hours = '0' + ele.hours
}
if (ele.hours == 0) {
ele.hours = '00'
}
if(ele.minutes<10){
ele.minutes='0'+ele.minutes
if (ele.minutes < 10) {
ele.minutes = '0' + ele.minutes
}
if (ele.minutes == 0) {
ele.minutes = '00'
}
if (ele.seconds < 10) {
ele.seconds = '0'+ele.seconds
ele.seconds = '0' + ele.seconds
}
if (ele.seconds == 0) {
ele.seconds = '00'
}
ele.seconds = cut_time % 60
if(ele.seconds < 0){
if (ele.seconds < 0) {
clearInterval(sst)
}
ele.percent = ele.group_number * 100 / ele.group_min_number
... ... @@ -635,9 +691,10 @@ Page({
clearInterval(sst)
}
that.setData({
st: sst
st: sst,
})
// }
}
})
that.setData({
hotList: r.data.gohi,
... ... @@ -713,9 +770,13 @@ Page({
},
//分类下面的轮播图跳转
jump_web(e){
var jump = e.currentTarget.dataset.jump
console.log('jump:'+jump)
if (jump != '') {
wx.navigateTo({
url: '../navigate/navigate?url='+e.currentTarget.dataset.jump,
url: '../navigate/navigate?url=' + jump
})
}
},
//切换导航
changeNav1() {
... ... @@ -1047,6 +1108,8 @@ Page({
onUnload: function() {
let st=this.data.st
clearInterval(st)
let sts = this.data.sts
clearInterval(sts)
},
/**
... ...
... ... @@ -37,7 +37,7 @@
<swiper next-margin='40rpx' previous-margin='10rpx' circular='true' autoplay='true' display-multiple-items='1' class='swiper_banner_box' interval='5000'>
<block wx:for='{{special}}' wx:key='{{item.id}}'>
<!-- <swiper-item > -->
<swiper-item bindtap='jump_special_list' data-specialid='{{item.id}}'>
<swiper-item bindtap='jump_special_list' data-specialid='{{item.id}}' data-url='{{item.outlink}}'>
<image src='{{item.image}}' class="slide-image {{currentIndex == 0 ? 'active': ''}} uiuiui"></image>
</swiper-item>
</block>
... ... @@ -94,7 +94,7 @@
<scroll-view class='scroll_box' scroll-x>
<navigator url='/pages/index/goodsDetial/goodsDetial?id={{item.id}} ' class='new_person_item' wx:for='{{new_person}}' wx:key='{{item.id}}'>
<view class='position_box'>
<image src='{{imgUrl}}pic1.png'></image>
<image src='{{item.more.thumbnail}}'></image>
<view class='goods_name'>{{item.title}}</view>
<view>
<text class='rmb'>¥</text>
... ... @@ -130,11 +130,11 @@
<view wx:if='{{wangge==0}}'>
<view wx:for='{{product_item}}' wx:key='{{item.id}}'>
<view class='classfy' bindtap='jump_web' data-jump='{{item.more.banner_url}}' style='padding-top:40rpx;' wx:if='{{item.more.banner!=""}}'>
<image src='{{item.more.banner}}' bindtap=''></image>
<image src='{{item.more.banner}}'></image>
</view>
<view class='goodbox'>
<view class='good_item' wx:for='{{item.product_item}}' wx:key='{{item.id}}' data-goods='{{item.id}}'>
<view class='good_img' bindtap='get_goodsDetial' data-goods='{{item.id}}'>
<view class='good_item' wx:for='{{item.product_item}}' wx:key='{{item.id}}' data-goods='{{item.id}}' bindtap='get_goodsDetial'>
<view class='good_img'>
<image src='{{item.label}}' class='label_image'></image>
<image class='goods_img_image' src='{{item.more.thumbnail}}'></image>
</view>
... ... @@ -171,18 +171,27 @@
<view class='goodbox goods_margin_top'>
<view class='good_item' wx:for='{{groupList}}' wx:key='{{item.id}}' data-goods='{{item.id}}' bindtap='get_goodsDetial' data-goods='{{item.id}}'>
<view class='good_img'>
<image src='../imgs/pintuanchenggong.png' class='pintuan_img' wx:if='{{item.group_number==item.group_min_number&&item.group_status==3}}'></image>
<image src='../imgs/pintuanshibai.png' class='pintuan_img' wx:if='{{item.group_number<item.group_min_number&&item.group_status==3}}'></image>
<image src='{{item.label}}' class='label_image'></image>
<image class='goods_img_image' src='{{item.more.thumbnail}}'></image>
<view class='group_time {{item.group_status==3?"active":""}} {{item.group_status==2?"activity":""}}'>
<view wx:if='{{item.group_status==3}}'>已结束</view>
<view wx:else>
<text wx:if='{{item.group_status==1}}'>开始\t\t\t</text>
<text wx:elif='{{item.group_status==2}}' style='margin-left:-4rpx;'>结束</text> {{item.days}}天{{item.hours}}时{{item.minutes}}分
<view wx:if='{{item.group_status==3}}'>
<text wx:if='{{item.group_number==item.group_min_number}}'>拼团成功</text>
<text>拼团失败</text>
</view>
<view wx:else class=''>
<text wx:if='{{item.group_status==1}}'> 距开始{{item.daysa}}天{{item.hoursa}}时{{item.minutesa}}分</text>
<text wx:elif='{{item.group_status==2}}' style='margin-left:-4rpx;'>
<text wx:if='{{item.group_number<item.group_min_number}}'> 距结束{{item.days}}天{{item.hours}}时{{item.minutes}}分</text>
<text wx:elif='{{item.group_number==item.group_min_number}}'>拼团成功</text>
</text>
</view>
</view>
</view>
<view class='good_right goods_right'>
<view class='lijicantuan'>立即参团</view>
<view class='good_name yititle'>{{item.title}}</view>
<view class='good_stand'></view>
<view class='good_price_progressaa'>
... ... @@ -206,7 +215,7 @@
</view>
</view>
<view wx:if='{{wangge==1}}' class='wangge_box'>
<view wx:for='{{product_item}}' wx:key='{{item.id}}'>
<view wx:for='{{product_item}}' wx:key='{{item.id}}' >
<view class='classfy' bindtap='jump_web' wx:if='{{item.more.banner!=""}}' data-jump='{{item.more.banner_url}}' style='padding-top:40rpx;' wx:if='{{item.more.banner!=""}}'>
<image src='{{item.more.banner}}'></image>
</view>
... ... @@ -249,7 +258,7 @@
<image src='{{item.more.banner}}'></image>
</view> -->
<view class='collocation collections'>
<view class='collocation_box' wx:for='{{groupList}}' wx:key='{{item.id}}' data-goods='{{item.id}}' bindtap=' get_goodsDetial'>
<view class='collocation_box' wx:for='{{groupList}}' wx:key='{{index}}' wx:for-index='index' data-goods='{{item.id}}' bindtap=' get_goodsDetial'>
<view class='collocation_img'>
<view>
<view wx:if='{{item.group_status==3}}' class='zhongtu_position active'>已结束</view>
... ... @@ -259,7 +268,7 @@
<text wx:if='{{item.group_status==1}}'>开始\t\t\t</text>
<!-- <text wx:elif='{{item.group_status==2}}'>结束\t\t\t</text> {{item.days}}天{{item.hours}}小时{{item.minutes}}分 -->
<text wx:elif='{{item.group_status==2}}'>结束\t\t\t</text> {{item.days}}:{{item.hours}}:{{item.minutes}}:{{item.seconds}}
<text wx:elif='{{item.group_status==2}}'>结束\t\t\t</text>{{item.days}}天 {{item.hours}}时{{item.minutes}}分
</view>
</view>
... ... @@ -268,7 +277,7 @@
<image class='collocation_img_image_posiimg' src='{{item.label}}'></image>
</view>
<view class='collocation_content'>
<view class='lijicantuans'>立即参团</view>
<view class='zhongtu_title_hei'>{{item.title}}</view>
... ... @@ -285,9 +294,9 @@
<text class='original_price '>¥{{item.old_price}}</text>
</view>
</view>
<view class='good_btn cart_icon'>
<!-- <view class='good_btn cart_icon'>
<view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
</view>
</view> -->
</view>
</view>
</view>
... ... @@ -340,7 +349,7 @@
</navigator>
</view> -->
<view class='big_img_box'>
<view class='goods_for' wx:for='{{groupList}}' wx:key='{{item.id}}' bindtap='get_goodsDetial' data-goods='{{item.id}}'>
<view class='goods_for' wx:for='{{groupList}}' wx:key bindtap='get_goodsDetial' data-goods='{{item.id}}'>
<view class='goods_for_img'>
<image class='goods_for_img_image' src='{{item.more.thumbnail}}'></image>
<image class='goods_for_img_image_posiimg' src='{{item.more.thumbnail}}'></image>
... ... @@ -349,19 +358,20 @@
<view wx:else>距离团购
<text wx:if=' {{item.group_status==1}} '>开始\t\t\t</text>
<!-- <text wx:elif='{{item.group_status==2}} '>结束\t\t\t</text> {{item.days}}天{{item.hours}}小时{{item.minutes}}分 -->
<text wx:elif='{{item.group_status==2}} '>结束\t\t\t</text> {{item.days}}:{{item.hours}}:{{item.minutes}}:{{item.seconds}}
<text wx:elif='{{item.group_status==2}}'>结束\t\t\t</text>{{item.days}}天 {{item.hours}}时{{item.minutes}}分
</view>
</view>
</view>
<view class='goods_for_font '>
<view class='good_btn cart_icons '>
<!-- <view class='good_btn cart_icons '>
<view class='iconfont icon-gouwuche ' catchtap='show_cart_mask' data-goods='{{item.id}} '></view>
</view>
</view> -->
<view class='lijicantuanss'>立即参团</view>
<view class='goods_for_font_one santitle'>{{item.title}}</view>
<progress show-info border-radius='4 ' activeColor='#ffda44 ' stroke-width='8 ' percent='{{item.percent}} ' font-size='12 '></progress>
<progress show-info border-radius='4 ' activeColor='#ffda44 ' stroke-width='8 ' percent='{{item.group_number*10}} ' font-size='12 '></progress>
<text class='group_font'>已拼{{item.group_number}}份\t\t\t\t目标{{item.group_min_number}}份</text>
<view class='goods_for_font_threes'>
<view class='goods_for_font_three_ones '>
<view class='goods_for_font_three_ones'>
<view>¥</view>
{{item.price}}
</view>
... ... @@ -383,7 +393,7 @@
<!-- <scroll-view srcoll-x style='width:100%'> -->
<!-- <swiper display-multiple-items='{{2}}' class='look_swiper '> -->
<!-- <swiper-item circular='true ' class='look_swiper-item ' wx:for='{{commentList}}' wx:key='*this'> -->
<view class='user_look_item ' wx:for='{{commentList}}' wx:key='*this'>
<view class='user_look_item ' wx:for='{{commentList}}' wx:key='{{item.id}}'>
<view class='user_look_item_image '>
<image src='{{item.show_img}}'></image>
</view>
... ... @@ -411,7 +421,7 @@
<swiper wx:if='{{(navsPhotos.length>0)}}' next-margin='40rpx' previous-margin='10rpx' circular='true' autoplay='true' display-multiple-items='1' class='swiper_banner_box {{maodianFlag?"active":""}}' interval='5000'>
<block wx:for='{{item.more.photos}}' wx:key='{{item}}'>
<!-- next-margin='40rpx' previous-margin='10rpx' circular='true' autoplay='true' display-multiple-items='1' class='swiper_banner_box' -->
<swiper-item bindtap='jump_special_list' data-specialid='{{item.id}}'>
<swiper-item bindtap='jump_special_list' data-url='{{item.jump}}'>
<image src='{{item.url}}' class="slide-image uiuiui"></image>
</swiper-item>
</block>
... ...
... ... @@ -10,7 +10,7 @@
}
.zuida.active{
height: 100%;
overflow: hidden
overflow: hidden;
}
page {
/* background-color: #fafafa; */
... ... @@ -329,7 +329,7 @@ page {
background-color: #fff;
}
.safe_box {
height: 36rpx;
height:40rpx;
display: flex;
align-items: center;
justify-content: space-around;
... ... @@ -395,6 +395,14 @@ page {
width: 100%;
height: 100%
}
.pintuan_img{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-70%);
width: 90rpx!important;
height:90rpx!important;
}
.label_image {
width: 70rpx;
height: 70rpx;
... ... @@ -436,15 +444,18 @@ page {
.goods_right{
padding-top:10rpx;
box-sizing: border-box
box-sizing: border-box;
position: relative
}
.goods_rights{
padding-top:30rpx;
box-sizing: border-box;
width: calc(100% - 220rpx);
position: relative
}
.goods_right{
padding-top:8rpx
padding-top:8rpx;
position: relative
}
.good_price_three {
... ... @@ -579,7 +590,7 @@ page {
width: 267rpx;
height: 170rpx;
border-radius: 16rpx;
z-index: 10;
/* z-index: 10; */
}
.goods_name {
... ... @@ -619,7 +630,7 @@ page {
left: 0;
background-color: rgba(51,51,51,0.6);
/* background: rgba(0,0,0,0.6); */
z-index: 9999;
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
... ... @@ -1175,7 +1186,7 @@ page {
font-size:22rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
color:#fff;
line-height:30rpx;
padding-left:20rpx;
}
... ... @@ -1204,6 +1215,7 @@ page {
font-size: 30rpx;
color: #222;
padding: 22rpx;
position: relative;
}
.zhongtu_title_hei{
... ... @@ -1401,7 +1413,7 @@ page {
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
color:#fff;
position: absolute;
bottom:0;
left: 0
... ... @@ -1417,7 +1429,32 @@ page {
box-sizing: border-box;
position: relative;
}
.lijicantuan,.lijicantuans,.lijicantuanss{
width: 150rpx;
height: 40rpx;
line-height: 40rpx;
text-align: center;
color: #fff;
border-radius: 20rpx;
background: #ffda44;
position: absolute;
bottom: 0;
right: 20rpx;
font-size: 26rpx;
}
.lijicantuans{
width: 130rpx;
bottom: 10rpx;
font-size: 22rpx;
right: 10rpx
}
.lijicantuanss{
width: 200rpx;
height: 50rpx;
line-height: 50rpx;
font-size: 28rpx;
border-radius: 50rpx
}
.goods_for_font_one {
height: 32rpx;
font-size: 30rpx;
... ... @@ -1658,7 +1695,7 @@ padding-left: 30rpx
font-size: 20rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: #333;
color: #fff;
line-height: 54rpx;
text-align: center;
display: flex;
... ... @@ -1953,6 +1990,7 @@ color:rgba(18,25,27,1);
position: fixed;
right: 40rpx;
top:80%;
z-index: 9999!important
}
.message_kefu{
padding:12rpx 23rpx 0;
... ... @@ -1965,7 +2003,8 @@ color:rgba(18,25,27,1);
margin:0;
padding:0;
color: #000;
font-size: 18rpx
font-size: 18rpx;
z-index: 9999
}
.icon-weixin{
color: #fff;
... ... @@ -1998,10 +2037,10 @@ color:rgba(18,25,27,1);
}
.icon-aaa{
font-size: 36rpx!important;
font-size: 34rpx!important;
color: #222;
font-weight: 500;
line-height: 36rpx;
/* line-height:30rpx; */
margin-left: -2rpx
}
.nopadding{
... ...
... ... @@ -210,7 +210,8 @@ Page({
})
}
this.setData({
show_cart_mask: false
show_cart_mask: false,
item: 1
});
},
... ...
... ... @@ -106,7 +106,7 @@
</view>
<view class='collocation_content'>
<view>{{item.title}}</view>
<view class='zhongjianwangge'>{{item.title}}</view>
<view class='introduce introduces'>{{item.excerpt}}</view>
<view>
<view class='price_big_box'>
... ...
... ... @@ -7,12 +7,14 @@
padding: 29rpx 23rpx;
border-bottom: 1rpx solid #f2f2f2;
background-color: #fff;
}
.iii{
}
.iii {
width: 100%;
height: 1000rpx;
background: red
background: red;
}
page {
background-color: #fafafa;
width: 100%;
... ... @@ -24,8 +26,8 @@ page {
height: 100%;
}
.top_fixed{
position: fixed
.top_fixed {
position: fixed;
}
.big_box {
... ... @@ -36,44 +38,49 @@ page {
.big_box.active {
overflow: hidden;
}
.big_box.activity {
overflow: hidden;
}
.top_nav{
.top_nav {
width: 82%;
height: 100%;
margin-left:8%;
margin-left: 8%;
overflow-x: scroll;
white-space: nowrap ;
white-space: nowrap;
}
::-webkit-scrollbar {
display: none;
}
.font-nav{
padding:0 30rpx;
.font-nav {
padding: 0 30rpx;
box-sizing: border-box;
position: relative;
font-size:28rpx;
font-family:PingFang-SC-Medium;
color:rgba(34,34,34,1);
font-size: 28rpx;
font-family: PingFang-SC-Medium;
color: rgba(34, 34, 34, 1);
}
.font-nav:first-child{
padding-left:0;
.font-nav:first-child {
padding-left: 0;
}
.font-nav.active::after{
.font-nav.active::after {
position: absolute;
bottom:-14rpx;
left:20%;
bottom: -14rpx;
left: 20%;
width: 60%;
height: 5rpx;
background:rgba(255,218,68,1);
border-radius:3px;
content: ''
background: rgba(255, 218, 68, 1);
border-radius: 3px;
content: '';
}
.font-nav:first-child::after{
left:3%;
.font-nav:first-child::after {
left: 3%;
}
.index_top {
... ... @@ -137,9 +144,10 @@ page {
font-size: 36rpx;
color: #222;
margin-left: 30rpx;
position: relative
position: relative;
}
.small_red_dot{
.small_red_dot {
width: 24rpx;
height: 24rpx;
border-radius: 50%;
... ... @@ -149,8 +157,8 @@ page {
line-height: 24rpx;
font-size: 20rpx;
position: absolute;
right:-10rpx;
top:-10rpx;
right: -10rpx;
top: -10rpx;
}
.nav_box {
... ... @@ -207,7 +215,7 @@ page {
.nav_box .icon-fenlei {
font-size: 30rpx;
color: #888;
line-height: 30rpx
line-height: 30rpx;
}
.nav_text {
... ... @@ -216,7 +224,7 @@ page {
align-items: center;
justify-content: center;
/* padding-top: -20rpx; */
margin-top:-16rpx;
margin-top: -16rpx;
}
.swiper_nav_box swiper-item {
... ... @@ -235,7 +243,7 @@ page {
padding: 26rpx 0 23rpx 0;
height: 100%;
/* display: inline-block; */
line-height:70rpx;
line-height: 70rpx;
}
.nav_swiper_active {
... ... @@ -251,12 +259,15 @@ page {
overflow: hidden;
position: relative;
}
.swiper_banner_box_margin-top{
.swiper_banner_box_margin-top {
margin-top: 150rpx;
}
.banner_active{
height: 0
.banner_active {
height: 0;
}
.swiper_banner_box swiper-item {
width: 100%;
}
... ... @@ -304,20 +315,21 @@ page {
justify-content: center;
/* margin-top:30rpx; */
}
.goods_img{
.goods_img {
width: 225rpx;
height: 217rpx;
padding:11rpx 22rpx 6rpx 3rpx;
padding: 11rpx 22rpx 6rpx 3rpx;
box-sizing: border-box;
}
.good_img{
.good_img {
width: 200rpx;
height: 200rpx;
position: relative
position: relative;
}
.good_img_label{
.good_img_label {
width: 70rpx;
height: 70rpx;
position: absolute;
... ... @@ -325,27 +337,43 @@ page {
left: 0;
}
.good_img_img{
.good_img_img {
width: 200rpx;
height: 200rpx;
}
.good_right {
width: calc(100% - 240rpx);
}
.good_name{
.good_name {
width: 100%;
height: 32rpx;
line-height: 32rpx;
margin-bottom:16rpx;
margin-bottom: 16rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding-right: 20rpx;
box-sizing: border-box;
}
.good_stand{
.good_stand {
width: 100%;
height: 23rpx;
line-height: 23rpx;
margin-bottom:38rpx;
}
.good_price_three{
margin-bottom:19rpx;
margin-left:-10rpx;
margin-bottom: 30rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding-right: 20rpx;
box-sizing: border-box;
}
.good_price_three {
margin-bottom: 10rpx;
margin-left: -10rpx;
}
.classfy image {
width: 100%;
... ... @@ -387,10 +415,10 @@ page {
.title_mid {
margin: 0 46rpx;
font-family:SourceHanSerifCN-Bold;
font-size:38rpx;
font-weight:bold;
color:rgba(38,54,58,1);
font-family: SourceHanSerifCN-Bold;
font-size: 38rpx;
font-weight: bold;
color: rgba(38, 54, 58, 1);
}
.safety_box {
... ... @@ -454,21 +482,23 @@ page {
padding: 98rpx 11rpx 0;
text-align: center;
}
.position_box{
.position_box {
height: 184rpx;
box-shadow: 0rpx 10rpx 15rpx 0rpx rgba(0, 0, 0, 0.1);
border-radius: 16rpx;
position: relative;
padding-top:98rpx;
padding-top: 98rpx;
}
.position_box image{
.position_box image {
position: absolute;
top:-80rpx;
left:11rpx;
top: -80rpx;
left: 11rpx;
width: 267rpx;
height: 170rpx;
border-radius: 16rpx;
z-index: 10
z-index: 10;
}
.goods_name {
... ... @@ -510,9 +540,9 @@ page {
color: #fff;
}
.vipvip{
width:80rpx;
height:26rpx;
.vipvip {
width: 80rpx;
height: 26rpx;
}
/* 筛选弹窗 */
... ... @@ -581,9 +611,9 @@ page {
margin-left: 25rpx;
margin-top: 49rpx;
position: absolute;
bottom:110rpx;
bottom: 110rpx;
left: 30rpx;
z-index: 1
z-index: 1;
}
.popup_btn {
... ... @@ -715,7 +745,7 @@ page {
.index_top_mask {
position: fixed;
top:100rpx;
top: 100rpx;
left: 0;
width: 100%;
height: calc(100% - 100rpx);
... ... @@ -766,11 +796,12 @@ page {
font-weight: 500;
color: rgba(34, 34, 34, 1);
margin-bottom: 48rpx;
margin-right:16rpx;
margin-right: 16rpx;
float: left;
}
.all_classify_two_item:nth-child(3n){
margin-right:0;
.all_classify_two_item:nth-child(3n) {
margin-right: 0;
}
.all_classify_two_item image {
... ... @@ -780,229 +811,268 @@ page {
}
/*加购*/
.jump_cart_mask{
.jump_cart_mask {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
z-index:9999;
z-index: 9999;
position: fixed;
top:0;
top: 0;
left: 0;
}
.cart_jump_diceng{
.cart_jump_diceng {
width: 80%;
padding: 82rpx 25rpx 40rpx;
box-sizing: border-box;
background:rgba(255,255,255,1);
border-radius:16rpx;
margin-left:10%;
background: rgba(255, 255, 255, 1);
border-radius: 16rpx;
margin-left: 10%;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 99999
z-index: 99999;
}
.close_jump_cart{
.close_jump_cart {
position: absolute;
top:24rpx;
right:24rpx;
color: #EDEDED;
top: 24rpx;
right: 24rpx;
color: #ededed;
font-size: 36rpx;
}
.good_one{
display: flex;
.good_one {
display: flex;
}
.goods_one_left{
.goods_one_left {
width: 160rpx;
height: 160rpx;
background:rgba(201,207,208,1);
border-radius:16rpx;
margin-right:30rpx;
background: rgba(201, 207, 208, 1);
border-radius: 16rpx;
margin-right: 30rpx;
}
.goods_one_left image{
.goods_one_left image {
width: 100%;
height: 100%
height: 100%;
}
.goods_one_right {
width: calc(100% - 200rpx);
}
.goods_one_right_one{
font-size:30rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(38,54,58,1);
line-height:40rpx;
margin-bottom:6rpx;
.goods_one_right_one {
font-size: 30rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(38, 54, 58, 1);
line-height: 40rpx;
margin-bottom: 6rpx;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.goods_one_right_two{
.goods_one_right_two {
display: flex;
font-size:22rpx;
font-size: 22rpx;
line-height: 22rpx;
margin-bottom:20rpx;
margin-bottom: 20rpx;
}
.right_two_left{
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(93,194,72,1);
margin-right:10rpx;
.right_two_left {
font-family: PingFang-SC-Bold;
font-weight: bold;
color: rgba(93, 194, 72, 1);
margin-right: 10rpx;
}
.right_two_right{
font-family:PingFang-SC-Medium;
font-weight:500;
text-decoration:line-through;
color:rgba(148,153,154,1);
.right_two_right {
font-family: PingFang-SC-Medium;
font-weight: 500;
text-decoration: line-through;
color: rgba(148, 153, 154, 1);
}
.goods_one_right_three{
.goods_one_right_three {
display: flex;
}
.right_three_left text{
.right_three_left text {
font-size: 34rpx;
font-weight: bold
}
.right_three_left{
font-size:22rpx;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(208,158,56,1);
line-height:26rpx;
margin-right:15rpx;
}
.right_three_right{
height:25rpx;
background:linear-gradient(94deg,rgba(255,237,132,1),rgba(255,209,93,1));
border-radius:5rpx;
font-weight: bold;
}
.right_three_left {
font-size: 22rpx;
font-family: PingFang-SC-Bold;
font-weight: bold;
color: rgba(208, 158, 56, 1);
line-height: 26rpx;
margin-right: 15rpx;
}
.right_three_right {
height: 25rpx;
background: linear-gradient(94deg, rgba(255, 237, 132, 1), rgba(255, 209, 93, 1));
border-radius: 5rpx;
text-align: center;
font-size:18rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(151,103,5,1);
line-height:25rpx;
}
.goods_one_right_four{
font-size:24rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(38,54,58,1);
line-height:9rpx;
}
.goods_two_right{
margin-top:42rpx;
}
.goods_two_right_one{
font-size:28rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(38,54,58,1);
line-height:26rpx;
margin-bottom:23rpx;
}
.goods_two_right_two{
font-size: 18rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(151, 103, 5, 1);
line-height: 25rpx;
}
.goods_one_right_four {
font-size: 24rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(38, 54, 58, 1);
line-height: 9rpx;
}
.goods_two_right {
margin-top: 42rpx;
}
.goods_two_right_one {
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(38, 54, 58, 1);
line-height: 26rpx;
margin-bottom: 23rpx;
}
.goods_two_right_two {
display: flex;
}
.goods_two_right_two_item{
width:149rpx;
height:51rpx;
background:rgba(247,247,247,1);
border-radius:16rpx;
margin-right:30rpx;
margin-bottom:20rpx;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
text-align: center;
line-height: 51rpx
}
.goods_two_right_two_item.active{
background:rgba(254,218,68,1);
}
.goods_three{
.goods_two_right_two_item {
width: 149rpx;
height: 51rpx;
background: rgba(247, 247, 247, 1);
border-radius: 16rpx;
margin-right: 30rpx;
margin-bottom: 20rpx;
font-size: 26rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(51, 51, 51, 1);
text-align: center;
line-height: 51rpx;
}
.goods_two_right_two_item.active {
background: rgba(254, 218, 68, 1);
}
.goods_three {
width: 93.6%;
margin: 0 auto;
padding:57rpx 0;
padding: 57rpx 0;
box-sizing: border-box;
}
.goods_three_one{
.goods_three_one {
display: flex;
justify-content: space-between;
}
.goods_three_one_left{
font-size:28rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(38,54,58,1);
line-height:66rpx;
.goods_three_one_left {
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(38, 54, 58, 1);
line-height: 66rpx;
}
.goods_three_one_right{
.goods_three_one_right {
width: 165rpx;
height: 49rpx;
display: flex;
justify-content: space-between
justify-content: space-between;
}
.jian_dec{
.jian_dec {
width: 49rpx;
height: 49rpx;
background:rgba(244,244,244,1);
font-size:30rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:#ccc;
line-height:49rpx;
text-align: center
}
.item{
color:rgba(38,54,58,1);
}
.goods_four{
width:360rpx;
height:60rpx;
background:rgba(254,218,68,1);
border-radius:30rpx;
font-size:24rpx;
font-family:MicrosoftYaHei;
font-weight:400;
color:rgba(51,51,51,1);
line-height:60rpx;
text-align: center;
margin:0 auto;
background: rgba(244, 244, 244, 1);
font-size: 30rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: #ccc;
line-height: 49rpx;
text-align: center;
}
.item {
color: rgba(38, 54, 58, 1);
}
.goods_four {
width: 360rpx;
height: 60rpx;
background: rgba(254, 218, 68, 1);
border-radius: 30rpx;
font-size: 24rpx;
font-family: MicrosoftYaHei;
font-weight: 400;
color: rgba(51, 51, 51, 1);
line-height: 60rpx;
text-align: center;
margin: 0 auto;
}
/* 切换网格状态*/
.wangge_box{
background: #fff
.wangge_box {
background: #fff;
}
.collocation {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding:0 25rpx;
background: #fff
padding: 0 25rpx;
background: #fff;
}
.collections{
margin-top:30rpx;
.collections {
margin-top: 30rpx;
}
.collocation_box {
width: 340rpx;
border-radius: 16rpx;
overflow: hidden;
margin-bottom:30rpx;
margin-bottom: 30rpx;
}
.collocation_img_label{
.collocation_img_label {
width: 70rpx;
height: 70rpx;
position: absolute;
left: 0;
top: 0
top: 0;
}
.collocation_img {
width: 340rpx;
height: 340rpx;
position: relative
position: relative;
}
.collocation_img_image {
width: 100%;
height: 100%;
}
.collocation_content {
background: #fafafa;
font-size: 30rpx;
... ... @@ -1011,245 +1081,300 @@ background: #fff
}
.introduce {
height:25rpx ;
height: 25rpx;
font-size: 28rpx;
color: #888;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 25rpx
text-overflow: ellipsis;
white-space: nowrap;
line-height: 25rpx;
}
.introduces{
margin-bottom: 8rpx;
margin-top:2rpx;
.introduces {
margin-bottom: 8rpx;
margin-top: 2rpx;
}
.good_vipboxs{
margin-top:0;
position: relative
.good_vipboxs {
margin-top: 0;
position: relative;
}
.red_rmb_right{
margin-right:10rpx;
.red_rmb_right {
margin-right: 10rpx;
}
.cart_icon{
.cart_icon {
position: absolute;
right:0;
bottom:0;
right: -10rpx!important;
bottom: -10rpx!important;
}
.money_icon2 {
font-size: 22rpx;
color: #f44;
}
.money_icon2s{
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(34,34,34,1);
.money_icon2s {
font-family: PingFang-SC-Bold;
font-weight: bold;
color: rgba(34, 34, 34, 1);
}
.money2 {
font-size: 38rpx;
font-weight: bold;
color: #f44;
}
.money2s{
font-size:22rpx;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(34,34,34,1);
.money2s {
font-size: 22rpx;
font-family: PingFang-SC-Bold;
font-weight: bold;
color: rgba(34, 34, 34, 1);
}
.original_price {
color: #888;
text-decoration: line-through;
}
.original_prices{
font-size:22rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
text-decoration:line-through;
color:rgba(136,136,136,1);
/* line-height:40rpx; */
.original_prices {
font-size: 22rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-decoration: line-through;
color: rgba(136, 136, 136, 1);
/* line-height:40rpx; */
}
/*大图样式*/
.big_img_box{
margin-top:60rpx;
.big_img_box {
margin-top: 60rpx;
width: 93.6%;
margin:0 auto;
margin: 0 auto;
}
.goods_for{
background:rgba(250,250,250,1);
margin-bottom:40rpx;
.goods_for {
background: rgba(250, 250, 250, 1);
margin-bottom: 40rpx;
}
.goods_for_img{
width:700rpx;
height:650rpx;
border-radius:16rpx 16rpx 0px 0px;
position: relative
.goods_for_img {
width: 700rpx;
height: 650rpx;
border-radius: 16rpx 16rpx 0px 0px;
position: relative;
}
.goods_for_img_label{
.goods_for_img_label {
position: absolute;
top: 0;
left: 22rpx;
width: 100rpx;
height: 100rpx;
}
.goods_for_img_image{
.goods_for_img_image {
width: 100%;
height: 100%;
border-radius:16rpx 16rpx 0px 0px;
border-radius: 16rpx 16rpx 0px 0px;
}
.goods_for_font{
.goods_for_font {
height: 176rpx;
padding:26rpx 22rpx;
padding: 26rpx 22rpx;
box-sizing: border-box;
position: relative
position: relative;
}
.goods_for_font_one{
.goods_for_font_one {
height: 32rpx;
font-size:30rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(34,34,34,1);
line-height:32rpx;
margin-bottom:9rpx;
}
.goods_for_font_two{
font-size: 30rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(34, 34, 34, 1);
line-height: 32rpx;
margin-bottom: 9rpx;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.goods_for_font_two {
height: 23rpx;
font-size:24rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(136,136,136,1);
line-height:23rpx;
margin-bottom:27rpx;
}
.goods_for_font_three{
font-size: 24rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(136, 136, 136, 1);
line-height: 23rpx;
margin-bottom: 27rpx;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.goods_for_font_three {
height: 29rpx;
display: flex;
font-size:38rpx;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(34,34,34,1);
font-size: 38rpx;
font-family: PingFang-SC-Bold;
font-weight: bold;
color: rgba(34, 34, 34, 1);
line-height: 29rpx;
}
.goods_for_font_three_one{
font-size:38rpx;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(34,34,34,1);
.goods_for_font_three_one {
font-size: 38rpx;
font-family: PingFang-SC-Bold;
font-weight: bold;
color: rgba(34, 34, 34, 1);
line-height: 29rpx;
margin-right:10rpx;
display: flex
margin-right: 10rpx;
display: flex;
}
.goods_for_font_three_one view{
.goods_for_font_three_one view {
font-size: 22rpx;
}
.goods_for_font_three_two{
.goods_for_font_three_two {
height: 19rpx;
font-size:24rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
text-decoration:line-through;
color:rgba(136,136,136,1);
line-height:35rpx;
margin-right:30rpx;
}
.goods_for_font_three_three{
font-size:38rpx;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:#f44;
font-size: 24rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-decoration: line-through;
color: rgba(136, 136, 136, 1);
line-height: 35rpx;
margin-right: 30rpx;
}
.goods_for_font_three_three {
font-size: 38rpx;
font-family: PingFang-SC-Bold;
font-weight: bold;
color: #f44;
line-height: 29rpx;
margin-right:10rpx;
display: flex
margin-right: 10rpx;
display: flex;
}
.goods_for_font_three_three view{
.goods_for_font_three_three view {
font-size: 22rpx;
}
.cart_icons{
.cart_icons {
position: absolute;
right:20rpx;
bottom:20rpx;
right: 0rpx;
bottom: 0rpx;
}
.back_white{
.back_white {
background: #fff;
padding-bottom:20rpx;
box-sizing: border-box
padding-bottom: 20rpx;
box-sizing: border-box;
}
.padding-top_nav{
padding-top:60rpx;
box-sizing: border-box
.padding-top_nav {
padding-top: 60rpx;
box-sizing: border-box;
}
/*返回顶部*/
.back_top{
.back_top {
position: fixed;
right:30rpx;
bottom:30rpx;
right: 30rpx;
bottom: 30rpx;
z-index: 99999;
width: 50rpx;
height: 50rpx;
border-radius: 25rpx;
border:3rpx solid #ffda44;
border: 3rpx solid #ffda44;
box-shadow: 0 0 10rpx #ffda44;
}
.icon-fanhuidingbu{
.icon-fanhuidingbu {
color: #888;
text-align: center;
line-height: 44rpx;
}
.else{
.else {
text-align: center;
color: #888;
line-height: 42rpx;
font-size: 28rpx;
}
/*gohi*/
.gohi{
.gohi {
width: 100%;
padding:10rpx 25rpx 25rpx;
padding: 10rpx 25rpx 25rpx;
box-sizing: border-box;
background: #fff
background: #fff;
}
.gohi image{
.gohi image {
width: 100%;
height:460rpx;
margin-top:25rpx
height: 460rpx;
margin-top: 25rpx;
}
/*团购*/
.good_price_progress{
margin-top:-50rpx;
margin-bottom:60rpx
.good_price_progress {
margin-top: -50rpx;
margin-bottom: 60rpx;
}
.group_font{
font-size:24rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(136,136,136,1);
line-height:24rpx;
height: 24rpx;
.group_font {
font-size: 24rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(136, 136, 136, 1);
line-height: 24rpx;
height: 24rpx;
}
.goods_margin_top{
margin-top:20rpx;
.goods_margin_top {
margin-top: 20rpx;
}
.group_image{
.group_image {
width: 200rpx;
height: 200rpx;
border-radius: 16rpx;
overflow: hidden
overflow: hidden;
}
.group_time{
.group_time {
position: absolute;
bottom:0;
height:30px;
width:200rpx;
background:rgba(187,187,187,1);
bottom: 0;
height: 30px;
width: 200rpx;
background: rgba(187, 187, 187, 1);
border-radius: 0 0 16rpx 16rpx;
padding:0 10rpx;
font-size:20rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,255,255,1);
line-height:54rpx;
text-align: center;
}
.group_time.active{
background:rgba(255,68,68,1);
}
\ No newline at end of file
padding: 0 10rpx;
font-size: 20rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
color: rgba(255, 255, 255, 1);
line-height: 54rpx;
text-align: center;
}
.group_time.active {
background: rgba(255, 68, 68, 1);
}
.zhongjianwangge {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
... ...
... ... @@ -18,6 +18,9 @@ Page({
let url ='/wxapp/order/index?status='+9
app.post(url).then(r=>{
if(r.code==1){
r.data.forEach(function(ele,index){
ele.create_time = app.timeFormate(ele.create_time,'YYMMDDHHMM')
})
console.log(r)
that.setData({
orderList:r.data
... ...
... ... @@ -24,8 +24,8 @@
</view>
</view>
<view class='order_detail'>
<view>共计3件商品(运费¥0:00)</view>
<view class='time'>2017/11/29 17:17:13</view>
<view>共计{{cell.more.thumbnail.length}}件商品(运费¥{{cell.yunfei}})</view>
<view class='time'>{{cell.create_time}}</view>
</view>
<view class='order_money'>
<view>实付:¥
... ...
... ... @@ -94,10 +94,9 @@ Page({
//申请售后
after_order(e) {
let id = e.currentTarget.dataset.orderid;
this.setData({
after_order: !this.data.after_order,
cancelId: id
});
wx.navigateTo({
url: '../shenqingshouhou/shengqingshouhou?id='+id,
})
},
//渲染订单详情
fetchOrderDetail() {
... ...
... ... @@ -10,7 +10,7 @@
<view class='state'>
<view class='wait_pay'>售后服务</view>
<view class='state_btn'>
<view class='cancel_order' bindtap='goComments' data-id='{{orderInfo.id}}'>查看评价</view>
<!-- <view class='cancel_order' bindtap='goComments' data-id='{{orderInfo.id}}'>查看评价</view> -->
<view class='pay' bindtap='after_order' data-orderid='{{orderInfo.id}}'>申请售后</view>
</view>
</view>
... ...
... ... @@ -89,7 +89,7 @@ Page({
changeSupport(e) {
let gid = e.currentTarget.dataset.gid
let list = this.data.orderList
list.forEach(function (ele, index) {
list.forEach(function(ele, index) {
if (gid == ele.id) {
ele.flag1 = true
ele.flag2 = false
... ... @@ -104,7 +104,7 @@ Page({
changeSupport2(e) {
let gid = e.currentTarget.dataset.gid
let list = this.data.orderList
list.forEach(function (ele, index) {
list.forEach(function(ele, index) {
if (gid == ele.id) {
ele.flag2 = true
ele.flag1 = false
... ... @@ -126,7 +126,7 @@ Page({
},
//点击增加图片
changePhoto: function () {
changePhoto: function() {
var that = this;
var img_arr = []
// 选择图片
... ... @@ -134,48 +134,47 @@ Page({
count: 9,
sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'],
success: function (res) {
console.log(res)
success: function(res) {
const filePath = res.tempFilePaths;
// var filePath = res.tempFilePaths[0];
img_arr=filePath
img_arr = filePath
let arr = [];
img_arr = that.data.imgBox.concat(img_arr)
that.setData({
imgBox: img_arr
});
// var filePath = res.tempFilePaths[0];
// 交给七牛上传
qiniuUploader.upload(filePath, (res) => {
// 每个文件上传成功后,处理相关的事情
// 其中 info 是文件上传成功后,服务端返回的json,形式如
// {
// "hash": "Fh8xVqod2MQ1mocfI4S4KpRL6D98",
// "key": "gogopher.jpg"
// }
// 参考http://developer.qiniu.com/docs/v6/api/overview/up/response/simple-response.html
var img_urls = that.data.imgUrls;
// tempFilePath可以作为img标签的src属性显示图片
// console.log(res);
let successUp = 0; //成功个数
let failUp = 0; //失败个数
let i = 0; //第几个
// let tempFilePaths = res.tempFilePaths //总文件
let length = res.tempFilePaths.length //总共个数
that.uploadAllfile(filePath, successUp, failUp, i, length);
}
})
},
// 上传图片至七牛云
uploadAllfile(filePaths, successUp, failUp, i, length) {
let that = this;
qiniuUploader.upload(filePaths[i], (res) => {
var img_urls = that.data.imgUrls;
console.log(res)
let aa = 'http://qiniu.himrhi.com/' + res.key
img_urls.push(aa);
let imgStr = img_urls.join(',')
console.log(imgStr)
that.setData({
'imageURL': res.imageURL,
imageURL: res.imageURL,
key: imgStr,
imgBox: img_arr,
imgUrls: img_urls
});
}, (error) => {
console.log('error: ' + error);
}, {
region: 'ECN',
domain: 'qiniu.himrhi.com', // // bucket 域名,下载资源时用到。如果设置,会在 success callback 的 res 参数加上可以直接使用的 ImageURL 字段。否则需要自己拼接
// key: 'customFileName.jpg', // [非必须]自定义文件 key。如果不设置,默认为使用微信小程序 API 的临时文件名
// 以下方法三选一即可,优先级为:uptoken > uptokenURL > uptokenFunc
// uptoken: 'JMgHPK8vEdZfUfxZIW8qIsyucRCZeTZ4aqHLWsjI:9VjchzcKJTa9uqK_0MWELzc4_zg=:eyJzY29wZSI6ImhpLWZyZXNoIiwiZGVhZGxpbmUiOjE1NjA3MzU3ODF9', // 由其他程序生成七牛 uptoken
uptokenURL: 'http://www.himrhi.com/api/wxapp/public/getQiniuToken', // 从指定 url 通过 HTTP GET 获取 uptoken,返回的格式必须是 json 且包含 uptoken 字段,例如: {"uptoken": "[yourTokenString]"}
domain: 'qiniu.himrhi.com',
uptokenURL: 'http://www.himrhi.com/api/wxapp/public/getQiniuToken',
uptokenFunc: function () {
return 'JMgHPK8vEdZfUfxZIW8qIsyucRCZeTZ4aqHLWsjI:9VjchzcKJTa9uqK_0MWELzc4_zg=:eyJzY29wZSI6ImhpLWZyZXNoIiwiZGVhZGxpbmUiOjE1NjA3MzU3ODF9';
}
... ... @@ -189,10 +188,17 @@ Page({
// `before` 上传前执行的操作
}, (err) => {
// `complete` 上传接受后执行的操作(无论成功还是失败都执行)
});
i++;
// let img = that.data.img
if (i == length) {
// console.log('总共' + successUp + '张上传成功,' + failUp + '张上传失败!');
} else { //递归调用uploadDIY函数
that.uploadAllfile(filePaths, successUp, failUp, i, length);
}
})
});
},
//点击删除图片
deleteImg(e) {
let val = e.currentTarget.dataset.index
... ... @@ -209,23 +215,23 @@ Page({
//点击提交评论
submitComment() {
console.log('-------')
console.log(this.data.key)
console.log('-------')
let url = '/wxapp/order/setComment'
let goods = this.data.goods
let gid = this.data.gid.toFixed(0)
let list = this.data.orderList
console.log(gid);
list.forEach(function (ele, index) {
let i = ele.id
if (ele.flag1) {
goods[i] = 0
goods[i] = 1
}
if (ele.flag2) {
goods[i] = 1
goods[i] = 0
}
})
console.log(goods)
goods = JSON.stringify(goods);
console.log(goods)
if (this.data.index == 0) {
wx.showToast({
title: '请对商品做评价',
... ... @@ -270,6 +276,7 @@ Page({
})
return;
}
console.log("评价图片:3张", this.data.key)
let params = {
object_id: this.data.id,
goods_stars: this.data.index,
... ... @@ -278,6 +285,7 @@ Page({
content: this.data.text,
images: this.data.key
}
app.post(url, params).then(r => {
console.log('上传')
console.log(r)
... ... @@ -294,6 +302,7 @@ Page({
});
},
//渲染订单详情
fetchOrderDetail() {
let url = '/wxapp/order/detail'
... ... @@ -303,7 +312,7 @@ Page({
}
app.post(url, params).then(r => {
console.log(r)
r.data.detail.forEach(function (ele, index) {
r.data.detail.forEach(function(ele, index) {
let i = ele.id
goods[i] = ''
ele.flag1 = true
... ... @@ -319,7 +328,7 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
this.setData({
id: options.id
});
... ... @@ -329,49 +338,49 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
... ...
... ... @@ -137,7 +137,7 @@ Page({
this.setData({
after_order: !this.data.after_order
});
wx.navigateTo({
wx.showToast({
url: '申请成功',
icon: 'none'
})
... ... @@ -381,10 +381,13 @@ cancel_order(e) {
//申请售后
after_order(e) {
let id = e.currentTarget.dataset.orderid;
this.setData({
after_order: !this.data.after_order,
cancelId: id
});
// this.setData({
// after_order: !this.data.after_order,
// cancelId: id
// });
wx.navigateTo({
url: '../shenqingshouhou/shengqingshouhou?id='+id,
})
},
//去付款
go_pay(e) {
... ... @@ -433,6 +436,8 @@ go_pay(e) {
}
});
},
/**
* 生命周期函数--监听页面加载
*/
... ...
... ... @@ -131,6 +131,7 @@
</view>
<view class='money_btn'>
<view class='cancel' catchtap='alert_send_goods' data-ordersn='{{cell.order_sn}}'>提醒发货</view>
<view class='pay' style='color: #fff' data-id='{{cell.id}}' data-status='{{cell.status}}' bindtap='jump_order_detail' >查看详情</view>
</view>
</view>
</view>
... ... @@ -165,6 +166,7 @@
</view>
<view class='money_btn'>
<view class='cancel' catchtap='confirm_goods' data-id='{{cell.id}}'>确认收货</view>
<view class='pay' style='color: #fff' bindtap='unship' data-id='{{cell.id}}'>查看详情</view>
</view>
</view>
</view>
... ... @@ -199,6 +201,7 @@
</view>
<view class='money_btn'>
<view class='cancel' data-id='{{cell.id}}' catchtap='goComments'>评价</view>
<view class='pay' style='color: #fff' catchtap='after_order' data-orderid='{{cell.id}}'>申请售后</view>
</view>
</view>
</view>
... ...
... ... @@ -66,10 +66,10 @@ Page({
optionsproId: '',
optionspackId: '',
optionscart: '',
timeflags:false,
addd:null,
timeflags: false,
addd: null,
aamount: null,
dingdanid:null
dingdanid: null
},
//changeTime
changeTime() {
... ... @@ -79,14 +79,14 @@ Page({
},
//检测选择时间的picker
bindMultiPickerChange(e) {
if(this.data.panduan){
if (this.data.panduan) {
var addressId = this.data.deliverTimeId
} else {
var addressId = this.data.addd
}
this.setData({
multiIndex: e.detail.value,
timeflag:false,
timeflag: false,
deliverTimeId: addressId,
})
},
... ... @@ -105,7 +105,7 @@ Page({
timeDataArray: that.data.timeDataArray
}
data.multiIndex[column] = e.detail.value;
console.log(e.detail.value+'shijiyaya')
console.log(e.detail.value + 'shijiyaya')
switch (column) {
case 0:
data.multiArray[1] = that.data.week_two[e.detail.value]
... ... @@ -115,10 +115,10 @@ Page({
var a = data.multiArray[0][data.multiIndex[0]]
var e = a.substring(a.length - 3)
var b = data.multiArray[1][data.multiIndex[1]]
data.timeDataArray.forEach(function (ele, index) {
data.timeDataArray.forEach(function(ele, index) {
let c = ele.labelArray.week
if (e == c) {
ele.children.forEach(function (eles, indexs) {
ele.children.forEach(function(eles, indexs) {
if (eles.disabled) {
wx.showToast({
title: '亲,该时间段已排满咯~',
... ... @@ -132,7 +132,7 @@ Page({
if (b == eles.label) {
console.log('b')
deliveryTimeId = eles.value
console.log('时间id'+eles.value)
console.log('时间id' + eles.value)
}
that.setData({
timeflag: false
... ... @@ -172,13 +172,13 @@ Page({
week_right.push(ele.arr)
});
var i = null
week_right.forEach(function (elee,indexe) {
week_right.forEach(function(elee, indexe) {
if (elee.length == 0) {
i=indexe
i = indexe
week_arr.splice(indexe, 1)
}
})
week_right.splice(i,1)
week_right.splice(i, 1)
console.log(week_right)
console.log(week_arr)
console.log(1414)
... ... @@ -270,8 +270,8 @@ Page({
});
var n = 0
r.data.timeDataArray.forEach(function(ele, index) {
ele.children.forEach(function(e,i){
if(!e.disabled){
ele.children.forEach(function(e, i) {
if (!e.disabled) {
n++
if (n == 1) {
addid = ele.children[0].value
... ... @@ -280,7 +280,7 @@ Page({
})
var new_arr = []
for (let i = 0; i < ele.children.length; i++) {
if (ele.children[i].disabled){
if (ele.children[i].disabled) {
} else {
new_arr.push(ele.children[i].label)
... ... @@ -289,25 +289,25 @@ Page({
ele.arr = new_arr
})
var amount = that.data.amount * 1
console.log(that.data.amount+'前')
r.data.priceData.shipment_price = r.data.priceData.shipment_price*1
console.log(that.data.amount + '前')
r.data.priceData.shipment_price = r.data.priceData.shipment_price * 1
console.log(r.data.priceData.shipment_price)
amount =amount + r.data.priceData.shipment_price
amount = amount + r.data.priceData.shipment_price
that.setData({
vip: r.data,
goodsList: r.data.list,
addressList: r.data.address,
address: r.data.address[0],
address__id:r.data.address[0].id,
address__id: r.data.address[0].id,
vipList: r.data.vips,
timeDataArray: [],
timeDataArray: r.data.timeDataArray,
deliverList: r.data.timeDataArray,
addressList: r.data.address,
amount:amount,
addd:addid
amount: amount,
addd: addid
});
console.log(addid+'刚进来')
console.log(addid + '刚进来')
if (that.data.num == 0) {
that.goodsTotalPrice();
}
... ... @@ -328,8 +328,8 @@ Page({
if (r.code == 1) {
var list = r.data.list;
var n = 0
r.data.timeDataArray.forEach(function (ele, index) {
ele.children.forEach(function (e, i) {
r.data.timeDataArray.forEach(function(ele, index) {
ele.children.forEach(function(e, i) {
if (!e.disabled) {
n++
if (n == 1) {
... ... @@ -357,7 +357,7 @@ Page({
timeDataArray: r.data.timeDataArray,
deliverList: r.data.timeDataArray,
ship_ment_price: r.data.priceData.shipment_price,
addd:addid
addd: addid
});
// that.fetchAmount();
that.amount()
... ... @@ -419,8 +419,8 @@ Page({
app.post(url, params).then(r => {
if (r.code == 1) {
var n = 0
r.data.timeDataArray.forEach(function (ele, index) {
ele.children.forEach(function (e, i) {
r.data.timeDataArray.forEach(function(ele, index) {
ele.children.forEach(function(e, i) {
if (!e.disabled) {
n++
if (n == 1) {
... ... @@ -438,6 +438,7 @@ Page({
}
ele.arr = new_arr
})
var amount = that.data.amount*1 + r.data.priceData.shipment_price*1
this.setData({
vip: r.data,
goodsList: r.data.list,
... ... @@ -448,7 +449,9 @@ Page({
timeDataArray: r.data.timeDataArray,
deliverList: r.data.timeDataArray,
ship_ment_price: r.data.priceData.shipment_price,
addd:addid
addd: addid,
amount:amount,
last_total_price:amount
})
this.getWeek();
}
... ... @@ -472,7 +475,7 @@ Page({
amount: that.data.amount,
last_total_price: that.data.amount,
});
console.log(that.data.amount+'最后一次')
console.log(that.data.amount + '最后一次')
},
//渲染商品详情
fetchGoods() {
... ... @@ -500,8 +503,8 @@ Page({
if (r.code == 1) {
console.log(r)
var n = 0
r.data.timeDataArray.forEach(function (ele, index) {
ele.children.forEach(function (e, i) {
r.data.timeDataArray.forEach(function(ele, index) {
ele.children.forEach(function(e, i) {
if (!e.disabled) {
n++
if (n == 1) {
... ... @@ -525,16 +528,16 @@ Page({
// price += ele.price
// console.log(price)
// })
console.log(that.data.is_vip+"是不是会员")
console.log(that.data.is_vip + "是不是会员")
r.data.info.vip_price.substring(0, r.data.info.vip_price.length - 3)
r.data.info.price.substring(0, r.data.info.price.length - 3)
var prices = null
if(that.data.is_vip==1){
price = r.data.info.vip_price*1+r.data.priceData.shipment_price*1
if (that.data.is_vip == 1) {
price = r.data.info.vip_price * 1 + r.data.priceData.shipment_price * 1
prices = r.data.info.vip_price
}else{
} else {
prices = r.data.info.price
price = r.data.info.price * 1 + r.data.priceData.shipment_price*1
price = r.data.info.price * 1 + r.data.priceData.shipment_price * 1
}
that.setData({
vip: r.data,
... ... @@ -604,13 +607,17 @@ Page({
url = '/wxapp/cart/confirm2'
}
console.log(that.data.deliverTimeId + "配送时间ids")
if (that.data.deliverTimeId==undefined){
if(that.data.is_group==0){
if (that.data.deliverTimeId == undefined) {
wx.showToast({
title: '请选择配送时间',
icon:'none'
icon: 'none'
})
return;
}
}else{
}
if (that.data.num != 0 && that.data.is_group == 0) {
console.log("商品直接购买")
if (index != -1) {
... ... @@ -904,7 +911,7 @@ Page({
that.setData({
order_sn: order_sn,
aamount: amount,
dingdanid:dingdanid
dingdanid: dingdanid
});
let url = '/wxapp/pay/index?order_sn=' + order_sn
app.post(url).then(r => {
... ... @@ -925,9 +932,9 @@ Page({
showad: true
})
wx.navigateTo({
url: '../paySuccess/paySuccess?order='+dingdanid+'&amount='+that.data.aamount,
url: '../paySuccess/paySuccess?order=' + dingdanid + '&amount=' + that.data.aamount,
})
console.log(showad+"真假值")
console.log(showad + "真假值")
},
fail(res) {
wx.navigateTo({
... ... @@ -946,9 +953,6 @@ Page({
wx.navigateTo({
url: '../paySuccess/paySuccess?order=' + dingdanid + '&amount=' + that.data.aamount,
})
wx.switchTab({
url: '../../index/index',
})
} else {
if (r.data.is_awaken_wechat == 1) {
wx.requestPayment({
... ... @@ -1069,13 +1073,18 @@ Page({
}
}
} else {
console.log(2222222222)
wx.showToast({
title: r.msg,
icon: 'none'
})
}
});
}else{
wx.showToast({
title: res.msg,
icon:'none'
})
console.log('重读')
}
})
// }
... ... @@ -1286,7 +1295,7 @@ Page({
ids: ids_arr,
optionscart: ids_arr,
amount: options.price,
goodsTotalPrice:options.price
goodsTotalPrice: options.price
})
that.fetchAccount();
} else if (options.pakId) {
... ...
... ... @@ -22,7 +22,7 @@
<!-- <view class='expected_time' bindtap='chooseTime' wx:else> -->
<view class='expected_time' wx:else>
<view class='iconfont icon-time'></view>
<text class='hint'>团购不可选择送达时间</text>
<text class='hint'>团购成功后,我们会在2天内完成配送的</text>
</view>
<view class='expected_time' bindtap='openAddress'>
<view class='iconfont icon-position'></view>
... ...
... ... @@ -106,7 +106,7 @@ box-sizing: border-box;
.hint {
margin-right: 18rpx;
color:rgba(255,68,68,1);
color:#ffda44;
/* float: left; */
display: inline-block;
... ...
// pages/my/shenqingshouhou/shengqingshouhou.js
const app = getApp()
const qiniuUploader = require("../../../utils/qiniuUploader");
Page({
/**
* 页面的初始数据
*/
data: {
length: 0,
imgBox: [],
img_urls: [],
imgURL: [],
imageURL: '',
imgUrls: [],
imgStr: '',
key:'',
flex: false,
after_order: false,
cancelId:null,
id:null,
amount:0,
detail: [],
cancel_value:'',
cancel_id:'',
cancel_reason: [{
id: 1,
name: '我不想买了'
}, {
id: 2,
name: '卖家缺货'
}, {
id: 3,
name: '多拍了'
}, {
id: 4,
name: '服务太差'
}, {
id: 5,
name: '信息填写错误'
}, {
id: 6,
name: '再等等'
}, {
id: 7,
name: '其他原因'
}]
},
//取消
cancel(){
this.setData({
after_order:false
})
},
//返回
get_back(){
wx.navigateBack({})
},
//changeReasonId
changeReasonId(e) {
let id = e.currentTarget.dataset.id;
let value = e.currentTarget.dataset.value;
this.setData({
cancel_id: id,
cancel_value: value
});
},
//点击确定取消订单
close_cancel_mask() {
let list = this.data.orderList
let ind = this.data.daifukuan
if (this.data.cancel_value == '') {
wx.showToast({
title: '请选择取消原因',
icon: 'none'
})
return;
}
},
//点击我知道了
close_cancel_masks (){
this.setData({
after_order: !this.data.after_order
});
},
//点击提交
submit() {
let url = '/wxapp/order/applySaleAfter'
let params = {
id: this.data.id,
sale_after_reason: this.data.cancel_value,
sale_after_images:this.data.key
}
app.post(url, params).then(r => {
if (r.code == 1) {
wx.showToast({
title: '申请售后成功',
icon: 'none',
duration: 1000
})
wx.switchTab({
url: '../my',
})
list.splice(ind, 1)
this.setData({
orderList: list
})
} else {
wx.showToast({
title: r.msg,
icon: 'none'
})
}
})
},
//点击售后
chooseAfterMarket(){
this.setData({
after_order:true
})
},
//点击增加图片
changePhoto: function () {
var that = this;
var img_arr = []
// 选择图片
wx.chooseImage({
count: 6,
sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'],
success: function (res) {
const filePath = res.tempFilePaths;
// var filePath = res.tempFilePaths[0];
img_arr = filePath
let arr = [];
if (that.data.imgBox.length>=6){
wx.showToast({
title: '最多选择6张图片',
icon:'none'
})
return
}
img_arr = that.data.imgBox.concat(img_arr)
if(img_arr.length*1%3==0){
that.setData({
flex:true
})
}
that.setData({
imgBox: img_arr
});
let successUp = 0; //成功个数
let failUp = 0; //失败个数
let i = 0; //第几个
// let tempFilePaths = res.tempFilePaths //总文件
let length = res.tempFilePaths.length //总共个数
that.uploadAllfile(filePath, successUp, failUp, i, length);
}
})
},
// 上传图片至七牛云
uploadAllfile(filePaths, successUp, failUp, i, length) {
let that = this;
qiniuUploader.upload(filePaths[i], (res) => {
var img_urls = that.data.imgUrls;
console.log(res)
let aa = 'http://qiniu.himrhi.com/' + res.key
img_urls.push(aa);
let imgStr = img_urls.join(',')
that.setData({
imageURL: res.imageURL,
key: imgStr,
imgUrls: img_urls
});
}, (error) => {
console.log('error: ' + error);
}, {
region: 'ECN',
domain: 'qiniu.himrhi.com',
uptokenURL: 'http://www.himrhi.com/api/wxapp/public/getQiniuToken',
uptokenFunc: function () {
return 'JMgHPK8vEdZfUfxZIW8qIsyucRCZeTZ4aqHLWsjI:9VjchzcKJTa9uqK_0MWELzc4_zg=:eyJzY29wZSI6ImhpLWZyZXNoIiwiZGVhZGxpbmUiOjE1NjA3MzU3ODF9';
}
}, (res) => {
console.log('上传进度', res.progress)
console.log('已经上传的数据长度', res.totalBytesSent)
console.log('预期需要上传的数据总长度', res.totalBytesExpectedToSend)
}, () => {
// 取消上传
}, () => {
// `before` 上传前执行的操作
}, (err) => {
// `complete` 上传接受后执行的操作(无论成功还是失败都执行)
i++;
// let img = that.data.img
if (i == length) {
// console.log('总共' + successUp + '张上传成功,' + failUp + '张上传失败!');
} else { //递归调用uploadDIY函数
that.uploadAllfile(filePaths, successUp, failUp, i, length);
}
});
},
//点击删除图片
deleteImg(e) {
let that=this
let val = e.currentTarget.dataset.index
let imgUrls = this.data.imgUrls
let imgBox = this.data.imgBox
let indexs = imgBox.indexOf(val)
imgUrls.splice(indexs, 1)
imgBox.splice(indexs, 1)
console.log(imgBox.length)
if (imgBox.length * 1 % 3 == 0){
that.setData({
flex:true
})
}
this.setData({
imgUrls: imgUrls,
imgBox: imgBox
})
},
//订单详情
fetch() {
let that= this
let url = '/wxapp/order/detail'
let paramer = {
id: that.data.id
}
app.post(url, paramer).then(r=>{
if(r.code==1){
console.log(r)
that.setData({
detail:r.data.detail,
amount: r.data.info.amount
})
}else{
wx.showToast({
title: r.msg,
icon:'none'
})
}
})
},
//申请售后
after_order(e) {
let id = e.currentTarget.dataset.orderid;
this.setData({
after_order: !this.data.after_order,
cancelId: id
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
id:options.id
})
this.fetch()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
{
"usingComponents": {}
}
\ No newline at end of file
... ...
<view class='page'>
<view class='banner'>
<view class='iconfont icon-fanhui' catchtap='get_back'></view>
<view class='coupons'>售后信息</view>
</view>
<view class='one'>
<view class='second'>
<view class='goods_info'>
<view class='goods_info_title'>商品信息</view>
<view class='goods_item' wx:for='{{detail}}' wx:key='{{item.id}}'>
<view class='goods_avatar'>
<image src='{{item.more.thumbnail}}'></image>
</view>
<view class='goods_center'>
<view class='goods_title'>{{item.title}}</view>
<view class='goods_count'>×{{item.number}}</view>
</view>
<view class='danjia'>¥{{item.price}}</view>
</view>
</view>
</view>
<view class='three'>
<view class='three_left'>商品金额</view>
<view class='three_right'>¥{{amount}}</view>
</view>
<view class='three' data-orderid='{{cell.id}}' bindtap='chooseAfterMarket'>
<view class='three_left'>售后理由</view>
<view class='three_left'>
<view wx:if='{{cancel_value==""}}'>请选择</view>
<view wx:if='{{cancel_value!=""}}'>{{cancel_value}}</view>
<view class='iconfont icon-icondayu'></view>
</view>
</view>
<view class='four'>
<view class='goods_info_titles'>售后举证(上传举证最多6张)</view>
<view class='img_box {{flex?"active":""}}'>
<view class='content_img' wx:for='{{imgBox}}' wx:key='{{index}}' wx:for-index='index'>
<view class='iconfont icon-cuowu' data-index='{{item}}' bindtap='deleteImg'></view>
<image src='{{item}}'></image>
</view>
<view class='content_img' bindtap='changePhoto' wx:if='{{imgBox.length<6}}'>
<view class='iconfont icon-jia'></view>
</view>
</view>
</view>
<view class='five'>注:您的申请将提交给管理员,48小时内审核通过将原路退款</view>
<view class='six' catchtap='submit'>提交</view>
</view>
</view>
<!-- 申请售后 -->
<view class='cancelOrder_mask' wx:if='{{after_order}}' catchtap='cancel'>
<view class='cancelOrder_diceng'>
<view class='cancel_one'>取消原因</view>
<view class='cancel_two'>
<view class='cancel_two_item {{cancel_id===item.id?"active":""}}' wx:for='{{cancel_reason}}' wx:key='{{item.id}}' data-id='{{item.id}}' data-value='{{item.name}}' catchtap='changeReasonId'>{{item.name}}</view>
</view>
<view class='cancel_three' catchtap='close_cancel_masks'>我知道了</view>
</view>
</view>
\ No newline at end of file
... ...
page {
width: 100%;
height: 100%;
background: #fafafa;
}
.page {
width: 100%;
min-height: 100%;
padding-bottom: 58rpx;
box-sizing: border-box
}
.one {
padding: 0 25rpx;
box-sizing: border-box;
}
.second {
margin-top: 16rpx;
}
.goods_info {
padding: 30rpx;
box-sizing: border-box;
background: rgba(255, 255, 255, 1);
box-shadow: 0rpx 5rpx 10rpx 0rpx rgba(0, 0, 0, 0.05);
border-radius: 16rpx;
}
.goods_info_title, .goods_info_titles {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(38, 54, 58, 1);
}
.goods_info_titles {
font-size: 24rpx;
margin-top: 10rpx;
margin-bottom: 10rpx;
}
.goods_item {
display: flex;
position: relative;
height: 100rpx;
width: 100%;
margin-top: 40rpx;
margin-bottom: 15rpx;
}
.goods_avatar {
width: 100rpx;
height: 100rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 35rpx;
}
.goods_avatar image {
width: 100%;
height: 100%;
}
.goods_center {
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(38, 54, 58, 1);
}
.goods_title {
margin-bottom: 26rpx;
}
.goods_count {
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(148, 154, 154, 1);
}
.danjia {
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(148, 154, 154, 1);
}
.three, .four {
height: 100rpx;
background: rgba(255, 255, 255, 1);
box-shadow: 0rpx 5rpx 10rpx 0rpx rgba(0, 0, 0, 0.05);
border-radius: 16rpx;
margin-top: 16rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30rpx;
box-sizing: border-box;
}
.four {
padding: 30rpx 30rpx 15rpx 30rpx;
box-sizing: border-box;
height: auto;
display: block;
}
.three_left {
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(38, 54, 58, 1);
display: flex;
align-items: center;
}
.three_right {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 800;
color: rgba(93, 194, 72, 1);
}
.icon-icondayu {
font-weight: 600 !important;
color: #999 !important;
}
.img_box {
display: flex;
flex-wrap: wrap;
margin-top: 19rpx;
}
.content_img {
width: 160rpx;
height: 160rpx;
border: 2rpx dashed #ededed;
border-radius: 11rpx;
text-align: center;
line-height: 160rpx;
margin: 15rpx 78rpx 15rpx 0;
position: relative;
}
.content_img:nth-child(3n) {
margin-right: 0;
}
.icon-cuowu {
position: absolute;
top: -80rpx;
right: 0;
font-size: 24rpx;
color: rgba(0, 0, 0, 0.8);
}
.content_img image {
width: 100%;
height: 100%;
}
.icon-jia {
font-size: 46rpx;
color: #ededed;
}
.five {
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(153, 153, 153, 1);
margin-top: 35rpx;
text-align: center
}
.six {
margin-top: 137rpx;
width: 100%;
height: 80rpx;
background:rgba(255,218,68,1);
box-shadow:0 15rpx 30rpx 0 rgba(255,204,68,0.6);
border-radius: 40rpx;
text-align: center;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(255, 255, 255, 1);
line-height: 80rpx;
}
/*订单取消*/
.cancelOrder_mask{
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
background: rgba(0,0,0,0.8);
}
.cancelOrder_diceng{
width:600rpx;
height: 580rpx;
background:#fff;
border-radius:16rpx;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin:auto;
overflow-y: auto;
padding-bottom: 127rpx;
box-sizing: border-box
}
.cancel_one{
margin:33rpx 0 37rpx;
text-align: center;
font-size:30rpx;
font-family:PingFang-SC-Heavy;
font-weight:800;
color:rgba(34,34,34,1);
line-height:62rpx;
}
.cancel_two{
padding-left: 28rpx;
display: flex;
flex-wrap: wrap;
margin-bottom:35rpx;
}
.cancel_two_item{
height:51rpx;
background:rgba(247,247,247,1);
border-radius:16rpx;
margin:0 21rpx 21rpx 0;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
line-height:51rpx;
text-align: center;
padding:0 35rpx;
box-sizing: border-box;
z-index: 999;
}
.cancel_two_item.active{
background:rgba(255,218,68,1);
}
.cancel_three{
width:500rpx;
height:80rpx;
margin:0 auto;
background:rgba(255,218,68,1);
box-shadow:0 15rpx 30rpx 0 rgba(255,204,68,0.6);
border-radius:40rpx;
text-align: center;
line-height: 80rpx;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
position: absolute;
bottom: 47rpx;
left: 50%;
transform: translateX(-50%)
}
\ No newline at end of file
... ...
... ... @@ -10,14 +10,14 @@ Page({
test: '',
length: 0,
imgBox: [],
img_urls:[],
img_urls: [],
imgURL: [],
imageURL: '',
imgUrls:[],
imgStr:''
imgUrls: [],
imgStr: ''
},
//返回按钮
get_back(){
get_back() {
wx.navigateBack({})
},
//限制字数
... ... @@ -26,7 +26,7 @@ Page({
var length = parseInt(value.length);
this.setData({
length: length,
test:value
test: value
});
},
//点击增加图片
... ... @@ -36,103 +36,122 @@ Page({
// 选择图片
wx.chooseImage({
count: 9,
sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'],
success: function (res) {
const filePath = res.tempFilePaths;
// var filePath = res.tempFilePaths[0];
img_arr=filePath
img_arr = filePath
let arr = [];
img_arr = that.data.imgBox.concat(img_arr)
that.setData({
imgBox: img_arr
});
// var filePath = res.tempFilePaths[0];
// 交给七牛上传
qiniuUploader.upload(filePath, (res) => {
// 每个文件上传成功后,处理相关的事情
// 其中 info 是文件上传成功后,服务端返回的json,形式如
// {
// "hash": "Fh8xVqod2MQ1mocfI4S4KpRL6D98",
// "key": "gogopher.jpg"
// }
// 参考http://developer.qiniu.com/docs/v6/api/overview/up/response/simple-response.html
// tempFilePath可以作为img标签的src属性显示图片
// console.log(res);
let successUp = 0; //成功个数
let failUp = 0; //失败个数
let i = 0; //第几个
// let tempFilePaths = res.tempFilePaths //总文件
let length = res.tempFilePaths.length //总共个数
that.uploadAllfile(filePath, successUp, failUp, i, length);
}
})
},
// 上传图片至七牛云
uploadAllfile(filePaths, successUp, failUp, i, length) {
let that = this;
qiniuUploader.upload(filePaths[i], (res) => {
var img_urls = that.data.imgUrls;
img_urls.push(res.key);
let a = 'http://qiniu.himrhi.com/' + res.key
var str=''
str=img_urls.join(',');
console.log(res)
let aa = 'http://qiniu.himrhi.com/' + res.key
img_urls.push(aa);
let imgStr = img_urls.join(',')
that.setData({
imageURL: res.imageURL,
key:a,
imgBox: img_arr,
imgUrls: img_urls,
imgStr:str
key: imgStr,
imgUrls: img_urls
});
}, (error) => {
console.log('error: ' + error);
}, {
region: 'ECN',
domain: 'qiniu.himrhi.com', // // bucket 域名,下载资源时用到。如果设置,会在 success callback 的 res 参数加上可以直接使用的 ImageURL 字段。否则需要自己拼接
// key: 'customFileName.jpg', // [非必须]自定义文件 key。如果不设置,默认为使用微信小程序 API 的临时文件名
// 以下方法三选一即可,优先级为:uptoken > uptokenURL > uptokenFunc
// uptoken: 'JMgHPK8vEdZfUfxZIW8qIsyucRCZeTZ4aqHLWsjI:9VjchzcKJTa9uqK_0MWELzc4_zg=:eyJzY29wZSI6ImhpLWZyZXNoIiwiZGVhZGxpbmUiOjE1NjA3MzU3ODF9', // 由其他程序生成七牛 uptoken
uptokenURL: 'http://www.himrhi.com/api/wxapp/public/getQiniuToken', // 从指定 url 通过 HTTP GET 获取 uptoken,返回的格式必须是 json 且包含 uptoken 字段,例如: {"uptoken": "[yourTokenString]"}
uptokenFunc: function () { return 'JMgHPK8vEdZfUfxZIW8qIsyucRCZeTZ4aqHLWsjI:9VjchzcKJTa9uqK_0MWELzc4_zg=:eyJzY29wZSI6ImhpLWZyZXNoIiwiZGVhZGxpbmUiOjE1NjA3MzU3ODF9'; }
domain: 'qiniu.himrhi.com',
uptokenURL: 'http://www.himrhi.com/api/wxapp/public/getQiniuToken',
uptokenFunc: function () {
return 'JMgHPK8vEdZfUfxZIW8qIsyucRCZeTZ4aqHLWsjI:9VjchzcKJTa9uqK_0MWELzc4_zg=:eyJzY29wZSI6ImhpLWZyZXNoIiwiZGVhZGxpbmUiOjE1NjA3MzU3ODF9';
}
}, (res) => {
// console.log('上传进度', res.progress)
// console.log('已经上传的数据长度', res.totalBytesSent)
// console.log('预期需要上传的数据总长度', res.totalBytesExpectedToSend)
console.log("成功")
console.log('上传进度', res.progress)
console.log('已经上传的数据长度', res.totalBytesSent)
console.log('预期需要上传的数据总长度', res.totalBytesExpectedToSend)
}, () => {
// 取消上传
}, () => {
// `before` 上传前执行的操作
}, (err) => {
// `complete` 上传接受后执行的操作(无论成功还是失败都执行)
});
i++;
// let img = that.data.img
if (i == length) {
// console.log('总共' + successUp + '张上传成功,' + failUp + '张上传失败!');
} else { //递归调用uploadDIY函数
that.uploadAllfile(filePaths, successUp, failUp, i, length);
}
})
});
},
//点击删除图片
deleteImg(e){
let val=e.currentTarget.dataset.index
let imgUrls=this.data.imgUrls
let imgBox=this.data.imgBox
let indexs= imgBox.indexOf(val)
imgUrls.splice(indexs,1)
deleteImg(e) {
let val = e.currentTarget.dataset.index
let imgUrls = this.data.imgUrls
let imgBox = this.data.imgBox
let indexs = imgBox.indexOf(val)
imgUrls.splice(indexs, 1)
imgBox.splice(indexs, 1)
this.setData({
imgUrls: imgUrls,
imgBox:imgBox
imgBox: imgBox
})
},
//点击提交
submitProblem(){
let url ='/wxapp/user/setGuestBook'
if(this.data.content==''){
submitProblem() {
let url = '/wxapp/user/setGuestBook'
if (this.data.test == '') {
wx.showToast({
title: '请填写内容',
icon:'none'
icon: 'none'
})
return
}
if (this.data.imgStr == '') {
if (this.data.key == '') {
wx.showToast({
title: '请上传图片',
icon: 'none'
})
return
}
let params={
content:this.data.test,
img:this.data.imgStr
let params = {
content: this.data.test,
img:this.data.key
}
app.post(url,params).then(r=>{
if(r.code==1){
app.post(url, params).then(r => {
if (r.code == 1) {
wx.showToast({
title: '提交成功',
icon:'none'
icon: 'none',
duration: 1000
})
wx.switchTab({
url: '../my',
})
} else {
wx.showToast({
title: r.msg,
icon: 'none'
})
}
})
},
... ... @@ -140,56 +159,56 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
... ... @@ -101,10 +101,9 @@ Page({
//申请退款
replyRefund(e) {
let url = '/wxapp/order/applySaleAfter'
let that = this
that.setData({
id: e.currentTarget.dataset.id,
after_order: true,
let id = e.currentTarget.dataset.id
wx.navigateTo({
url: '../shenqingshouhou/shengqingshouhou?id='+id,
})
},
//渲染订单详情
... ...
... ... @@ -35,7 +35,7 @@
"list": []
},
"miniprogram": {
"current": 94,
"current": 33,
"list": [
{
"id": -1,
... ... @@ -269,10 +269,10 @@
"scene": null
},
{
"id": -1,
"id": 33,
"name": "goodsDetail",
"pathName": "pages/index/goodsDetial/goodsDetial",
"query": "",
"query": "id=45",
"scene": null
},
{
... ... @@ -461,7 +461,7 @@
"id": 60,
"name": "goodsDetail2",
"pathName": "pages/index/goodsDetial2/goodsDetial2",
"query": "id=9",
"query": "id=10",
"scene": null
},
{
... ... @@ -699,6 +699,14 @@
"id": -1,
"name": "支付成功页",
"pathName": "pages/my/paySuccess/paySuccess",
"query": "",
"scene": null
},
{
"id": -1,
"name": "申请售后",
"pathName": "pages/my/shenqingshouhou/shengqingshouhou",
"query": "",
"scene": null
}
]
... ...
// created by gpake
(function() {
(function () {
var config = {
var config = {
qiniuRegion: '',
qiniuImageURLPrefix: '',
qiniuUploadToken: '',
qiniuUploadTokenURL: '',
qiniuUploadTokenFunction: null,
qiniuShouldUseQiniuFileName: false
}
}
module.exports = {
module.exports = {
init: init,
upload: upload,
}
}
// 在整个程序生命周期中,只需要 init 一次即可
// 如果需要变更参数,再调用 init 即可
function init(options) {
// 在整个程序生命周期中,只需要 init 一次即可
// 如果需要变更参数,再调用 init 即可
function init(options) {
config = {
qiniuRegion: '',
qiniuImageURLPrefix: '',
... ... @@ -27,9 +27,9 @@ function init(options) {
qiniuShouldUseQiniuFileName: false
};
updateConfigWithOptions(options);
}
}
function updateConfigWithOptions(options) {
function updateConfigWithOptions(options) {
if (options.region) {
config.qiniuRegion = options.region;
} else {
... ... @@ -39,16 +39,16 @@ function updateConfigWithOptions(options) {
config.qiniuUploadToken = options.uptoken;
} else if (options.uptokenURL) {
config.qiniuUploadTokenURL = options.uptokenURL;
} else if(options.uptokenFunc) {
} else if (options.uptokenFunc) {
config.qiniuUploadTokenFunction = options.uptokenFunc;
}
if (options.domain) {
config.qiniuImageURLPrefix = options.domain;
}
config.qiniuShouldUseQiniuFileName = options.shouldUseQiniuFileName
}
}
function upload(filePath, success, fail, options, progress, cancelTask, before, complete) {
function upload(filePath, success, fail, options, progress, cancelTask, before, complete) {
if (null == filePath) {
console.error('qiniu uploader need filePath to upload');
return;
... ... @@ -59,7 +59,7 @@ function upload(filePath, success, fail, options, progress, cancelTask, before,
if (config.qiniuUploadToken) {
doUpload(filePath, success, fail, options, progress, cancelTask, before, complete);
} else if (config.qiniuUploadTokenURL) {
getQiniuToken(function() {
getQiniuToken(function () {
doUpload(filePath, success, fail, options, progress, cancelTask, before, complete);
});
} else if (config.qiniuUploadTokenFunction) {
... ... @@ -73,14 +73,16 @@ function upload(filePath, success, fail, options, progress, cancelTask, before,
console.error('qiniu uploader need one of [uptoken, uptokenURL, uptokenFunc]');
return;
}
}
}
function doUpload(filePath, success, fail, options, progress, cancelTask, before, complete) {
function doUpload(filePath, success, fail, options, progress, cancelTask, before, complete) {
if (null == config.qiniuUploadToken && config.qiniuUploadToken.length > 0) {
console.error('qiniu UploadToken is null, please check the init config or networking');
return
}
var url = uploadURLFromRegionCode(config.qiniuRegion);
console.log('shangmian')
console.log(filePath)
var fileName = filePath.split('//')[1];
if (options && options.key) {
fileName = options.key;
... ... @@ -99,13 +101,8 @@ function doUpload(filePath, success, fail, options, progress, cancelTask, before
formData: formData,
success: function (res) {
var dataString = res.data
// // this if case is a compatibility with wechat server returned a charcode, but was fixed
// if(res.data.hasOwnProperty('type') && res.data.type === 'Buffer'){
// dataString = String.fromCharCode.apply(null, res.data.data)
// }
try {
var dataObject = JSON.parse(dataString);
//do something
var fileUrl = config.qiniuImageURLPrefix + '/' + dataObject.key;
dataObject.fileUrl = fileUrl
dataObject.imageURL = fileUrl;
... ... @@ -113,7 +110,7 @@ function doUpload(filePath, success, fail, options, progress, cancelTask, before
if (success) {
success(dataObject);
}
} catch(e) {
} catch (e) {
console.log('parse JSON failed, origin String is: ' + dataString)
if (fail) {
fail(e);
... ... @@ -126,7 +123,7 @@ function doUpload(filePath, success, fail, options, progress, cancelTask, before
fail(error);
}
},
complete: function(err) {
complete: function (err) {
complete && complete(err);
}
})
... ... @@ -138,9 +135,9 @@ function doUpload(filePath, success, fail, options, progress, cancelTask, before
cancelTask && cancelTask(() => {
uploadTask.abort()
})
}
}
function getQiniuToken(callback) {
function getQiniuToken(callback) {
wx.request({
url: config.qiniuUploadTokenURL,
success: function (res) {
... ... @@ -158,11 +155,11 @@ function getQiniuToken(callback) {
console.error('qiniu UploadToken is null, please check the init config or networking: ' + error);
}
})
}
}
function uploadURLFromRegionCode(code) {
function uploadURLFromRegionCode(code) {
var uploadURL = null;
switch(code) {
switch (code) {
case 'ECN': uploadURL = 'https://up.qiniup.com'; break;
case 'NCN': uploadURL = 'https://up-z1.qiniup.com'; break;
case 'SCN': uploadURL = 'https://up-z2.qiniup.com'; break;
... ... @@ -171,6 +168,6 @@ function uploadURLFromRegionCode(code) {
default: console.error('please make the region is with one of [ECN, SCN, NCN, NA, ASG]');
}
return uploadURL;
}
}
})();
... ...