diff --git a/app.js b/app.js
index 604c9fe..971fb91 100644
--- a/app.js
+++ b/app.js
@@ -5,131 +5,34 @@ var api = require("./api/api.js")
//公共方法和变量
App({
- editTabBar: function (taht,stoid,url) {
- var that=this;
- var th = taht
- //使用getCurrentPages可以获取当前加载中所有的页面对象的一个数组,数组最后一个就是当前页面。
- var custum_data=this.globalData.custum_data;
- var isIpx=this.globalData.isIpx;
- var is_read=this.globalData.is_read;
- //var curPageArr = getCurrentPages(); //获取加载的页面
- //var curPage = curPageArr[curPageArr.length - 1]; //获取当前页面的对象
- var curPage=th;
- var pagePath = curPage.route; //当前页面url
- if (pagePath.indexOf('/') != 0) {
- pagePath = '/' + pagePath;
- }
- if(is_read){
- if(custum_data){
- that.set_custom_nav(custum_data,isIpx,pagePath,url,curPage);
- }else{
- var tabBar = {
- 'iscustom':2,
- 'url':url,
- 'active':pagePath,
- 'isIpx':isIpx,
- cartGoodsNum:this.globalData.cartGoodsNum
- }
- curPage.setData({
- tabBar:tabBar,
- isIpx:isIpx,
- cartGoodsNum:this.globalData.cartGoodsNum
- })
- }
-
- }else{
- var isIpx = false;
- wx.getSystemInfo({
- success: (res) => {
- // console.log(res)
- let modelmes = res.model; //手机品牌
- if (modelmes.indexOf('iPhone X') != -1) { //XS,XR,XS MAX均可以适配,因为indexOf()会将包含'iPhone X'的字段都查出来
- isIpx = true
- }
- //缓存住,下次就不调用接口了
- that.globalData.isIpx=isIpx;
- getApp().request.promiseGet("/api/weshop/storeFooter/get/"+stoid, {
- }).then(res => {
- this.globalData.is_read=true;
- var e = res;
- if(e.data.code != -1){
- that.globalData.custum_data=e.data.data;
-
- var itemList = that.globalData.custum_data.data;
- itemList = JSON.parse(itemList)
-
- if(!itemList[0].weappurl){
- that.globalData.custum_data=null;
- var tabBar = {
- 'iscustom':2,
- 'url':url,
- 'active':pagePath,
- 'isIpx':isIpx,
- cartGoodsNum:this.globalData.cartGoodsNum
- }
- curPage.setData({
- tabBar:tabBar,
- isIpx:isIpx,
- cartGoodsNum:this.globalData.cartGoodsNum
- })
- }else{
- that.set_custom_nav(e.data.data,isIpx,pagePath,url,curPage);
- }
-
- }else{
- var tabBar = {
- 'iscustom':2,
- 'url':url,
- 'active':pagePath,
- 'isIpx':isIpx,
- cartGoodsNum:this.globalData.cartGoodsNum
- }
- curPage.setData({
- tabBar:tabBar,
- isIpx:isIpx,
- cartGoodsNum:this.globalData.cartGoodsNum
- })
- }
-
- })
- },
- })
- }
-
-
- },
- set_custom_nav(data,isIpx,pagePath,url,curPage){
- //缓存住,下次就不调用接口了
- var itemList = data.data;
- itemList = JSON.parse(itemList)
- //使用getCurrentPages可以获取当前加载中所有的页面对象的一个数组,数组最后一个就是当前页面。
- for (var i = 0; i < itemList.length; i++) {
- itemList[i].active = false;
- if (itemList[i].weappurl == pagePath) {
- itemList[i].active = true; //根据页面地址设置当前页面状态
- }
- }
-
- //如果当服务端返回的值有数据就渲染数据到页面
- var tabBar = {
- 'iscustom':1,
- 'url':url,
- 'active':pagePath,
- 'list':itemList,
- 'backgroundColor': data.bkcolor,
- 'selectedColor' : data.fontcolor_sele,
- 'color':data.fontcolor,
- 'length':itemList.length,
- 'isIpx':isIpx,
- cartGoodsNum:this.globalData.cartGoodsNum
- }
- curPage.setData({
- tabBar:tabBar,
- isIpx:isIpx,
- cartGoodsNum:this.globalData.cartGoodsNum
- })
- },
+ def_list:[
+ {
+ "weappurl": "pages/index/index/index",
+ "nav_name": "首页",
+ "src": t.imghost+"/miniapp/images/bar/index.png",
+ "src_sele": t.imghost+"/miniapp/images/bar/index_on.png",
+ },
+ {
+ "weappurl": "pages/goods/categoryList/categoryList",
+ "nav_name": "分类",
+ "src": t.imghost+"/miniapp/images/bar/fl.png",
+ "src_sele": t.imghost+"/miniapp/images/bar/fl_on.png"
+ },
+ {
+ "weappurl": "pages/cart/cart/cart",
+ "nav_name": "购物车",
+ "src": t.imghost+"/miniapp/images/bar/car.png",
+ "src_sele": t.imghost+"/miniapp/images/bar/car_on.png"
+ },
+ {
+ "weappurl": "pages/user/index/index",
+ "nav_name": "我的",
+ "src": t.imghost+"/miniapp/images/bar/user.png",
+ "src_sele": t.imghost+"/miniapp/images/bar/user_on.png"
+ }
+ ],
+
globalData: {
cartGoodsNum:0, //购物车总数量
isTabBar :false,
@@ -142,7 +45,7 @@ App({
config2: null, //门店配置
code: null,
heigth:0,
- user_id:null,// 3674923,// 4379287,// null,// 5682068,
+ user_id:6519826,// 3674923,// 4379287,// null,// 5682068,
buy_now:null,
picklist:null, //门店列表
wuliuprice: null, //物流价格表
@@ -168,6 +71,7 @@ App({
auth: o,
request: a,
onLaunch: function() {
+ wx.hideTabBar();
this.initExt();
var t = this.globalData.setting;
//console.log(t)
@@ -208,7 +112,6 @@ App({
console.log(t);
t.appName ? (o.appName = t.appName, o.stoid = t.stoid) : tt=1;
-
},
//首页的第一次登录
@@ -433,13 +336,9 @@ App({
"/pages/cart/cart/cart","/pages/user/index/index"];
if(arr_tabbar.indexOf(url)!=-1){
if(url.indexOf("categoryList?type=1")!=-1) this.globalData.cat_type=1;
- if(url.indexOf("categoryList?type=2")!=-1) this.globalData.cat_type=2;
- if (getCurrentPages().length > 9) {
- wx.redirectTo({url: url,}) //跳到tabbar页
- }else{
- wx.navigateTo({url: url,}) //跳到tabbar页
- }
-
+ if(url.indexOf("categoryList?type=2")!=-1) this.globalData.cat_type=2;
+ wx.switchTab({url: url,}) //跳到tabbar页
+
}else{
if (getCurrentPages().length > 9) {
wx.redirectTo({url: url,}) //跳到非tabbar页
@@ -527,6 +426,7 @@ App({
requestCardNum: function(th) {
if(!this.globalData.user_id) return false;
this.request.get("/api/weshop/cart/page", {
+ isShoeLoading:false,
data: {
store_id: this.globalData.setting.stoid,
user_id: this.globalData.user_id,
@@ -540,14 +440,13 @@ App({
num += e.data.data.pageData[i].goods_num;
}
}
-
-
+ getApp().globalData.cartGoodsNum=num;
/*---
wx.setTabBarBadge({ //tabbar右上角添加文本
index: 2, ////tabbar下标
text: '' + num //显示的内容
});--*/
- th.setData({['tabBar.cartGoodsNum']:num});
+ th.getTabBar().setData({cartGoodsNum:num});
}
});
},
@@ -606,7 +505,39 @@ App({
str = str.replace(reg, '');
}
return str;
- }
+ },
+
+ getPageIndex:function(curPage){
+
+ var pagePath = curPage.route; //当前页面url
+ if (pagePath.indexOf('/') != 0) {
+ pagePath = '/' + pagePath;
+ }
+
+ var index=0;
+
+ if(this.globalData.custum_data){
+ var itemList = this.globalData.custum_data.data;
+ itemList = JSON.parse(itemList);
+ for(var i in itemList){
+ var item=itemList[i]
+ if(pagePath.indexOf(item.weappurl)!=-1){
+ index=i;break;
+ }
+ }
+
+ }else{
+ var itemList=this.def_list;
+ for(var i in itemList){
+ var item=itemList[i]
+ if(pagePath.indexOf(item.weappurl)!=-1){
+ index=i;break;
+ }
+ }
+ }
+ return index;
+
+ }
});
diff --git a/app.json b/app.json
index bfcbcdd..5b2ae35 100644
--- a/app.json
+++ b/app.json
@@ -107,7 +107,6 @@
]
}],
-
"permission": {
"scope.userLocation": {
"desc": "获取你的位置信息"
@@ -121,6 +120,48 @@
"backgroundColor": "#ffffff",
"enablePullDownRefresh": true
},
+
+ "tabBar": {
+ "custom":true,
+ "color": "#6e6d6b",
+ "selectedColor": "#f23030",
+ "borderStyle": "white",
+ "backgroundColor": "#ffffff",
+ "list": [
+ {
+ "pagePath": "pages/index/index/index",
+ "text": "首页",
+ "iconPath": "packageA/images/bar/index.png",
+ "selectedIconPath": "packageA/images/bar/index_on.png"
+ },
+ {
+ "pagePath": "pages/goods/categoryList/categoryList",
+ "text": "分类",
+ "iconPath": "packageA/images/bar/fl.png",
+ "selectedIconPath": "packageA/images/bar/fl_on.png"
+ },
+ {
+ "pagePath": "pages/cart/cart/cart",
+ "text": "购物车",
+ "iconPath": "packageA/images/bar/car.png",
+ "selectedIconPath": "packageA/images/bar/car_on.png"
+ },
+ {
+ "pagePath": "pages/user/index/index",
+ "text": "我的",
+ "iconPath": "packageA/images/bar/user.png",
+ "selectedIconPath": "packageA/images/bar/user_on.png"
+ }
+ ]
+ },
+
"debug": false,
- "sitemapLocation": "sitemap.json"
+ "sitemapLocation": "sitemap.json",
+ "usingComponents": {
+ "customtabbar":"custom-tab-bar/index"
+ }
+
+
+
+
}
\ No newline at end of file
diff --git a/app.wxss b/app.wxss
index 736dc43..447ec7f 100644
--- a/app.wxss
+++ b/app.wxss
@@ -162,6 +162,7 @@ justify-content:flex-start;
align-items:center;
}
.flex{display: flex}
+
.ai-center{
align-items: center;
}
@@ -407,4 +408,9 @@ background: #ffe3e2;
.fs60{ font-size:60rpx;}
.flex-wrap{
flex-wrap:wrap;
+}
+
+
+.lh1 {
+ line-height: 1;
}
\ No newline at end of file
diff --git a/components/diy_goodsGroup/diy_goodsGroup.js b/components/diy_goodsGroup/diy_goodsGroup.js
index b5f9507..94a3d36 100644
--- a/components/diy_goodsGroup/diy_goodsGroup.js
+++ b/components/diy_goodsGroup/diy_goodsGroup.js
@@ -41,34 +41,57 @@ Component({
goodscount: null,
firist_type_data: null,
firist_type_curr: 0,
+ is_nav:0,
+ nav_list:null,
+ title_index:0,
},
- ready: function () {
-
- },
-
-
+ ready: function () {},
+
lifetimes: {
- attached: function() {
+ attached: function() {
+
+ //要兼容性的写法,因为有些商家都还未更新商品分组的最新的效果~~3.0公众号的html页面所以不用兼容写法
+ var nav_item=this.data.object;
+ var nav_list= this.data.object.nav_list;
+ //最新的版本才有nav_list
+ if(nav_list){
+ nav_item=nav_list[0];
+ //要算一下商品goodsid
+ for(var ij in nav_list){
+ var item=nav_list[ij];
+ var idlist="";
+ //如果商品有手动选择的时候
+ if(item.data && item.data.length>0){
+ for(var im in item.data){
+ idlist+= item.data[im]+",";
+ }
+ }
+ if(idlist) idlist=ut.sub_last(idlist);
+ nav_list[ij].idlist=idlist;
+ }
+ this.setData({nav_list:nav_list,is_nav:this.data.object.is_nav});
+ }
+
+
// 在组件实例进入页面节点树时执行
- this.data.classstyle_id = this.data.object.classstyle;
+ this.data.classstyle_id = nav_item.classstyle;
this.data.goodscount = this.data.object.goodscount;
- this.data.wgroup = this.data.object.wgroup;
+ this.data.wgroup =nav_item.wgroup;
- this.setData({
- classstyle_id: this.data.object.classstyle
- })
- if (this.data.object.goodsclass == 1) {
+
+ if (nav_item.goodsclass == 1) {
this.data.is_recommend = 1
}
- if (this.data.object.goodsclass == 2) {
+ if (nav_item.goodsclass == 2) {
this.data.is_hot = 1
}
- if (this.data.object.goodsclass == 3) {
+ if (nav_item.goodsclass == 3) {
this.data.is_new = 1
}
+
this.data.requestData = new Array();
- this.data.g_id = this.data.object.data;
+ this.data.g_id = nav_item.data;
var arr = [];
for (var i = 0; i < this.data.g_id.length; i += this.data.goodscount) {
@@ -111,7 +134,6 @@ Component({
var os=getApp().globalData.setting;
classstyle_id = classstyle_id + "";
switch (classstyle_id) {
-
//---手动选择商品---
case "1":
var str="";
@@ -120,8 +142,9 @@ Component({
}
str=str.substring(0, str.length - 1);
app.request.get("/api/weshop/goods/getgoodslistOrdby?store_id=" + os.stoid + "&goodsidlist=" + str, {
+ isShowLoading:false,
success: function(res) {
- console.log("121212");
+
if(res.data.code==0 && res.data.data){
var rData = th.data.requestData;
if (rData == null) rData=[];
@@ -137,7 +160,18 @@ Component({
}
rData = rData.concat(new_arr);
th.data.requestData = rData;
- th.setData({ goods_array: rData });
+
+ if(th.data.object.column==5){
+ var arr = new Array();
+ //--三个三个一组---
+ for(var i=0;i< rData.length;i+=3){
+ arr.push(rData.slice(i,i+3));
+ }
+ th.setData({ goods_array: arr });
+ }else{
+ th.setData({ goods_array: rData });
+ }
+
//---控制有没有加载更多的按钮---
if (th.data.firist_type_curr == th.data.firist_type_data.length) {th.setData({ goods_btn: [] }); }
else th.setData({ goods_btn: res.data});
@@ -319,6 +353,7 @@ Component({
card_init: function() {
var th = this,os=getApp().globalData.setting;
getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + getApp().globalData.user_id, {
+ isShowLoading:false,
success: function(e) {
getApp().globalData.userInfo = e.data.data;
getApp().getConfig2(function(e) {
@@ -390,6 +425,47 @@ Component({
})
},
+ //--- 点击tab的事件 ---
+ gr_set_nav:function(e){
+
+ var title_idx=e.currentTarget.dataset.index;
+ if(title_idx==this.data.title_index) return false;
+ wx.showLoading();
+
+ var nav_item=this.data.object.nav_list[title_idx];
+
+ this.data.g_id = this.data.object.nav_list[0].data;
+ var arr = [];
+ for (var i = 0; i < this.data.g_id.length; i += this.data.goodscount) {
+ arr.push(this.data.g_id.slice(i, i + this.data.goodscount));
+ }
+ this.data.firist_type_data = arr;
+ this.data.firist_type_curr=0;
+ this.data.requestData=[];
+
+ // 在组件实例进入页面节点树时执行
+ this.data.classstyle_id = nav_item.classstyle;
+ this.data.wgroup =nav_item.wgroup;
+
+ this.data.is_recommend = this.data.is_hot=this.data.is_new=0;
+ //推荐,热卖,新品
+ if (nav_item.goodsclass == 1) {
+ this.data.is_recommend = 1
+ }
+ if (nav_item.goodsclass == 2) {
+ this.data.is_hot = 1
+ }
+ if (nav_item.goodsclass == 3) {
+ this.data.is_new = 1
+ }
+
+
+ this.data.currentPage=1;
+ this.setData({goods_array:null,total:null,title_index:title_idx});
+ //初始化
+ this.init(this.data.classstyle_id, this.data.wgroup);
+ setTimeout(function(){ wx.hideLoading();},1000)
+ }
}
})
\ No newline at end of file
diff --git a/components/diy_goodsGroup/diy_goodsGroup.wxml b/components/diy_goodsGroup/diy_goodsGroup.wxml
index d197091..a89085a 100644
--- a/components/diy_goodsGroup/diy_goodsGroup.wxml
+++ b/components/diy_goodsGroup/diy_goodsGroup.wxml
@@ -1,10 +1,20 @@
+
+
+
+
+
+ {{item.title}}
+
+
+
+
-
+
¥
{{filter.toFix(item[card_field],2)}}
- {{card_name}}
+
+
+ {{card_name}}
+
@@ -98,7 +111,10 @@
¥
{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}
- {{g_filter.get_card_price(item,card_list,1)}}
+
+
+ {{g_filter.get_card_price(item,card_list,1)}}
+
@@ -142,7 +158,7 @@
-
+
@@ -186,7 +202,10 @@
¥
{{filter.toFix(item[card_field],2)}}
- {{card_name}}
+
+
+ {{card_name}}
+
@@ -235,7 +254,10 @@
¥
{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}
- {{g_filter.get_card_price(item,card_list,1)}}
+
+
+ {{g_filter.get_card_price(item,card_list,1)}}
+
@@ -281,7 +303,7 @@
-
+
@@ -323,7 +345,10 @@
¥
{{filter.toFix(item[card_field],2)}}
- {{card_name}}
+
+
+ {{card_name}}
+
@@ -372,7 +397,10 @@
¥
{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}
- {{g_filter.get_card_price(item,card_list,1)}}
+
+
+ {{g_filter.get_card_price(item,card_list,1)}}
+
@@ -412,7 +440,7 @@
-
+
@@ -455,7 +483,10 @@
¥
{{filter.toFix(item[card_field],2)}}
- {{card_name}}
+
+
+ {{card_name}}
+
@@ -504,7 +535,8 @@
¥
{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}
- {{g_filter.get_card_price(item,card_list,1)}}
+
+ {{g_filter.get_card_price(item,card_list,1)}}
@@ -540,7 +572,8 @@
-
+
+
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{aitem.goods_name}}
+
+
+ ¥{{aitem.prom_price}}
+ ¥{{aitem.market_price}}
+
+
+
+
+
+
+
+
+
+
+ ¥
+ {{filter.toFix(aitem[card_field],2)}}
+
+
+ {{card_name}}
+
+
+
+
+
+
+ ¥
+ {{aitem.market_price}}
+
+
+
+
+
+
+
+ ¥
+ {{filter.toFix(aitem.shop_price,2)}}
+
+
+
+
+
+ ¥
+ {{aitem.market_price}}
+
+
+
+
+
+
+
+
+
+
+ ¥
+ {{filter.toFix(aitem.shop_price,2)}}
+
+
+
+ ¥
+ {{aitem.market_price}}
+
+
+
+
+
+
+ ¥
+ {{filter.toFix(g_filter.get_card_price(aitem,card_list,0),2)}}
+
+
+ {{g_filter.get_card_price(aitem,card_list,1)}}
+
+
+
+
+
+
+
+
+ ¥
+ {{filter.toFix(aitem.shop_price,2)}}
+
+
+
+
+
+ ¥
+ {{aitem.market_price}}
+
+
+
+
+
+
+ ¥{{aitem.shop_price}}
+ ¥{{aitem.market_price}}
+
+
+
+ 销量:{{aitem.sales_sum}}件
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/diy_goodsGroup/diy_goodsGroup.wxss b/components/diy_goodsGroup/diy_goodsGroup.wxss
index a781e45..5a84a92 100644
--- a/components/diy_goodsGroup/diy_goodsGroup.wxss
+++ b/components/diy_goodsGroup/diy_goodsGroup.wxss
@@ -6,9 +6,9 @@
.zs_goods {
width: 700rpx;
- border: 1rpx #ddd solid;
margin-bottom: 10rpx;
margin: 0 auto;
+ overflow:hidden
}
.s1_gk_a1 {
@@ -258,16 +258,16 @@
.zs_goods_wai_ban {
display: flex;
/* padding-left: 2rpx; */
- margin-bottom: 12rpx;
+ /* margin-bottom: 12rpx; */
width: 48%;
float: left;
background: #fff;
margin-left: 1%;
- border:1rpx solid rgb(214, 214, 214);
- border-radius: 25rpx;
margin-top: 10rpx;
}
+
+
.zs_goods_2l {
width: 94%;
min-height: 300rpx;
@@ -284,6 +284,7 @@
.button-wrapper button {
/*width: 94%;*/
border: none;
+ margin-top: 10rpx;
}
.zs_t_img_2l {
@@ -389,6 +390,7 @@
float: left;
margin-bottom: 8rpx;
background-color: white;
+ overflow: hidden;
}
.zs_goods_san {
@@ -398,9 +400,9 @@
.zs_goods_3l {
width: 236rpx;
min-height: 300rpx;
- border: 2rpx #ddd solid;
margin: 0 auto;
padding: 2rpx;
+ overflow: hidden;
}
.zs_top_3l {
@@ -570,4 +572,216 @@
white-space: nowrap;
}
+.ai-center{align-items: center;}
+
+.gr_title_list{ width:95%; margin-left:2.5%}
+.gr_title_item{ padding:0 10rpx;flex-shrink: 0;}
+
+
+.border_zhijiao{
+ border:1rpx solid rgb(214, 214, 214);
+}
+.border_yuanjiao{
+ border:1rpx solid rgb(214, 214, 214);
+ border-radius: 25rpx;
+}
+.top {
+ background-color: white;
+ height: 70rpx;
+ line-height: 70rpx;
+ color: #000;
+ border-bottom: 2rpx solid #eee;
+ padding:0rpx 20rpx;
+ display: flex;
+ justify-content: space-between;
+ font-size: 32rpx;
+}
+
+.s_it {
+ width: 100%;
+ display: flex;
+ background-color: white;
+}
+
+.s_prom {
+ width: 100%;
+ background-color: white;
+ min-height: 200rpx;
+}
+
+swiper {
+ display: block;
+ height: 400rpx;
+}
+
+.right_k {
+ width: 30rpx;
+}
+.right_k image{
+ width: 30rpx;
+ height: 30rpx;
+}
+ .t_left {
+ width: 10rpx;
+ height: 38rpx;
+ background: #c4182e;
+ margin-right: 10rpx;
+}
+
+
+.sp {
+ min-height: 300rpx;
+ width: 100%;
+ background-color: white;
+ padding: 18rpx;
+ display: flex;
+}
+
+.sp .sp_top {
+ height: 220rpx;
+ min-width: 30%;
+}
+
+.sp .sp_top .s_img {
+ width: 210rpx;
+ height: 100%;
+}
+
+.sp .sp_top .s_img image {
+ width: 210rpx;
+ height: 100%;
+ position: relative;
+ top: -74rpx;
+ left: 0rpx;
+}
+
+.sp .sp_top .s_top_kill {
+ background-color: #c4182e;
+ font-size: 24rpx;
+ height: 38rpx;
+ line-height: 38rpx;
+ left: 6rpx;
+ padding: 4rpx 10rpx;
+ border-radius: 10rpx;
+ z-index: 999;
+ position: relative;
+ top: -6rpx;
+ width: 210rpx;
+ color: #fff;
+ text-align: center;
+}
+
+.po {
+ position: absolute;
+}
+
+.sp .sp_top .s_foot_kill {
+ font-size: 20rpx;
+ position: relative;
+ top: -90rpx;
+ width: 210rpx;
+ height: 38rpx;
+ line-height: 38rpx;
+ color: #fff;
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.5);
+}
+
+.sp_wz {
+ width: 210rpx;
+ min-height: 100rpx;
+}
+
+.sp_wz .sp_wzi {
+ font-size: 30rpx;
+ border-bottom: 2rpx solid #dcdcdc;
+ width: 100%;
+ text-align: left;
+ padding: 4rpx 0;
+ overflow: hidden;
+ height: 48rpx;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ line-height: 48rpx;
+}
+
+.sp_wz .sp_jg {
+ color: #c4182e;
+ font-size: 30rpx;
+ overflow: hidden;
+ display: inline-block;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ margin-right: 10rpx;
+}
+
+.sp_wz .sp_jgx {
+ color: #adadad;
+ text-decoration: line-through;
+ font-size: 24rpx;
+ overflow: hidden;
+ display: inline-block;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.one {
+ margin-left: 14rpx;
+}
+
+.sp .sp_top .s_top1_kill {
+ position: absolute;
+ background-color: #c4182e;
+ font-size: 24rpx;
+ height: 38rpx;
+ line-height: 38rpx;
+ left: 265rpx;
+ top: 100rpx;
+ padding: 0 10rpx;
+ color: white;
+ border-radius: 10rpx;
+}
+
+.sp .sp_top .s_top2_kill {
+ position: absolute;
+ background-color: #c4182e;
+ font-size: 24rpx;
+ height: 38rpx;
+ line-height: 38rpx;
+ right: 146rpx;
+ top: 100rpx;
+ padding: 0 10rpx;
+ color: white;
+ border-radius: 10rpx;
+}
+
+.sp .sp_top .s_foot1_kill {
+ font-size: 20rpx;
+ position: absolute;
+ top: 270rpx;
+ width: 210rpx;
+ height: 38rpx;
+ line-height: 38rpx;
+ color: #fff;
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.5);
+}
+
+.po1 {
+ position: absolute;
+}
+
+.sp .sp_top .s_foot2_kill {
+ font-size: 20rpx;
+ position: absolute;
+ top: 270rpx;
+ width: 210rpx;
+ height: 38rpx;
+ line-height: 38rpx;
+ color: #fff;
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.5);
+}
+
+.t_red{ color:red;}
diff --git a/components/diy_goodsGroup/g_filter.wxs b/components/diy_goodsGroup/g_filter.wxs
index 8bba9f3..bffffae 100644
--- a/components/diy_goodsGroup/g_filter.wxs
+++ b/components/diy_goodsGroup/g_filter.wxs
@@ -8,11 +8,21 @@ var get_class = function(column,position) {
if(column==3){ return "zs_t"+position+"_3l"; }
//----列表的情况-----
if(column==4 ){ return "zs_t1_x"+position; }
-
}
var g_filters = {
+ //判断边框类型
+ get_border_type:function(type){
+ if(!type) type=0;
+ var type=parseInt(type);
+ switch(type){
+ case 0: return "border_zhijiao";
+ case 1: return "border_yuanjiao";
+ }
+ return "";
+ }
+
//-- 判断是不是有等级价 --
is_has_rank:function(rank_switch,item){
if(!rank_switch) return false;
@@ -74,6 +84,8 @@ var g_filters = {
if(min_name.length>4 ) min_name=min_name.substring(0, 4);
return min_name;
},
+
+
}
@@ -81,4 +93,5 @@ module.exports = {
get_class: get_class,
is_has_rank:g_filters.is_has_rank,
get_card_price:g_filters.get_card_price,
+ get_border_type:g_filters.get_border_type,
}
diff --git a/components/goods_list/goods_list.js b/components/goods_list/goods_list.js
index 90ea97d..fffb4dc 100644
--- a/components/goods_list/goods_list.js
+++ b/components/goods_list/goods_list.js
@@ -34,6 +34,7 @@ Component({
init: function () {
var th = this;
getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + getApp().globalData.user_id, {
+ isShowLoading:false,
success: function (e) {
getApp().globalData.userInfo = e.data.data;
getApp().getConfig2(function (e) {
@@ -93,6 +94,7 @@ Component({
if (that.data.is_no_more == 0) return false;
var curPage = that.data.curPage;
getApp().request.get('/api/weshop/goods/page?page', {
+ isShowLoading:false,
data: {
is_mainshow: 1,
isonsale: 1,
diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js
new file mode 100644
index 0000000..fb3c7d6
--- /dev/null
+++ b/custom-tab-bar/index.js
@@ -0,0 +1,75 @@
+var app = getApp(), os = app.globalData.setting;
+
+Component({
+ data:{
+ fontcolor:'#6e6d6b',
+ fontcolor_sele:'#f23030',
+ backgroundColor:'#ffffff',
+ active:-1,
+ list:app.def_list,
+ cartGoodsNum:0,
+ },
+
+
+ lifetimes: {
+ attached: function() {
+
+ //购物车显示商品金额
+ this.setData({cartGoodsNum:getApp().globalData.cartGoodsNum});
+ var th=this;
+
+ var is_read=getApp().globalData.is_read;
+ var custum_data=getApp().globalData.custum_data;
+ if(is_read){
+ if(custum_data){
+ this.set_list(custum_data);
+ }
+ }else{
+ var stoid=os.stoid
+ getApp().request.promiseGet("/api/weshop/storeFooter/get/"+stoid, {
+ }).then(res => {
+ getApp().globalData.is_read=true;
+ var e = res;
+ if(e.data.code != -1){
+ var itemList = e.data.data.data;
+ itemList = JSON.parse(itemList)
+ //如果是有定义自定义导航的小程序链接
+ if(itemList[0].weappurl && itemList[0].weappurl!=""){
+ getApp().globalData.custum_data=e.data.data;
+ var custum_data=e.data.data;
+ th.set_list(custum_data);
+ }
+
+ }
+
+ })
+ }
+ },
+ },
+
+
+ methods: {
+ //设置自定义页面的列表
+ set_list:function(data){
+ var itemList = data.data;
+ itemList = JSON.parse(itemList);
+ this.setData({
+ list:itemList,
+ backgroundColor: data.bkcolor,
+ fontcolor_sele: data.fontcolor_sele,
+ fontcolor:data.fontcolor,
+ })
+
+ },
+
+ nav_goto:function(e){
+ var url=e.currentTarget.dataset.url;
+ if(!url) return false;
+ if(url[0]!='/') url='/'+url;
+ wx.switchTab({url:url,})
+ }
+
+ }
+
+
+})
\ No newline at end of file
diff --git a/custom-tab-bar/index.json b/custom-tab-bar/index.json
new file mode 100644
index 0000000..32640e0
--- /dev/null
+++ b/custom-tab-bar/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml
new file mode 100644
index 0000000..fceecd7
--- /dev/null
+++ b/custom-tab-bar/index.wxml
@@ -0,0 +1,22 @@
+
+
+
+
+ {{cartGoodsNum}}
+
+
+
+
+ {{item.nav_name}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/custom-tab-bar/index.wxss b/custom-tab-bar/index.wxss
new file mode 100644
index 0000000..934d857
--- /dev/null
+++ b/custom-tab-bar/index.wxss
@@ -0,0 +1,13 @@
+.main_bar{
+ width:100%; border-top: 1rpx solid #ebebeb; position: fixed; bottom: 0; left: 0; z-index: 10000;
+}
+.tabbar_item{
+ position:relative;height:100%;float:left;text-align:center;padding:5px 0;
+}
+.tab_img{display: flex; justify-content: center;align-items: center}
+.nav_imgage{
+ height: 56rpx; width: 56rpx;background-position: center;background-repeat: no-repeat;background-size: auto 85%;
+}
+.cart_num{
+ top:0;background-color: red;color: #fff;font-size: 20rpx;border-radius: 50%;width: 40rpx;line-height:40rpx;height: 40rpx;position: absolute;z-index: 100;right:30rpx;
+}
\ No newline at end of file
diff --git a/pages/cart/cart/cart.js b/pages/cart/cart/cart.js
index 6569fa0..1a41adc 100644
--- a/pages/cart/cart/cart.js
+++ b/pages/cart/cart/cart.js
@@ -54,14 +54,21 @@ Page({
},
onShow: function() {
+
+ if (typeof this.getTabBar === 'function' && this.getTabBar()) {
+ var index=getApp().getPageIndex(this);
+ this.getTabBar().setData({
+ active: index //数字是当前页面在tabbar的索引
+ })
+
+ getApp().requestCardNum(this);
+ }
+
var th = this;
//调用底部导航
- t.editTabBar(th,getApp().globalData.setting.stoid,getApp().globalData.url);
+ //t.editTabBar(th,getApp().globalData.setting.stoid,getApp().globalData.url);
this.getCardList();
- //--强行等待,让购物车的数量能够正确的线上
- setTimeout(function () {
- if(getApp().globalData.user_id) getApp().requestCardNum(th);
- },500)
+
//--获取是否又秒杀活动--
getApp().request.promiseGet("/api/ms/flash_sale/spikepage", {
@@ -1300,7 +1307,13 @@ Page({
var prom_id=e.currentTarget.dataset.prom_id;
var url="/pages/goods/goodsList/goodsList?prom_type=3&prom_id="+prom_id;
getApp().goto(url);
- }
-
-
+ },
+
+ //导航跳转
+ nav_goto:function(e){
+ var url=e.currentTarget.dataset.url;
+ if(!url || url=='') return;
+ if(url[0]!='/') url='/'+url;
+ getApp().goto(url);
+ }
});
\ No newline at end of file
diff --git a/pages/cart/cart/cart.wxml b/pages/cart/cart/cart.wxml
index 1a68131..cde5553 100644
--- a/pages/cart/cart/cart.wxml
+++ b/pages/cart/cart/cart.wxml
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js
index 1e0becd..9f55db1 100644
--- a/pages/giftpack/giftpacklist/giftpacklist.js
+++ b/pages/giftpack/giftpacklist/giftpacklist.js
@@ -31,8 +31,6 @@ Page({
default_color:null,
},
onLoad: function(options) {
-
-
var th = this;
th.setData({
isBuy: options.isBuy,
@@ -43,6 +41,7 @@ Page({
th.close();
},
onShow: function() {
+
//--先判断会员状态--
var user_info = getApp().globalData.userInfo;
if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) {
@@ -383,9 +382,9 @@ Page({
pagePath+="?isBuy="+this.data.isBuy;
if(this.data.isBuy==0){
- pagePath+="&lbId="+this.data.getGiftID;
- }else{
pagePath+="&orderSn="+this.data.orderSn;
+ }else{
+ pagePath+="&lbId="+this.data.getGiftID;
}
return {
diff --git a/pages/goods/categoryList/categoryList.js b/pages/goods/categoryList/categoryList.js
index 22a2279..c11299a 100644
--- a/pages/goods/categoryList/categoryList.js
+++ b/pages/goods/categoryList/categoryList.js
@@ -66,6 +66,8 @@ Page({
is_show_class:false,//是否添加新样式
status_show:0,
currentTab: 0, //预设当前项的值
+
+ load:0,
},
@@ -171,15 +173,26 @@ Page({
}
});
},
-
onShow:function(){
+
+ if (typeof this.getTabBar === 'function' && this.getTabBar()) {
+ var index=getApp().getPageIndex(this);
+ this.getTabBar().setData({
+ active: index //数字是当前页面在tabbar的索引
+ });
+ getApp().requestCardNum(this);
+ }
+
+
var that=this;
//调用底部导航
- t.editTabBar(that,getApp().globalData.setting.stoid,getApp().globalData.url);
+ //t.editTabBar(that,getApp().globalData.setting.stoid,getApp().globalData.url);
//this.requestFirstCategoris();
setTimeout(function () {
- if (getApp().globalData.user_id) getApp().requestCardNum(that);
+ //if (getApp().globalData.user_id) getApp().requestCardNum(that);
},500)
+
+ if(this.data.load) return false;
getApp().getConfig2(function (e) {
@@ -256,6 +269,8 @@ Page({
}else if(that.data.is_show_pp && that.data.select_classify_on == 220){
that.setData({ status_show: 2 });
}
+
+ that.data.load=1;
})
},
@@ -531,8 +546,11 @@ Page({
arr.push(item);
}
}
- //进行排序
- arr.sort(compare("zm"));
+ //进行排序,只有是默认排序的时候,才按首字母排序
+ if(parseInt(s.data.is_used_share)==0){
+ arr.sort(compare("zm"));
+ }
+
for(var i=0;i< arr.length;i++){
for(var j=0;j
-
+
@@ -101,7 +101,7 @@
-
+
@@ -120,7 +120,7 @@
-
+
@@ -273,7 +273,7 @@
-
+
@@ -291,7 +291,7 @@
-
+
diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml
index 6485a4b..1128d0f 100644
--- a/pages/goods/goodsInfo/goodsInfo.wxml
+++ b/pages/goods/goodsInfo/goodsInfo.wxml
@@ -825,7 +825,7 @@
收藏
-
+
{{cartGoodsNum}}
购物车
diff --git a/pages/index/index/index.js b/pages/index/index/index.js
index fe6073c..adc09aa 100644
--- a/pages/index/index/index.js
+++ b/pages/index/index/index.js
@@ -94,8 +94,8 @@ Page({
})
//调用底部导航
- getApp().globalData.url=th.data.url
- t.editTabBar(th,o.stoid,th.data.url);
+ //getApp().globalData.url=th.data.url
+ //t.editTabBar(th,o.stoid,th.data.url);
await this.init_load();
//显示的时候要开启计时器
@@ -171,6 +171,15 @@ Page({
},
async onShow() {
+ if (typeof this.getTabBar === 'function' && this.getTabBar()) {
+ var index=getApp().getPageIndex(this);
+ this.getTabBar().setData({
+ active: index //数字是当前页面在tabbar的索引
+ })
+
+ getApp().requestCardNum(this);
+ }
+
var th = this
},
//当隐藏的时候就关闭计时器
@@ -234,12 +243,12 @@ Page({
var th = this;
//----广告----
var e = this;
- await getApp().request.promiseGet("/api/weshop/ad/list?pid=2&store_id=" + o.stoid, {
+ await getApp().request.promiseGet("/api/weshop/ad/page?pid=2&store_id=" + o.stoid, {
data: {
enabled: 1
}
}).then(res => {
- var a = res.data.data;
+ var a = res.data.data.pageData;
var arr = new Array();
for (var i = 0; i < a.length; i++) {
var tt = {
@@ -832,6 +841,16 @@ Page({
if(!url || url=='') return;
if(url[0]!='/') url='/'+url;
getApp().goto(url);
- }
+ },
+
+ //导航跳转
+ nav_goto:function(e){
+ var url=e.currentTarget.dataset.url;
+ if(!url || url=='') return;
+ if(url[0]!='/') url='/'+url;
+ getApp().goto(url);
+ }
+
+
});
\ No newline at end of file
diff --git a/pages/index/index/index.wxml b/pages/index/index/index.wxml
index e13ef23..f467282 100644
--- a/pages/index/index/index.wxml
+++ b/pages/index/index/index.wxml
@@ -1,6 +1,5 @@
-
-
-
+
+
diff --git a/pages/team/team_show/team_show.js b/pages/team/team_show/team_show.js
index f5638ca..16591d5 100644
--- a/pages/team/team_show/team_show.js
+++ b/pages/team/team_show/team_show.js
@@ -60,6 +60,35 @@ Page({
redis_arr:null,
iurl:os.imghost,
+
+
+ openSpecModal: !1,
+ openSpecModal_pt: !1, //拼单的弹起,
+
+
+ //门店相关
+ ismend: 0,
+ is_sec_mend: 0,
+ sto_sele_name: "", //选中的门店名称
+ sto_sele_id: "", //选中的门店id
+ sto_sele_distr: "", //选择的门店的配送方式
+ is_show_sto_cat: 1, //是否显示门店分类
+ only_pk: null,
+ all_sto: null,
+ sec_sto: null, //选择了的门店分类
+ pickpu_list: null, //读出的所有门店list
+ def_pickpu_list: null, //一开始5个门店list
+ sec_pick_index: 0, //第二级门店选择ID
+ fir_pick_index: 0, //第一级门店选择ID
+ all_pick_list:null,//所有的门店先记录起来
+ bconfig:null,
+ def_pick_store: null, // 默认的门店
+ fir_def_store:null, //客户默认的门店的
+ lat: null, //维度
+ lon: null, //经度
+
+ is_get_local_ok: 0, //获取坐标是否完成
+
},
onLoad: function(options) {
@@ -87,20 +116,21 @@ Page({
})
}
-
this.setData({tg_id: tg_id });
- getApp().globalData.to_group=null;
+ getApp().globalData.to_group=null;
+
+ var th=this;
+ getApp().getConfig2(function(e) {
+ th.setData({ bconfig: e,});
+ th.wait_for_store_config(); //获取默认的门店
+ })
+
},
//显示加载
onShow:function(){
var tg_id = this.data.tg_id,th=this;
- this.init(tg_id);
-
- getApp().get_user_store(function (e) {
- if(e)
- th.setData({ pick_id: e.pickup_id, end_name: e.pickup_name,ii:1 })
- })
+ this.init(tg_id);
},
//c点击打开拼团弹窗
@@ -327,7 +357,8 @@ Page({
teamgroup = null, //活動从表
max_num = 0,
min_price = 0,
- th=this;
+ th=this,
+ that=th;
//获取活动从表信息team_id,listno团编号(券号)
await getApp().request.promiseGet("/api/weshop/teamgroup/get/"+os.stoid+"/"+tg_id, {
@@ -451,7 +482,21 @@ Page({
original_img = ee.data.imageurl + res.data.data.original_img,
goods = res.data.data
})
-
+
+ //显示商品规格
+ var gg = "";
+ if(goods.goods_spec=="null" || goods.goods_spec==null ) goods.goods_spec="";
+ if(goods.goods_color=="null" || goods.goods_color==null) goods.goods_color="";
+
+ if (goods.goods_spec != "" && goods.goods_color != "") {
+ gg = goods.goods_spec + "/" + goods.goods_color;
+ } else if (goods.goods_spec != "" || goods.goods_color != "") {
+ gg = goods.goods_spec + goods.goods_color;
+ } else {
+ gg = "规格1";
+ }
+ goods.gg = gg;
+
//只装5个
var ordertx2 = [], sf_num = 0, ct_nun = teamlist.ct_num;
if (max_num) {
@@ -512,7 +557,83 @@ Page({
pageteam = res.data.data.pageData;
});
- //获取下redis长度,如果团已经弄完,或者拼单已经卖完
+ //-- 获取用户的默认门店 --
+ getApp().get_user_store(function(ee) {
+ if(!ee) {
+ th.data.fir_def_store={}; //赋值空对象
+ return false;
+ }
+ //--定时器推迟一下--
+ setTimeout(function () {
+ var g_distr_type=th.data.goods.distr_type;
+ //--如果默认门店的配送方式不对,就不能被选择--
+ if(ee.distr_type!=0 && g_distr_type!=0 && ee.distr_type!=g_distr_type ){
+ th.data.fir_def_store={}; //赋值空对象
+ return false;
+ }
+
+ var appd=getApp().globalData;
+ var w_time = setInterval(function() {
+ if (that.data.is_get_local_ok == 0) return false;
+ clearInterval(w_time);
+ var distance = null;
+ var e=JSON.parse(JSON.stringify(ee));
+
+ //如果有开启近距离的话,同时距离优不一样了
+ if (that.data.lat != null) {
+ //如果经纬度有变化的话
+ if( appd.lat==that.data.lat && appd.lon==that.data.lon && e.distance>0 ){
+ that.data.fir_def_store=e;
+ that.setData({
+ def_pick_store: e,
+ sto_sele_name: e.pickup_name,
+ sto_sele_id: e.pickup_id,
+ sto_sele_distr: e.distr_type
+ })
+ }else{
+ //要用接口是获取距离,js的计算不准
+ getApp().request.promiseGet("/api/weshop/pickup/list",{
+ data:{store_id:os.stoid,pickup_id:e.pickup_id,lat:th.data.lat,lon: th.data.lon},
+ }).then(res=>{
+ if(res.data.code==0){
+ e=res.data.data.pageData[0];
+ if (e){
+ appd.pk_store=e;
+ that.data.fir_def_store=e;
+ that.setData({
+ def_pick_store: e,
+ sto_sele_name: e.pickup_name,
+ sto_sele_id: e.pickup_id,
+ sto_sele_distr: e.distr_type
+ })
+ }
+
+ }
+ })
+ }
+
+ //e.distance = distance;
+ appd.lat=that.data.lat;
+ appd.lon=that.data.lon;
+
+ }else{
+ if (e) {
+ e.distance = null;
+ that.data.fir_def_store=e;
+ that.setData({
+ def_pick_store: e,
+ sto_sele_name: e.pickup_name,
+ sto_sele_id: e.pickup_id,
+ sto_sele_distr: e.distr_type
+ })
+ }
+ }
+
+ }, 500)
+ },1000)
+ });
+
+ //获取下redis长度,如果团已经弄完,或者拼单已经卖完
//设置值
ee.setData({
ordertx2: ordertx2,
@@ -526,11 +647,10 @@ Page({
sf_arr: sf_arr
});
ee.countDown2();
- //---设置门店---
- ee.get_sto();
-
+ //---设置门店---
+ ee.get_sto();
//---定时设置一下待支付的订单---
- ee.time_out();
+ ee.time_out();
},
onHide:function(){
@@ -723,6 +843,11 @@ Page({
//------去支付,购买-------
go_pay:function () {
var th=this;
+ var def_pick_store=this.data.def_pick_store;
+ if(def_pick_store) {
+ th.data.pick_id=def_pick_store.pickup_id; //选择门店
+ th.data.end_name=def_pick_store.pickup_name;
+ }
if (th.data.pick_id == 0) return s.my_warnning("请选择门店", 0, th);
//----判断起购数----
@@ -941,5 +1066,507 @@ Page({
imageUrl: img,
}
},
+
+
+
+
+
+ closeSpecModal: function() {
+ this.setData({
+ yijian: false
+ });
+ },
+
+ close_popup: function() {
+ this.setData({
+ showStore: true
+ });
+ },
+
+
+
+ //-- 选择门店。此时的门店选择与门店有关系 --
+ choice_store: function(ee) {
+
+ var th = this;
+ var bconfig = th.data.bconfig;
+ if(!th.data.only_pk && !th.data.def_pickpu_list){
+ getApp().confirmBox("门店库存不足", null, 25000, !1);
+ return false;
+ }
+ if(th.data.only_pk && !th.data.only_pk.length){
+ getApp().confirmBox("门店库存不足", null, 25000, !1);
+ return false;
+ }
+ if(th.data.def_pickpu_list && !th.data.def_pickpu_list.length){
+ getApp().confirmBox("门店库存不足", null, 25000, !1);
+ return false;
+ }
+
+ if (bconfig.is_sort_storage) {
+ wx.getLocation({
+ type: 'wgs84',
+ success: function(res) {
+
+ th.data.lat = res.latitude;
+ th.data.lon = res.longitude;
+ th.data.is_get_local_ok = 1;
+ th.setData({
+ is_gps: 1
+ });
+ //th.onShow();
+ th.get_sto();
+ },
+ fail: function(res) {
+ //th.onShow();
+ th.data.is_get_local_ok = 1;
+ th.get_sto();
+ if (res.errCode == 2) {
+ th.setData({
+ is_gps: 0
+ });
+ if (th.data.is_gps == 0) {
+ getApp().confirmBox("请开启GPS定位", null, 25000, !1);
+ }
+ } else {
+ th.setData({
+ is_gps: "3"
+ });
+ }
+
+ }
+ })
+ }else{
+ th.data.is_get_local_ok = 1;
+ th.get_sto();
+ }
+
+ this.setData({
+ store: 1,
+ yijian: false,
+ })
+
+ },
+
+
+ //选择更多门店
+ more_store: function() {
+ this.setData({ sort_store: 1});
+ },
+
+ // 返回按钮
+ returns: function() {
+ this.setData({
+ sort_store: 0,choice_sort_store: 0
+ });
+ },
+
+
+ //-- 等待获取定位系统 --
+ wait_for_store_config: function() {
+ var th = this;
+ var t_time = setInterval(function() {
+ if (th.data.bconfig == null) false;
+ var e = th.data.bconfig;
+ if (e.is_sort_storage) {
+ wx.getLocation({
+ type: 'wgs84',
+ success: function(res) {
+ th.data.lat = res.latitude;
+ th.data.lon = res.longitude;
+ th.data.is_get_local_ok = 1;
+ },
+ fail: function(res) {
+ if (res.errCode == 2) {
+ th.setData({
+ is_gps: 0
+ });
+ if (th.data.is_gps == 0) {
+ getApp().confirmBox("请开启GPS定位", null, 10000, !1);
+ }
+
+ } else {
+ th.setData({
+ is_gps: "3"
+ });
+ }
+
+ th.data.is_get_local_ok = 1;
+ }
+ })
+ } else {
+ th.data.is_get_local_ok = 1;
+ }
+ clearInterval(t_time);
+ }, 500)
+ },
+
+
+ //---------拿出门店分类和门店------------
+ get_sto(e) {
+ var th = this,that=this;
+ var timer_get = setInterval(function() {
+ if (th.data.is_get_local_ok == 0) return false;
+ var dd = null,
+ i = getApp().request;
+ var g_distr_type = th.data.goods.distr_type;
+ if (g_distr_type != 0) {
+ dd = {
+ store_id: o.stoid,
+ distr_type: g_distr_type,
+ isstop: 0,
+ pageSize: 2000
+ }
+ } else {
+ dd = {
+ store_id: o.stoid,
+ isstop: 0,
+ pageSize: 2000
+ }
+ }
+ //如果有距离的话
+ if (th.data.lat != null) {
+ dd.lat = th.data.lat;
+ dd.lon = th.data.lon;
+ }
+ clearInterval(timer_get);
+
+ if(th.data.def_pick_store && g_distr_type!=0 && th.data.def_pick_store.distr_type!=0 && th.data.def_pick_store.distr_type!=g_distr_type ){
+ th.setData({def_pick_store:null});
+ }
+
+ //----------获取门店----------------
+ getApp().request.promiseGet("/api/weshop/pickup/list", {
+ data: dd,
+ }).then(res => {
+ var e = res;
+ if (e.data.code == 0) {
+
+ //如果有开启距离的功能,没有设置默认门店,要用最近的门店作为默认门店
+ if(dd.lat && !th.data.def_pick_store && th.data.bconfig.is_sort_storage){
+ th.setData({
+ def_pick_store:e.data.data.pageData[0],
+ sto_sele_name: e.data.data.pageData[0].pickup_name,
+ sto_sele_id: e.data.data.pageData[0].pickup_id,
+ sto_sele_distr: e.data.data.pageData[0].distr_type
+ });
+ th.data.fir_def_store=e.data.data.pageData[0];
+ }
+
+ //-- 如果有默认选择门店的时候,要把默认门店放在第一位 --
+ if (th.data.def_pick_store && (th.data.def_pick_store.distr_type==0 || th.data.def_pick_store.distr_type==g_distr_type )){
+ for (var k = 0; k < e.data.data.pageData.length; k++) {
+ if (e.data.data.pageData[k].pickup_id == th.data.def_pick_store.pickup_id) {
+ e.data.data.pageData.splice(k, 1); //删除
+ break;
+ }
+ }
+ e.data.data.pageData.splice(0, 0, th.data.def_pick_store); //添加
+ }
+
+
+ th.setData({all_pick_list:e.data.data.pageData});
+
+
+ setTimeout(function(){
+ th.deal_pickup(e); //--普通门店排版--
+ },800)
+
+ }
+ })
+ }, 200)
+
+ },
+
+ //------------处理门店,拼团活动只有线上库存---------------
+ deal_pickup(e){
+ var th=this;
+ var g_distr_type=th.data.goods.distr_type;
+ //单总量超出5个的时候
+ if (e.data.data.total > 5) {
+ getApp().request.get("/api/weshop/storagecategory/page", {
+ data: {
+ store_id: o.stoid,
+ is_show: 1,
+ pageSize: 1000
+ },
+ success: function(ee) {
+ if (ee.data.code == 0) {
+ if (ee.data.data && ee.data.data.pageData && ee.data.data.pageData.length > 0) {
+ var def_arr = new Array();
+ var ishas = 0;
+ //-- 开始就看5个门店 --
+ for (var k = 0; k < 5; k++) {
+ if (k == e.data.data.pageData.length) break;
+ def_arr.push(e.data.data.pageData[k]);
+ }
+
+ th.setData({
+ def_pickpu_list: def_arr,
+ pickpu_list: ee.data.data.pageData
+ });
+ var sto_cate = ee.data.data.pageData;
+ var sto_arr = e.data.data.pageData;
+ var newarr = new Array();
+ var qita = new Array();
+
+ //----要进行门店分组--------
+ for (var i = 0; i < sto_arr.length; i++) {
+ //找一下这个门店有没有在分类数组内
+ var find2 = 0,
+ find2name = "";
+ for (var m = 0; m < sto_cate.length; m++) {
+ if (sto_arr[i].category_id == sto_cate[m].cat_id) {
+ find2 = sto_cate[m].cat_id;
+ find2name = sto_cate[m].cat_name;
+ break;
+ }
+ }
+
+ if (newarr.length > 0) {
+ var find = 0;
+ //如果有找到,那门店就在这个分组内,否则,分类就要排在其他
+ if (find2 != 0) {
+ for (var ii = 0; ii < newarr.length; ii++) {
+ if (sto_arr[i].category_id == newarr[ii].cat_id) {
+ newarr[ii].s_arr.push(sto_arr[i]);
+ find = 1;
+ break;
+ }
+ }
+ if (find == 0) {
+ var arr0 = new Array();
+ arr0.push(sto_arr[i]);
+ var item = {
+ cat_id: find2,
+ name: find2name,
+ s_arr: arr0
+ };
+ newarr.push(item);
+ }
+ } else {
+ qita.push(sto_arr[i]);
+ }
+ } else {
+ //如果有找到,那门店就在这个分组内,否则,分类就要排在其他
+ if (find2 != 0) {
+ var arr0 = new Array();
+ arr0.push(sto_arr[i]);
+ var item = {
+ cat_id: find2,
+ name: find2name,
+ s_arr: arr0
+ };
+ newarr.push(item);
+ } else {
+ qita.push(sto_arr[i]);
+ }
+ }
+ }
+
+ //----安排其他的分类-----
+ if (qita.length > 0) {
+ var item = {
+ cat_id: -1,
+ name: "其他",
+ s_arr: qita
+ };
+ newarr.push(item);
+ }
+ th.setData({
+ is_show_sto_cat: 1,
+ all_sto: newarr
+ });
+
+ } else {
+ th.setData({
+ is_show_sto_cat: -1,
+ only_pk: e.data.data.pageData
+ });
+ //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------
+ if (!th.data.def_pick_store) {
+ th.setData({def_pick_store:e.data.data.pageData[0]})
+ }
+ }
+ } else {
+ th.setData({
+ is_show_sto_cat: -1,
+ only_pk: e.data.data.pageData
+ });
+ //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------
+ if (!th.data.def_pick_store) {
+ th.setData({def_pick_store:e.data.data.pageData[0]})
+ }
+
+ }
+ }
+ });
+ } else {
+ th.setData({
+ is_show_sto_cat: 0,
+ only_pk: e.data.data.pageData
+ });
+ //-----如果没有默认门店,要取第一个门店作为默认店------
+ if (!th.data.def_pick_store && th.data.bconfig.is_sort_storage) {
+ th.setData({
+ def_pick_store:e.data.data.pageData[0],
+ sto_sele_name: e.data.data.pageData[0].pickup_name,
+ sto_sele_id: e.data.data.pageData[0].pickup_id,
+ sto_sele_distr: e.data.data.pageData[0].distr_type
+ })
+ }
+ }
+ },
+ //---选择分类门店---
+ choice_sort_store: function(e) {
+ var index = e.currentTarget.dataset.index;
+ var region_name = e.currentTarget.dataset.region;
+ var item = this.data.all_sto[index];
+ this.setData({
+ region_name: region_name,
+ sort_store: 0,
+ choice_sort_store: 1,
+ sec_sto: item,
+ sec_pick_index: 0
+ });
+ },
+
+ choose_for_store_fir: function(e) {
+ var index_c = e.currentTarget.dataset.ind;
+ var th=this;
+ th.setData({
+ fir_pick_index: index_c
+ })
+ },
+
+ //---点击二级之后的选择---
+ choose_for_store: function(e) {
+ var index_c = e.currentTarget.dataset.ind;
+ var th=this;
+ th.setData({
+ sec_pick_index: index_c,
+ fir_pick_index: index_c
+ })
+
+ },
+
+ //确定def_pick为选择的门店
+ sure_pick: function(e) {
+ var th = this;
+ var item = null;
+
+ if (th.data.choice_sort_store == 0) {
+ var index = th.data.fir_pick_index;
+ if (th.data.is_show_sto_cat == 1) {
+ item = th.data.def_pickpu_list[index];
+ } else {
+ item = th.data.only_pk[index]; //当没有门店分类的时候
+ }
+
+ } else {
+ var index = th.data.sec_pick_index;
+ item = th.data.sec_sto.s_arr[index];
+ }
+
+
+ th.setData({
+ def_pick_store: item,
+ sto_sele_name: item.pickup_name,
+ sto_sele_id: item.pickup_id,
+ sto_sele_distr: item.distr_type,
+ store: 0,
+ choice_sort_store: 0,
+ fir_pick_index: 0
+ });
+
+
+ th.setData({
+ yijian: 1, //打开拼团购买界面
+ store: 0, //关闭门店
+ choice_sort_store: 0, //关闭门店2级
+ sort_store: 0, //关闭门店2级
+ });
+
+
+ },
+
+
+
+ //把选择的门店设置成默认的门店def_pick
+ set_def_pick: function(e) {
+ var th = this;
+ var item = null;
+ if (th.data.choice_sort_store == 0) {
+ var index = th.data.fir_pick_index;
+ if (th.data.is_show_sto_cat == 1) {
+ item = th.data.def_pickpu_list[index];
+ } else {
+ item = th.data.only_pk[index]; //当没有门店分类的时候
+ }
+ } else {
+ var index = th.data.sec_pick_index;
+ item = th.data.sec_sto.s_arr[index];
+ }
+
+
+ var store_id = o.stoid;
+ var user_id = getApp().globalData.user_id;
+ var def_pickup_id = item.pickup_id;
+
+ getApp().request.put('/api/weshop/users/update', {
+ data: {
+ user_id,
+ def_pickup_id
+ },
+ success: function(res) {
+ if (res.data.code == 0) {
+ if (th.data.choice_sort_store == 0) th.setData({
+ fir_pick_index: 0
+ });
+ getApp().globalData.pk_store = item;
+ } else {
+ getApp().my_warnning("设置默认门店地址失败",0,th)
+ }
+
+ }
+ });
+
+ th.setData({
+ def_pick_store: item,
+ sto_sele_name: item.pickup_name,
+ sto_sele_id: item.pickup_id,
+ sto_sele_distr: item.distr_type,
+ store: 0,
+ choice_sort_store: 0
+ });
+
+ //4就是拼团
+ th.setData({
+ yijian: 1, //打开拼团购买界面
+ store: 0, //关闭门店
+ choice_sort_store: 0, //关闭门店2级
+ sort_store: 0, //关闭门店2级
+ });
+
+ },
+
+
+ //-- 关闭选择门店 --
+ close_popup: function(e) {
+ var th=this;
+ this.setData({
+ store: 0,
+ choice_sort_store: 0,
+ sort_store: 0,
+ fir_pick_index:0,
+ sec_pick_index:0,
+ yijian: 1, //打开拼团购买界面
+ })
+
+ },
+
+
+
+
})
\ No newline at end of file
diff --git a/pages/team/team_show/team_show.wxml b/pages/team/team_show/team_show.wxml
index f05f48d..0007b82 100644
--- a/pages/team/team_show/team_show.wxml
+++ b/pages/team/team_show/team_show.wxml
@@ -1,189 +1,431 @@
-
-
-
-
-
-
-
-
-
-
- {{goods.goods_name}}
-
-
-
-
-
- ¥{{teamlist.price}}
-
- 零售价¥{{goods.market_price}}
-
-
-
-
- 已拼{{teamlist.buy_num}}件
-
-
-
-
-
- {{teamlist.ct_num}}人拼
-
-
-
-
-
-
-
-
-
-
-
-
-
- 拼团成功,为您节省25元
-
-
-
-
- 拼团失败
-
-
-
-
-
-
-
- 团长
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+ {{goods.goods_name}}
+
+
+
+
+
+ ¥{{teamlist.price}}
+
+ 零售价¥{{goods.market_price}}
+
+
+
+
+ 已拼{{teamlist.buy_num}}件
+
+
+
+
+
+ {{teamlist.ct_num}}人拼
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
- 剩余
- {{obj.day}} :
- {{obj.hou}} :
- {{obj.min}} :
- {{obj.sec}} 结束
-
-
+
+
+
+
+
-
-
-
-
-
-
-
+ 拼团成功,为您节省25元
+
+
+
+
+
+
+ 拼团失败
+
+
+
+
+
+
+
+
+
+ 团长
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 剩余
+ {{obj.day}} :
+ {{obj.hou}} :
+ {{obj.min}} :
+ {{obj.sec}} 结束
+
+
+
+
+
+
+
+
+
+
-
- 去参团
- 返回首页
+
+ 去参团
+ 返回首页
- 一键参团
- 返回首页
+ 一键参团
+ 返回首页
- 一键参团
- 返回首页
+ 一键参团
+ 返回首页
-
- 会员'{{tg_arr.user_name}}'待付款,若{{r_obj.min}}分{{r_obj.sec}}秒后该会员未支付您可以继续参团哦!
-
-
-
- 去参团
- 返回首页
-
-
+
+ 会员'{{tg_arr.user_name}}'待付款,若{{r_obj.min}}分{{r_obj.sec}}秒后该会员未支付您可以继续参团哦!
+
+
+
+ 去参团
+ 返回首页
+
+
-
-
-
-
-
- 展开拼团列表
-
-
-
-
-
+
+
+
+
+
+ 展开拼团列表
+
+
+
+
+
- 收起拼团列表
-
-
+ 收起拼团列表
+
+
-
-
-
- {{item.nickname}}
-
- {{item.add_time_date}} 开团
- {{item.add_time_date}} 参团
-
-
-
-
-
-
- 拼团玩法
- 开团/参团>邀请参团>人满成团
-
-
-
-
- 大家都在团
-
-
-
-
-
-
-
-
- {{item.goods_name}}
-
-
- ¥{{item.price}}
- {{item.ct_num}}人
- 参团
-
-
-
-
-
+
+
+
+ {{item.nickname}}
+
+ {{item.add_time_date}} 开团
+ {{item.add_time_date}} 参团
+
+
+
+
+
+
+ 拼团玩法
+ 开团/参团>邀请参团>人满成团
+
+
+
+
+ 大家都在团
+
+
+
+
+
+
+
+
+ {{item.goods_name}}
+
+
+ ¥{{item.price}}
+ {{item.ct_num}}人
+ 参团
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{goods.goods_name}}商品名称
+
+
+ ¥{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}
+
+
+
+ 已售:{{teamlist.buy_num}}
+ 可售:{{teamlist.goods_num-teamlist.buy_num}}
+
+
+
+
+
+
+
+
+
+ {{def_pick_store.pickup_name}}
+
+
+ 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}}
+
+
+
+ 更多门店
+
+
+
+
+ 选择门店
+
+
+
+
+ 地址:5{{def_pick_store.fulladdress}}
+
+
+
+
+ 商品属性
+
+
+ {{goods.gg}}
+
+
+
+
+
+
+
+
+ 购买数量
+
+ -
+ 1
+ +
+
+
+
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- 取货门店({{end_name}})(请选择门店)
-
-
-
+
+
+
+
+
+
-
+ -->
+
+
- < {{sele_dl_name}}
-
-
+ -->
+
+
+
+
-
-
+
+
+
+
+
+
+
-
-
-
- 立即支付
-
+
-
-
- {{toastText}}
-
-
+
+
+ {{toastText}}
+
+
+
-
-
-
- 拼团玩法介绍
-
-
- 1.开团:
- 选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;
-
- 2.参团:
- 进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;
-
- 3.成团:
- 在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;
-
- 4.组团失败:
- 在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;
-
- 5.
- 组团有效期间内,拼购商品订单不允许取消。
-
-
-
+
+
+
+ 拼团玩法介绍
+
+
+ 1.开团:
+ 选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;
+
+ 2.参团:
+ 进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;
+
+ 3.成团:
+ 在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;
+
+ 4.组团失败:
+ 在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;
+
+ 5.
+ 组团有效期间内,拼购商品订单不允许取消。
+
+
+
-
\ No newline at end of file
+
diff --git a/pages/team/team_show/team_show.wxss b/pages/team/team_show/team_show.wxss
index 22a214a..8c8c4a6 100644
--- a/pages/team/team_show/team_show.wxss
+++ b/pages/team/team_show/team_show.wxss
@@ -1,105 +1,110 @@
page {
- background-color: #eee;
+ background-color: #eee;
}
.top {
- background-color: rgb(216, 230, 220);
- color: rgb(98, 155, 13);
- text-align: center;
- height: 110rpx;
- width: 100%;
+ background-color: rgb(216, 230, 220);
+ color: rgb(98, 155, 13);
+ text-align: center;
+ height: 110rpx;
+ width: 100%;
}
.center {
- height: 240rpx;
- width: 100%;
- background:#fff;
+ height: 240rpx;
+ width: 100%;
+ background: #fff;
}
.cenleft {
- width: 240rpx;
- height: 100%;
- float: left;
- display: flex;
- justify-content: center;
- align-items: center;
+ width: 240rpx;
+ height: 100%;
+ float: left;
+ display: flex;
+ justify-content: center;
+ align-items: center;
}
.cenleft image {
- background-color: white;
- width: 200rpx;
- height: 200rpx;
+ background-color: white;
+ width: 200rpx;
+ height: 200rpx;
}
.cenrt {}
-.cenright { height: 100%;width:auto;float: left;}
+
+.cenright {
+ height: 100%;
+ width: auto;
+ float: left;
+}
.cenrtoptitle {
- float: left;
- width: 240rpx;
- height: 40rpx;
- margin-left: 12rpx;
- font-size: 28rpx;
- margin-top: 12rpx;
+ float: left;
+ width: 240rpx;
+ height: 40rpx;
+ margin-left: 12rpx;
+ font-size: 28rpx;
+ margin-top: 12rpx;
}
.cenrcen {
- height: 70rpx;
- margin-top: 35rpx;
- width: 479rpx;
+ height: 70rpx;
+ margin-top: 35rpx;
+ width: 479rpx;
}
.jg {
- font-size: 40rpx;
- margin-right: 30rpx;
+ font-size: 40rpx;
+ margin-right: 30rpx;
}
.jgx {
- font-size: 24rpx;
- color: #777;
- text-decoration: line-through;
- margin-top: 12rpx;
+ font-size: 24rpx;
+ color: #777;
+ text-decoration: line-through;
+ margin-top: 12rpx;
}
.cenrfoot {
- align-content: center;
- text-align: center;
- border: 2rpx solid red;
- border-radius: 10rpx;
- color: red;
- float: left;
- font-size: 24rpx;
- padding: 4rpx 16rpx;
- margin-top: 12rpx;
+ align-content: center;
+ text-align: center;
+ border: 2rpx solid red;
+ border-radius: 10rpx;
+ color: red;
+ float: left;
+ font-size: 24rpx;
+ padding: 4rpx 16rpx;
+ margin-top: 12rpx;
}
.body {
- background-color: white;
- height: 472rpx;
- width: 100%;
- margin-top: 4rpx;
+ background-color: white;
+ height: 472rpx;
+ width: 100%;
+ margin-top: 4rpx;
}
.d {
- font-size: 24rpx;
+ font-size: 24rpx;
}
.bodytop {
- background-color: white;
- text-align: center;
- font-size: 28rpx;
- padding-top: 16rpx;
- height:90rpx;
+ background-color: white;
+ text-align: center;
+ font-size: 28rpx;
+ padding-top: 16rpx;
+ height: 90rpx;
}
.bodytop span {
- color: red;
+ color: red;
}
.bodyimg {
- height: 155rpx;
- /* display: flex;
+ height: 155rpx;
+ /* display: flex;
justify-content: center;
align-items: center; */
@@ -107,1097 +112,2063 @@ page {
}
.bodyimg image {
- border-radius: 50rpx;
- height:96rpx;
- width:96rpx;
- margin-top: 30rpx;
- position: absolute;
+ border-radius: 50rpx;
+ height: 96rpx;
+ width: 96rpx;
+ margin-top: 30rpx;
+ position: absolute;
}
.d {
- width:101rpx;
- height:101rpx;
- display: inline-block;
-
+ width: 101rpx;
+ height: 101rpx;
+ display: inline-block;
+
}
.bodyimg span {
- background-color: #e22b44;
- color: white;
- font-size: 24rpx;
- border-radius: 6rpx;
- padding: 3rpx 10rpx;
- position: relative;
- top: 8px;
- left: 40rpx;
+ background-color: #e22b44;
+ color: white;
+ font-size: 24rpx;
+ border-radius: 6rpx;
+ padding: 3rpx 10rpx;
+ position: relative;
+ top: 8px;
+ left: 40rpx;
}
.bodyspan {
- color: red;
- text-align: center;
- font-size: 24rpx;
+ color: red;
+ text-align: center;
+ font-size: 24rpx;
}
.bodytime {
- height: 55rpx;
- width: 100%;
- display: flex;
- flex-wrap: nowrap;
- padding-left:40rpx;
-align-items:center;
+ height: 55rpx;
+ width: 100%;
+ display: flex;
+ flex-wrap: nowrap;
+ padding-left: 40rpx;
+ align-items: center;
}
.bodytimeleft {
- text-decoration: line-through;
- flex-grow: 1.7;
+ text-decoration: line-through;
+ flex-grow: 1.7;
}
.bodytimecen {
- text-align: center;
- flex-grow: 1;
+ text-align: center;
+ flex-grow: 1;
- font-size:30rpx;
- color: #000;
- width:415rpx;
+ font-size: 30rpx;
+ color: #000;
+ width: 415rpx;
}
.bodytimecen span {
- background-color: #333333;
- color: white;
- border-radius: 7rpx;
- padding-left: 20rpx;
- font-size: 30rpx;
- margin: 0 auto;
- padding-right:10rpx;
-margin-right:5px;
+ background-color: #333333;
+ color: white;
+ border-radius: 7rpx;
+ padding-left: 20rpx;
+ font-size: 30rpx;
+ margin: 0 auto;
+ padding-right: 10rpx;
+ margin-right: 5px;
+
-
}
.bodytimecen span:last-child {
- margin-right: 10rpx;
+ margin-right: 10rpx;
}
.bodytimeright {
-flex-grow:1.7;
- margin-right:72rpx;
+ flex-grow: 1.7;
+ margin-right: 72rpx;
}
.bodybutton {
- min-height: 170rpx;
- width: 90%;
- margin: 0 auto;
- text-align: center;
+ min-height: 170rpx;
+ width: 90%;
+ margin: 0 auto;
+ text-align: center;
line-height: 70rpx;
- border-radius:15rpx;
- height: auto;
- padding-top:38rpx
-
+ border-radius: 15rpx;
+ height: auto;
+ padding-top: 38rpx
}
.bodybutton button {
- height: 100%;
- width: 100%;
- background-color: red;
- color: white;
- font-size: 32rpx;
+ height: 100%;
+ width: 100%;
+ background-color: red;
+ color: white;
+ font-size: 32rpx;
}
-.bodybutton.co-w{
- color: #333;
- background-color:#adadad;
- font-size: 32rpx;
-
+.bodybutton.co-w {
+ color: #333;
+ background-color: #adadad;
+ font-size: 32rpx;
+
}
.bodyfoot {
- width: 100%;
- text-align: center;
- font-size: 28rpx;
- color: #777;
- background-color: white;
+ width: 100%;
+ text-align: center;
+ font-size: 28rpx;
+ color: #777;
+ background-color: white;
}
.pintuan {
- width: 100%;
- height: 84rpx;
- background-color: white;
- color: black;
- text-align: center;
- font-size: 36rpx;
- margin-top: 0rpx;
+ width: 100%;
+ height: 84rpx;
+ background-color: white;
+ color: black;
+ text-align: center;
+ font-size: 36rpx;
+ margin-top: 0rpx;
}
.pintuanzhou {
- float: left;
- line-height: 84rpx;
- width: 226rpx;
- background: url('https://mshopimg.yolipai.net/miniapp/images/user/wh.png') no-repeat right center;
- background-size: 42rpx;
- margin-left: -18rpx;
- font-size: 32rpx;
+ float: left;
+ line-height: 84rpx;
+ width: 226rpx;
+ background: url('https://mshopimg.yolipai.net/miniapp/images/user/wh.png') no-repeat right center;
+ background-size: 42rpx;
+ margin-left: -18rpx;
+ font-size: 32rpx;
}
.pintuanyou {
- float: right;
- color: rgb(168, 167, 167);
- line-height: 84rpx;
- font-size: 32rpx;
- margin-right: 24rpx;
+ float: right;
+ color: rgb(168, 167, 167);
+ line-height: 84rpx;
+ font-size: 32rpx;
+ margin-right: 24rpx;
}
.onegoods {
- background-color: white;
- width: 372rpx;
- height: 560rpx;
- border-left: 2rpx solid #eee;
- float: left;
+ background-color: white;
+ width: 372rpx;
+ height: 560rpx;
+ border-left: 2rpx solid #eee;
+ float: left;
}
.goodsl {
- background-color: white;
+ background-color: white;
}
.onegoodsimg {
- width: 100%;
- height: 360rpx;
- margin-bottom: 20rpx;
+ width: 100%;
+ height: 360rpx;
+ margin-bottom: 20rpx;
}
.onegoodsimg image {
- height: 100%;
- width: 100%;
+ height: 100%;
+ width: 100%;
}
.onegoodsdesc {
- color: rgb(168, 167, 167);
- padding-left: 20rpx;
- height: 100rpx;
- font-size: 32rpx;
- width: 92%;
- line-height: 100rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- padding-right: 20rpx;
+ color: rgb(168, 167, 167);
+ padding-left: 20rpx;
+ height: 100rpx;
+ font-size: 32rpx;
+ width: 92%;
+ line-height: 100rpx;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ padding-right: 20rpx;
}
-.onegoodsdesc text {
-}
+.onegoodsdesc text {}
.price {
- color: red;
- width: 100%;
+ color: red;
+ width: 100%;
}
.jgleft {
- float: left;
- width: 100rpx;
- margin-left: 20rpx;
- font-size: 40rpx;
- margin-top: -8rpx;
+ float: left;
+ width: 100rpx;
+ margin-left: 20rpx;
+ font-size: 40rpx;
+ margin-top: -8rpx;
}
.jgright {
- font-size: 28rpx;
- float: right;
- width: 120rpx;
+ font-size: 28rpx;
+ float: right;
+ width: 120rpx;
}
.jgright span {
- color: rgb(168, 167, 167);
+ color: rgb(168, 167, 167);
}
.goodslisttop {
- background-color: white;
- width: 100%;
+ background-color: white;
+ width: 100%;
}
.goodslist {
- background-color: white;
+ background-color: white;
}
.goodslisttop {
- background-color: white;
- width: 100%;
- height: 80rpx;
- margin-top: 20rpx;
- text-align: center;
+ background-color: white;
+ width: 100%;
+ height: 80rpx;
+ margin-top: 20rpx;
+ text-align: center;
}
.goodslistspan {
- margin: 0 auto;
- padding-top: 20rpx;
- display: inline-block;
- padding: 0 10px;
- background: #fff;
- margin-top: 12rpx;
- font-size: 28rpx;
- color: rgb(168, 167, 167);
+ margin: 0 auto;
+ padding-top: 20rpx;
+ display: inline-block;
+ padding: 0 10px;
+ background: #fff;
+ margin-top: 12rpx;
+ font-size: 28rpx;
+ color: rgb(168, 167, 167);
}
.xian {
- height: 50%;
- width: 100%;
- border-bottom: 4rpx solid #eee;
- float: left;
+ height: 50%;
+ width: 100%;
+ border-bottom: 4rpx solid #eee;
+ float: left;
}
.bodyselect {
- height: 50px;
- background-color: white;
- width: 100%;
- line-height: 50px;
- font-size: 28rpx;
+ height: 50px;
+ background-color: white;
+ width: 100%;
+ line-height: 50px;
+ font-size: 28rpx;
}
.changxin {
- float: left;
- width: 100%;
+ float: left;
+ width: 100%;
}
.zhangxi {
- width: 100%;
- min-height: 100rpx;
- background-color: white;
- color: black;
+ width: 100%;
+ min-height: 100rpx;
+ background-color: white;
+ color: black;
}
.img {
- width: 30%;
- height: 100rpx;
- margin-bottom: 0rpx;
- color: black;
- margin-left: 36rpx;
- font-size: 26rpx;
- display: flex;
+ width: 30%;
+ height: 100rpx;
+ margin-bottom: 0rpx;
+ color: black;
+ margin-left: 36rpx;
+ font-size: 26rpx;
+ display: flex;
}
.img span {
- height: 100rpx;
- display: block;
- line-height: 100rpx;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- padding: 0rpx;
- width: 120rpx;
+ height: 100rpx;
+ display: block;
+ line-height: 100rpx;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ padding: 0rpx;
+ width: 120rpx;
}
.zhangxi image {
- border-radius: 50rpx;
- height: 80rpx;
- width: 80rpx;
- float: left;
- margin-top: 12rpx;
- background-color: red;
- margin-right: 10rpx;
+ border-radius: 50rpx;
+ height: 80rpx;
+ width: 80rpx;
+ float: left;
+ margin-top: 12rpx;
+ background-color: red;
+ margin-right: 10rpx;
}
.zhangxi .zssj {
- height: 100rpx;
- width: 70%;
- margin-right: 40rpx;
- line-height: 100rpx;
- font-size: 26rpx;
- text-align: right;
+ height: 100rpx;
+ width: 70%;
+ margin-right: 40rpx;
+ line-height: 100rpx;
+ font-size: 26rpx;
+ text-align: right;
}
.zhangxi .zssj text {
- width: 100%;
+ width: 100%;
}
.ia {
- display: flex;
+ display: flex;
}
.zspan {
- text-align: center;
- border-bottom: 2rpx #eee solid;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 28rpx;
- color: #777;
- line-height: 100rpx;
- height:auto;
+ text-align: center;
+ border-bottom: 2rpx #eee solid;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 28rpx;
+ color: #777;
+ line-height: 100rpx;
+ height: auto;
}
.mtop {
- text-align: center;
- color: white;
- background-color: #4c4c4c;
- width: 100%;
- height: 100%;
- position: fixed;
- z-index: 5;
- top: 0;
- left: 0;
+ text-align: center;
+ color: white;
+ background-color: #4c4c4c;
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ z-index: 5;
+ top: 0;
+ left: 0;
}
.mt1 {
- margin-top: 100px;
- margin-bottom: 20rpx;
+ margin-top: 100px;
+ margin-bottom: 20rpx;
}
.mts {
- color: #e1e10b;
+ color: #e1e10b;
}
.mcou {
- font-size: 48rpx;
+ font-size: 48rpx;
}
.mfoot {
- width: 100%;
- margin-top: 700rpx;
+ width: 100%;
+ margin-top: 700rpx;
}
.mbtn {
- margin-top: 60rpx;
- width: 400rpx;
- background: #666;
- color: #fff;
- border-radius: 20rpx;
- font-size: 32rpx;
+ margin-top: 60rpx;
+ width: 400rpx;
+ background: #666;
+ color: #fff;
+ border-radius: 20rpx;
+ font-size: 32rpx;
}
.etop {
- padding-top: 200rpx;
- width: 100%;
- height: 100%;
- position: fixed;
- left: 0rpx;
- top: 0rpx;
- z-index: 12rpx;
- background-color: white;
+ padding-top: 200rpx;
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ left: 0rpx;
+ top: 0rpx;
+ z-index: 12rpx;
+ background-color: white;
}
.emyimage {
- display: flex;
- justify-content: center;
- align-items: center;
+ display: flex;
+ justify-content: center;
+ align-items: center;
}
.emyimage image {
- background-color: red;
- width: 160rpx;
- height: 160rpx;
- margin: 0 auto;
+ background-color: red;
+ width: 160rpx;
+ height: 160rpx;
+ margin: 0 auto;
}
.espan {
- font-size: 32rpx;
- margin-top: 10rpx;
+ font-size: 32rpx;
+ margin-top: 10rpx;
}
.erweima {
- margin-top: 10rpx;
- width: 100%;
+ margin-top: 10rpx;
+ width: 100%;
}
.erzhou {
- width: 200rpx;
- float: left;
- margin-right: 20rpx;
+ width: 200rpx;
+ float: left;
+ margin-right: 20rpx;
}
.erzhou image {
- background-color: blanchedalmond;
- width: 200rpx;
- height: 200rpx;
+ background-color: blanchedalmond;
+ width: 200rpx;
+ height: 200rpx;
}
.eright {
- width: 500rpx;
- float: left;
- font-size: 32rpx;
+ width: 500rpx;
+ float: left;
+ font-size: 32rpx;
}
.body {
- background-color: white;
- height: auto;
- width: 100%;
- margin-top: 4rpx;
+ background-color: white;
+ height: auto;
+ width: 100%;
+ margin-top: 4rpx;
}
.cenrtoptitle {
- float: left;
- width: 450rpx;
- font-size: 28rpx;
- margin-top: 20rpx;
-
+ float: left;
+ width: 450rpx;
+ font-size: 28rpx;
+ margin-top: 20rpx;
+
}
.cenrtop {
- margin-top: 20rpx;
- background-color: red;
- color: white;
- border-radius: 10rpx;
- padding:0 16rpx;
- font-size: 28rpx;
- float: left;
- height: 40rpx;
+ margin-top: 20rpx;
+ background-color: red;
+ color: white;
+ border-radius: 10rpx;
+ padding: 0 16rpx;
+ font-size: 28rpx;
+ float: left;
+ height: 40rpx;
}
.yijian {
- position: fixed;
- top: 0rpx;
- left: 0rpx;
- width: 100%;
- height: 100%;
- z-index: 14rpx;
- background-color: rgba(0, 0, 0, 0.3);
+ position: fixed;
+ top: 0rpx;
+ left: 0rpx;
+ width: 100%;
+ height: 100%;
+ z-index: 14rpx;
+ background-color: rgba(0, 0, 0, 0.3);
}
.buy-option {
- background: #fff;
- box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
- padding: 20rpx;
- min-height: 400rpx;
- padding-bottom: 120rpx;
- width: 100%;
- margin-top: 180rpx;
+ background: #fff;
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
+ padding: 20rpx;
+ min-height: 400rpx;
+ padding-bottom: 120rpx;
+ width: 100%;
+ margin-top: 180rpx;
}
.buy-top {
- width: 100%;
+ width: 100%;
}
.buy-image {
- margin-right: 20rpx;
- width: 320rpx;
- height: 200rpx;
- float: left;
+ margin-right: 20rpx;
+ width: 320rpx;
+ height: 200rpx;
+ float: left;
}
.buy-image image {
- width: 200rpx;
- height: 200rpx;
- background-color: burlywood;
- float: left;
+ width: 200rpx;
+ height: 200rpx;
+ background-color: burlywood;
+ float: left;
}
.buy-image text {
- margin-left: 10rpx;
- color: red;
+ margin-left: 10rpx;
+ color: red;
}
.buy-cou {
- float: right;
- width: 100rpx;
- height: 200rpx;
- background-color: white;
- font-size: 60rpx;
- color: black;
+ float: right;
+ width: 100rpx;
+ height: 200rpx;
+ background-color: white;
+ font-size: 60rpx;
+ color: black;
}
.t1 {
- float: left;
- font-size: 28rpx;
- padding-left: 4rpx;
- color: red;
- padding-top: 10rpx;
+ float: left;
+ font-size: 28rpx;
+ padding-left: 4rpx;
+ color: red;
+ padding-top: 10rpx;
}
.buy-button {
- width: 100%;
- float: left;
- margin-top: 22rpx;
+ width: 100%;
+ float: left;
+ margin-top: 22rpx;
}
.buy-button text {
- float: left;
+ float: left;
}
.stepper {
- height: 52rpx;
- float: left;
- border: 2rpx solid #ccc;
- border-radius: 6rpx;
- margin-left: 28rpx;
+ height: 52rpx;
+ float: left;
+ border: 2rpx solid #ccc;
+ border-radius: 6rpx;
+ margin-left: 28rpx;
}
/*加号和减号*/
.stepper text {
- float: left;
- width: 76rpx;
- line-height: 52rpx;
- text-align: center;
+ float: left;
+ width: 76rpx;
+ line-height: 52rpx;
+ text-align: center;
}
/*数值*/
.stepper input {
- width: 80rpx;
- height: 52rpx;
- float: left;
- margin: 0 auto;
- text-align: center;
- font-size: 24rpx;
- border-left: 2rpx solid #ccc;
- border-right: 2rpx solid #ccc;
+ width: 80rpx;
+ height: 52rpx;
+ float: left;
+ margin: 0 auto;
+ text-align: center;
+ font-size: 24rpx;
+ border-left: 2rpx solid #ccc;
+ border-right: 2rpx solid #ccc;
}
/*普通样式*/
.stepper .normal {
- color: black;
+ color: black;
}
/*禁用样式*/
.stepper .disable {
- color: #ccc;
+ color: #ccc;
}
.quhuo {
- width: 100%;
- color: rgb(51, 51, 51);
- float: left;
- margin-top: 20rpx;
+ width: 100%;
+ color: rgb(51, 51, 51);
+ float: left;
+ margin-top: 20rpx;
}
.x-z {
- width: 100%;
- float: left;
- color: rgb(51, 51, 51);
- font-size: 36rpx;
+ width: 100%;
+ float: left;
+ color: rgb(51, 51, 51);
+ font-size: 36rpx;
}
.btn {
- width: 94%;
- background-color: red;
- color: white;
- text-align: center;
- height: 88rpx;
- line-height: 88rpx;
- float: left;
- margin: 0 auto;
+ width: 94%;
+ background-color: red;
+ color: white;
+ text-align: center;
+ height: 88rpx;
+ line-height: 88rpx;
+ float: left;
+ margin: 0 auto;
}
.mck {
- min-height: 100rpx;
- width: 100%;
- border-bottom: 24rpx #eee solid;
+ min-height: 100rpx;
+ width: 100%;
+ border-bottom: 24rpx #eee solid;
}
/* pages/yi/yi.wxss */
.buy-option {
- background: #fff;
- padding: 20rpx;
- margin-top: 650rpx;
- width: 100%;
+ background: #fff;
+ padding: 20rpx;
+ margin-top: 650rpx;
+ width: 100%;
}
.buy-top {
- width: 100%;
+ width: 100%;
}
.buy-image {
- margin-right: 20rpx;
- width: 630rpx;
- height: 200rpx;
- float: left;
+ margin-right: 20rpx;
+ width: 630rpx;
+ height: 200rpx;
+ float: left;
}
.buy-image image {
- width: 200rpx;
- height: 200rpx;
- background-color: burlywood;
- float: left;
- margin-right: 16rpx;
+ width: 200rpx;
+ height: 200rpx;
+ background-color: burlywood;
+ float: left;
+ margin-right: 16rpx;
}
.buy-image text {
- margin-left: 10rpx;
- color: red;
+ margin-left: 10rpx;
+ color: red;
}
.buy-cou {
- float: right;
- width: 60rpx;
- height: 60rpx;
- background-color: white;
- font-size: 60rpx;
- color: black;
- margin-right: 40rpx;
- text-align: center;
- line-height: 60rpx;
- padding-bottom: 4rpx;
+ float: right;
+ width: 60rpx;
+ height: 60rpx;
+ background-color: white;
+ font-size: 60rpx;
+ color: black;
+ margin-right: 40rpx;
+ text-align: center;
+ line-height: 60rpx;
+ padding-bottom: 4rpx;
}
.t1 {
- font-size: 28rpx;
- padding-left: 4rpx;
- color: red;
- padding-top: 10rpx;
+ font-size: 28rpx;
+ padding-left: 4rpx;
+ color: red;
+ padding-top: 10rpx;
}
.buy-button {
- width: 100%;
- margin-top: 30rpx;
+ width: 100%;
+ margin-top: 30rpx;
}
.buy-button text {
- /*float: left;*/
- display: inline-block;
+ /*float: left;*/
+ display: inline-block;
}
.stepper {
- height: 52rpx;
- display: inline-block;
- border: 2rpx solid #ccc;
- border-radius: 6rpx;
- margin-left: 28rpx;
+ height: 52rpx;
+ display: inline-block;
+ border: 2rpx solid #ccc;
+ border-radius: 6rpx;
+ margin-left: 28rpx;
}
/*加号和减号*/
.stepper text {
- float: left;
- width: 65rpx;
- line-height: 52rpx;
- text-align: center;
+ float: left;
+ width: 65rpx;
+ line-height: 52rpx;
+ text-align: center;
}
/*数值*/
.stepper input {
- width: 84rpx;
- height: 52rpx;
- float: left;
- margin: 0 auto;
- text-align: center;
- font-size: 24rpx;
- border-left: 2rpx solid #ccc;
- border-right: 2rpx solid #ccc;
+ width: 84rpx;
+ height: 52rpx;
+ float: left;
+ margin: 0 auto;
+ text-align: center;
+ font-size: 24rpx;
+ border-left: 2rpx solid #ccc;
+ border-right: 2rpx solid #ccc;
}
/*普通样式*/
.stepper .normal {
- color: black;
+ color: black;
}
/*禁用样式*/
.stepper .disable {
- color: #ccc;
+ color: #ccc;
}
.quhuo {
- width: 100%;
- color: rgb(51, 51, 51);
- margin-top: 45rpx;
- font-size: 32rpx
+ width: 100%;
+ color: rgb(51, 51, 51);
+ margin-top: 45rpx;
+ font-size: 32rpx
}
.quhuo image {
- width: 40rpx;
- height: 40rpx;
- display: inline-block;
- position: relative;
- left: 500rpx;
+ width: 40rpx;
+ height: 40rpx;
+ display: inline-block;
+ position: relative;
+ left: 500rpx;
}
.ttxz {
- display: inline-block;
+ display: inline-block;
}
.xuanze {
- width: 100%;
- height: 80rpx;
- display: inline-block;
- border-bottom: 1rpx #e7e7e7 solid;
- font-size: 32rpx;
- line-height: 80rpx;
+ width: 100%;
+ height: 80rpx;
+ display: inline-block;
+ border-bottom: 1rpx #e7e7e7 solid;
+ font-size: 32rpx;
+ line-height: 80rpx;
}
.xuanze1 {
- width: 100%;
- color: rgb(51, 51, 51);
- height: 80rpx;
- display: inline-block;
- border-bottom: 1rpx #e7e7e7 solid;
- line-height: 80rpx;
- overflow: hidden;
+ width: 100%;
+ color: rgb(51, 51, 51);
+ height: 80rpx;
+ display: inline-block;
+ border-bottom: 1rpx #e7e7e7 solid;
+ line-height: 80rpx;
+ overflow: hidden;
}
.x-z {
- width: 100%;
- color: rgb(51, 51, 51);
- font-size: 36rpx;
- height: auto;
+ width: 100%;
+ color: rgb(51, 51, 51);
+ font-size: 36rpx;
+ height: auto;
}
.btn {
- width: 100%;
- background-color: red;
- color: white;
- text-align: center;
- height: 88rpx;
- line-height: 88rpx;
+ width: 100%;
+ background-color: red;
+ color: white;
+ text-align: center;
+ height: 88rpx;
+ line-height: 88rpx;
}
.clear {
- clear: both;
+ clear: both;
}
.fir_view {
- max-height: 300rpx;
- overflow-y: scroll;
+ max-height: 300rpx;
+ overflow-y: scroll;
}
.pop_up {
- min-height: 200rpx;
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- background-color: rgba(0, 0, 0, 0.3); font-size: 34rpx;
- color:rgb(51, 51, 51);
+ min-height: 200rpx;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ background-color: rgba(0, 0, 0, 0.3);
+ font-size: 34rpx;
+ color: rgb(51, 51, 51);
}
.end_name {
- display: inline-block;
+ display: inline-block;
}
/*mask*/
.toast_mask {
- opacity: 0;
- width: 100%;
- height: 100%;
- overflow: hidden;
- position: fixed;
- top: 0rpx;
- left: 0rpx;
- z-index: 888;
+ opacity: 0;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ position: fixed;
+ top: 0rpx;
+ left: 0rpx;
+ z-index: 888;
}
/*toast*/
.toast_content_box {
- display: flex;
- width: 100%;
- height: 100%;
- justify-content: center;
- align-items: center;
- position: fixed;
- z-index: 999;
- top: 0rpx;
+ display: flex;
+ width: 100%;
+ height: 100%;
+ justify-content: center;
+ align-items: center;
+ position: fixed;
+ z-index: 999;
+ top: 0rpx;
}
.toast_content {
- width: 50%;
- padding: 20rpx;
- background: rgba(0, 0, 0, 0.5);
- border-radius: 20rpx;
+ width: 50%;
+ padding: 20rpx;
+ background: rgba(0, 0, 0, 0.5);
+ border-radius: 20rpx;
}
.toast_content_text {
- height: 100%;
- width: 100%;
- color: #fff;
- font-size: 28rpx;
- text-align: center;
+ height: 100%;
+ width: 100%;
+ color: #fff;
+ font-size: 28rpx;
+ text-align: center;
}
.jt {
- width: 30rpx;
- height: 30rpx;
- display: inline-block;
+ width: 30rpx;
+ height: 30rpx;
+ display: inline-block;
}
-.jiajian { color: #999;}
+.jiajian {
+ color: #999;
+}
.t_wz {
- line-height: 110rpx;
- height: 110rpx;
- font-size: 36rpx;
+ line-height: 110rpx;
+ height: 110rpx;
+ font-size: 36rpx;
}
.down-arrow {
- display: inline-block;
- position: relative;
- width: 40rpx;
- height: 30rpx;
- margin-right: 20rpx;
+ display: inline-block;
+ position: relative;
+ width: 40rpx;
+ height: 30rpx;
+ margin-right: 20rpx;
}
.down-arrow::after {
- display: inline-block;
- content: " ";
- height: 18rpx;
- width: 18rpx;
- border-width: 0 2rpx 2rpx 0;
- border-color: #999;
- border-style: solid;
- transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
- transform-origin: center;
- transition: transform 0.3s;
- position: absolute;
- top: 50%;
- right: 10rpx;
- margin-top: -10rpx;
+ display: inline-block;
+ content: " ";
+ height: 18rpx;
+ width: 18rpx;
+ border-width: 0 2rpx 2rpx 0;
+ border-color: #999;
+ border-style: solid;
+ transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
+ transform-origin: center;
+ transition: transform 0.3s;
+ position: absolute;
+ top: 50%;
+ right: 10rpx;
+ margin-top: -10rpx;
}
.down-arrow1 {
- display: inline-block;
- position: relative;
- width: 40rpx;
- height: 30rpx;
- margin-right: 20rpx;
- margin-top: 12rpx;
+ display: inline-block;
+ position: relative;
+ width: 40rpx;
+ height: 30rpx;
+ margin-right: 20rpx;
+ margin-top: 12rpx;
}
.down-arrow1::after {
- display: inline-block;
- content: " ";
- height: 18rpx;
- width: 18rpx;
- border-width: 0 2rpx 2rpx 0;
- border-color: #999;
- border-style: solid;
- transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
- transform-origin: center;
- transition: transform 0.3s;
- position: absolute;
- top: 50%;
- right: 10rpx;
- margin-top: -10rpx;
+ display: inline-block;
+ content: " ";
+ height: 18rpx;
+ width: 18rpx;
+ border-width: 0 2rpx 2rpx 0;
+ border-color: #999;
+ border-style: solid;
+ transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
+ transform-origin: center;
+ transition: transform 0.3s;
+ position: absolute;
+ top: 50%;
+ right: 10rpx;
+ margin-top: -10rpx;
}
.down-arrow1::after {
- transform-origin: center;
- transform: rotate(-135deg);
- transition: transform 0.3s;
+ transform-origin: center;
+ transform: rotate(-135deg);
+ transition: transform 0.3s;
}
.goodslisttop::after {
- content: "";
- width: 100%;
- height: 1px;
- border-bottom: 1px #d4d4d4 solid;
- display: block;
- margin-top: -12px;
+ content: "";
+ width: 100%;
+ height: 1px;
+ border-bottom: 1px #d4d4d4 solid;
+ display: block;
+ margin-top: -12px;
}
.ia {
- display: flex;
- width: 100%;
+ display: flex;
+ width: 100%;
}
.bview {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5);
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.5);
}
.juzhong {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
}
.juzhong .xq {
- padding: 0 20rpx;
- background: #fff;
- font-size: 30rpx;
- padding-bottom: 20rpx;
+ padding: 0 20rpx;
+ background: #fff;
+ font-size: 30rpx;
+ padding-bottom: 20rpx;
}
.juzhong .xq .title {
- text-align: center;
- margin: 20rpx 0;
- position: relative;
- height: 50rpx;
+ text-align: center;
+ margin: 20rpx 0;
+ position: relative;
+ height: 50rpx;
}
.juzhong .xq .hs1 {
- font-size: 28rpx;
- color: #ab8f9e;
+ font-size: 28rpx;
+ color: #ab8f9e;
}
.juzhong .xq .title .close {
- position: absolute;
- top: 0;
- right: 0;
- width: 45rpx;
- height: 45rpx;
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 45rpx;
+ height: 45rpx;
}
.pt_qd {
- margin-top: 40rpx;
- height: auto;
+ margin-top: 40rpx;
+ height: auto;
}
.spec-cart-btn.w100 {
- width: 100%;
- margin-left: 0;
- height: 80rpx;
- line-height: 80rpx;
+ width: 100%;
+ margin-left: 0;
+ height: 80rpx;
+ line-height: 80rpx;
}
.bview {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5);
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.5);
}
.juzhong {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
}
.juzhong .xq {
- padding: 0 20rpx;
- background: #fff;
- font-size: 30rpx;
- padding-bottom: 20rpx;
+ padding: 0 20rpx;
+ background: #fff;
+ font-size: 30rpx;
+ padding-bottom: 20rpx;
}
.juzhong .xq .title {
- text-align: center;
- margin: 20rpx 0;
- position: relative;
- height: 50rpx;
+ text-align: center;
+ margin: 20rpx 0;
+ position: relative;
+ height: 50rpx;
}
.juzhong .xq .hs1 {
- font-size: 28rpx;
- color: #ab8f9e;
+ font-size: 28rpx;
+ color: #ab8f9e;
}
.juzhong .xq .title .close {
- position: absolute;
- top: 0;
- right: 0;
- width: 45rpx;
- height: 45rpx;
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 45rpx;
+ height: 45rpx;
}
.pt_qd {
- margin-top: 40rpx;
- height: auto;
+ margin-top: 40rpx;
+ height: auto;
}
.spec-cart-btn.w100 {
- width: 100%;
- margin-left: 0;
- height: 80rpx;
- line-height: 80rpx;
+ width: 100%;
+ margin-left: 0;
+ height: 80rpx;
+ line-height: 80rpx;
+}
+
+.show_zf_dd {
+ display: flex;
+ padding: 15rpx 40rpx;
+ justify-content: space-between;
+ font-size: 30rpx;
+ color: #666;
+}
+
+.flex_tou {
+ display: flex;
+ justify-content: center;
+ width: 100%;
+ height: 175rpx;
+ align-items: center;
+}
+
+.xc-goods-details {
+ width: 479rpx;
+ margin-top: 20rpx;
+ height: 80rpx;
+ align-items: center;
+
+}
+
+.xc-valframe {
+ border-radius: 7rpx;
+ border: 1rpx solid;
+ margin-top: 3rpx;
+}
+
+.xc-valframe .xc-frame-img {
+ width: 30rpx;
+ height: 100%;
+ background: #e22b44;
+}
+
+.xc-valframe .xc-frame-img .picture {
+ width: 25rpx;
+ height: 25rpx;
+ margin-top: 4rpx;
+
+}
+
+.bodybutton .xc-good-friend {
+ background: #fab55a;
+ border-radius: 15rpx;
+}
+
+.bodybutton .xc-home-page {
+ margin-top: 20rpx;
+ background-color: #e22b44;
+ border-radius: 15rpx;
+}
+
+.xc-ellipsis-img {
+ width: 56rpx;
+ height: 56rpx;
+ padding-top: 15rpx;
+}
+
+.xc-ptcomplete {
+ width: 74%;
+ height: 105rpx;
+ line-height: 105rpx;
+ float: right;
+
+}
+
+.xc-ptcomplete .xc-img-frame .img {
+ width: 105rpx;
+ height: 105rpx;
+ float: right;
+}
+
+.xc-ptcomplete .xc-img-frame {
+ width: 205rpx;
+ height: 105rpx;
+ margin-top: 20rpx;
+}
+
+.xc-ptcomplete .xc-end {
+ width: 283rpx;
+ text-align: right;
+}
+
+.iw {
+ padding-right: 33rpx;
+}
+
+.xc-ptcomplete .xc-img-frames {
+ width: 345rpx;
+ height: 105rpx;
+ margin-top: 20rpx;
+
+}
+
+.xc-ptcomplete .xc-img-frames .img {
+ width: 105rpx;
+ height: 105rpx;
+ float: right;
+}
+
+.bodybutton .xc-good-friend.co-w {
+ background-color: #aeaeae
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+.spec-model {
+ position: fixed;
+ bottom: 0;
+ z-index: 20;
+ background: white;
+ width: 100%;
+ /* padding: 0 30rpx; */
+ font-size: 32rpx;
+ box-sizing: border-box;
+ border-radius: 20rpx;
+ height: 72%;
+}
+
+.spec-model .pding {
+ padding: 0 30rpx;
+}
+
+.spec-goods {
+ padding: 30rpx 0 20rpx;
+ float: left;
+ width: 100%;
+ border-bottom: 2rpx solid #eee;
+}
+
+.spec-img {
+ float: left;
+ height: 186rpx;
+ width: 186rpx;
+ border: 4rpx solid #eee
+}
+
+.spec-goods-info {
+ float: left;
+ padding: 0 25rpx;
+ width: 400rpx;
+}
+
+.spec-goods-name {
+ font-size: 30rpx;
+ line-height: 35rpx;
+ height: 70rpx;
+ margin: 15rpx 20rpx 25rpx 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ color: #333;
+}
+
+.spec-goods-price {
+ color: #d60021;
+ font-size: 33rpx;
+ font-weight: bold;
+}
+
+.spec-goods-stock {
+ margin-top: 3rpx;
+ font-size: 24rpx;
+ color: #999999;
+ margin-right: 15rpx;
+}
+
+.spec-name {
+ clear: both;
+ padding: 20rpx 0;
+ font-size: 30rpx;
+ color: #333;
+}
+
+.quhuo {
+ font-size: 30rpx;
+ color: #000
+}
+
+.b_num {
+ display: flex;
+ font-size: 30rpx;
+ color: #333;
+}
+
+.count {
+ position: fixed;
+ display: flex;
+ height: 50rpx;
+ border: 1rpx solid #000;
+ font-size: 28rpx;
+ right: 30rpx;
+}
+
+
+.count>view,
+.count>input {
+ width: 60rpx;
+ height: 50rpx;
+ line-height: 50rpx;
+ text-align: center;
+}
+
+.spec_bt {
+ background: fff;
+ color: #333;
+ margin-left: 10rpx;
+ padding: 4rpx 15rpx 4rpx;
+ display: inline-block;
+ border-radius: 30rpx;
+ font-size: 24rpx;
+ border: 1rpx solid #ccc;
+ margin: 10rpx;
+ height: 40rpx;
+ line-height: 40rpx;
+}
+
+.spec_bt.act {
+ background: #d60021;
+ color: #fff;
+ border: 1rpx solid #d60021;
+}
+
+.sub {
+ border-right: 1px solid #000;
+}
+
+.add {
+ border-left: 1px solid #000;
+}
+
+.spec-btn {
+ color: black;
+ background-color: white;
+ padding: 10rpx 10rpx;
+ font-size: 26rpx;
+ line-height: 28rpx;
+ float: left;
+ border: 1rpx solid #dedede;
+ margin: 4rpx 10rpx 4rpx 0;
+ border-radius: 4rpx;
+}
+
+.spec-btn-click {
+ color: white;
+ background-color: #f23030;
+ border: 1rpx solid #f23030;
+}
+
+.spec-cart-btns {
+ width: 92%;
+ line-height: 70rpx;
+ margin: 0rpx auto;
+ margin-top: 160rpx;
+ border-radius: 20rpx;
+ position: fixed;
+ bottom: 50rpx;
+ left: 4%;
+
+}
+
+.spec-cart-btn {
+
+ width: 100%;
+ font-size: 30rpx;
+ text-align: center;
+ color: white;
+ border-radius: 40rpx;
+}
+
+.spec-add-cart {
+ background-color: #ffb03f;
+}
+
+.spec-buy {
+ background-color: #f23030;
+ /* margin-left: 34rpx; */
+}
+
+.spec-cart-disable {
+ background: #bbbbbb;
+}
+
+.spec-cart-btn-lg {
+ width: 614rpx;
+}
+
+.prom-model {
+ position: fixed;
+ bottom: 0;
+ z-index: 20;
+ background: white;
+ width: 100%;
+ padding: 0 30rpx 30rpx;
+ font-size: 32rpx;
+ box-sizing: border-box;
+ overflow-x: hidden;
+}
+
+.prom-model .prom-title {
+ text-align: center;
+ margin: 30rpx 0;
+}
+
+.prom-model .logistics-item {
+ border: 0;
+}
+
+.prom-model .item-mes {
+ width: 500rpx;
+}
+
+.integral-btn {
+ width: 100%;
+ padding: 0rpx;
+ margin: 0rpx;
+}
+
+.clear {
+ clear: both;
+}
+
+.sto_v .title,
+.sto_v .stitle {
+ border-top: 1rpx solid #dedede;
+ border-bottom: 1rpx solid #dedede;
+ height: 78rpx;
+ line-height: 78rpx;
+}
+
+.sto_v .title .tubiao,
+.sto_v .stitle .tubiao {
+ width: 32rpx;
+ height: 32rpx;
+ margin-top: 23rpx;
+}
+
+.itemlists .item {
+ border-bottom: 1rpx solid #dedede;
+ height: 72rpx;
+ line-height: 72rpx;
+ font-size: 28rpx;
+ margin: 0 10rpx;
+}
+
+.cshu {
+ margin-bottom: 30rpx;
+ margin-top: 20rpx;
+}
+
+.cshu view {
+ color: #999;
+ font-size: 30rpx;
+ margin-left: 26rpx;
+}
+
+
+/*---活动特殊显示---*/
+.prom_show {
+ height: 120rpx;
+ display: flex;
+}
+
+.prom_show .secondkill-img {
+ width: 100%;
+ height: 100%;
+}
+
+.prom_show .spike-img {
+ width: 283rpx;
+ height: 57rpx;
+ top: 35rpx;
+ left: 31rpx;
+}
+
+.prom_show .stop {
+ color: #d81731;
+ top: 17rpx;
+ right: 65rpx;
+ font-weight: 600;
+}
+
+.prom_show .start {
+ color: #009ae2;
+ top: 17rpx;
+ right: 65rpx;
+ font-weight: 600;
+}
+
+.prom_show .timeac {
+ font-size: 32rpx;
+ height: 120rpx;
+ color: #333;
+}
+
+.prom_show .timeac.left {
+ width: 66%;
+ color: #fff;
+ background: #f23030;
+}
+
+.prom_show .timeac.right {
+ width: 34%;
+ background-color: #d7d7d7;
+ text-align: center
+}
+
+.prom_show .secview .day {
+ padding-right: 10rpx;
+}
+
+.prom_show .secview .time-val {
+ width: 36rpx;
+ height: 36rpx;
+ border-radius: 7rpx;
+ line-height: 36rpx;
+}
+
+.prom_show .secview .time {
+ margin-right: 10rpx;
+ margin-left: 10rpx;
+}
+
+
+.prom_show .timeac.left view {
+ margin-left: 20rpx
+}
+
+.prom_show .timeac.left view.firview {
+ margin-top: 10rpx
+}
+
+.prom_show .timeac.left view .tr_line {
+ text-decoration: line-through;
+ font-size: 28rpx;
+}
+
+.prom_show .timeac.left view .bprice {
+ font-size: 50rpx;
+}
+
+.prom_show .timeac.right view.firview {
+ margin-top: 12rpx;
+ margin-bottom: 10rpx
+}
+
+.prom_show .timeac.right view.secview {
+ display: flex;
+ text-align: center;
+ justify-content: center;
+ flex-direction: row;
+}
+
+.prom_show .timeac.right view .tui-conutdown-box {
+ /* background: #6b6b6b; */
+ width: auto;
+ /* min-width: 45rpx; */
+ height: 45rpx;
+ color: #c4182e;
+ font-size: 27rpx;
+ text-align: center;
+ line-height: 46rpx;
+}
+
+.huise {
+ background: gray
}
-.show_zf_dd{display: flex;padding: 15rpx 40rpx; justify-content: space-between; font-size: 30rpx;color: #666;}
+.lanse {
+ background: #0199e2
+}
-.flex_tou{ display: flex; justify-content: center; width: 100%;height:175rpx;
-align-items:center;}
-.xc-goods-details{
-width:479rpx;
-margin-top:20rpx;
-height:80rpx;
-align-items:center;
+/*------拼单------*/
+.pt_view {
+ text-align: center;
+ width: 100%;
+ height: 100rpx;
+ line-height: 100rpx;
+ font-size: 26rpx
}
-.xc-valframe{
- border-radius:7rpx;
-border:1rpx solid;
-margin-top:3rpx;
+
+.pt_view .secondkill-img {
+ width: 100%;
+ height: 100%;
}
-.xc-valframe .xc-frame-img{
- width:30rpx;
-height:100%;
-background:#e22b44;
+
+.pt_fir {
+ background: #fff;
+ margin-bottom: 10rpx;
}
-.xc-valframe .xc-frame-img .picture{
- width:25rpx;
-height:25rpx;
-margin-top:4rpx;
+.pt_fir .pt_fir_title {
+ display: flex;
+ align-items: center;
+ margin-left: 10rpx;
+ margin-top: 20rpx;
+ font-size: 28rpx;
+ position: relative;
}
-.bodybutton .xc-good-friend{
-background:#fab55a;border-radius:15rpx;
+
+.pt_fir .pt_fir_title .kt_type {
+ color: #fff;
+ background: #e9030d;
+ width: 100rpx;
+ line-height: 40rpx;
+ border-radius: 6rpx;
+ margin: 0 10rpx;
+ height: 40rpx;
+ font-size: 24rpx;
+ text-align: center;
}
-.bodybutton .xc-home-page{
-margin-top:20rpx;background-color: #e22b44;border-radius:15rpx;
+
+.pt_fir .pt_fir_title .price {
+ color: #e9030d;
+ font-size: 26rpx;
}
-.xc-ellipsis-img{
-width:56rpx;
-height:56rpx;
-padding-top:15rpx;
+
+.pt_fir .pt_fir_title .bigw {
+ font-size: 36rpx;
}
-.xc-ptcomplete{
- width:74%;
-height:105rpx;
-line-height:105rpx;
-float:right;
+.pt_fir .pt_fir_title .tprice {
+ text-decoration: line-through;
+ color: #949494
}
-.xc-ptcomplete .xc-img-frame .img{
- width: 105rpx;
- height: 105rpx;
- float: right;
+
+.pt_fir .pt_fir_title .tprice.ml50 {
+ margin-left: 50rpx
}
-.xc-ptcomplete .xc-img-frame{
- width:205rpx;
- height: 105rpx;
- margin-top:20rpx;
+
+.pt_fir .pt_fir_title .js {
+ padding: 0 15rpx;
+ height: 40rpx;
+ background: #e9030d;
+ text-align: center;
+ border-radius: 8rpx;
+ color: #fff;
+ margin-left: 10rpx;
}
-.xc-ptcomplete .xc-end{
- width:283rpx;
-text-align:right;
+
+.pt_fir .pt_fir_title .tuannum {
+ color: #e9030d;
+ position: absolute;
+ right: 20rpx;
+ font-size: 26rpx;
}
-.iw{
-padding-right:33rpx;
+
+.pding {
+ padding-top: 20rpx;
+ padding-left: 20rpx;
+ height: 81%;
+ padding-right: 20rpx;
+ font-size: 26rpx;
+ color: #ea120f
}
-.xc-ptcomplete .xc-img-frames{
- width:345rpx;
-height:105rpx;
-margin-top:20rpx;
+.pdres {
+ margin-left: 10rpx;
+ color: #8f8f94
}
-.xc-ptcomplete .xc-img-frames .img{
- width: 105rpx;
- height: 105rpx;
- float: right;
+
+.ptgz {
+ position: relative;
+ font-size: 30rpx;
+ padding-left: 20rpx;
+ margin-top: 10rpx;
+ overflow: hidden
}
-.bodybutton .xc-good-friend.co-w{
- background-color:#aeaeae
-}
\ No newline at end of file
+.shuxian {
+ width: 6rpx;
+ height: 28rpx;
+ background: #ea120f;
+ display: inline-block;
+ top: 5rpx;
+ position: relative;
+ margin-right: 5rpx
+}
+
+.ptgz_an {
+ position: absolute;
+ top: 5rpx;
+ right: 6rpx
+}
+
+.ptgz_an .arrow-two {
+ width: 18rpx;
+ height: 18rpx;
+ border-color: #da0b31;
+ margin-top: 30rpx;
+}
+
+.pt_fir.se {
+ height: auto;
+ margin-bottom: 10rpx
+}
+
+.t_gz {
+ padding: 10rpx 20rpx;
+ font-size: 28rpx
+}
+
+.pt_fir.se1 {
+ height: auto;
+ margin: 0
+}
+
+.pt_fir.se2 {
+ height: auto;
+ margin: 0;
+ border-top: 6rpx solid #eeeeee;
+ border-bottom: 2rpx solid #eeeeee;
+}
+
+.pt_hb {
+ height: 78rpx;
+ line-height: 75rpx;
+ position: relative;
+ font-size: 32rpx;
+ overflow: hidden;
+ width: 695rpx;
+ margin-left: 28rpx;
+ border-bottom: 1rpx solid #E5E5E5
+}
+
+.ptgz_an.xq {
+ font-size: 32rpx;
+ color: #d40024
+}
+
+.wf {
+ display: flex;
+ padding: 20rpx 0;
+}
+
+.wf .item {
+ width: 24.5%;
+ text-align: center;
+ font-size: 26rpx;
+ color: #666
+}
+
+.wf .item .item_txy {
+ position: relative;
+ width: 60rpx;
+ height: 60rpx;
+ background: #ea120f;
+ border-radius: 50%;
+ left: 50%;
+ margin-left: -30rpx;
+ border: 3px #dfdfdf solid;
+ text-align: center;
+ line-height: 60rpx;
+ color: #fff;
+ margin-bottom: 10rpx;
+}
+
+.wf .item .item_txy.hs {
+ background: #cbcbcb;
+}
+
+.po {
+ margin-bottom: 20rpx;
+}
+
+.cart-btn.line-h {
+ line-height: 26rpx;
+}
+
+.cart-btn .fir-v {
+ margin-top: 10rpx;
+}
+
+.hyt {
+ padding: 0 20rpx;
+ font-size: 30rpx;
+ display: flex;
+ align-items: center;
+ margin-top: 10rpx;
+}
+
+.hyt .r_f {
+ color: #e9120f;
+ font-size: 26rpx;
+ position: relative;
+ top: 3rpx
+}
+
+.hyt .byj {
+ color: #e9120f;
+ font-size: 32rpx;
+ position: relative;
+ top: 5rpx
+}
+
+.pt_fir .pt_fir_title.no-mar-b {
+ margin-bottom: 0;
+ padding-bottom: 10rpx;
+ margin-left: 20rpx
+}
+
+.pt_fir .pt_fir_title.boder-1 {
+ border-bottom: 1rpx #e7e7e7 solid
+}
+
+.jie_price {
+ padding: 10rpx 30rpx;
+}
+
+.jie_price_title {
+ font-size: 30rpx;
+ color: #a26270;
+ margin-bottom: 10rpx
+}
+
+.price_list {
+ display: flex;
+ width: 100%;
+}
+
+.price_item {
+ width: 25%;
+ font-size: 28rpx;
+ color: #4c336c
+}
+
+.pt_fir.se2 .zzk-1 {
+ margin-top: 23rpx;
+ font-size: 30rpx;
+ position: relative;
+ margin-bottom: 30rpx;
+ border-left: 4rpx solid red;
+ margin-left: 14rpx;
+ height: 30rpx;
+ line-height: 30rpx;
+ padding-left: 5rpx;
+}
+
+.ckgd {
+ position: absolute;
+ top: 0;
+ right: 57rpx;
+ color: #d70025;
+ font-size: 32rpx;
+}
+
+.ckgd .arrow-one {
+ width: 18rpx;
+ height: 18rpx;
+ border-color: #da0b31;
+ margin-top: 5rpx;
+}
+
+.bview {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.5);
+}
+
+.juzhong {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+}
+
+.juzhong .xq {
+ padding: 0 20rpx;
+ background: #fff;
+ font-size: 30rpx;
+ padding-bottom: 20rpx;
+}
+
+.juzhong .xq .title {
+ text-align: center;
+ margin: 20rpx 0;
+ position: relative;
+ height: 50rpx;
+}
+
+.juzhong .xq .hs1 {
+ font-size: 28rpx;
+ color: #ab8f9e
+}
+
+.juzhong .xq .title .close {
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 45rpx;
+ height: 45rpx;
+}
+
+.pt_qd {
+ margin-top: 40rpx;
+ height: auto;
+}
+
+.spec-cart-btn.w100 {
+ width: 95%;
+ margin-left: 0;
+ height: 75rpx;
+ line-height: 75rpx;
+ margin: auto;
+}
+
+.sto_v {
+ color: #333;
+}
+
+.ellipsis {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+
+
+
+/* 房子图标 */
+.stores-img {
+ width: 40rpx;
+ height: 35rpx;
+ margin-right: 10rpx;
+}
+
+.right-arrow {
+ width: 15rpx;
+ height: 15rpx;
+ border-top: 2rpx solid #d70026;
+ border-right: 2rpx solid #d70026;
+ transform: rotate(45deg);
+ display: inline-block;
+ margin-bottom: 3rpx;
+}
+
+.distance{
+ padding-left: 15rpx;
+ padding-right: 15rpx;
+ background: #eee;
+ border-radius: 20rpx;
+ margin-right: 5rpx;
+ color: #999;
+ height: 38rpx;
+ line-height: 38rpx;
+}
+
+.shop_name{
+ margin-right: 10rpx;
+}
+
+.xc-distance-top{
+ margin-top: 10rpx;
+}
+
+
+.popup-frame{
+ position: fixed;
+ /* bottom:99rpx; */
+ bottom: 0;
+ z-index: 20;
+ background: white;
+ width: 100%;
+ border-radius: 20rpx 20rpx 0 0;
+ height: 72%;
+}
+
+.popup-top{
+ border-bottom: 1rpx solid #eee;
+ height: 155rpx;
+ width: 95%;
+ margin: auto;
+ line-height: 155rpx;
+
+}
+
+
+/* .flex-space-between{
+ display: flex;
+ justify-content:space-between;
+} */
+
+.modal-closes {
+ position: absolute;
+ right: 30rpx;
+ top: -15rpx;
+ height: 25rpx;
+}
+
+.choose_more{
+ margin-top: 40rpx;
+ margin-right: 20rpx;
+
+}
+.choose_mores{
+ margin-top: 30rpx;
+ margin-right: 15rpx;
+
+}
+
+.bg_rights{
+ border-top: 2rpx solid ;
+ border-right: 2rpx solid ;
+ transform: rotate(45deg);
+ display: inline-block;
+ width: 15rpx;height:15rpx;
+ border-color: #da0b31;
+}
+
+
+.mongolia-layer{
+ position: fixed;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 11;
+ background: rgba(0,0,0,0.4);
+ width: 100%;
+ height: 91.9%;
+}
+
+
+
+
+.store-list{
+ width: 95%;
+ height: 72%;
+ overflow-y: scroll;
+ margin: auto;
+}
+
+.store-list .store_choose{
+ width: 100%;
+ height: 120rpx;
+ line-height: 125rpx;
+ border-bottom: 1rpx solid #eee;
+}
+
+.store-list .store_choose .store{
+ width: 100%;
+ margin: auto;
+ line-height: 37rpx;
+ padding-left: 20rpx;
+}
+
+.xc-hook{
+ width: 35rpx;
+ height: 35rpx;
+ transform: rotate(-145deg);
+ line-height: 37rpx;
+ text-align: center;
+}
+
+.butttem5{
+ margin-bottom: 5rpx;
+}
+
+.address-frame{
+ width: 93%;
+ margin-left: 7rpx;
+}
+
+.store-bottom{
+ width: 85%;
+ margin: auto;
+ height: 70rpx;
+ }
+
+ .determine{
+ width: 260rpx;
+ height: 55rpx;
+ border-radius: 50rpx;
+ line-height: 55rpx;
+ }
+
+ .default{
+ width: 260rpx;
+ height: 55rpx;
+ border:3rpx solid #c8c8c8;
+ border-radius: 50rpx;
+ line-height: 55rpx;
+ }
+
+ .sort_store_list .sort-store-frame .sort-store {
+ width: 94.5%;
+ margin: auto;
+ }
+
+
+ .sort_store_list .sort-store-frame{
+ width: 100%;
+ height: 100rpx;
+ line-height:100rpx;
+ border-bottom: 1rpx solid #eee;
+ }
+
+ .black_rights-frame .black_rights{
+ border-top: 3rpx solid;
+ border-right: 3rpx solid;
+ transform: rotate(45deg);
+ display: inline-block;
+ width: 20rpx;
+ height: 20rpx;
+ }
+
+
+ .sort_store_list{
+ height: 82%;
+ overflow: hidden;
+ overflow-y: scroll;
+ width: 95%;
+ margin: auto;
+ }
+
+ .xc-hooks{
+ width: 30rpx;
+ height: 30rpx;
+ border: 1rpx solid #999;
+}
diff --git a/pages/user/assistance/task_assistance.js b/pages/user/assistance/task_assistance.js
index 6c7254b..408355e 100644
--- a/pages/user/assistance/task_assistance.js
+++ b/pages/user/assistance/task_assistance.js
@@ -64,7 +64,8 @@ Page({
djs: "", //定时器的显示
//*********************************************end
- Hei: 0,
+ // Hei: 0,
+ max_sw_height: 0,
},
/**
@@ -1076,16 +1077,34 @@ Page({
},
- imgH:function(e){
+ // imgH:function(e){
- var winWid = wx.getSystemInfoSync().windowWidth; //获取当前屏幕的宽度
- var imgh = e.detail.height; //图片高度
- var imgw = e.detail.width;
- var swiperH = winWid*0.827*imgh/imgw + "px" //等比设置swiper的高度。 即 屏幕宽度 / swiper高度 = 图片宽度 / 图片高度 ==》swiper高度 = 屏幕宽度 * 图片高度 / 图片宽度
- console.log('imgload',winWid, imgh, imgw, swiperH);
+ // var winWid = wx.getSystemInfoSync().windowWidth; //获取当前屏幕的宽度
+ // var imgh = e.detail.height; //图片高度
+ // var imgw = e.detail.width;
+ // var swiperH = winWid*0.827*imgh/imgw + "px" //等比设置swiper的高度。 即 屏幕宽度 / swiper高度 = 图片宽度 / 图片高度 ==》swiper高度 = 屏幕宽度 * 图片高度 / 图片宽度
+ // console.log('imgload',winWid, imgh, imgw, swiperH);
+ // this.setData({
+ // Hei:swiperH //设置高度
+ // })
+
+ // imgs
+ // },
+
+
+ imageLoad: function(e) {
+ var winWid = wx.getSystemInfoSync().windowWidth;
+ var imgwidth = e.detail.width;
+ var imgheight = e.detail.height;
+ //宽高比
+ var ratio = imgwidth / imgheight;
+ //计算的高度值
+ var viewHeight = winWid / ratio * 0.8;
+ if (this.data.max_sw_height < viewHeight) {
this.setData({
- Hei:swiperH //设置高度
- })
+ max_sw_height: viewHeight
+ });
+ };
},
})
diff --git a/pages/user/assistance/task_assistance.wxml b/pages/user/assistance/task_assistance.wxml
index 9b09f4d..46af5bc 100644
--- a/pages/user/assistance/task_assistance.wxml
+++ b/pages/user/assistance/task_assistance.wxml
@@ -1,5 +1,6 @@
-
+
+
@@ -16,15 +17,15 @@
-
+
-
+
-
+
礼包详情
@@ -65,7 +66,8 @@
-
+
+
diff --git a/pages/user/assistance/task_assistance.wxss b/pages/user/assistance/task_assistance.wxss
index da90f4b..f6b50e1 100644
--- a/pages/user/assistance/task_assistance.wxss
+++ b/pages/user/assistance/task_assistance.wxss
@@ -16,6 +16,7 @@ page {
/* height:65%; */
background-repead: no-repead;
background-size: 100% 100%;
+ padding-bottom: 50rpx;
}
.top-frame {
@@ -236,4 +237,9 @@ line-height: 48rpx;
.bottom{
margin-bottom: 50rpx;
margin-top: 20rpx;
+}
+
+.rel {
+ display: flex;
+ align-items: center;
}
\ No newline at end of file
diff --git a/pages/user/index/index.js b/pages/user/index/index.js
index 89e2470..f4f66d2 100644
--- a/pages/user/index/index.js
+++ b/pages/user/index/index.js
@@ -76,6 +76,16 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
+
+
+ if (typeof this.getTabBar === 'function' && this.getTabBar()) {
+ var index=getApp().getPageIndex(this);
+ this.getTabBar().setData({
+ active: index //数字是当前页面在tabbar的索引
+ });
+
+ getApp().requestCardNum(this);
+ }
this.is_assistance();
var stoid = app_d.setting.stoid;
@@ -85,7 +95,6 @@ Page({
cur_g_num = 0;
//调用底部导航
- getApp().editTabBar(th,getApp().globalData.setting.stoid,getApp().globalData.url);
getApp().get_isbuy(th.setappdata);
setTimeout(function () {
if (getApp().globalData.user_id) getApp().requestCardNum(th);
@@ -638,9 +647,14 @@ Page({
}
})
- }
-
-
-
+ },
+
+ //导航跳转
+ nav_goto:function(e){
+ var url=e.currentTarget.dataset.url;
+ if(!url || url=='') return;
+ if(url[0]!='/') url='/'+url;
+ getApp().goto(url);
+ }
})
diff --git a/pages/user/index/index.wxml b/pages/user/index/index.wxml
index 785ebb5..561a36f 100644
--- a/pages/user/index/index.wxml
+++ b/pages/user/index/index.wxml
@@ -1,5 +1,5 @@
-
-
+