Gao xiaosong 5 years ago
parent
commit
c498644b37
  1. 20
      api/order.js
  2. 2
      assets/css/style.css
  3. 2
      assets/css/style.css.map
  4. 18
      assets/css/style.less
  5. 3
      components/CitySelect.vue
  6. 4
      pages/activity/DargainDetails/index.vue
  7. 4
      pages/activity/GroupDetails/index.vue
  8. 4
      pages/activity/SeckillDetails/index.vue
  9. 2
      pages/orderAdmin/AdminOrderList/index.vue
  10. 19
      pages/shop/GoodsCon/index.vue
  11. 1
      pages/user/User/index.vue
  12. 2
      pages/user/UserBill/index.vue
  13. 2
      utils/dialog.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
});
} }

2
assets/css/style.css

File diff suppressed because one or more lines are too long

2
assets/css/style.css.map

File diff suppressed because one or more lines are too long

18
assets/css/style.less

@ -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%;
}
}

3
components/CitySelect.vue

@ -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%;
} }

4
pages/activity/DargainDetails/index.vue

@ -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();

4
pages/activity/GroupDetails/index.vue

@ -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);

4
pages/activity/SeckillDetails/index.vue

@ -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);

2
pages/orderAdmin/AdminOrderList/index.vue

@ -129,7 +129,7 @@
that.getIndex(); that.getIndex();
}, },
onReachBottom() { onReachBottom() {
!that.loading && that.getIndex(); !this.loading && this.getIndex();
}, },
methods: { methods: {
goGoodsDeliver(item) { goGoodsDeliver(item) {

19
pages/shop/GoodsCon/index.vue

@ -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);

1
pages/user/User/index.vue

@ -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: "您没有核销权限,请后台店员设置!!",

2
pages/user/UserBill/index.vue

@ -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() {

2
utils/dialog.js

@ -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) {}

Loading…
Cancel
Save