Merge branch 'master' of https://git.dayouqiantu.cn/uniapp/yshop-uniapp
This commit is contained in:
20
api/order.js
20
api/order.js
@ -97,9 +97,9 @@ export function postOrderRefund(data) {
|
|||||||
* 确认收货
|
* 确认收货
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export function takeOrder(orderId) {
|
export function takeOrder(uni) {
|
||||||
return request.post("/order/take", {
|
return request.post("/order/take", {
|
||||||
orderId
|
uni
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,9 +107,9 @@ export function takeOrder(orderId) {
|
|||||||
* 删除订单
|
* 删除订单
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export function delOrder(orderId) {
|
export function delOrder(uni) {
|
||||||
return request.post("/order/del", {
|
return request.post("/order/del", {
|
||||||
orderId
|
uni
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,9 +125,9 @@ export function express(params) {
|
|||||||
* 订单查询物流信息
|
* 订单查询物流信息
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export function payOrder(orderId, paytype, from) {
|
export function payOrder(uni, paytype, from) {
|
||||||
return request.post("order/pay", {
|
return request.post("order/pay", {
|
||||||
orderId,
|
uni,
|
||||||
paytype,
|
paytype,
|
||||||
from
|
from
|
||||||
});
|
});
|
||||||
@ -136,9 +136,7 @@ export function payOrder(orderId, paytype, from) {
|
|||||||
* 订单核销
|
* 订单核销
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export function orderVerific(verifyCode, orderVerific) {
|
|
||||||
return request.post("order/order_verific", {
|
export function orderVerific(verifyCode, isConfirm) {
|
||||||
verifyCode,
|
return request.post("order/order_verific", { verifyCode, isConfirm });
|
||||||
orderVerific
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -194,7 +194,7 @@ page {
|
|||||||
height: 0.36*100rpx;
|
height: 0.36*100rpx;
|
||||||
line-height: 0.46*100rpx;
|
line-height: 0.46*100rpx;
|
||||||
font-size: 0.26*100rpx;
|
font-size: 0.26*100rpx;
|
||||||
color:#ea3526;
|
color: #ea3526;
|
||||||
border-radius: 0.24*100rpx 0.03*100rpx 0.24*100rpx 0.03*100rpx;
|
border-radius: 0.24*100rpx 0.03*100rpx 0.24*100rpx 0.03*100rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1437,7 +1437,8 @@ page {
|
|||||||
width: 5.3*100rpx;
|
width: 5.3*100rpx;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
.index .wrapper .title .text-center .name{
|
|
||||||
|
.index .wrapper .title .text-center .name {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8584,3 +8585,16 @@ page {
|
|||||||
.text .name .icon-shoucang {
|
.text .name .icon-shoucang {
|
||||||
color: #ea3526 !important;
|
color: #ea3526 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rich-text {
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
img,
|
||||||
|
image {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -196,6 +196,9 @@ export default {
|
|||||||
z-index: 1502;
|
z-index: 1502;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 800rpx;
|
height: 800rpx;
|
||||||
|
padding-bottom: 0;
|
||||||
|
padding-bottom: constant(safe-area-inset-bottom);
|
||||||
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
.cityScroll {
|
.cityScroll {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
@ -369,6 +369,10 @@ export default {
|
|||||||
var that = this;
|
var that = this;
|
||||||
getBargainDetail(that.bargainId)
|
getBargainDetail(that.bargainId)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
res.data.bargain = res.data.bargain.replace(
|
||||||
|
/\<img/gi,
|
||||||
|
'<img style="max-width:100%;height:auto;"'
|
||||||
|
);
|
||||||
that.bargain = res.data.bargain;
|
that.bargain = res.data.bargain;
|
||||||
that.datatime = that.bargain.stopTime / 1000;
|
that.datatime = that.bargain.stopTime / 1000;
|
||||||
that.getBargainHelpCount();
|
that.getBargainHelpCount();
|
||||||
|
@ -242,6 +242,10 @@ export default {
|
|||||||
let id = that.$yroute.query.id;
|
let id = that.$yroute.query.id;
|
||||||
getCombinationDetail(id).then(res => {
|
getCombinationDetail(id).then(res => {
|
||||||
that.userCollect = res.data.userCollect;
|
that.userCollect = res.data.userCollect;
|
||||||
|
res.data.storeInfo.description = res.data.storeInfo.description.replace(
|
||||||
|
/\<img/gi,
|
||||||
|
'<img style="max-width:100%;height:auto;"'
|
||||||
|
);
|
||||||
that.$set(that, "storeInfo", res.data.storeInfo);
|
that.$set(that, "storeInfo", res.data.storeInfo);
|
||||||
that.$set(that, "imgUrls", res.data.storeInfo.sliderImageArr);
|
that.$set(that, "imgUrls", res.data.storeInfo.sliderImageArr);
|
||||||
that.$set(that, "itemNew", res.data.pinkOkList);
|
that.$set(that, "itemNew", res.data.pinkOkList);
|
||||||
|
@ -131,6 +131,10 @@ export default {
|
|||||||
let id = that.$yroute.query.id;
|
let id = that.$yroute.query.id;
|
||||||
that.datatime = parseInt(that.$yroute.query.time);
|
that.datatime = parseInt(that.$yroute.query.time);
|
||||||
getSeckillDetail(id).then(res => {
|
getSeckillDetail(id).then(res => {
|
||||||
|
res.data.storeInfo.description = res.data.storeInfo.description.replace(
|
||||||
|
/\<img/gi,
|
||||||
|
'<img style="max-width:100%;height:auto;"'
|
||||||
|
);
|
||||||
that.$set(that, "storeInfo", res.data.storeInfo);
|
that.$set(that, "storeInfo", res.data.storeInfo);
|
||||||
that.$set(that, "imgUrls", res.data.storeInfo.sliderImageArr);
|
that.$set(that, "imgUrls", res.data.storeInfo.sliderImageArr);
|
||||||
that.$set(that, "replyCount", res.data.replyCount);
|
that.$set(that, "replyCount", res.data.replyCount);
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
that.getIndex();
|
that.getIndex();
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
!that.loading && that.getIndex();
|
!this.loading && this.getIndex();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goGoodsDeliver(item) {
|
goGoodsDeliver(item) {
|
||||||
|
@ -41,12 +41,13 @@
|
|||||||
<view class="iconfont icon-jiantou"></view>
|
<view class="iconfont icon-jiantou"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<div class="attribute acea-row row-between-wrapper">
|
<div class="attribute acea-row row-between-wrapper">
|
||||||
<div>
|
<div>
|
||||||
运费:<span class="atterTxt">{{ tempName }}</span>
|
运费:
|
||||||
|
<span class="atterTxt">{{ tempName }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<view class="attribute acea-row row-between-wrapper" @click="selecAttrTap">
|
<view class="attribute acea-row row-between-wrapper" @click="selecAttrTap">
|
||||||
<view>
|
<view>
|
||||||
<text>{{ attrTxt }}:</text>
|
<text>{{ attrTxt }}:</text>
|
||||||
@ -274,8 +275,7 @@ export default {
|
|||||||
systemStore: {},
|
systemStore: {},
|
||||||
qqmapsdk: null,
|
qqmapsdk: null,
|
||||||
productConClass: "product-con",
|
productConClass: "product-con",
|
||||||
tempName: '全国包邮'
|
tempName: "全国包邮"
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(["isLogin", "location"]),
|
computed: mapGetters(["isLogin", "location"]),
|
||||||
@ -354,7 +354,10 @@ export default {
|
|||||||
uni.showLoading({ title: "加载中", mask: true });
|
uni.showLoading({ title: "加载中", mask: true });
|
||||||
getProductDetail(that.id, from)
|
getProductDetail(that.id, from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res);
|
res.data.storeInfo.description = res.data.storeInfo.description.replace(
|
||||||
|
/\<img/gi,
|
||||||
|
'<img style="max-width:100%;height:auto;"'
|
||||||
|
);
|
||||||
that.$set(that, "storeInfo", res.data.storeInfo);
|
that.$set(that, "storeInfo", res.data.storeInfo);
|
||||||
// 给 attr 赋值,将请求回来的规格赋值给 attr
|
// 给 attr 赋值,将请求回来的规格赋值给 attr
|
||||||
that.$set(that.attr, "productAttr", res.data.productAttr);
|
that.$set(that.attr, "productAttr", res.data.productAttr);
|
||||||
|
@ -313,6 +313,7 @@ export default {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(this.userInfo)
|
||||||
if (url === "/pages/orderAdmin/OrderCancellation/index" && !this.userInfo.checkStatus) {
|
if (url === "/pages/orderAdmin/OrderCancellation/index" && !this.userInfo.checkStatus) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "您没有核销权限,请后台店员设置!!",
|
title: "您没有核销权限,请后台店员设置!!",
|
||||||
|
@ -70,7 +70,7 @@ export default {
|
|||||||
that.getIndex();
|
that.getIndex();
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
!that.loading && that.getIndex();
|
!this.loading && this.getIndex();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
code: function() {
|
code: function() {
|
||||||
|
@ -14,7 +14,7 @@ const dialog = {
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: options.mes,
|
content: options.mes,
|
||||||
success() {
|
success(res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
opts()
|
opts()
|
||||||
} else if (res.cancel) {}
|
} else if (res.cancel) {}
|
||||||
|
Reference in New Issue
Block a user