diff --git a/app.json b/app.json
index a8cf5e3..2a1a647 100644
--- a/app.json
+++ b/app.json
@@ -160,7 +160,10 @@
"pages": [
"pages/presell/list/list",
"pages/presell/cart/cart",
- "pages/presell/goodsInfo/goodsInfo"
+ "pages/presell/goodsInfo/goodsInfo",
+ "pages/goods/distributionCategoryList/index",
+ "pages/goods/goodsList/goodsList",
+ "pages/payForAnother/payForAnother"
]
}
diff --git a/app.wxss b/app.wxss
index 683d317..ffb6526 100644
--- a/app.wxss
+++ b/app.wxss
@@ -630,7 +630,7 @@ background: #ffe3e2;
font-size: 20rpx;
}
.fs22{
- font-size: 22rpx;
+ font-size: 22rpx !important;
}
.fs24{
font-size: 24rpx !important;
@@ -708,9 +708,9 @@ background: #ffe3e2;
/* 图标字体(ty) */
@font-face {
font-family: 'iconfont'; /* Project id 2054717 */
- src: url('//at.alicdn.com/t/font_2054717_x1u9bka6w7.woff2?t=1630899459000') format('woff2'),
- url('//at.alicdn.com/t/font_2054717_x1u9bka6w7.woff?t=1630899459000') format('woff'),
- url('//at.alicdn.com/t/font_2054717_x1u9bka6w7.ttf?t=1630899459000') format('truetype');
+ src: url('//at.alicdn.com/t/font_2054717_wjskcibo8k8.woff2?t=1631859488939') format('woff2'),
+ url('//at.alicdn.com/t/font_2054717_wjskcibo8k8.woff?t=1631859488939') format('woff'),
+ url('//at.alicdn.com/t/font_2054717_wjskcibo8k8.ttf?t=1631859488939') format('truetype');
}
.iconfont {
@@ -721,6 +721,10 @@ background: #ffe3e2;
-moz-osx-font-smoothing: grayscale;
}
+
+.icon-arrowup:before {
+ content: "\e61e";
+}
.icon-aixin:before {
content: "\e8c3";
}
diff --git a/components/diy_picMax/diy_picMax.wxml b/components/diy_picMax/diy_picMax.wxml
index eb44d4d..f344a39 100644
--- a/components/diy_picMax/diy_picMax.wxml
+++ b/components/diy_picMax/diy_picMax.wxml
@@ -2,15 +2,15 @@
-
-
+
+
-
+
-
+
diff --git a/components/diy_picMax/diy_picMax.wxss b/components/diy_picMax/diy_picMax.wxss
index 14553f9..433579f 100644
--- a/components/diy_picMax/diy_picMax.wxss
+++ b/components/diy_picMax/diy_picMax.wxss
@@ -1,7 +1,7 @@
.picMax{
width: 100%;
overflow: hidden;
- margin-top: -0.01rpx;
+ /* margin-top: -0.01rpx; */
display: flex;
flex-wrap: wrap;
}
@@ -9,11 +9,12 @@
float: left; margin: 0; padding: 0;font-size: 0;
}
/* .pic_item image{width: 100%;} */
-.pic_item image{width: 100.1%;vertical-align: bottom; margin: 0;margin-left: -1rpx;font-size: 0; }
-.picMax-clear{clear: both;}
+/* .pic_item image{width: 100%;vertical-align: bottom; margin: 0;margin-left: -1rpx;font-size: 0; } */
+.pic_item image{width: 100%;vertical-align: bottom; margin: 0;display: block;}
+/* .picMax-clear{clear: both;} */
.mgt2 {
- margin-top: -2rpx;
+ margin-bottom: -2rpx !important;
}
.picMax2{
@@ -22,11 +23,17 @@
.pic_item2{
position:absolute;top:0; left:0;
}
-.pic_item2 image{}
+.pic_item2 image{
+ display: block;
+ vertical-align: top;
+ vertical-align: text-top;
+ vertical-align: bottom;
+ vertical-align: text-bottom;
+}
/* .width_1{width: 187.5rpx}.width_2{width: 375rpx;}.width_3{width: 562.5rpx}.width_4{width:750rpx;} */
.width_1{width: 25%}.width_2{width: 50%}.width_3{width: 75%}.width_4{width:100%}
-.height_1{height: 187.5rpx;}.height_2{height: 375rpx;}.height_3{height: 562.5rpx}.height_4{height: 748rpx;}
-.mar_x1{margin-left:187.5rpx;}.mar_x2{margin-left:375rpx;}.mar_x3{margin-left:562.5rpx}.mar_x4{margin-left: 748rpx;}
-.mar_y1{margin-top: 187.5rpx;}.mar_y2{margin-top: 375rpx;}.mar_y3{margin-top: 562.5rpx}.mar_y4{margin-top: 748rpx;}
\ No newline at end of file
+.height_1{height: 186rpx;}.height_2{height: 372rpx;}.height_3{height: 558rpx}.height_4{height: 744rpx;}
+.mar_x1{left:187rpx;}.mar_x2{left:374rpx;}.mar_x3{left:561rpx}.mar_x4{left: 748rpx;}
+.mar_y1{top: 186rpx;}.mar_y2{top: 372rpx;}.mar_y3{top: 558rpx}.mar_y4{top: 744rpx;}
\ No newline at end of file
diff --git a/components/diy_store_select/diy_store_select.js b/components/diy_store_select/diy_store_select.js
index c83e633..9fb9018 100644
--- a/components/diy_store_select/diy_store_select.js
+++ b/components/diy_store_select/diy_store_select.js
@@ -218,10 +218,18 @@ Component({
}
e.splice(0, 0, th.data.top_store); //添加
}
-
-
+
+ var ishas_cate=0;
+ for(let i in e){
+ let item=e[i];
+ if(item.category_id>0) {
+ ishas_cate=1;break;
+ }
+ }
+
+
//单总量超出5个的时候
- if (e.length > 5) {
+ if (e.length > 10 && ishas_cate) {
getApp().request.get("/api/weshop/storagecategory/page", {
data: {
store_id: o.stoid,
diff --git a/components/nav_box/nav_box.wxss b/components/nav_box/nav_box.wxss
index 6356b8e..d95652c 100644
--- a/components/nav_box/nav_box.wxss
+++ b/components/nav_box/nav_box.wxss
@@ -11,6 +11,7 @@
right: 10rpx;
bottom:300rpx;
overflow: hidden;
+ z-index: 1000;
}
.box_isopen{
diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml
index 498596d..cfe266f 100644
--- a/custom-tab-bar/index.wxml
+++ b/custom-tab-bar/index.wxml
@@ -1,28 +1,29 @@
-
+
-
-
- {{cartGoodsNum}}
-
+
+
+
+
+
+ {{cartGoodsNum}}
-
- {{item.nav_name}}
-
+ {{item.nav_name}}
-
-
-
-
+
+
+
+
+
-
- {{item.nav_name}}
-
+ {{item.nav_name}}
diff --git a/custom-tab-bar/index.wxss b/custom-tab-bar/index.wxss
index a48f6ac..71558c6 100644
--- a/custom-tab-bar/index.wxss
+++ b/custom-tab-bar/index.wxss
@@ -7,40 +7,51 @@
z-index: 10000;
display: flex;
justify-content: space-around;
+ height: 100rpx;
+}
+.main_bar.custom {
+ border-top: none;
}
.tabbar_item {
position: relative;
- height: 100%;
- float: left;
+ /* height: 100%; */
+ /* float: left; */
text-align: center;
- padding: 0px 0;
+ padding: 0;
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ justify-content: center;
}
.tab_img {
display: flex;
justify-content: center;
- align-items: center
+ position: relative;
}
.nav_imgage {
- height: 52rpx;
- width: 52rpx;
- background-position: center;
+ display: block;
+ height: 48rpx;
+ width: 48rpx;
background-repeat: no-repeat;
+ /* background-position: center;
+ background-repeat: no-repeat; */
background-size: 100%;
}
.cart_num {
- top: 0;
+ /* top: 8rpx; */
background-color: red;
color: #fff;
font-size: 20rpx;
border-radius: 50%;
- width: 40rpx;
- line-height: 40rpx;
- height: 40rpx;
+ width: 36rpx;
+ line-height: 36rpx;
+ height: 36rpx;
position: absolute;
z-index: 100;
- right: 30rpx;
+ right: 34rpx;
+ /* margin-right: -70rpx; */
}
diff --git a/packageA/pages/cart2_ser/cart2_ser.js b/packageA/pages/cart2_ser/cart2_ser.js
index 7f81900..4c6f9f9 100644
--- a/packageA/pages/cart2_ser/cart2_ser.js
+++ b/packageA/pages/cart2_ser/cart2_ser.js
@@ -373,6 +373,7 @@ Page({
//--------------------提交订单-----------------------
submit_func: async function(){
+
if(this.data.is_summit_ing==1) return false; //--提交中退出--
this.data.is_summit_ing=1;
var th=this,pdata=new Array();
@@ -391,6 +392,11 @@ Page({
var gglist = list[i].goods;
for(var j in gglist){
var gg=gglist[j];
+ if(!gg.pick_id){
+ getApp().showWarning("未找到门店");
+ return false;
+ }
+
var goods={
'card_id': gg.service_id,
'itemid': gg.erpItemID,
@@ -415,12 +421,12 @@ Page({
}
}
}else{
+ var gg = getApp().globalData.service_now;
if(!gg.pick_id){
getApp().showWarning("未找到门店");
return false;
}
- var gg = getApp().globalData.service_now;
var goods={
'card_id': th.data.bn_goods.id,
'itemid': th.data.bn_goods.erpItemID,
diff --git a/packageA/pages/distribution/shop/shop.js b/packageA/pages/distribution/shop/shop.js
index 32c1409..a412f34 100644
--- a/packageA/pages/distribution/shop/shop.js
+++ b/packageA/pages/distribution/shop/shop.js
@@ -1,260 +1,265 @@
// packageA//pages/distribution/commision/commision.js
-const app = getApp();
+const app = getApp();
let self = null;
-var os = app.globalData.setting,
- ut= require("../../../../utils/util.js");
-
-
+var os = app.globalData.setting,
+ ut = require("../../../../utils/util.js");
+
+
Page({
/**
* 页面的初始数据
*/
data: {
- isInputFocus: false,//记录搜索输入框是否聚焦
- inputVal: '',//记录搜索输入框的内容
- isSort: false,//控制排序开关状态,true开启排序
- isDescending: false, //isDescending降序,ascending升序
- imghost: '',
- url: os.imghost,
-
- tabArr: ['最新','销量','评论','价格'],
- currentTabIndex: 0,
- isShowRow: false,//控制视图切换状态
- isHiddenDropdown: true,//控制筛选下拉菜单显隐
-
- list: null,
- isLoading: false, // 检测是否已经发送请求,防止重复发送请求
- noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据
- pageNum: 1, // 当前页数
-
-
- rank_switch: false,
- card_field: "",
- card_name: "",
- max_card_field: "",
- card_list: null,
-
- isAll: true,
-
- default_img: '/miniapp/images/default_g_img.gif',
+ isInputFocus: false,//记录搜索输入框是否聚焦
+ inputVal: '',//记录搜索输入框的内容
+ isSort: false,//控制排序开关状态,true开启排序
+ isDescending: false, //isDescending降序,ascending升序
+ imghost: '',
+ url: os.imghost,
+
+ tabArr: ['最新', '销量', '评论', '价格'],
+ currentTabIndex: 0,
+ isShowRow: false,//控制视图切换状态
+ isHiddenDropdown: true,//控制筛选下拉菜单显隐
+
+ list: null,
+ isLoading: false, // 检测是否已经发送请求,防止重复发送请求
+ noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据
+ pageNum: 1, // 当前页数
+
+
+ rank_switch: false,
+ card_field: "",
+ card_name: "",
+ max_card_field: "",
+ card_list: null,
+
+ isAll: true,
+
+ default_img: '/miniapp/images/default_g_img.gif',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
-
- wx.setNavigationBarTitle({
- title: "我的小店",
- });
- self = this;//保存全局指针
- app.isLogin().then(function(data) {//进入页面前已经授权登录成功
- self.setData({
- userInfo: data,
- });
- });
-
- //从别人的分享的跳转过来
- var first_leader = decodeURIComponent(options.scene);
- if(first_leader && first_leader!='undefined'){
- getApp().globalData.first_leader=first_leader;
- this.data.first_leader=first_leader;
-
- getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + first_leader, {
- isShowLoading:false,
- data:{r:Math.random()},
- success: function (e) {
- if(e.data.code==0){
- self.setData({
- userInfo2:e.data.data,
- });
- };
-
- },
- });
-
- }
-
-
- // 判断会员是否授权登录,
- // 没有登录则跳转到登录页,
- // 已登录则设置已登录状态,请求加载签到数据
- // isLogin记录登录状态
- // app.isLogin().then(function(data) {
- // // 1.登录成功
- // self.setData({
- // isLogin: true,
- // userInfo: data,
- // currentQuery: {
- // store_id: app.globalData.setting.stoid,
- // user_id: app.globalData.user_id,
- // },
- // });
- // // 2.请求全部商品数据
- // self.getData(true, '/api/weshop/users/distribut/pagemyshop', self.data.currentQuery);
- // // 3.请求新品
- // app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?type=2', {
- // data: self.data.currentQuery,
- // }).then(function(res) {
- // self.setData({
- // newList: res.data.data,
- // });
- // })
- // });
+ console.log(options);
+ wx.setNavigationBarTitle({
+ title: "我的小店",
+ });
+
+ self = this;//保存全局指针
+ app.isLogin().then(function (data) {//进入页面前已经授权登录成功
+ self.setData({
+ userInfo: data,
+ });
+ });
+ //从别人的分享的跳转过来
+ var first_leader = decodeURIComponent(options.scene);
+ if (first_leader && first_leader != 'undefined') {
+ getApp().globalData.first_leader = first_leader;
+ this.data.first_leader = first_leader;
+
+ getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + first_leader, {
+ isShowLoading: false,
+ data: { r: Math.random() },
+ success: function (e) {
+ if (e.data.code == 0) {
+ self.setData({
+ userInfo2: e.data.data,
+ });
+ };
+
+ },
+ });
+
+ }
+
+
+ // 判断会员是否授权登录,
+ // 没有登录则跳转到登录页,
+ // 已登录则设置已登录状态,请求加载签到数据
+ // isLogin记录登录状态
+ // app.isLogin().then(function(data) {
+ // // 1.登录成功
+ // self.setData({
+ // isLogin: true,
+ // userInfo: data,
+ // currentQuery: {
+ // store_id: app.globalData.setting.stoid,
+ // user_id: app.globalData.user_id,
+ // },
+ // });
+ // // 2.请求全部商品数据
+ // self.getData(true, '/api/weshop/users/distribut/pagemyshop', self.data.currentQuery);
+ // // 3.请求新品
+ // app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?type=2', {
+ // data: self.data.currentQuery,
+ // }).then(function(res) {
+ // self.setData({
+ // newList: res.data.data,
+ // });
+ // })
+ // });
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
- onReady: function () {},
+ onReady: function () { },
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
- //自己登录的
- if(app.globalData.userInfo && !this.data.first_leader) {
- if(!this.data.isLogin) {
- this.setData({
- userInfo: app.globalData.userInfo,
- imghost: app.globalData.setting.imghost,
- currentQuery: {
- store_id: app.globalData.setting.stoid,
- user_id: app.globalData.user_id,
- },
- isLogin: true,
- });
-
- // 请求数据
- app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?orderType=desc', {
- data: this.data.currentQuery,
- }).then(res => {
- self.setData({
- list: res.data.data,
- total: res.data.data.total,
- });
- });
-
- // 新品
- app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?type=2&orderType=desc', {
- data: self.data.currentQuery,
- }).then(res => {
- self.setData({
- newList: res.data.data,
- });
- });
- // 广告banner
- app.request.promiseGet("/api/weshop/ad/page", {
- data: {
- pid: 401,
- enabled: 1,
- store_id: app.globalData.setting.stoid,
- }
- }).then(res => {
- if(res.data.code == 0 && res.data.data) {
- let item = res.data.data.pageData[0];
- if(item && item.ad_code) {
- self.setData({
- ad_img: item.ad_code,
- });
- };
- };
- });
-
- };
- }
- //被人分享点击开的
- else if(this.data.first_leader){
- this.setData({
- imghost: app.globalData.setting.imghost,
- currentQuery: {
- store_id: app.globalData.setting.stoid,
- user_id: this.data.first_leader,
- },
- isLogin: true,
- });
-
- // 请求数据
- this.getData(true, '/api/weshop/users/distribut/pagemyshop', this.data.currentQuery);
- // 新品
- app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?type=2', {
- data: self.data.currentQuery,
- }).then(res => {
- self.setData({
- newList: res.data.data,
- });
- });
- // 广告banner
- app.request.promiseGet("/api/weshop/ad/page", {
- data: {
- pid: 401,
- enabled: 1,
- store_id: app.globalData.setting.stoid,
- }
- }).then(res => {
- if(res.data.code == 0 && res.data.data) {
- let item = res.data.data.pageData[0];
- if(item && item.ad_code) {
- self.setData({
- ad_img: item.ad_code,
- });
- };
- };
- });
- }
- var th=this;
- //更新一下会员的信息
- if(getApp().globalData.user_id) {
- if(!getApp().globalData.userInfo['is_distribut']){
- th.setData({ishidden_comise:1})
- }
- 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) {
- var swithc_list = e.switch_list;
- var sw_arr = JSON.parse(swithc_list);
- //---如果后台有开等级卡的开关---
- if (sw_arr.rank_switch && sw_arr.rank_switch == "2") {
- th.setData({
- rank_switch: true
- });
- //---回调卡的列表---
- th.getPlusCardType(function (ob) {
- th.setData({
- card_list: ob.card_list
- });
- var ti = setInterval(function () {
- var user = getApp().globalData.userInfo;
- if (!user) return false;
- clearInterval(ti);
- if (user.card_field && user['card_expiredate']) {
- var str = user['card_expiredate'].replace(/-/g, '/');
- var end = new Date(str);
- end = Date.parse(end) / 1000;
- var now = ut.gettimestamp();
- //--- 判断是等级会员,且在有效期范围内 ---
- if (user.card_field && now < end) {
- var card_name = ob.name_map.get(user.card_field);
- if (card_name.length > 4) card_name = card_name.substring(0, 8);
- th.setData({
- card_field: user.card_field,
- card_name: card_name,
- card_list: ob.card_list
- });
- }
- }
- }, 500)
- })
- }
- })
- }
- })
- }
-
-
+ //自己登录的
+ if (app.globalData.userInfo && !this.data.first_leader) {
+ if (!this.data.isLogin) {
+ this.setData({
+ userInfo: app.globalData.userInfo,
+ imghost: app.globalData.setting.imghost,
+ isLogin: true,
+ currentQuery: {
+ store_id: app.globalData.setting.stoid,
+ user_id: app.globalData.user_id,
+ },
+ });
+ // 请求数据
+ app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?orderType=desc', {
+ data: this.data.currentQuery,
+ }).then(res => {
+ self.setData({
+ list: res.data.data,
+ total: res.data.data.total,
+ });
+ });
+
+ // 新品
+ app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?type=2&orderType=desc', {
+ data: self.data.currentQuery,
+ }).then(res => {
+ self.setData({
+ newList: res.data.data,
+ });
+ });
+ // 广告banner
+ app.request.promiseGet("/api/weshop/ad/page", {
+ data: {
+ pid: 401,
+ enabled: 1,
+ store_id: app.globalData.setting.stoid,
+ }
+ }).then(res => {
+ if (res.data.code == 0 && res.data.data) {
+ let item = res.data.data.pageData[0];
+ if (item && item.ad_code) {
+ self.setData({
+ ad_img: item.ad_code,
+ });
+ };
+ };
+ });
+
+ };
+ }
+ //被人分享点击开的
+ else if (this.data.first_leader) {
+ console.log(11);
+ this.setData({
+ imghost: app.globalData.setting.imghost,
+ currentQuery: {
+ store_id: app.globalData.setting.stoid,
+ user_id: this.data.first_leader,
+ },
+ isLogin: true,
+ });
+ console.log('fenxiang');
+ // 请求数据
+ this.getData(true, '/api/weshop/users/distribut/pagemyshop', this.data.currentQuery);
+ // 新品
+ app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?type=2', {
+ data: self.data.currentQuery,
+ }).then(res => {
+ self.setData({
+ newList: res.data.data,
+ });
+ });
+ // 广告banner
+ app.request.promiseGet("/api/weshop/ad/page", {
+ data: {
+ pid: 401,
+ enabled: 1,
+ store_id: app.globalData.setting.stoid,
+ }
+ }).then(res => {
+ if (res.data.code == 0 && res.data.data) {
+ let item = res.data.data.pageData[0];
+ if (item && item.ad_code) {
+ self.setData({
+ ad_img: item.ad_code,
+ });
+ };
+ };
+ });
+ }
+ var th = this;
+ //更新一下会员的信息
+ if (getApp().globalData.user_id) {
+ if (!getApp().globalData.userInfo['is_distribut']) {
+ th.setData({ ishidden_comise: 1 })
+ }
+ 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) {
+ var swithc_list = e.switch_list;
+ var sw_arr = JSON.parse(swithc_list);
+ //---如果后台有开等级卡的开关---
+ if (sw_arr.rank_switch && sw_arr.rank_switch == "2") {
+ th.setData({
+ rank_switch: true
+ });
+ //---回调卡的列表---
+ th.getPlusCardType(function (ob) {
+ th.setData({
+ card_list: ob.card_list
+ });
+ var ti = setInterval(function () {
+ var user = getApp().globalData.userInfo;
+ if (!user) return false;
+ clearInterval(ti);
+ if (user.card_field && user['card_expiredate']) {
+ var str = user['card_expiredate'].replace(/-/g, '/');
+ var end = new Date(str);
+ end = Date.parse(end) / 1000;
+ var now = ut.gettimestamp();
+ //--- 判断是等级会员,且在有效期范围内 ---
+ if (user.card_field && now < end) {
+ var card_name = ob.name_map.get(user.card_field);
+ if (card_name.length > 4) card_name = card_name.substring(0, 8);
+ th.setData({
+ card_field: user.card_field,
+ card_name: card_name,
+ card_list: ob.card_list
+ });
+ }
+ }
+ }, 500)
+ })
+ }
+ })
+ }
+ })
+ }
+
+ if (app.globalData.key_word) {
+ this.setData({
+ inputVal: app.globalData.key_word,
+ })
+ this.search();
+ }
},
/**
@@ -268,7 +273,7 @@ Page({
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
-
+ app.globalData.key_word=null;
},
/**
@@ -282,449 +287,449 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
- let url = '';
- if(this.data.isAll) {
- url = '/api/weshop/users/distribut/pagemyshop';
- } else {
- url = '/api/weshop/users/distribut/pagemyshop?type=2';
- };
- this.scrollToLower(url, this.data.currentQuery);
+ let url = '';
+ if (this.data.isAll) {
+ url = '/api/weshop/users/distribut/pagemyshop';
+ } else {
+ url = '/api/weshop/users/distribut/pagemyshop?type=2';
+ };
+ this.scrollToLower(url, this.data.currentQuery);
},
/**
* 用户点击右上角分享
*--点击分享事件--分享我的小店
*--*/
- onShareAppMessage: function(t) {
-
+ onShareAppMessage: function (t) {
+
var th = this;
- var title= "我的小店";
- var user_id=this.data.first_leader;
- if(!user_id){
- user_id=getApp().globalData.user_id
- }
- var url="/packageA/pages/distribution/shop/shop?scene=" + user_id;
- if(getApp().globalData.user_id){
- url+="&first_leader="+getApp().globalData.user_id;
+ var title = "我的小店";
+ var user_id = this.data.first_leader;
+ if (!user_id) {
+ user_id = getApp().globalData.user_id
}
-
- var ob={
+ var url = "/packageA/pages/distribution/shop/shop?scene=" + user_id;
+ if (getApp().globalData.user_id) {
+ url += "&first_leader=" + getApp().globalData.user_id;
+ }
+
+ var ob = {
title: title,
- path:url,
- };
+ path: url,
+ };
return ob;
-
+
+ },
+
+ /**
+ * 点击下拉菜单
+ */
+ clickDropdown() {
+ this.setData({
+ isHiddenDropdown: !this.data.isHiddenDropdown,
+ });
+ },
+
+ /**
+ * 点击遮罩层
+ */
+ clickMask() {
+ this.setData({
+ isHiddenDropdown: true,
+ });
+ },
+
+ /**
+ * 选择下拉菜单项
+ */
+ selectDropdown(e) {
+ let currentIndex = e.target.dataset.index;
+ this.setData({
+ isHiddenDropdown: true,
+ currentSelect: this.data.dropdownArr[currentIndex],
+ });
+ },
+
+ /**
+ * 搜索输入框聚焦
+ */
+ inputFocus() {
+ this.setData({
+ isInputFocus: true,
+ });
+ },
+
+
+ /**
+ * 搜索输入框失焦
+ */
+ inputBlur() {
+ this.setData({
+ isInputFocus: false,
+ });
+ },
+
+ /**
+ * 获取搜索输入框输入的内容
+ */
+ input(e) {
+ this.data.inputVal = e.detail.value;
+ },
+
+ /**
+ * 搜索输入框清空内容
+ */
+ inputClear() {
+ let inputVal = this.data.inputVal;
+ console.log('input', inputVal);
+ if (inputVal) {
+ this.setData({
+ inputVal: '',
+ });
+ };
+ },
+
+ /**
+ * 搜索输入框聚焦
+ */
+ search() {
+ let data = this.data.currentQuery;
+ data.key = this.data.inputVal;
+ if (data.orderField) {
+ delete data.orderField;
+ };
+ if (data.page) {
+ delete data.page;
+ };
+ this.setData({
+ currentTabIndex: 4,
+ isSort: false,
+ isDescending: false,
+ currentQuery: data,
+ pageNum: 1,
+ });
+ this.getData(true, '/api/weshop/users/distribut/pagemyshop', data);
+ },
+
+ /**
+ * 点击排序
+ */
+ clickSort(e) {
+ let data = this.data.currentQuery;
+ // data.orderField = 'shop_price';
+ data.orderField = 'prom_price';
+ if (data.page) {
+ delete data.page;
+ };
+ if (!this.data.isSort) {
+ this.setData({
+ isSort: true,
+ });
+ data.orderType = 'asc';
+ } else {
+ this.setData({
+ isDescending: !this.data.isDescending,
+ });
+
+ if (this.data.isDescending) {
+ data.orderType = 'desc';
+ } else {
+ data.orderType = 'asc';
+ };
+
+ };
+ console.log('当前参数:', data);
+
+ this.setData({
+ currentQuery: data,
+ noMore: false,
+ });
+
+ // 请求数据
+ this.getData(true, '/api/weshop/users/distribut/pagemyshop', data);
+ },
+
+ /**
+ * 点击视图切换按钮
+ */
+ change() {
+ this.setData({
+ isShowRow: !this.data.isShowRow
+ });
+ },
+
+ /**
+ * 点击Tab
+ */
+ clickTab(e) {
+ let data = this.data.currentQuery;
+ let isSort = this.data.isSort;
+ let currentIndex = e.target.dataset.index;
+ if (currentIndex != 3) {
+ if (isSort) {
+ isSort = false;
+ };
+ if (data.orderType) {// 清除orderType
+ delete data.orderType;
+ };
+ };
+ this.setData({
+ list: null,
+ isAll: true,
+ currentTabIndex: currentIndex,
+ isSort,
+ pageNum: 1,
+ noMore: false,
+ });
+ if (data.page) {// 清除page
+ delete data.page;
+ };
+
+
+
+ if (currentIndex == 0) {
+ if (data.orderField) {// 清除orderField
+ delete data.orderField;
+ };
+ };
+ if (currentIndex == 1) {
+ data.orderField = 'sales_sum';
+ };
+ if (currentIndex == 2) {
+ data.orderField = 'comment_count';
+ };
+
+ if (currentIndex == 3) {
+ // console.log('点击价格');
+ if (data.orderType) {// 清除orderType
+ delete data.orderType;
+ };
+ return;
+ };
+ data.orderType = 'desc';
+ this.data.currentQuery = data;
+ this.getData(true, '/api/weshop/users/distribut/pagemyshop', data);
+ },
+
+ /**
+ * 点击筛选
+ */
+ clickFilter() {
+ this.setData({
+ isHiddenDropdown: !this.data.isHiddenDropdown,
+ });
+ },
+
+ /**
+ * 点击遮罩层,关闭筛选下拉菜单
+ */
+ clickMask() {
+ if (!this.data.isHiddenDropdown) {
+ this.setData({
+ isHiddenDropdown: true,
+ });
+ }
+ },
+
+ /**
+ * 请求数据
+ */
+ getData: function (isInit, url, data) {
+
+ app.request.promiseGet(url, {
+ data: data,
+ isShowLoading: true,
+ })
+ .then(function (res) {
+ // console.log('1121', res.data.code);
+ if (res.data.code == 0) {
+
+ self.setData({
+ isLoading: false
+ });
+
+ if (isInit) {// 第一次加载
+ self.setData({
+ list: res.data.data,
+ });
+ } else {
+ self.setData({
+ 'list.pageData': self.data.list.pageData.concat(res.data.data.pageData)
+ });
+ };
+
+ if ((res.data.data.pageData.length == 0) || (res.data.data.pageSize * res.data.data.page >= res.data.data.total)) {
+ self.setData({
+ noMore: true
+ });
+ };
+
+ } else {
+ self.setData({
+ 'list.pageData': []
+ });
+ };
+
+ })
+ .catch(function (err) {
+ console.log('出错拉!!!!', err);
+ self.setData({
+ 'list.pageData': []
+ });
+ });
+ },
+
+
+ /**
+ * 上拉加载
+ */
+ scrollToLower(url, requestData) {
+
+ // 数据总量
+ let total = this.data.list.total;
+ // 单页最大数据量
+ let pageSize = this.data.list.pageSize;
+ // 如果数据总量不为0且小于或等于单页最大数据量,说明数据已全部加载,显示‘没有更多了’
+ if ((total != 0) && (total <= pageSize)) {
+ this.setData({
+ noMore: true
+ });
+ };
+
+ if (!this.data.isLoading && !this.data.noMore) {
+ this.setData({
+ isLoading: true,
+ pageNum: this.data.pageNum + 1
+ });
+ requestData.page = this.data.pageNum;
+ console.log('滚动data:', requestData);
+ this.getData(false, url, requestData);
+ };
+ },
+
+ /**
+ * 点击跳转
+ */
+ goto(e) {
+ let url = '';
+ if (e.target.dataset.url) {
+ url = e.target.dataset.url;
+ } else {
+ url = e.currentTarget.dataset.url;
+ }
+ app.goto(url);
+ },
+
+
+ //--- 获取卡类列表 ---
+ getPlusCardType: function (func) {
+ var storid = os.stoid;
+ var th = this;
+ getApp().request.promiseGet("/api/weshop/plus/vip/mem/bership/list?" + "storeId=" + storid,
+ {}).then(res => {
+
+ if (res.data.code != 0 || !res.data.data) {
+ var ob = {
+ "card_list": [],
+ "name_map": ""
+ };
+ func(ob);
+ return false;
+ }
+
+ var plusCard = res.data.data;
+ var arr = [1219, 2089, 3031];
+ var new_arr = new Array();
+ var card_name_map = new Map();
+
+ var user = getApp().globalData.userInfo;
+ if (plusCard) {
+ for (var i = 0; i < plusCard.length; i++) {
+ if ((!user || user.card_field == null || user.card_field == "") && (plusCard[i].IsStopBuy == true)) {
+ continue;
+ }
+ var name = "card" + plusCard[i].CorrPrice.toLowerCase();
+ card_name_map.set(name, plusCard[i].CardName);
+ new_arr.push(plusCard[i]);
+
+ }
+ }
+ var ob = {
+ "card_list": new_arr,
+ "name_map": card_name_map
+ };
+ func(ob);
+ })
+ },
+
+
+ /**
+ * 点击全部
+ */
+ clickAll() {
+ let data = this.data.currentQuery;
+
+ if (data.page) delete data.page;
+ if (data.orderField) delete data.orderField;
+ if (data.orderType) delete data.orderType;
+ if (data.key) delete data.key;
+
+ this.setData({
+ pageNum: 1,
+ noMore: false,
+ isAll: true,
+ });
+
+ this.getData(true, '/api/weshop/users/distribut/pagemyshop', data);
+ },
+
+ /**
+ * 点击新品
+ */
+ clickNew() {
+ let data = this.data.currentQuery;
+
+ if (data.page) delete data.page;
+ if (data.orderField) delete data.orderField;
+ if (data.orderType) delete data.orderType;
+ if (data.key) delete data.key;
+
+ this.setData({
+ pageNum: 1,
+ noMore: false,
+ isAll: false,
+ });
+
+ this.getData(true, '/api/weshop/users/distribut/pagemyshop?type=2&orderType=desc', data);
+ // app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?type=2', {
+ // data: data,
+ // }).then(res => {
+ // self.setData({
+ // list: res.data.data,
+ // });
+ // });
+ },
+
+
+ /**
+ * 点击新品
+ */
+ // imgError(e) {
+ // this.setData({
+ // noImg: true,
+ // });
+ // },
+
+
+ bind_bnerr2: function (e) {
+ var _errImg = e.target.dataset.errorimg;
+ var _errurl = e.target.dataset.url;
+ var ii = _errurl.indexOf(oo.imghost);
+ if (ii != -1) {
+ var _errObj = {};
+ _errObj[_errImg] = this.data.iurl + "/miniapp/images/default_g_img.gif";
+ this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
+ }
},
-
- /**
- * 点击下拉菜单
- */
- clickDropdown() {
- this.setData({
- isHiddenDropdown: !this.data.isHiddenDropdown,
- });
- },
-
- /**
- * 点击遮罩层
- */
- clickMask() {
- this.setData({
- isHiddenDropdown: true,
- });
- },
-
- /**
- * 选择下拉菜单项
- */
- selectDropdown(e) {
- let currentIndex = e.target.dataset.index;
- this.setData({
- isHiddenDropdown: true,
- currentSelect: this.data.dropdownArr[currentIndex],
- });
- },
-
- /**
- * 搜索输入框聚焦
- */
- inputFocus() {
- this.setData({
- isInputFocus: true,
- });
- },
-
-
- /**
- * 搜索输入框失焦
- */
- inputBlur() {
- this.setData({
- isInputFocus: false,
- });
- },
-
- /**
- * 获取搜索输入框输入的内容
- */
- input(e) {
- this.data.inputVal = e.detail.value;
- },
-
- /**
- * 搜索输入框清空内容
- */
- inputClear() {
- let inputVal = this.data.inputVal;
- console.log('input', inputVal);
- if(inputVal) {
- this.setData({
- inputVal: '',
- });
- };
- },
-
- /**
- * 搜索输入框聚焦
- */
- search() {
- let data = this.data.currentQuery;
- data.key = this.data.inputVal;
- if(data.orderField) {
- delete data.orderField;
- };
- if(data.page) {
- delete data.page;
- };
- this.setData({
- currentTabIndex: 4,
- isSort: false,
- isDescending: false,
- currentQuery: data,
- pageNum: 1,
- });
- this.getData(true, '/api/weshop/users/distribut/pagemyshop', data);
- },
-
- /**
- * 点击排序
- */
- clickSort(e) {
- let data = this.data.currentQuery;
- // data.orderField = 'shop_price';
- data.orderField = 'prom_price';
- if(data.page) {
- delete data.page;
- };
- if(!this.data.isSort) {
- this.setData({
- isSort: true,
- });
- data.orderType = 'asc';
- } else {
- this.setData({
- isDescending: !this.data.isDescending,
- });
-
- if(this.data.isDescending) {
- data.orderType = 'desc';
- } else {
- data.orderType = 'asc';
- };
-
- };
- console.log('当前参数:', data);
-
- this.setData({
- currentQuery: data,
- noMore: false,
- });
-
- // 请求数据
- this.getData(true, '/api/weshop/users/distribut/pagemyshop', data);
- },
-
- /**
- * 点击视图切换按钮
- */
- change() {
- this.setData({
- isShowRow: !this.data.isShowRow
- });
- },
-
- /**
- * 点击Tab
- */
- clickTab(e) {
- let data = this.data.currentQuery;
- let isSort = this.data.isSort;
- let currentIndex = e.target.dataset.index;
- if(currentIndex != 3) {
- if(isSort) {
- isSort = false;
- };
- if(data.orderType) {// 清除orderType
- delete data.orderType;
- };
- };
- this.setData({
- list: null,
- isAll: true,
- currentTabIndex: currentIndex,
- isSort,
- pageNum: 1,
- noMore: false,
- });
- if(data.page) {// 清除page
- delete data.page;
- };
-
-
-
- if(currentIndex == 0) {
- if(data.orderField) {// 清除orderField
- delete data.orderField;
- };
- };
- if(currentIndex == 1) {
- data.orderField = 'sales_sum';
- };
- if(currentIndex == 2) {
- data.orderField = 'comment_count';
- };
-
- if(currentIndex == 3) {
- // console.log('点击价格');
- if(data.orderType) {// 清除orderType
- delete data.orderType;
- };
- return;
- };
- data.orderType = 'desc';
- this.data.currentQuery = data;
- this.getData(true, '/api/weshop/users/distribut/pagemyshop', data);
- },
-
- /**
- * 点击筛选
- */
- clickFilter() {
- this.setData({
- isHiddenDropdown: !this.data.isHiddenDropdown,
- });
- },
-
- /**
- * 点击遮罩层,关闭筛选下拉菜单
- */
- clickMask() {
- if(!this.data.isHiddenDropdown) {
- this.setData({
- isHiddenDropdown: true,
- });
- }
- },
-
- /**
- * 请求数据
- */
- getData: function(isInit, url, data) {
-
- app.request.promiseGet(url, {
- data: data,
- isShowLoading: true,
- })
- .then(function(res) {
- // console.log('1121', res.data.code);
- if(res.data.code == 0) {
-
- self.setData({
- isLoading: false
- });
-
- if(isInit) {// 第一次加载
- self.setData({
- list: res.data.data,
- });
- } else {
- self.setData({
- 'list.pageData': self.data.list.pageData.concat(res.data.data.pageData)
- });
- };
-
- if((res.data.data.pageData.length == 0) || (res.data.data.pageSize * res.data.data.page >= res.data.data.total)) {
- self.setData({
- noMore: true
- });
- };
-
- } else {
- self.setData({
- 'list.pageData': []
- });
- };
-
- })
- .catch(function(err) {
- console.log('出错拉!!!!',err);
- self.setData({
- 'list.pageData': []
- });
- });
- },
-
-
- /**
- * 上拉加载
- */
- scrollToLower(url, requestData) {
-
- // 数据总量
- let total = this.data.list.total;
- // 单页最大数据量
- let pageSize = this.data.list.pageSize;
- // 如果数据总量不为0且小于或等于单页最大数据量,说明数据已全部加载,显示‘没有更多了’
- if((total != 0)&&(total <= pageSize)) {
- this.setData({
- noMore: true
- });
- };
-
- if(!this.data.isLoading && !this.data.noMore) {
- this.setData({
- isLoading: true,
- pageNum: this.data.pageNum + 1
- });
- requestData.page = this.data.pageNum;
- console.log('滚动data:', requestData);
- this.getData(false, url, requestData);
- };
- },
-
- /**
- * 点击跳转
- */
- goto(e) {
- let url = '';
- if(e.target.dataset.url) {
- url = e.target.dataset.url;
- } else {
- url = e.currentTarget.dataset.url;
- }
- app.goto(url);
- },
-
-
- //--- 获取卡类列表 ---
- getPlusCardType: function (func) {
- var storid = os.stoid;
- var th = this;
- getApp().request.promiseGet("/api/weshop/plus/vip/mem/bership/list?" + "storeId=" + storid,
- {}).then(res => {
-
- if(res.data.code!=0 || !res.data.data){
- var ob = {
- "card_list": [],
- "name_map": ""
- };
- func(ob);
- return false;
- }
-
- var plusCard = res.data.data;
- var arr = [1219, 2089, 3031];
- var new_arr = new Array();
- var card_name_map = new Map();
-
- var user = getApp().globalData.userInfo;
- if(plusCard) {
- for (var i = 0; i < plusCard.length; i++) {
- if ((!user || user.card_field == null || user.card_field == "") && (plusCard[i].IsStopBuy == true)) {
- continue;
- }
- var name = "card" + plusCard[i].CorrPrice.toLowerCase();
- card_name_map.set(name, plusCard[i].CardName);
- new_arr.push(plusCard[i]);
-
- }
- }
- var ob = {
- "card_list": new_arr,
- "name_map": card_name_map
- };
- func(ob);
- })
- },
-
-
- /**
- * 点击全部
- */
- clickAll() {
- let data = this.data.currentQuery;
-
- if(data.page) delete data.page;
- if(data.orderField) delete data.orderField;
- if(data.orderType) delete data.orderType;
- if(data.key) delete data.key;
-
- this.setData({
- pageNum: 1,
- noMore: false,
- isAll: true,
- });
-
- this.getData(true, '/api/weshop/users/distribut/pagemyshop', data);
- },
-
- /**
- * 点击新品
- */
- clickNew() {
- let data = this.data.currentQuery;
-
- if(data.page) delete data.page;
- if(data.orderField) delete data.orderField;
- if(data.orderType) delete data.orderType;
- if(data.key) delete data.key;
-
- this.setData({
- pageNum: 1,
- noMore: false,
- isAll: false,
- });
-
- this.getData(true, '/api/weshop/users/distribut/pagemyshop?type=2&orderType=desc', data);
- // app.request.promiseGet('/api/weshop/users/distribut/pagemyshop?type=2', {
- // data: data,
- // }).then(res => {
- // self.setData({
- // list: res.data.data,
- // });
- // });
- },
-
-
- /**
- * 点击新品
- */
- // imgError(e) {
- // this.setData({
- // noImg: true,
- // });
- // },
-
-
- bind_bnerr2: function (e) {
- var _errImg = e.target.dataset.errorimg;
- var _errurl = e.target.dataset.url;
- var ii = _errurl.indexOf(oo.imghost);
- if (ii != -1) {
- var _errObj = {};
- _errObj[_errImg] = this.data.iurl+"/miniapp/images/default_g_img.gif";
- this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
- }
- },
})
\ No newline at end of file
diff --git a/packageA/pages/distribution/shop/shop.wxml b/packageA/pages/distribution/shop/shop.wxml
index b1a4555..dfa6459 100644
--- a/packageA/pages/distribution/shop/shop.wxml
+++ b/packageA/pages/distribution/shop/shop.wxml
@@ -37,6 +37,7 @@
+
diff --git a/packageA/pages/distribution/shop/shop.wxss b/packageA/pages/distribution/shop/shop.wxss
index 6842380..c4028f6 100644
--- a/packageA/pages/distribution/shop/shop.wxss
+++ b/packageA/pages/distribution/shop/shop.wxss
@@ -100,10 +100,6 @@ page {
margin-top: 20rpx;
} */
-.money {
- /* word-break: break-all;
- word-wrap: break-word; */
-}
.money::before {
content: '¥';
font-size: 22rpx;
@@ -236,10 +232,10 @@ page {
/*checkbox 整体大小 */
-checkbox {
+/* checkbox { */
/* width: 240rpx;
height: 90rpx; */
-}
+/* } */
/*checkbox 选项框大小 */
checkbox .wx-checkbox-input {
width: 34rpx;
diff --git a/packageA/pages/goodsInfo/goodsInfo.js b/packageA/pages/goodsInfo/goodsInfo.js
index 069d73a..2189a74 100644
--- a/packageA/pages/goodsInfo/goodsInfo.js
+++ b/packageA/pages/goodsInfo/goodsInfo.js
@@ -893,6 +893,16 @@ Page({
}).then(res => {
var e = res;
if (e.data.code == 0 && e.data.data && e.data.data.pageData && e.data.data.pageData.length>0) {
+
+ var his_cate_num=0;
+ for(let i in e.data.data.pageData){
+ let item=e.data.data.pageData[i];
+ if(item.category_id>0){
+ his_cate_num=1;break;
+ }
+ }
+ e.his_cate_num=his_cate_num;
+
//--普通门店排版--
setTimeout(function(){
var sto_list=th.data.data.storageId;
@@ -944,7 +954,7 @@ Page({
if(!th.data.data) return false
wx.hideLoading();
//单总量超出5个的时候
- if (e.data.data.total > 5) {
+ if (e.data.data.total > 10 && e.his_cate_num) {
getApp().request.get("/api/weshop/storagecategory/page", {
data: {
store_id: o.stoid,
diff --git a/packageA/pages/goodsInfo/goodsInfo.wxml b/packageA/pages/goodsInfo/goodsInfo.wxml
index e368494..207cf67 100644
--- a/packageA/pages/goodsInfo/goodsInfo.wxml
+++ b/packageA/pages/goodsInfo/goodsInfo.wxml
@@ -158,19 +158,19 @@
-
+
-
+
+ 暂无评价
+
+
+ 已经加载到底部
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ 客服
+
+
+
+ 客服
-
-
-
-
-
-
- 客服
-
-
-
- 客服
-
-
-
-
-
- 收藏
-
-
-
-
- {{cartGoodsNum}}
- 购物车
-
+
+
+
+ 收藏
+
+
+
+
+ {{cartGoodsNum}}
+ 购物车
+
+
+
+ 立即购买
+
+
+
+ {{filters.format_time(presellForm.end_time,2)}} 预售结束
+
+ {{filters.format_time(presellForm.delivery_date,2)}} 开始发货
+ 付款{{presellForm.delivery_daynum}} 天后发货
- 立即购买
-
-
-
-
-
-
- 加入购物车
- 立即购买
-
-
- 库存不足
-
-
-
-
-
-
-
-
- 08.30 23:59:59 预售结束
-
- 付款3天后发货
-
-
- 支付定金
- 定金9.9
-
-
-
-
-
-
-
-
-
-
- {{filters.toFix(sele_g[card_field],2)}}
-
-
- {{filters.toFix(sele_g.shop_price,2)}}
-
-
- 单独购买
+
+ 支付定金
+
+ 定金
+ {{presellList.presell_money}}
-
-
-
-
- ¥{{prom_act.price}}
- 去参团
-
-
-
-
-
- 一键开团
- 佣金¥{{filters.toFix(prom_act.tz_yyhjg,2)}}
- 团长免单
-
-
- ¥{{ filters.toFix(prom_act.price,2)}}
- 一键开团
-
-
-
-
-
- ¥{{filters.toFix(prom_act.yf_price,2)}}
- 支付定金
-
-
- 即将开始
- 已抢光
- 活动已经结束
-
-
- 您还未支付
- 查看支付详情
- 支付尾款
-
-
-
-
-
-
-
-
-
-
-
- {{filters.toFix(sele_g[card_field],2)}}
-
-
- {{filters.toFix(sele_g.shop_price,2)}}
-
-
- 单独购买
-
- 立即兑换
- 积分不足
-
-
-
- 立即兑换
- 积分不足
-
-
-
-
-
+
-
-
-
-
-
-
-
+
+
+
+
-
+
-
+
{{sele_g.goods_name}}
-
-
- ¥
-
- {{sele_g[card_field]}}
- {{sele_g.shop_price}}
-
- ¥{{prom_price}}
-
-
- 券后¥{{sele_g.offline_price}}
-
-
-
+
+
+ ¥
+
+ {{sele_g[card_field]}}
+ {{sele_g.shop_price}}
+
+
+ ¥
+ {{prom_price}}
+
+
+
+ 券后¥
+ {{sele_g.offline_price}}
+
+
-
- 已售:{{sele_g.sales_sum}}
-
- 可售:{{def_pick_store.CanOutQty}}
- 可售:0
-
- 可售:{{sele_g.store_count}}
-
+
+ 已售:{{sele_g.sales_sum}}
+
+
+ 可售:{{def_pick_store.CanOutQty}}
+
+ 可售:0
+
+
+ 可售:{{sele_g.store_count}}
+
+
-
- 已售:{{prom_act.buy_num+prom_act.virtual}}
- 已售:{{prom_act.buy_num}}
- 可售:{{prom_act.goods_num-prom_act.buy_num}}
-
+
+
+ 已售:{{prom_act.buy_num+prom_act.virtual}}
+
+ 已售:{{prom_act.buy_num}}
+ 可售:{{prom_act.goods_num-prom_act.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"}}
-
-
-
-
-
-
-
- 选择门店
-
-
-
- 更多门店
-
-
-
- (库存不足)
-
- (库存不足)
-
- (配送不匹配)
- (库存不足)
-
-
-
- 地址:{{def_pick_store.fulladdress}}
-
-
-
-
- 商品规格
-
-
- {{item.gg}}
-
-
+
+
+ {{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"}}
+
+
+
+
+
+ 选择门店
+
+
+ 更多门店
+
+
-
-
-
- 购买数量
-
- -
-
- +
+ (库存不足)
+
+ (库存不足)
+
+ (配送不匹配)
+
+ (库存不足)
+
+
+
+
+ 地址:{{def_pick_store.fulladdress}}
+
+
+
+
+ 商品规格
+
+
+ {{item.gg}}
-
-
-
- 再买{{hui_condition.need}}
- ,免{{hui_condition.money}}元
- ,打{{hui_condition.sale}}折
- ,包邮
- ,送{{hui_condition.intValue}}积分
- ,送优惠券
- ,送赠品
- ,送礼包
-
-
-
-
-
- 支付定金(¥9.9)
-
-
-
-
- 库存不足
-
-
-
-
-
- 库存不足
-
-
-
- 库存不足
-
-
-
- 请先选择门店
-
-
-
-
-
- 库存不足
-
-
- 加入购物车
-
- {{sele_g.offline_price?"券后购买":"立即购买"}}
-
-
-
-
-
-
- 库存不足
-
-
- 加入购物车
-
- {{sele_g.offline_price?"券后购买":"立即购买"}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 选择门店
+
+ 购买数量
+
+
+ -
+
+
+ +
-
-
-
- {{item.name}}
+
+
+
+ 再买{{hui_condition.need}}
+ ,免{{hui_condition.money}}元
+ ,打{{hui_condition.sale}}折
+ ,包邮
+ ,送{{hui_condition.intValue}}积分
+ ,送优惠券
+ ,送赠品
+ ,送礼包
+
+
+
+
+ 支付定金(¥9.9)
+
+
+
+
+
+ 库存不足
+
+
+
+
+
+ 库存不足
+
- {{item.pickup_name}}
+
+
+ 库存不足
+
+
+
+
+
+ 请先选择门店
+
+
+
+
+
+
+
+ 库存不足
+
+
+
+
+ 加入购物车
+
+
+ {{sele_g.offline_price?"券后购买":"立即购买"}}
+
+
+
+
+
+
+
+ 库存不足
+
+
+
+
+ 加入购物车
+
+
+ {{sele_g.offline_price?"券后购买":"立即购买"}}
+
+
+
+
+
-
-
-
- {{sec_sto.name}}
-
-
- {{item.pickup_name}}
+
+
+
+
+
+
+
+
+ 选择门店
+
+
+
+
+
+ {{item.name}}
+
+
+
+ {{item.pickup_name}}
+
+
+
+
+
+
+ {{sec_sto.name}}
+
+
+
+ {{item.pickup_name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
@@ -1263,38 +746,44 @@
-
+
- 拼团玩法介绍
+
+ 拼团玩法介绍
- 1.开团:
+
+ 1.开团:
选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;
- 2.参团:
+
+ 2.参团:
进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;
- 3.成团:
+
+ 3.成团:
在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;
- 4.组团失败:
+
+ 4.组团失败:
在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;
- 5.
- 组团有效期间内,拼购商品订单不允许取消。
+
+ 5.
+ 组团有效期间内,拼购商品订单不允许取消。
-
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
\ No newline at end of file
diff --git a/packageC/pages/presell/goodsInfo/goodsInfo.wxss b/packageC/pages/presell/goodsInfo/goodsInfo.wxss
index e2b2245..4174bda 100644
--- a/packageC/pages/presell/goodsInfo/goodsInfo.wxss
+++ b/packageC/pages/presell/goodsInfo/goodsInfo.wxss
@@ -140,6 +140,7 @@ image {
.goods-price>.tm{ color: #999999; font-size: 26rpx;margin-top: 10rpx;}
.goods-num {
+ color: #999;
display: flex;
font-size: 24rpx;
justify-content: space-between;
@@ -2300,9 +2301,18 @@ right:87rpx;
background: #e5e5e5;
}
.xc-qt-price{
- top:-15rpx;
-left:25rpx;
+ font-style: italic;
+ top:-23rpx;
+left:40rpx;
+ color: #fff;
+}
+.presell_price{
+ font-style: italic;
+
+ top: 23rpx;
+ left:40rpx;
color: #fff;
+ justify-content: space-between;
}
.xc-qt-price .xc-qtunit-price{
margin-left:6rpx;
diff --git a/packageC/pages/presell/list/list.js b/packageC/pages/presell/list/list.js
index abdf9d4..adbf04d 100644
--- a/packageC/pages/presell/list/list.js
+++ b/packageC/pages/presell/list/list.js
@@ -1,34 +1,26 @@
-var e = getApp(), i = e.request, a = e.globalData.setting,os=a,ut = require("../../../../utils/util.js");
+var e = getApp(), i = e.request, os = e.globalData.setting, ut = require("../../../../utils/util.js");
var regeneratorRuntime = require('../../../../utils/runtime.js');
Page({
data: {
- url: a.imghost,
- killtime: null,
- currentPage: 1,
- goodlist: null,
- type:1,
- timer:null,
- ismore:1, //是否可以加载更多
- isshow:0,
- ad_data:null,
- max_sw_height:200,
+ url: os.imghost,
+ goodlist:[],
+ page: 1,
+ timer: null,
+ ismore: 1, //是否可以加载更多
+ isshow: 0,
+ ad_data: null,
+ max_sw_height: 200,
},
//------初始化加载----------
- onLoad: function(t) {
- // wx.setNavigationBarTitle({ title: "商品秒杀",})
- var first_leader = t.first_leader;
- var type=t.type;
- if(type!=undefined){
- this.setData({type:type});
- }
-
- var th=this;
+ onLoad: function (t) {
+ var first_leader = t.first_leader;
+ var th = this;
console.log("------------");
- console.log(first_leader);
- getApp().getConfig();
+ console.log(first_leader);
+ getApp().getConfig();
if (first_leader) {
getApp().globalData.first_leader = first_leader;
@@ -39,205 +31,107 @@ Page({
}
})
}
-
- getApp().request.promiseGet("/api/weshop/ad/page?pid=701&store_id=" + os.stoid, {
- data: {
- enabled: 1
- }
- }).then(res => {
- if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
- var a = res.data.data.pageData;
- var narr=[];
- for(var i in a){
- var tt = {
- 'ad_code': os.imghost + a[i].ad_code,
- 'media_link': '',
- 'ad_weapplink':a[i].ad_weapplink
- };
- narr.push(tt);
- }
- th.setData({ad_data:narr});
- }
- })
-
- },
+ getApp().request.promiseGet("/api/weshop/ad/page?pid=1202&store_id=" + os.stoid, {
+ data: {
+ enabled: 1
+ }
+ }).then(res => {
+ if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length > 0) {
+ var a = res.data.data.pageData;
+ var narr = [];
+ for (var i in a) {
+ var tt = {
+ 'ad_code': os.imghost + a[i].ad_code,
+ 'media_link': '',
+ 'ad_weapplink': a[i].ad_weapplink
+ };
+ narr.push(tt);
+ }
+ th.setData({ad_data: narr});
+ }
+ })
- onShow: function(t) {
- this.data.ismore=1;
- this.data.is_timer=1;
- this.data.currentPage=1;
- var th=this;th.setData({goodlist:null,})
- this.requestSalelist();
- //设置全局定时器
- th.data.timer=setInterval(function () {
- th.countDown();
- },1000);
+ //调用列表
+ this.get_list();
},
- onHide:function(){
- //--清理定时器--
- clearInterval(this.timer);
- this.setData({isshow:0});
+ onShow: function (t) { },
+ //---小于10的格式化函数----
+ timeFormat(param) {
+ return param < 10 ? '0' + param : param;
},
- //---小于10的格式化函数----
- timeFormat(param) {
- return param < 10 ? '0' + param : param;
- },
-
- //----倒计时函数-----
- countDown() {
- if(!this.data.is_timer) return false;
- var th=this;
- // 获取当前时间,同时得到活动结束时间数组
- let newTime =ut.gettimestamp();
- var endTimeList = this.data.goodlist;
- if(endTimeList==null) return null
- // 对结束时间进行处理渲染到页面
- for (var i = 0; i < endTimeList.length;i++){
- var o = endTimeList[i];
- var endTime = o.end_time;
- if(th.data.type==0) endTime = o.start_time;
- let obj = null;
- // 如果活动未结束,对时间进行处理
- if (endTime - newTime > 0){
- let time = (endTime - newTime);
- // 获取天、时、分、秒
- let day = parseInt(time / (60 * 60 * 24));
- let hou = parseInt(time % (60 * 60 * 24) / 3600);
- let min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
- let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
- obj = {
- day: this.timeFormat(day), hou: this.timeFormat(hou), min: this.timeFormat(min), sec: this.timeFormat(sec), hide: 1
- }
- }else{
- //活动已结束,全部设置为'00'
- obj = { day: '00', hou: '00', min: '00', sec: '00' }
- }
- var txt ="goodlist["+i+"].djs";
- th.setData({ [txt]: obj});
- }
- },
-
- async requestSalelist() {
- //--没有更多就不调用--
- if(!this.data.ismore) return false;
- var e = this,th=e, i = "/api/ms/flash_sale/spikepage?page=" + e.data.currentPage;
- var plist=null,alllist=th.data.goodlist;
- if(!alllist) alllist=[];
-
- await getApp().request.promiseGet(i,
- {isShowLoading:1,data:{store_id:os.stoid,timetype:th.data.type,is_end:0,is_show:1}}
- ).then(res=>{
- plist=res.data.data.pageData;
- console.log("是什么即将开始",plist);
- });
-
- if(plist.length<=0){
-
- getApp().showWarning("没有更多数据");
- th.data.ismore=0;
- if(e.data.currentPage==1 && this.data.type==1){
- setTimeout(function () {
- th.data.ismore=1;
- th.setData({type:0});
- th.requestSalelist();
- },1000);
- }
- return false;
- }
-
- //--循环读取接口---
- for(var i=0;i{
- if(res.data.code==0){
- plist[i].status=1;
- if(res.data.data<=0) plist[i].status=3;
- }
- })
- alllist.push(plist[i]);
- }
- e.data.currentPage++;
- console.log("秒杀商品列表", alllist);
- th.setData({goodlist:alllist,isshow:1});
- },
- onPullDownRefresh: function() {
- this.reloadGoodList();
- },
- reloadGoodList: function() {
- this.data.goodlist = null, this.data.currentPage = 1, this.requestSalelist();
+ onReachBottom: function () {
+ this.get_list();
},
- onReachBottom: function() {
- this.requestSalelist();
+ //图片失败,默认图片
+ bind_bnerr2: function (e) {
+ var _errImg = e.target.dataset.errorimg;
+ var val = e.target.dataset.val;
+ if (val != undefined && val != null && val != 'null') {
+ var _errObj = {};
+ _errObj[_errImg] = "/public/images/default_goods_image_240.gif";
+ this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
+ }
},
- //点击tab事件
- tip:function(e){
- var a=e.currentTarget.dataset.ty,th=this;th.data.ismore=1;
- this.setData({type:a,goodlist:null});
- this.reloadGoodList();
+
+ imageLoad: function (e) {
+ var imgwidth = e.detail.width;
+ var imgheight = e.detail.height;
+ //宽高比
+ var ratio = imgwidth / imgheight;
+ //计算的高度值
+ var viewHeight = 750 / ratio;
+ var hei = this.data.max_sw_height;
+ if (hei < viewHeight) {
+ this.setData({max_sw_height: viewHeight});
+ }
},
- //---------分享配置--------
- onShareAppMessage: function (e) {
- var curPage=this;
- var pagePath = curPage.route; //当前页面url
- if (pagePath.indexOf('/') != 0) {
- pagePath = '/' + pagePath;
- }
- if(getApp().globalData.user_id){
+ //获取数据
+ get_list(){
+ var self = this;
+ if (this.data.loading) return false;
+ if (this.data.no_more) return false;
+ this.data.loading = 1;
- if(pagePath.indexOf("?")>0){
- pagePath+="&first_leader="+getApp().globalData.user_id;
- }else{
- pagePath+="?first_leader="+getApp().globalData.user_id;
- }
+ var req = {
+ is_end: 0,
+ store_id: os.stoid,
+ page: this.data.page,
+ pageSize: 10,
+ timetype: 1
}
- console.log("11"+pagePath);
- return {
- title: "限时秒杀",
- path:pagePath,
- }
- },
+ //调用接口获取数据
+ getApp().request.get("/api/weshop/marketing/marketingPresellList/page", {
+ data: req,
+ success: function (res) {
+ console.log(res);
+ self.data.loading = 0;
+ if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length > 0) {
+ var list = self.data.goodlist ? self.data.goodlist : [];
+ var arr = res.data.data.pageData;
+ //数组合起来
+ for (var i in arr) {
+ list.push(arr[i]);
+ }
+ self.data.page++;
+ self.setData({goodlist: list});
+ if (arr.length < 10) {
+ self.setData({no_more: 1})
+ }
+ } else {
+ self.setData({no_more: 1})
+ }
+ self.setData({is_get: 1})
- //图片失败,默认图片
- bind_bnerr2: function (e) {
- var _errImg = e.target.dataset.errorimg;
- var val = e.target.dataset.val;
- if(val!=undefined && val!=null && val!='null' ){
- var _errObj = {};
- _errObj[_errImg] = "/public/images/default_goods_image_240.gif";
- this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
- }
+ }
+ })
},
-
- onShareTimeline() {
- var store_name=getApp().globalData.config?getApp().globalData.config.store_name:'';
- if(!store_name)
- store_name=getApp().globalData.setting.appName;
- return {
- title: '秒杀活动-' + store_name,
- }
- },
-
- imageLoad:function(e){
- var imgwidth = e.detail.width;
- var imgheight = e.detail.height;
- //宽高比
- var ratio = imgwidth / imgheight;
- //计算的高度值
- var viewHeight = 750 / ratio;
- var hei=this.data.max_sw_height;
-
- if (hei< viewHeight) {
- this.setData({ max_sw_height: viewHeight });
- }
- }
+
});
diff --git a/packageC/pages/presell/list/list.json b/packageC/pages/presell/list/list.json
index fccb8ce..137a61b 100644
--- a/packageC/pages/presell/list/list.json
+++ b/packageC/pages/presell/list/list.json
@@ -2,6 +2,7 @@
"navigationBarTitleText": "预售活动列表",
"enablePullDownRefresh": false,
"usingComponents": {
- "share_box": "/components/share_box/share_box"
+ "share_box": "/components/share_box/share_box",
+ "nodata": "/components/nodata/nodata"
}
}
\ No newline at end of file
diff --git a/packageC/pages/presell/list/list.wxml b/packageC/pages/presell/list/list.wxml
index 928a340..332fd6a 100644
--- a/packageC/pages/presell/list/list.wxml
+++ b/packageC/pages/presell/list/list.wxml
@@ -5,8 +5,7 @@
+ indicator-dots="true" interval="2500" style="height:{{max_sw_height}}rpx" >
@@ -32,71 +31,50 @@
-
+
-
- {{item.title}}
+ {{item.goods_name}}
-
-
- 已预售{{type==1?filters.toFix(100-(item.buy_num+item.virtual)/(item.goods_num+item.virtual)*100,0):'100'}}%
+
+ 已预售{{filters.toFix((item.buy_goodnum+item.virtual_qty)/(item.presell_sumqty+item.virtual_qty)*100,0)}}%
- 库存还剩{{item.buy_num+item.virtual}}件
-
+ 库存还剩{{item.presell_sumqty-item.buy_goodnum}}件
-
-
-
+
- ¥
+ ¥{{item.presell_price}}
{{item.price}}
零售价¥{{item.market_price}}
去抢购
-
-
-
-没有相关内容
+
+-- 没有更多 --
+
+
-
+
diff --git a/packageC/pages/presell/list/list.wxss b/packageC/pages/presell/list/list.wxss
index 84af0b5..ce46633 100644
--- a/packageC/pages/presell/list/list.wxss
+++ b/packageC/pages/presell/list/list.wxss
@@ -138,10 +138,11 @@ padding-top: 4rpx;
}
.no-more {
- font-size: 30rpx;
+ font-size: 26rpx;
line-height: 2;
text-align: center;
- color: #333;
+ color: #666;
+ margin-top: 10rpx;
}
.kill-btn>navigator.huise{background-color: #999;}
@@ -165,7 +166,7 @@ margin-left: 45rpx;
}
.total{
width:215rpx;height:26rpx;border-radius:20rpx;
- background: #ffe3e2;
+ background: #aaa;
}
.xc-buttom-money{
align-items: baseline;
diff --git a/pages/goods/categoryList/categoryList.js b/pages/goods/categoryList/categoryList.js
index dc8bf88..5d62b2d 100644
--- a/pages/goods/categoryList/categoryList.js
+++ b/pages/goods/categoryList/categoryList.js
@@ -286,7 +286,7 @@ Page({
requestFirstCategoris: function() {
var t = this;
e.get("/api/weshop/goodscategory/page", {
- data: { store_id: oo.stoid,pageSize:600,is_show:1},
+ data: { store_id: oo.stoid,pageSize:6600,is_show:1},
success: function(e) {
var arr=new Array();
var dda = e.data.data.pageData;
diff --git a/pages/goods/categoryList/categoryList.wxml b/pages/goods/categoryList/categoryList.wxml
index 0bdf776..cae4c14 100644
--- a/pages/goods/categoryList/categoryList.wxml
+++ b/pages/goods/categoryList/categoryList.wxml
@@ -406,99 +406,132 @@
-
+
-
-
-
-
- {{item.goods_name}}
-
-
-
-
- {{item.prom_integral}}积分
- +
- ¥{{item.prom_price}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ¥{{item[card_field]}}
-
-
- {{card_name}}
+
+
+
+
+ {{item.goods_name}}
+
+
+
+
+
+ {{item.prom_integral}}积分
+ +
+ {{item.prom_price}}
+
+ {{item.market_price}}
+
+
+
-
-
- ¥{{item.shop_price}}
-
-
-
-
-
-
-
- ¥{{item.shop_price}}
- ¥{{item.market_price}}
-
-
-
- ¥{{item.shop_price}}
-
-
-
-
-
- ¥{{item.shop_price}}
-
-
-
-
-
+
暂无更多
diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js
index 546c335..e81aed8 100644
--- a/pages/goods/goodsInfo/goodsInfo.js
+++ b/pages/goods/goodsInfo/goodsInfo.js
@@ -309,6 +309,7 @@ Page({
}
}
+
ee.setData({ gid: gid});
if(first_leader){
console.log("log---".first_leader);
@@ -2492,6 +2493,16 @@ Page({
if (e.data.code == 0 && e.data.data && e.data.data.pageData && e.data.data.pageData.length>0) {
+ var his_cate_num=0;
+ for(let i in e.data.data.pageData){
+ let item=e.data.data.pageData[i];
+ if(item.category_id>0){
+ his_cate_num=1;break;
+ }
+ }
+ e.his_cate_num=his_cate_num;
+
+
//如果有开启距离的功能,没有设置默认门店,要用最近的门店作为默认门店
if(dd.lat && (!th.data.def_pick_store || JSON.stringify(th.data.def_pick_store)=='{}') && th.data.bconfig && th.data.bconfig.is_sort_storage){
th.setData({
@@ -2542,8 +2553,8 @@ Page({
var g_distr_type=th.data.sele_g.distr_type;
wx.hideLoading();
- //单总量超出5个的时候
- if (e.data.data.total > 5) {
+ //单总量超出10个的时候,同时门店有分类
+ if (e.data.data.total > 10 && e.his_cate_num ) {
getApp().request.get("/api/weshop/storagecategory/page", {
data: {
store_id: o.stoid,
@@ -2559,7 +2570,7 @@ Page({
var def_arr = new Array();
var ishas = 0;
//-- 开始就看5个门店 --
- for (var k = 0; k < 5; k++) {
+ for (var k = 0; k < 10; k++) {
if (k == e.data.data.pageData.length) break;
def_arr.push(e.data.data.pageData[k]);
}
@@ -2766,6 +2777,7 @@ Page({
var em={};em.data={};em.data.data={};
em.data.data.total=new_list.length;
em.data.data.pageData=new_list;
+ em.data.data.pageData=new_list;
//--如果找到默认门店,同时也应该判断配送方式对不对--
if(th.data.fir_def_store && !is_find_def_store && th.data.fir_def_store.pickup_id && (g_distr_type==0 || th.data.fir_def_store.distr_type==0 || th.data.def_pick_store.distr_type==g_distr_type ) ){
@@ -5580,7 +5592,11 @@ Page({
item.act=res.data.data;
func(isok);
})
- }
+ }
+
+
+
+
diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml
index abcc6d5..6731237 100644
--- a/pages/goods/goodsInfo/goodsInfo.wxml
+++ b/pages/goods/goodsInfo/goodsInfo.wxml
@@ -2,28 +2,24 @@
-
-
+
{{item.name}}
-
+
-
-
+
-
-
@@ -31,13 +27,12 @@
-
+
-
-
-
+
+
@@ -51,49 +46,52 @@
-
- 图片
-
+ 图片
-
-
-
+
-
-
距活动结束还有
距活动开始还有
- {{djs.day}}
+
+ {{djs.day}}
+
天
- {{djs.hou}}
+
+ {{djs.hou}}
+
时
- {{djs.min}}
- 分
- {{djs.sec}}
+
+ {{djs.min}}
+
+ 分
+
+ {{djs.sec}}
+
秒
-
-
+
-
+
¥
{{prom_price}}
- 零售价¥{{filters.toFix(data.market_price,2)}}
+
+ 零售价¥{{filters.toFix(data.market_price,2)}}
+
已拼{{prom_act.buy_num}}件
@@ -101,251 +99,267 @@
-
- {{prom_act.ct_num}}人拼
-
+ {{prom_act.ct_num}}人拼
距活动结束还有
距活动开始还有
- {{djs.day}}
- 天
+
+ {{djs.day}}
+
+
+ 天
+
- {{djs.hou}}
+
+ {{djs.hou}}
+
时
- {{djs.min}}
- 分
- {{djs.sec}}
+
+ {{djs.min}}
+
+ 分
+
+ {{djs.sec}}
+
秒
-
-
+
-
+
{{data.goods_name}}
-
-
-
- 分享
+
+
+ 分享
-
-
+
- ¥{{item.price}}
+ ¥
+ {{item.price}}
+
满{{item.rynum}}人
-
-
- {{prom_act.remark}}
-
-
-
+ {{prom_act.remark}}
+
- 以下小伙伴正在拼单,可直接参与
- 查看详细
+ 以下小伙伴正在拼单,可直接参与
+
+ 查看详细
-
-
-
-
-
-
- {{item.user.nickname}}
-
-
-
+
+
+
+
+
+
+ {{item.user.nickname}}
+
+
- 还差{{prom_act.max_ct_num - item.open_num}}人享最低优惠您已经享最低优惠
- 还差{{prom_act.ct_num - item.open_num}}人成团
+
+
+ 还差
+ {{prom_act.max_ct_num - item.open_num}}
+ 人享最低优惠
+
+ 您已经享最低优惠
+
+
+ 还差
+ {{prom_act.ct_num - item.open_num}}
+ 人成团
+
剩余
- {{timer[t_ind].day}}天:
- {{timer[t_ind].hou}}:
- {{timer[t_ind].min}}:
+ {{timer[t_ind].day}}天:
+ {{timer[t_ind].hou}}
+ :
+ {{timer[t_ind].min}}
+ :
{{timer[t_ind].sec}}
-
-
- 去参团
-
+
+ 去参团
-
-
-
-
-
-
-
-
-
- {{prom_integral}}积分
- +
- {{filters.toFix(prom_price,2)}}元
- 0积分
- 零售价:¥{{filters.toFix(data.market_price,2)}}
-
-
-
-
-
-
-
-
- 分享
-
-
-
-
-
-
- {{data.goods_name}}
-
-
-
- 销量:{{prom_act.buy_num}}件
- 折扣:{{g_filters.num((prom_price?prom_price:0)*10/data.shop_price)}}折
- {{categories3[0].num}}人评价
-
-
-
-
-
+
+
+
+
+
+
+
+ {{prom_integral}}
+ 积分
+
+ +
+ {{filters.toFix(prom_price,2)}}元
+ 0积分
+
+ 零售价:¥{{filters.toFix(data.market_price,2)}}
+
+
+
+
+
+
+
+
+ 分享
+
+
+
+ {{data.goods_name}}
+
+
+ 销量:{{prom_act.buy_num}}件
+
+ 折扣:{{g_filters.num((prom_price?prom_price:0)*10/data.shop_price)}}折
+
+ {{categories3[0].num}}人评价
+
+
+
+
-
-
-
-
-
-
-
- {{card_name}}
-
- ¥{{filters.toFix(data[card_field],2)}}
-
- 零售价:¥{{filters.toFix(data.market_price,2)}}
-
-
-
- ¥{{filters.toFix(data.shop_price,2)}}
- 零售价:¥{{filters.toFix(data.market_price,2)}}
-
-
-
-
-
-
-
-
-
-
-
- 分享
-
-
-
-
-
+
+
+
+
+
+
+ {{card_name}}
+
+ ¥
+ {{filters.toFix(data[card_field],2)}}
+
+ 零售价:¥{{filters.toFix(data.market_price,2)}}
+
+
+
+ ¥
+ {{filters.toFix(data.shop_price,2)}}
+
+ 零售价:¥{{filters.toFix(data.market_price,2)}}
+
+
+
+
+
+
+
+
+
+
+ 分享
+
+
-
+
-
-
-
- {{g_filters.get_card_price(data,card_list,1)}}
+
+
+
+ {{g_filters.get_card_price(data,card_list,1)}}
+
+
+
+ ¥
+ {{g_filters.get_card_price(data,card_list,0)}}
+
+
+
+
+
+
+
+
+
+
+
+ {{g_filters.get_card_price(data,card_list,1)}}
+
+
+
+
+ 成为{{g_filters.get_card_price(data,card_list,1)}}立
+
+ 省{{filters.toFix(data.shop_price-g_filters.get_card_price(data,card_list,0),2)}}
+
+ 元
+
+ 开通会员 尽享更多优惠
+
-
-
- ¥{{g_filters.get_card_price(data,card_list,0)}}
+
+ 立即开卡
+
-
-
-
-
-
-
-
-
-
-
-
-
- {{g_filters.get_card_price(data,card_list,1)}}
-
-
- 成为{{g_filters.get_card_price(data,card_list,1)}}立省{{filters.toFix(data.shop_price-g_filters.get_card_price(data,card_list,0),2)}}元
- 开通会员 尽享更多优惠
-
-
-
- 立即开卡
-
-
-
-
-
-
-
-
-
-
-
- {{card_name}}
-
-
- 成为{{card_name}}立省{{filters.toFix(data.shop_price[card_field],2)}}元
- 开通会员 尽享更多优惠
-
-
-
- 立即续费
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ {{card_name}}
+
+
+
+ 成为{{card_name}}立
+
+ 省{{filters.toFix(data.shop_price[card_field],2)}}
+
+ 元
+
+ 开通会员 尽享更多优惠
+
+
+
+ 立即续费
+
+
+
+
+
+
{{data.goods_name}}
-
销量:{{data.sales_sum}}件
折扣:{{data.disc}}折
@@ -354,18 +368,20 @@
- ¥{{prom_price}}
+
+ ¥
+ {{prom_price}}
+
零售价¥{{filters.toFix(data.market_price,2)}}
-
-
-
-
-
-
-
- 分享
-
+
+
+
+
+
+
+ 分享
+
-
{{data.goods_name}}
-
-
-
+
总数量:{{prom_act.goods_num+prom_act.virtual}}件
限购:{{prom_act.buy_limit}}件
- 已购:0件
-
-
- 已购:{{prom_act.buy_num+prom_act.virtual}}件
-
+ 已购:0件
+
+
+ 已购:{{prom_act.buy_num+prom_act.virtual}}件
+
-
- 总数量:{{prom_act.goods_num}}件
- 限购:{{prom_act.buy_limit}}件
- 已购:{{prom_act.buy_num}}件
+ 总数量:{{prom_act.goods_num}}件
+ 限购:{{prom_act.buy_limit}}件
+ 已购:{{prom_act.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"}}
+
+
+ (库存不足)
+
+
+ (库存不足)
+
+
+
+ (配送不匹配)
-
-
-
-
- {{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"}}
-
-
-
-
-
- (库存不足)
-
- (库存不足)
-
- (配送不匹配)
- (库存不足)
-
-
-
- 地址:{{def_pick_store.fulladdress}}
+
+ (库存不足)
-
-
+
+
+ 地址:{{def_pick_store.fulladdress}}
-
-
+
+
+
领券
-
-
-
- 满{{item.condition}}减{{item.money}}
-
-
-
-
+
+
+
+
+ 满{{item.condition}}减{{item.money}}
+
+
+
+
-
-
-
-
-
+
促销
-
-
- 消费满{{item.condition}}件元
-
- 减价{{item.money}}元;
- 打{{item.sale}}折;
- 包邮;
- 送{{tem.intValue}}积分;
- 送{{item.couponMoney}}元优惠券;
- 送商品{{item.goods_name}};
- 送{{item.lbtitle}};
-
-
+
+
+ 消费满{{item.condition}}
+ 件
+ 元
+
+
+ 减价{{item.money}}元;
+ 打{{item.sale}}折;
+ 包邮;
+ 送{{tem.intValue}}积分;
+ 送{{item.couponMoney}}元优惠券;
+ 送商品{{item.goods_name}};
+ 送{{item.lbtitle}};
+
+
-
-
+
订单优惠
-
-
- {{order_prom.name}}
- (活动时间:{{tool.format_tt(order_prom.start_time)}} - {{tool.format_tt(order_prom.end_time)}})
-
+
+
+ {{order_prom.name}}
+
+ (活动时间:{{tool.format_tt(order_prom.start_time)}} - {{tool.format_tt(order_prom.end_time)}})
+
+
-
-
-
- 组合购
-
-
-
-
-
- {{zh_act.name}}
- (活动时间:{{tool.format_tt(zh_act.start_time)}} - {{tool.format_tt(zh_act.end_time)}})
-
-
-
+
+ 组合购
+
+
+
+
+
+ {{zh_act.name}}
+
+ (活动时间:{{tool.format_tt(zh_act.start_time)}} - {{tool.format_tt(zh_act.end_time)}})
+
-
-
-
+
+
+
+
+
+
-
- {{bconfig.service_bz}}
-
-
-
-
-
-
-
+
+ {{bconfig.service_bz}}
+
+
+
+
+
+
-
-
-
+
优惠热配
- 查看全部
+
+ 查看全部
-
-
-
- {{collocationGoods.title}}
- 搭配价¥{{collocationGoods.min}}-{{collocationGoods.max}}
- 搭配价¥{{collocationGoods.min}}
- 活动至{{filters.format_time(collocationGoods.end_time,1)}}
-
+
+
+ {{collocationGoods.title}}
+
+ 搭配价¥{{collocationGoods.min}}-{{collocationGoods.max}}
+
+ 搭配价¥{{collocationGoods.min}}
+
+ 活动至{{filters.format_time(collocationGoods.end_time,1)}}
+
+
-
-
-
+
宝贝评价({{categories3[0].num}})
- 查看全部
+
+ 查看全部
-
-
-
-
-
+
+
+
-
+
+
+
+
+ 商品名称
+
+
+ {{data.goods_name}}
+
+
+
+
+ 商品编号
+
+
+ {{data.goods_sn}}
+
+
+
+
+ 商品条码
+
+
+ {{data.sku}}
+
+
+
+
+ 品类
+
+
+ {{cat_name}}
+
+
+
+
+ 品牌
+
+
+ {{brand_name}}
+
+
+
+
+ 国别
+
+
+ {{nation_name}}
+
+
+
+
+ 规格
+
+
+ {{filters.show_gui_ge(data.goods_spec,data.goods_color)}}
+
+
+
+
+ 上架时间
+
+
+ {{data.on_time}}
+
+
+
+
+
-
-
-
+
推荐
-
-
-
+
-
-
+
@@ -783,12 +791,11 @@
-
-
+
-
-
-
-
-
-
- {{item.username==''||item.is_anonymous==1 ?'匿名用户':item.username}}
-
+
+
+
+
+
+
+ {{item.username==''||item.is_anonymous==1 ?'匿名用户':item.username}}
+
+
+
-
-
-
- {{item.content?item.content:'此用户没有填写评价。'}}
-
-
- 全部显示
- 收起
-
-
-
-
-
+
+
+ {{item.content?item.content:'此用户没有填写评价。'}}
+
+
+
+ 全部显示
+
+
+ 收起
+
+
+
+
+
-
-
+
+
-
+
-
-
-
-
- {{item.add_time}}
-
-
-
- {{item.zan_num}}
+
+
+
+ {{item.add_time}}
+
+
+
+
+ {{item.zan_num}}
+
+
-
-
-
-
- 店家回复:
-
- {{r_item.content}}
+
+
+ 店家回复:
+
+ {{r_item.content}}
+
-
- 暂无评价
+ 暂无评价
已经加载到底部
-
-
-
- 提供技术支持
-
-
+
+
+
+
+ 提供技术支持
+
+
-
+
-
-
+
-
-
+
+
客服
-
-
- 客服
-
-
+
+
+ 客服
+
@@ -896,27 +908,25 @@
- {{cartGoodsNum}}
+ {{cartGoodsNum}}
购物车
- 立即购买
-
+
+ 立即购买
+
-
-
-
- 加入购物车
- 立即购买
+
+
+ 加入购物车
+ 立即购买
+
+
+ 库存不足
-
- 库存不足
-
-
-
-
+
加入购物车
@@ -932,307 +942,321 @@
活动已经结束
-
-
+
-
-
- {{filters.toFix(sele_g[card_field],2)}}
-
-
- {{filters.toFix(sele_g.shop_price,2)}}
-
-
+
+
+ {{filters.toFix(sele_g[card_field],2)}}
+
+ {{filters.toFix(sele_g.shop_price,2)}}
+
单独购买
-
-
+
¥{{prom_act.price}}
去参团
-
+
-
-
- 一键开团
- 佣金¥{{filters.toFix(prom_act.tz_yyhjg,2)}}
- 团长免单
-
-
- ¥{{ filters.toFix(prom_act.price,2)}}
- 一键开团
+
+
+ 一键开团
+
+ 佣金
+ ¥
+ {{filters.toFix(prom_act.tz_yyhjg,2)}}
+
+ 团长免单
+
+
+ ¥{{ filters.toFix(prom_act.price,2)}}
+ 一键开团
-
-
+
¥{{filters.toFix(prom_act.yf_price,2)}}
支付定金
-
即将开始
已抢光
活动已经结束
- 您还未支付
- 查看支付详情
- 支付尾款
+
+ 您还未支付
+
+
+ 查看支付详情
+
+
+ 支付尾款
+
-
-
-
-
-
-
-
-
-
- {{filters.toFix(sele_g[card_field],2)}}
-
-
- {{filters.toFix(sele_g.shop_price,2)}}
-
-
- 单独购买
-
- 立即兑换
- 积分不足
-
-
-
- 立即兑换
- 积分不足
-
-
-
-
-
+
+
+
+
+
+
+ {{filters.toFix(sele_g[card_field],2)}}
+
+ {{filters.toFix(sele_g.shop_price,2)}}
+
+ 单独购买
+
+
+ 立即兑换
+
+ 积分不足
+
+
+
+ 立即兑换
+
+
+ 积分不足
+
+
+
+
-
-
+
-
-
-
+
-
+
-
+
{{sele_g.goods_name}}
-
-
- ¥
-
- {{sele_g[card_field]}}
- {{sele_g.shop_price}}
-
- ¥{{prom_price}}
-
-
- 券后¥{{sele_g.offline_price}}
-
-
-
+
+
+ ¥
+
+ {{sele_g[card_field]}}
+ {{sele_g.shop_price}}
+
+
+ ¥
+ {{prom_price}}
+
+
+
+ 券后¥
+ {{sele_g.offline_price}}
+
+
-
- 已售:{{sele_g.sales_sum}}
-
- 可售:{{def_pick_store.CanOutQty}}
- 可售:0
-
- 可售:{{sele_g.store_count}}
-
+
+ 已售:{{sele_g.sales_sum}}
+
+
+ 可售:{{def_pick_store.CanOutQty}}
+
+ 可售:0
+
+
+ 可售:{{sele_g.store_count}}
+
+
-
- 已售:{{prom_act.buy_num+prom_act.virtual}}
- 已售:{{prom_act.buy_num}}
- 可售:{{prom_act.goods_num-prom_act.buy_num}}
-
+
+
+ 已售:{{prom_act.buy_num+prom_act.virtual}}
+
+ 已售:{{prom_act.buy_num}}
+ 可售:{{prom_act.goods_num-prom_act.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"}}
-
-
-
-
-
-
-
- 选择门店
-
-
-
- 更多门店
-
-
-
- (库存不足)
-
- (库存不足)
-
- (配送不匹配)
- (库存不足)
-
-
-
- 地址:{{def_pick_store.fulladdress}}
-
-
-
-
- 商品规格
-
-
- {{item.gg}}
-
-
+
+
+ {{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"}}
+
+
+
+
+
+ 选择门店
+
+
+ 更多门店
+
+
+
+ (库存不足)
+
+ (库存不足)
+
+ (配送不匹配)
+
+ (库存不足)
+
+
+
+
+ 地址:{{def_pick_store.fulladdress}}
-
-
-
- 购买数量
-
- -
-
- +
+
+
+
+ 商品规格
+
+
+ {{item.gg}}
-
-
-
- 再买{{hui_condition.need}}
- ,免{{hui_condition.money}}元
- ,打{{hui_condition.sale}}折
- ,包邮
- ,送{{hui_condition.intValue}}积分
- ,送优惠券
- ,送赠品
- ,送礼包
-
-
-
-
-
- 配送不匹配
-
-
-
-
- 库存不足
-
-
-
-
-
- 库存不足
-
-
-
- 库存不足
-
-
-
- 请先选择门店
-
-
-
-
-
- 库存不足
-
-
- 加入购物车
-
- {{sele_g.offline_price?"券后购买":"立即购买"}}
-
-
-
-
-
-
- 库存不足
-
-
- 加入购物车
-
- {{sele_g.offline_price?"券后购买":"立即购买"}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 选择门店
+
+ 购买数量
+
+
+ -
+
+
+ +
-
-
-
- {{item.name}}
+
+
+
+ 再买{{hui_condition.need}}
+ ,免{{hui_condition.money}}元
+ ,打{{hui_condition.sale}}折
+ ,包邮
+ ,送{{hui_condition.intValue}}积分
+ ,送优惠券
+ ,送赠品
+ ,送礼包
+
+
+
+
+ 配送不匹配
+
+
+
+
+
+ 库存不足
+
+
+
+
+
+ 库存不足
+
- {{item.pickup_name}}
+
+
+ 库存不足
+
+
+
+
+
+ 请先选择门店
+
+
+
+
+
+
+
+ 库存不足
+
+
+
+
+ 加入购物车
+
+
+ {{sele_g.offline_price?"券后购买":"立即购买"}}
+
+
+
+
+
+
+
+ 库存不足
+
+
+
+
+ 加入购物车
+
+
+ {{sele_g.offline_price?"券后购买":"立即购买"}}
+
+
+
+
+
-
-
-
- {{sec_sto.name}}
-
-
- {{item.pickup_name}}
+
+
+
+
+
+
+
+
+ 选择门店
+
+
+
+
+
+ {{item.name}}
+
+
+
+ {{item.pickup_name}}
+
+
+
+
+
+
+ {{sec_sto.name}}
+
+
+
+ {{item.pickup_name}}
-
+
+
-
-
+
-
-
-
+
+
+
-
-
-
-
+
+
+
-
+
-
-
+
@@ -1246,38 +1270,44 @@
-
+
- 拼团玩法介绍
+
+ 拼团玩法介绍
- 1.开团:
+
+ 1.开团:
选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;
- 2.参团:
+
+ 2.参团:
进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;
- 3.成团:
+
+ 3.成团:
在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;
- 4.组团失败:
+
+ 4.组团失败:
在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;
- 5.
- 组团有效期间内,拼购商品订单不允许取消。
+
+ 5.
+ 组团有效期间内,拼购商品订单不允许取消。
-
+
+
-
-
-
+
+
+
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
- 保存到相册
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存到相册
+
+
-
-
-
+
\ No newline at end of file
diff --git a/pages/goods/goodsInfo/goodsInfo.wxss b/pages/goods/goodsInfo/goodsInfo.wxss
index 8a4e258..9f87240 100644
--- a/pages/goods/goodsInfo/goodsInfo.wxss
+++ b/pages/goods/goodsInfo/goodsInfo.wxss
@@ -2731,7 +2731,7 @@ button.custom-service::after{
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
- width: calc(100% - 220rpx);
+ width: calc(100% - 210rpx);
z-index: 1000;
}
.mask {
diff --git a/pages/goods/goodsList/goodsList.wxml b/pages/goods/goodsList/goodsList.wxml
index 9a35814..1c5eac3 100644
--- a/pages/goods/goodsList/goodsList.wxml
+++ b/pages/goods/goodsList/goodsList.wxml
@@ -68,7 +68,7 @@
{{item.prom_integral}}积分
+
- ¥{{item.prom_price}}
+ {{item.prom_price}}
{{item.market_price}}
@@ -90,14 +90,14 @@
- ¥{{item[card_field]}}
+ {{item[card_field]}}
{{card_name}}
- ¥{{item.shop_price}}
+ {{item.shop_price}}