diff --git a/common/api/shop.js b/common/api/shop.js
index 34364d7..9771263 100644
--- a/common/api/shop.js
+++ b/common/api/shop.js
@@ -81,6 +81,14 @@ export default {
getGoodsClassRecommend() {
return vm.$u.post('Goods/getGoodsClassRecommend');
},
+ // goodsListByClassId
+ goodsListByClassId({ gc_id, page, order }) {
+ return vm.$u.post('goods/goodsListByClassId', {
+ gc_id: gc_id,
+ page: page,
+ order: order,
+ });
+ },
// 商品推荐
getGoodsRecommend({page, gc_id}){
return vm.$u.post('Goods/getGoodsRecommend', {
diff --git a/components/index/daren-item/index.vue b/components/index/daren-item/index.vue
index 9be9405..98b26a2 100644
--- a/components/index/daren-item/index.vue
+++ b/components/index/daren-item/index.vue
@@ -3,8 +3,8 @@
{{ info.member_nickname }}
状态: {{ info.live_status == 1 ? '正在直播' : '未开播' }}
- 关注
- 未关注
+ 已关注
+ 未关注
@@ -227,8 +211,21 @@
.uni-padding-wrap{
// height: 400rpx;
}
+ .btn-init {
+ z-index: 1000;
+ position: absolute;
+ bottom: 100rpx;
+ right: 30%;
+ width: 300rpx;
+ height: 80rpx;
+ line-height: 80rpx;
+ text-align: center;
+ color: #fff;
+ border-radius: 40rpx;
+ background-color: #007AFF;
+ }
.welcome_jumpes {
- z-index: 10;
+ z-index: 100;
position: absolute;
top: 80rpx;
right: 60rpx;
@@ -243,17 +240,12 @@
}
#myVideo {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- margin: auto;
+ width: 100%;
}
uni-video {
width: 100%;
- height: auto;
+ height: 100%;
}
.uni-video-container {
diff --git a/components/shop/group/index.vue b/components/shop/group/index.vue
index 062151c..5c69287 100644
--- a/components/shop/group/index.vue
+++ b/components/shop/group/index.vue
@@ -97,7 +97,11 @@ export default {
box-sizing: border-box;
padding: 0 30rpx;
display: flex;
- justify-content: space-between;
+ &:not(:nth-child(3n)) {
+ > view {
+ margin-right: 20rpx;
+ }
+ }
}
}
\ No newline at end of file
diff --git a/components/shop/list/index.vue b/components/shop/list/index.vue
index 268be23..35f2e4f 100644
--- a/components/shop/list/index.vue
+++ b/components/shop/list/index.vue
@@ -4,7 +4,7 @@
-
+
@@ -93,7 +93,9 @@ export default {
},
setSwiperHeight() {
// height: 230px, margin-bottom: 13
- this.swiperHeight = Math.ceil(this.goodsList.length / 2) * (230 + 13) + 'px';
+ // const height = Math.ceil(this.goodsList.length / 2) * (510 + 26);
+ // this.swiperHeight = height == 0 ? '230rpx' : height + 'rpx';
+ this.swiperHeight = Math.ceil(this.goodsList.length / 2) * (270 + 13) + 'px';
},
// tabs通知swiper切换
tabsChange(index) {
@@ -128,11 +130,20 @@ export default {
text-align: center;
color: #333;
}
- .goods-item {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- margin-top: 20rpx;
- }
+ .swiper-box {
+ height: 100%;
+ margin-bottom: 10rpx;
+ .swiper-item {
+ height: 100%;
+ .goods-item {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ width: 100%;
+ height: 100%;
+ overflow-y: scroll;
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/components/shop/list/item.vue b/components/shop/list/item.vue
index c33e26c..be4ff0f 100644
--- a/components/shop/list/item.vue
+++ b/components/shop/list/item.vue
@@ -1,9 +1,9 @@
-
+
- {{ info.goods_name }}
- {{ info.goods_advword }}
+ {{ info.goods_name }}
+ {{ info.goods_advword }}
¥{{ info.goods_price }}
@@ -44,13 +44,13 @@ export default {
\ No newline at end of file
diff --git a/components/shop/youhq/index.vue b/components/shop/youhq/index.vue
index 97a0431..4c9baa3 100644
--- a/components/shop/youhq/index.vue
+++ b/components/shop/youhq/index.vue
@@ -78,7 +78,7 @@ export default {
num = this.couponList.length
? this.couponList.length > 4 ? 4 : this.couponList.length
: 1
- this.swiperHeight = (97 + 10) * num + 'px';
+ this.swiperHeight = (200 + 20) * num + 'rpx';
},
toCouponPage() {
this.$u.route({
@@ -116,6 +116,7 @@ export default {
box-sizing: border-box;
background-color: #ffffff;
.coupon-item {
+ height: 200rpx;
margin-bottom: 20rpx;
}
}
diff --git a/manifest.json b/manifest.json
index 53b03e8..6916d64 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,5 +1,5 @@
{
- "name" : "deming",
+ "name" : "德铭阳光",
"appid" : "__UNI__EBFF00A",
"description" : "",
"versionName" : "1.0.0",
@@ -97,6 +97,50 @@
"UniversalLinks" : "https://demo.dcloud.net.cn/ulink/"
}
}
+ },
+ "splashscreen" : {
+ "androidStyle" : "default",
+ "android" : {
+ "hdpi" : "static/app/start/480x762.png",
+ "xhdpi" : "static/app/start/720x1242.png",
+ "xxhdpi" : "static/app/start/1080x1882.png"
+ },
+ "iosStyle" : "storyboard",
+ "ios" : {
+ "storyboard" : "static/CustomStoryboard.zip"
+ }
+ },
+ "icons" : {
+ "android" : {
+ "hdpi" : "static/app/icon/72x72.png",
+ "xhdpi" : "static/app/icon/96x96.png",
+ "xxhdpi" : "static/app/icon/144x144.png",
+ "xxxhdpi" : "static/app/icon/192x192.png"
+ },
+ "ios" : {
+ "appstore" : "unpackage/res/icons/1024x1024.png",
+ "iphone" : {
+ "app@2x" : "unpackage/res/icons/120x120.png",
+ "app@3x" : "unpackage/res/icons/180x180.png",
+ "spotlight@2x" : "unpackage/res/icons/80x80.png",
+ "spotlight@3x" : "unpackage/res/icons/120x120.png",
+ "settings@2x" : "unpackage/res/icons/58x58.png",
+ "settings@3x" : "unpackage/res/icons/87x87.png",
+ "notification@2x" : "unpackage/res/icons/40x40.png",
+ "notification@3x" : "unpackage/res/icons/60x60.png"
+ },
+ "ipad" : {
+ "app" : "unpackage/res/icons/76x76.png",
+ "app@2x" : "unpackage/res/icons/152x152.png",
+ "notification" : "unpackage/res/icons/20x20.png",
+ "notification@2x" : "unpackage/res/icons/40x40.png",
+ "proapp@2x" : "unpackage/res/icons/167x167.png",
+ "settings" : "unpackage/res/icons/29x29.png",
+ "settings@2x" : "unpackage/res/icons/58x58.png",
+ "spotlight" : "unpackage/res/icons/40x40.png",
+ "spotlight@2x" : "unpackage/res/icons/80x80.png"
+ }
+ }
}
}
},
diff --git a/pageA/login/login.vue b/pageA/login/login.vue
index a234f09..5a10a1f 100644
--- a/pageA/login/login.vue
+++ b/pageA/login/login.vue
@@ -180,7 +180,6 @@
})
return false
} else {
- console.log(123)
me.loginIn(res.data.token); //存储一个字符传值
// 缓存用户的信息
uni.setStorageSync('user_info',res.data);
diff --git a/pageA/register/register.vue b/pageA/register/register.vue
index 55c9fc4..8579985 100644
--- a/pageA/register/register.vue
+++ b/pageA/register/register.vue
@@ -8,11 +8,11 @@
手机注册
-
+
-
+
@@ -24,17 +24,18 @@
{{item.text}}
+ shape="circle" size="30" active-color="#19BE6B" >
- 其他方式登录
+
- {{login}}
+ {{login}}
+ 已有账号,立即登录
@@ -56,7 +57,10 @@
\ No newline at end of file
+ }
+
diff --git a/pageC/cart/ConfirmOrder.vue b/pageC/cart/ConfirmOrder.vue
index 1fde47b..de275a3 100644
--- a/pageC/cart/ConfirmOrder.vue
+++ b/pageC/cart/ConfirmOrder.vue
@@ -16,7 +16,7 @@
-
+
{{ item[0].store_name }}
@@ -424,8 +424,8 @@ export default {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
- border: 1rpx solid #000;
margin-right: 15rpx;
+ background-color: aquamarine;
}
> view {
font-size: 28rpx;
diff --git a/pageC/classify/goods.vue b/pageC/classify/goods.vue
new file mode 100644
index 0000000..4678187
--- /dev/null
+++ b/pageC/classify/goods.vue
@@ -0,0 +1,193 @@
+
+
+
+ 销量
+
+ 价格
+
+
+
+
+
+ 好评
+
+
+
+
+
+ {{ goods.goods_name }}
+ {{ goods.goods_advword }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageC/classify/index.vue b/pageC/classify/index.vue
index 04285c2..4e8b34f 100644
--- a/pageC/classify/index.vue
+++ b/pageC/classify/index.vue
@@ -15,7 +15,7 @@
{{item.gc_name}}
-
+
@@ -49,7 +49,18 @@
onReady() {
this.getMenuItemTop()
},
+ onNavigationBarButtonTap(e) {
+ if(e.index == 0) this.$u.route('/pageB/search/index');
+ },
+ onNavigationBarSearchInputClicked() {
+ this.$u.route('/pageB/search/index');
+ },
methods: {
+ toSearchPage() {
+ this.$u.route({
+ url: "pageB/search/index"
+ })
+ },
// 获取分类列表
getClassifyList() {
this.$u.api.getGoodsClassifyList().then(res => {
@@ -161,6 +172,12 @@
}
}
}, 10)
+ },
+ toClassifyPage(id, name) {
+ this.$u.route('pageC/classify/goods', {
+ cid: id,
+ cname: name,
+ });
}
}
}
diff --git a/pageD/notice/notice.vue b/pageD/notice/notice.vue
index d4fb54a..aaa702b 100644
--- a/pageD/notice/notice.vue
+++ b/pageD/notice/notice.vue
@@ -32,6 +32,9 @@
\ No newline at end of file
diff --git a/pageE/order/Details.vue b/pageE/order/Details.vue
index 34f1f74..a770128 100644
--- a/pageE/order/Details.vue
+++ b/pageE/order/Details.vue
@@ -1,11 +1,11 @@
-
+
- {{ s_object[state].text }}
- 距离结束:{{ countdown }}
+ {{ s_object[orderstate].text }}
+ 距离结束:{{ countdown }}
-
+
@@ -67,15 +67,16 @@
创建时间:{{ orderInfo.add_time | date}}
-
- 申请退款
- 查看物流
- 确认收货
-
- 取消支付
- 立即支付
- 联系官方客服
- 提交官方审核
+
+
+ 申请退款
+ 查看物流
+ 确认收货
+
+ 取消支付
+ 立即支付
+ 联系官方客服
+ 提交官方审核
@@ -83,7 +84,7 @@
export default {
data() {
return {
- state: '', // 1: 待收货 2: 待评价 3: 交易成功 4: 已取消 5: 已退款 6: 待支付 7: 待退款 8: 已退款
+ orderstate: '', // 1: 待收货 2: 待评价 3: 交易成功 4: 已取消 5: 已退款 6: 待支付 7: 待退款 8: 已退款
s_object: {
'1': {
text: '待收货',
@@ -113,6 +114,10 @@ export default {
text: '待退款',
image: '../static/mine/34.png',
},
+ '8': {
+ text: '拼团中',
+ image: '../static/mine/37.png',
+ },
},
orderInfo: {},
oid: '',
@@ -155,10 +160,13 @@ export default {
case 7:
state = '5';
break;
+ case 9:
+ state = '8';
+ break;
default:
break;
}
- this.state = state;
+ this.orderstate = state;
},
setSpikeTime(time) {
// console.log(time);
@@ -167,7 +175,7 @@ export default {
// console.log(spikeTime);
if(spikeTime <= 0) {
this.isSpike = true;
- this.spikeTime = '00:00:00'
+ this.countdown = '00:00:00'
clearInterval(this.timer);
return false;
};
@@ -196,9 +204,10 @@ export default {
}).then(res => {
if(res.errCode == 0) {
this.orderInfo = res.data;
- this.setSpikeTime(res.data.end_time);
this.viewState(this.orderInfo.view_type);
this.setTitle(this.orderInfo.view_type);
+ if(res.data.view_type == 1) this.setSpikeTime(res.data.end_time);
+ else if(res.data.view_type == 9) this.setSpikeTime(res.data.pintuangroup_endtime);
}
uni.stopPullDownRefresh(); // 结束刷新
})
@@ -243,6 +252,7 @@ export default {
this.$u.route('/pageC/cart/cashier', {
pay_sn: this.orderInfo.pay_sn,
price: this.orderInfo.order_amount,
+ order_id: this.orderInfo.order_id,
});
},
toOtherPage(url) {
diff --git a/pageE/order/Index.vue b/pageE/order/Index.vue
index cde9515..8e25b29 100644
--- a/pageE/order/Index.vue
+++ b/pageE/order/Index.vue
@@ -1,7 +1,7 @@
-
+
@@ -35,13 +35,15 @@ export default {
name: '待收货'
}, {
name: '试穿试送'
+ },{
+ name: '拼团中'
}, {
name: '售后'
}, {
name: '待评价'
}],
orderList: [],
- loadStatus: ['loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore'],
+ loadStatus: ['loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore'],
page: 0,
current: Number,
swiperCurrent: 0,
@@ -94,9 +96,12 @@ export default {
type = -1; // 试穿试送
break;
case 5:
- type = 8; // 售后
+ type = 9; // 拼团中
break;
case 6:
+ type = 8; // 售后
+ break;
+ case 7:
type = 4; // 待评价
break;
default:
diff --git a/pageE/order/RefundOrder.vue b/pageE/order/RefundOrder.vue
new file mode 100644
index 0000000..ce722a1
--- /dev/null
+++ b/pageE/order/RefundOrder.vue
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+
+ 选择数量
+
+
+
+
+ 退款金额
+ ¥99.00
+
+ 若退款成功,将退还给您¥99.00
+
+
+ 申请说明
+
+
+
+ 提交申请
+
+
+
+
\ No newline at end of file
diff --git a/pageE/static/mine/23.png b/pageE/static/mine/23.png
deleted file mode 100644
index cae1a3d..0000000
Binary files a/pageE/static/mine/23.png and /dev/null differ
diff --git a/pageE/static/mine/37.png b/pageE/static/mine/37.png
new file mode 100644
index 0000000..ce0fecb
Binary files /dev/null and b/pageE/static/mine/37.png differ
diff --git a/pageE/tool/Manicure.vue b/pageE/tool/Manicure.vue
index 209e328..c62ea13 100644
--- a/pageE/tool/Manicure.vue
+++ b/pageE/tool/Manicure.vue
@@ -1,9 +1,9 @@
-
+
-
+
@@ -14,7 +14,7 @@
{{ item.status }}
美甲人姓名:{{ item.manicure_name }}
- 时间:{{ item.manicure_time | dateFormat }}
+ 时间:{{ item.manicure_time | date }}
@@ -44,26 +44,20 @@ export default {
orderList: [],
loadStatus: 'loadmore',
timer: true,
+ swiperHeight: '',
}
},
onPullDownRefresh() {
this.getManicureList({ load: 'reload' });
},
+ onLoad() {
+ this.setViewHeight();
+ },
onShow() {
this.current = 0;
this.swiperCurrent = 0;
this.getManicureList({ load: 'reload' });
},
- filters: {
- dateFormat(value) {
- let date = new Date(value * 1000);
- let year, month, day;
- year = date.getFullYear();
- month = date.getMonth() + 1;
- day = date.getDate();
- return year + "-" + month + "-" + day;
- }
- },
methods: {
async getManicureList({ load }) {
const res = await this.$u.api.getManicureList({
@@ -94,6 +88,10 @@ export default {
this.page--;
})
},
+ setViewHeight() {
+ const res = uni.getSystemInfoSync();
+ this.swiperHeight = res.windowHeight - (88 / 2) + 'px';
+ },
tabsChange(index) {
this.swiperCurrent = index;
// this.toApplyPage(index);
diff --git a/pageE/tool/ManicureOrder.vue b/pageE/tool/ManicureOrder.vue
index e53cd92..7f079fb 100644
--- a/pageE/tool/ManicureOrder.vue
+++ b/pageE/tool/ManicureOrder.vue
@@ -65,14 +65,11 @@ export default {
time: new Date(this.time)
}).then((res)=>{
if(res.errCode == 0) {
- uni.redirectTo({
- url: '/pageE/tool/Manicure'
- });
- // this.$refs.uToast.show({
- // title: res.message,
- // type: 'success',
- // url: '/pageE/tool/Manicure'
- // })
+ this.$refs.uToast.show({
+ title: res.message,
+ type: 'success',
+ back: true,
+ })
} else {
this.showToast(res.message, 'error');
}
diff --git a/pageE/tool/SendWash.vue b/pageE/tool/SendWash.vue
index ae9fe35..dd42526 100644
--- a/pageE/tool/SendWash.vue
+++ b/pageE/tool/SendWash.vue
@@ -3,8 +3,16 @@
+
-
+
@@ -13,10 +21,10 @@
{{ item.order_status | viewStatus }}
-
+
骑手名字:{{ item.takeawayer_name || '' }}
- 联系方式:{{ item.member_phone || '' }}
+ 联系方式:{{ item.takeawayer_mobile || '' }}
所属公司:{{ item.company || '' }}
@@ -56,14 +64,6 @@
-