【订单详情】

1. 清理无用的 systemStore 门店信息
2. 清理公众号的 authorize 组件
pull/1/MERGE
YunaiV 2023-06-09 00:30:10 +08:00
parent 6320bb3453
commit e68d39c99c
1 changed files with 22 additions and 58 deletions

View File

@ -260,9 +260,6 @@
<!-- 海报展示 --> <!-- 海报展示 -->
<view class="mask" v-if="posters" @click="closePosters"></view> <view class="mask" v-if="posters" @click="closePosters"></view>
<view class="mask" v-if="canvasStatus"></view> <view class="mask" v-if="canvasStatus"></view>
<!-- #ifdef MP -->
<!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
<!-- #endif -->
<!-- 海报展示操作 --> <!-- 海报展示操作 -->
<view class='poster-pop' v-if="canvasStatus"> <view class='poster-pop' v-if="canvasStatus">
<image src='../../static/images/poster-close.png' class='close' @click="posterImageClose"></image> <image src='../../static/images/poster-close.png' class='close' @click="posterImageClose"></image>
@ -314,7 +311,6 @@
import * as ProductUtil from '@/utils/product.js'; import * as ProductUtil from '@/utils/product.js';
// #ifdef MP // #ifdef MP
import { base64src } from '@/utils/base64src.js' import { base64src } from '@/utils/base64src.js'
import authorize from '@/components/Authorize';
import { getQrcode } from '@/api/api.js'; import { getQrcode } from '@/api/api.js';
// #endif // #endif
const app = getApp(); const app = getApp();
@ -326,14 +322,12 @@
userEvaluation, userEvaluation,
shareRedPackets, shareRedPackets,
home, home,
"jyf-parser": parser, "jyf-parser": parser
// #ifdef MP
authorize
// #endif
}, },
data() { data() {
return { return {
id: 0, // id // ========== ==========
id: 0, // id
type: "", // normal - video - type: "", // normal - video -
productInfo: {}, // TODO productInfo: {}, // TODO
spu: {}, // SPU spu: {}, // SPU
@ -353,21 +347,16 @@
video: 'width:100%' video: 'width:100%'
}, },
// ========== TODO ==========
replyCount: 0, // TODO replyCount: 0, // TODO
reply: [], // reply: [], //
replyChance: 0, // TODO replyChance: 0, // TODO
// ========== TODO ==========
userCollect: false, userCollect: false,
// ========== TODO ==========
couponList: [], // TODO couponList: [], // TODO
cart_num: 1, // TODO
isAuto: false, // TODO
isShowAuth: false, // TODO
circular: false, // TODO
autoplay: false, // TODO
interval: 3000, // TODO
duration: 500, // TODO
systemStore: {}, // TODO
good_list: [], // TODO
activityH5: [], // TODO
// TODO // TODO
coupon: { coupon: {
coupon: false, coupon: false,
@ -376,20 +365,30 @@
count: [] count: []
}, },
// ========== TODO ==========
activityH5: [], // TODO
// ========== TODO ==========
circular: false, // TODO
autoplay: false, // TODO
duration: 500, // TODO
interval: 3000, // TODO
good_list: [], // TODO
// ========== ========== // ========== ==========
qrcodeSize: 600, // qrcodeSize: 600, //
promotionCode: '', // promotionCode: '', //
imgTop: '', // base64 imgTop: '', // base64
errT: '', // errT: '', //
posters: false, // posters: false, //
weixinStatus: false, // TODO weixinStatus: false, //
canvasStatus: false, // canvasStatus: false, //
imagePath: '', // imagePath: '', //
H5ShareBox: false, // TODO H5ShareBox: false, //
posterbackgd: '/static/images/posterbackgd.png', // posterbackgd: '/static/images/posterbackgd.png', //
storeImage: '', // storeImage: '', //
sharePacket: { // sharePacket: { //
isState: true, // // TODO isState: true, //
}, },
actionSheetHidden: true, // actionSheetHidden: true, //
@ -664,13 +663,11 @@
sku.cart_num++; sku.cart_num++;
if (sku.cart_num > stock) { if (sku.cart_num > stock) {
this.$set(this.attr.productSelect, "cart_num", stock); this.$set(this.attr.productSelect, "cart_num", stock);
this.$set(this, "cart_num", stock);
} }
} else { } else {
sku.cart_num--; sku.cart_num--;
if (sku.cart_num < 1) { if (sku.cart_num < 1) {
this.$set(this.attr.productSelect, "cart_num", 1); this.$set(this.attr.productSelect, "cart_num", 1);
this.$set(this, "cart_num", 1);
} }
} }
}, },
@ -829,11 +826,6 @@
}) })
} }
}, },
//
onLoadFun: function(e) {
this.getCouponList();
this.getCartCount();
},
ChangCouponsClone: function() { ChangCouponsClone: function() {
this.$set(this.coupon, 'coupon', false) this.$set(this.coupon, 'coupon', false)
}, },
@ -888,30 +880,6 @@
that.$set(that, 'replyCount', res.data.sumCount); that.$set(that, 'replyCount', res.data.sumCount);
}); });
}, },
/**
* 拨打电话
*/
makePhone: function() {
uni.makePhoneCall({
phoneNumber: this.systemStore.phone
})
},
/**
* 打开地图
*/
showMaoLocation: function() {
if (!this.systemStore.latitude || !this.systemStore.longitude) return this.$util.Tips({
title: '缺少经纬度信息无法查看地图!'
});
uni.openLocation({
latitude: parseFloat(this.systemStore.latitude),
longitude: parseFloat(this.systemStore.longitude),
scale: 8,
name: this.systemStore.name,
address: this.systemStore.address + this.systemStore.detailed_address,
success: function() {},
});
},
/** /**
* 获取优惠券 * 获取优惠券
*/ */
@ -974,10 +942,6 @@
that.$set(that.coupon, 'coupon', true); that.$set(that.coupon, 'coupon', true);
} }
}, },
//
authColse: function(e) {
this.isShowAuth = e
},
// ========== ========== // ========== ==========
/** /**