【订单详情】

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="canvasStatus"></view>
<!-- #ifdef MP -->
<!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
<!-- #endif -->
<!-- 海报展示操作 -->
<view class='poster-pop' v-if="canvasStatus">
<image src='../../static/images/poster-close.png' class='close' @click="posterImageClose"></image>
@ -314,7 +311,6 @@
import * as ProductUtil from '@/utils/product.js';
// #ifdef MP
import { base64src } from '@/utils/base64src.js'
import authorize from '@/components/Authorize';
import { getQrcode } from '@/api/api.js';
// #endif
const app = getApp();
@ -326,14 +322,12 @@
userEvaluation,
shareRedPackets,
home,
"jyf-parser": parser,
// #ifdef MP
authorize
// #endif
"jyf-parser": parser
},
data() {
return {
id: 0, // id
// ========== ==========
id: 0, // id
type: "", // normal - video -
productInfo: {}, // TODO
spu: {}, // SPU
@ -353,21 +347,16 @@
video: 'width:100%'
},
// ========== TODO ==========
replyCount: 0, // TODO
reply: [], //
replyChance: 0, // TODO
// ========== TODO ==========
userCollect: false,
// ========== 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
coupon: {
coupon: false,
@ -376,20 +365,30 @@
count: []
},
// ========== TODO ==========
activityH5: [], // TODO
// ========== TODO ==========
circular: false, // TODO
autoplay: false, // TODO
duration: 500, // TODO
interval: 3000, // TODO
good_list: [], // TODO
// ========== ==========
qrcodeSize: 600, //
promotionCode: '', //
imgTop: '', // base64
errT: '', //
posters: false, //
weixinStatus: false, // TODO
weixinStatus: false, //
canvasStatus: false, //
imagePath: '', //
H5ShareBox: false, // TODO
H5ShareBox: false, //
posterbackgd: '/static/images/posterbackgd.png', //
storeImage: '', //
sharePacket: { //
isState: true, // // TODO
sharePacket: { //
isState: true, //
},
actionSheetHidden: true, //
@ -664,13 +663,11 @@
sku.cart_num++;
if (sku.cart_num > stock) {
this.$set(this.attr.productSelect, "cart_num", stock);
this.$set(this, "cart_num", stock);
}
} else {
sku.cart_num--;
if (sku.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() {
this.$set(this.coupon, 'coupon', false)
},
@ -888,30 +880,6 @@
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);
}
},
//
authColse: function(e) {
this.isShowAuth = e
},
// ========== ==========
/**