Commit f275e4ee by 李伟康

commit 提交

1 parent 2ebd8eb6
...@@ -39,14 +39,6 @@ module.exports = { ...@@ -39,14 +39,6 @@ module.exports = {
projectName: "boutique", projectName: "boutique",
}); });
}, },
/** 查询接待素材详情 */
getFindSoureDetail (data) {
return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureDetailList",
projectName: "boutique",
...data,
});
},
// 历史订单列表 // 历史订单列表
getQuotationList (data) { getQuotationList (data) {
return http.post({ return http.post({
...@@ -91,4 +83,21 @@ module.exports = { ...@@ -91,4 +83,21 @@ module.exports = {
...data, ...data,
}); });
}, },
/** 查询接待记录列表 */
getReceptionList (data) {
return http.post({
method: "dj.api.smartcarlife.reception.customer.page",
projectName: "boutique",
...data,
});
},
/** 接待统计 */
getReceptionStatistics (data) {
return http.post({
method: "dj.api.smartcarlife.reception.customer.statistics",
projectName: "boutique",
...data,
});
},
}; };
...@@ -18,11 +18,6 @@ module.exports = { ...@@ -18,11 +18,6 @@ module.exports = {
data.projectName = "boutique"; data.projectName = "boutique";
return http.fetch("dj.api.smartcarlife.sms.noSignIn.login", data); return http.fetch("dj.api.smartcarlife.sms.noSignIn.login", data);
}, },
/**获取当前登录账号能查看的园区店列表 */
getYQList() {
data.projectName = "boutique";
return http.fetch("dj.api.smartcarlife.serviceMerchant.curYqList");
},
// 获取园区店下的4s店 // 获取园区店下的4s店
getSceneMerchantRefStoreList(data) { getSceneMerchantRefStoreList(data) {
data.projectName = "boutique"; data.projectName = "boutique";
...@@ -44,6 +39,14 @@ module.exports = { ...@@ -44,6 +39,14 @@ module.exports = {
data data
); );
}, },
// 选择4s店和场景
selectMerchantScene(data) {
data.projectName = "boutique";
return http.fetch(
"dj.api.smartcarlife.selectMerchantScene",
data
);
},
// 获取园区店开通的场景入口 // 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI(data) { getYqMerchantSceneConfigAPI(data) {
data.projectName = "boutique"; data.projectName = "boutique";
......
...@@ -11,7 +11,7 @@ const HOST = { ...@@ -11,7 +11,7 @@ const HOST = {
scrm: domain, scrm: domain,
dj: djDomain, dj: djDomain,
merchant: merchantDomain, merchant: merchantDomain,
ip: 'http://192.168.9.119:8292' ip: 'http://192.168.3.226:9711'
}; };
class Request { class Request {
get (params, returnAll = false, hostType) { get (params, returnAll = false, hostType) {
......
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 496rpx 434rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -212rpx -268rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -276rpx 0rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -276rpx -106rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: 0rpx -268rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -106rpx -268rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -276rpx -212rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -318rpx -212rpx;}
.icon-icon-avatar { width: 128rpx; height: 128rpx; background-position: 0rpx 0rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -212rpx -328rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -382rpx 0rpx;}
.icon-icon-logout { width: 32rpx; height: 32rpx; background-position: -254rpx -328rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -296rpx -328rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -338rpx -328rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -138rpx 0rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -408rpx -374rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -464rpx 0rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -464rpx -42rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -464rpx -84rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -464rpx -126rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: 0rpx -138rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -130rpx -138rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -350rpx -374rpx;}
.icon-tool-1 { width: 60rpx; height: 60rpx; background-position: -382rpx -82rpx;}
.icon-tool-2 { width: 60rpx; height: 60rpx; background-position: -382rpx -152rpx;}
.icon-tool-3 { width: 60rpx; height: 60rpx; background-position: -382rpx -222rpx;}
.icon-tool-4 { width: 60rpx; height: 60rpx; background-position: -382rpx -292rpx;}
.icon-tool-5 { width: 60rpx; height: 60rpx; background-position: 0rpx -374rpx;}
.icon-tool-6 { width: 60rpx; height: 60rpx; background-position: -70rpx -374rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -140rpx -374rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -210rpx -374rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -280rpx -374rpx;}
\ No newline at end of file \ No newline at end of file
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1338rpx 668rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -992rpx -432rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1300rpx -294rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -1194rpx -294rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -674rpx -432rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -780rpx -432rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -886rpx -432rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1300rpx -336rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -588rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -588rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1188rpx -432rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -1072rpx -294rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1230rpx -432rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -360rpx -588rpx;}
.icon-icon-logout { width: 32rpx; height: 32rpx; background-position: -1272rpx -432rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -992rpx -492rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1034rpx -492rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -674rpx -294rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1076rpx -492rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1118rpx -492rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1160rpx -492rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1202rpx -492rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1244rpx -492rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -812rpx -294rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -942rpx -294rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1130rpx -432rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -180rpx -588rpx;}
.icon-record-day { width: 664rpx; height: 284rpx; background-position: 0rpx 0rpx;}
.icon-record-month { width: 664rpx; height: 284rpx; background-position: 0rpx -294rpx;}
.icon-record-week { width: 664rpx; height: 284rpx; background-position: -674rpx 0rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -588rpx;}
.icon-tool-1 { width: 60rpx; height: 60rpx; background-position: -442rpx -588rpx;}
.icon-tool-2 { width: 60rpx; height: 60rpx; background-position: -512rpx -588rpx;}
.icon-tool-3 { width: 60rpx; height: 60rpx; background-position: -582rpx -588rpx;}
.icon-tool-4 { width: 60rpx; height: 60rpx; background-position: -652rpx -588rpx;}
.icon-tool-5 { width: 60rpx; height: 60rpx; background-position: -722rpx -588rpx;}
.icon-tool-6 { width: 60rpx; height: 60rpx; background-position: -792rpx -588rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -862rpx -588rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -932rpx -588rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -1002rpx -588rpx;}
\ No newline at end of file \ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type

224 KB | W: | H:

978 KB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

19.3 KB | W: | H:

15.4 KB | W: | H:

assets/spritesmith/icon-avatar.png
assets/spritesmith/icon-avatar.png
assets/spritesmith/icon-avatar.png
assets/spritesmith/icon-avatar.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -58,9 +58,19 @@ ...@@ -58,9 +58,19 @@
</view> </view>
</view> </view>
</template> </template>
<view <movable-area
class="canvas-box" class="canvas-box"
:style="{aspectRatio:aspectRatio}" scale-area
:style="{height:height}"
>
<!-- :style="{aspectRatio:aspectRatio}" -->
<movable-view
class="canvas-view"
scale-min="1"
:scale="!drawStatus"
:direction="drawStatus?'none':'all'"
:scale-value="defaultScaleValue"
@scale="scale"
> >
<canvas <canvas
class="board-canvas" class="board-canvas"
...@@ -86,7 +96,8 @@ ...@@ -86,7 +96,8 @@
mode="scaleToFill" mode="scaleToFill"
/> --> /> -->
</view> </movable-view>
</movable-area>
<!-- <color <!-- <color
:colorShow="colorShow" :colorShow="colorShow"
@colorPickTap="colorPickTapHandler" @colorPickTap="colorPickTapHandler"
...@@ -106,7 +117,7 @@ ...@@ -106,7 +117,7 @@
<script> <script>
import color from "./color.vue" import color from "./color.vue"
export default { export default {
name: "canvas", name: "wn-canvas",
components: { components: {
color color
}, },
...@@ -203,7 +214,10 @@ export default { ...@@ -203,7 +214,10 @@ export default {
toolsShow: true, toolsShow: true,
isLandScape: false, //是否横屏 isLandScape: false, //是否横屏
aspectRatio: null,//图片宽高比 aspectRatio: null,//图片宽高比
showPenBox: false showPenBox: false,
height: null,
scaleValue: 1,
defaultScaleValue: 1
}; };
}, },
...@@ -299,12 +313,14 @@ export default { ...@@ -299,12 +313,14 @@ export default {
}, },
//开始绘制曲线 //开始绘制曲线
penBegin (x, y) { penBegin (x, y) {
x = x / this.scaleValue
y = y / this.scaleValue
this.begin = true; this.begin = true;
this.drawContext.beginPath() this.drawContext.beginPath()
this.drawContext.setStrokeStyle(this.currentColor); this.drawContext.setStrokeStyle(this.currentColor);
this.startX = x; this.startX = x;
this.startY = y; this.startY = y;
this.drawContext.moveTo(this.startX, this.startY) this.drawContext.moveTo(this.startX / this.scaleValue, this.startY / this.scaleValue)
this.drawPen(x, y); this.drawPen(x, y);
}, },
// 绘制线条中间添加点 // 绘制线条中间添加点
...@@ -571,6 +587,8 @@ export default { ...@@ -571,6 +587,8 @@ export default {
x, x,
y y
} = e.touches[0] } = e.touches[0]
x = x / this.scaleValue
y = y / this.scaleValue
this.lastX = x; this.lastX = x;
this.lastY = y; this.lastY = y;
// console.log("touch移动"); // console.log("touch移动");
...@@ -820,6 +838,10 @@ export default { ...@@ -820,6 +838,10 @@ export default {
}, },
//清空画板 //清空画板
clearBoard () { clearBoard () {
this.defaultScaleValue = 1.1
setTimeout(()=>{
this.defaultScaleValue = 1
},100)
this.historyList = []; this.historyList = [];
this.drawContext?.draw() this.drawContext?.draw()
}, },
...@@ -838,6 +860,7 @@ export default { ...@@ -838,6 +860,7 @@ export default {
this.aspectRatio = imageInfoObj.width / imageInfoObj.height; this.aspectRatio = imageInfoObj.width / imageInfoObj.height;
this.height = `${imageInfoObj.height * (systemInfo.windowWidth / imageInfoObj.width)}px`
} }
if (this.isUnderBkg) { if (this.isUnderBkg) {
this.bgColor = "rgba(0,0,0,0)" this.bgColor = "rgba(0,0,0,0)"
...@@ -851,6 +874,10 @@ export default { ...@@ -851,6 +874,10 @@ export default {
this.drawContext.setLineWidth(this.lineWidth) this.drawContext.setLineWidth(this.lineWidth)
this.fillBackground(); this.fillBackground();
}) })
},
/**缩放 */
scale (e) {
this.scaleValue = e.detail.scale
} }
} }
} }
...@@ -862,7 +889,7 @@ export default { ...@@ -862,7 +889,7 @@ export default {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
overflow: hidden;
.draw-logo { .draw-logo {
width: 1.8rem; width: 1.8rem;
height: 1.8rem; height: 1.8rem;
...@@ -996,7 +1023,11 @@ export default { ...@@ -996,7 +1023,11 @@ export default {
width: 100%; width: 100%;
//margin-right: 2.2rem; //margin-right: 2.2rem;
position: relative; position: relative;
// height: 100vh;
.canvas-view {
height: 100%;
width: 100%;
}
.board-canvas { .board-canvas {
height: 100%; height: 100%;
width: 100%; width: 100%;
......
const target = ["ip", "dev", "uat", "prod", "beta"]; const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 4; const index = 2;
/** /**
* *
0本地 0本地
......
...@@ -12,7 +12,7 @@ import upload from "@/utils/ossUploadFile/uploadFile.js"; ...@@ -12,7 +12,7 @@ import upload from "@/utils/ossUploadFile/uploadFile.js";
import { mapMutations, mapState } from "vuex"; import { mapMutations, mapState } from "vuex";
import utils from "@/utils/utils.js"; import utils from "@/utils/utils.js";
export default { export default {
data() { data () {
return { return {
voicePath: "", voicePath: "",
timer: null, timer: null,
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
reaction: 1, reaction: 1,
}; };
}, },
mounted() { mounted () {
this.initTime(); this.initTime();
// this.checkVoice(); // this.checkVoice();
}, },
...@@ -38,17 +38,17 @@ export default { ...@@ -38,17 +38,17 @@ export default {
]), ]),
...mapState(["user.customerInfo"]), ...mapState(["user.customerInfo"]),
}, },
created() { created () {
console.log("created"); console.log("created");
}, },
onHide() { onHide () {
console.log("隐藏"); console.log("隐藏");
// recorderManager.stop(); // recorderManager.stop();
// recorderManager.start({ // recorderManager.start({
// duration: 10000, // duration: 10000,
// }); // });
}, },
onShow() { onShow () {
// console.log(utils.requestAndroidPermission()); // console.log(utils.requestAndroidPermission());
}, },
methods: { methods: {
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
"setBooks", "setBooks",
]), ]),
//关闭提示 //关闭提示
tipCancel() { tipCancel () {
this.stopAudio(); this.stopAudio();
this.setReceptionStatus(0); this.setReceptionStatus(0);
this.setReasonType(1); this.setReasonType(1);
...@@ -71,20 +71,20 @@ export default { ...@@ -71,20 +71,20 @@ export default {
}); });
}, },
//结束提示 //结束提示
tipConfirm() { tipConfirm () {
this.times = 0; this.times = 0;
this.$refs.tipBox.close(); this.$refs.tipBox.close();
}, },
//检查缓存录音 //检查缓存录音
checkVoice() { checkVoice () {
const file = uni.$storage.get("storageFile"); const file = uni.$storage.get("storageFile");
if (file) this.uploadVoice(file); if (file) this.uploadVoice(file);
}, },
//保存录音记录及其他信息 //保存录音记录及其他信息
async uploadVoice(tempFilePath) { async uploadVoice (tempFilePath) {
try { try {
const { shopMerchantId, phone } = uni.$storage.get("userInfo"), const { shopMerchantId, phone } = uni.$storage.get("userInfo"),
{ customerName, phoneNumber, salesUuid, carModel } = { customerName, phoneNumber, salesUuid, carModel, staffName } =
this.$store.state.user.customerInfo, this.$store.state.user.customerInfo,
receptionCustomerPaySourceList = this.booksList.map((item) => { receptionCustomerPaySourceList = this.booksList.map((item) => {
return { return {
...@@ -99,6 +99,7 @@ export default { ...@@ -99,6 +99,7 @@ export default {
customerName, customerName,
phoneNumber, phoneNumber,
loginPhone: phone, loginPhone: phone,
salesName: staffName,
salesUuid, salesUuid,
receptionStatus: this.receptionStatus, //接待结果 1.成交 0.战败 receptionStatus: this.receptionStatus, //接待结果 1.成交 0.战败
recordUrlList: tempFilePath, recordUrlList: tempFilePath,
...@@ -123,7 +124,7 @@ export default { ...@@ -123,7 +124,7 @@ export default {
} }
}, },
//开始录音 //开始录音
async startAudio() { async startAudio () {
if (this.isStart) return; if (this.isStart) return;
this.setAudioStart(true); this.setAudioStart(true);
this.setAudioList([]); this.setAudioList([]);
...@@ -150,7 +151,7 @@ export default { ...@@ -150,7 +151,7 @@ export default {
}); });
}, },
//结束录音 //结束录音
async stopAudio() { async stopAudio () {
const result = await this.$permision.requestAndroidPermission( const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO" "android.permission.RECORD_AUDIO"
); );
...@@ -166,7 +167,7 @@ export default { ...@@ -166,7 +167,7 @@ export default {
recorderManager.stop(); recorderManager.stop();
}, },
//监听点击事件 //监听点击事件
initTime() { initTime () {
if (!this.isStart) return; if (!this.isStart) return;
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.times++; this.times++;
...@@ -185,7 +186,7 @@ export default { ...@@ -185,7 +186,7 @@ export default {
console.log(1111); console.log(1111);
}, 1000 * 10), }, 1000 * 10),
}, },
beforeCreate() { beforeCreate () {
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
}, },
......
...@@ -2,146 +2,6 @@ ...@@ -2,146 +2,6 @@
"requires": true, "requires": true,
"lockfileVersion": 1, "lockfileVersion": 1,
"dependencies": { "dependencies": {
"@sentry-internal/feedback": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-7.109.0.tgz",
"integrity": "sha512-EL7N++poxvJP9rYvh6vSu24tsKkOveNCcCj4IM7+irWPjsuD2GLYYlhp/A/Mtt9l7iqO4plvtiQU5HGk7smcTQ==",
"requires": {
"@sentry/core": "7.109.0",
"@sentry/types": "7.109.0",
"@sentry/utils": "7.109.0"
}
},
"@sentry-internal/replay-canvas": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-7.109.0.tgz",
"integrity": "sha512-Lh/K60kmloR6lkPUcQP0iamw7B/MdEUEx/ImAx4tUSMrLj+IoUEcq/ECgnnVyQkJq59+8nPEKrVLt7x6PUPEjw==",
"requires": {
"@sentry/core": "7.109.0",
"@sentry/replay": "7.109.0",
"@sentry/types": "7.109.0",
"@sentry/utils": "7.109.0"
}
},
"@sentry-internal/tracing": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.109.0.tgz",
"integrity": "sha512-PzK/joC5tCuh2R/PRh+7dp+uuZl7pTsBIjPhVZHMTtb9+ls65WkdZJ1/uKXPouyz8NOo9Xok7aEvEo9seongyw==",
"requires": {
"@sentry/core": "7.109.0",
"@sentry/types": "7.109.0",
"@sentry/utils": "7.109.0"
}
},
"@sentry/browser": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.109.0.tgz",
"integrity": "sha512-yx+OFG+Ab9qUDDgV9ZDv8M9O9Mqr0fjKta/LMlWALYLjzkMvxsPlRPFj7oMBlHqOTVLDeg7lFYmsA8wyWQ8Z8g==",
"requires": {
"@sentry-internal/feedback": "7.109.0",
"@sentry-internal/replay-canvas": "7.109.0",
"@sentry-internal/tracing": "7.109.0",
"@sentry/core": "7.109.0",
"@sentry/replay": "7.109.0",
"@sentry/types": "7.109.0",
"@sentry/utils": "7.109.0"
}
},
"@sentry/core": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.109.0.tgz",
"integrity": "sha512-xwD4U0IlvvlE/x/g/W1I8b4Cfb16SsCMmiEuBf6XxvAa3OfWBxKoqLifb3GyrbxMC4LbIIZCN/SvLlnGJPgszA==",
"requires": {
"@sentry/types": "7.109.0",
"@sentry/utils": "7.109.0"
}
},
"@sentry/hub": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.19.7.tgz",
"integrity": "sha512-y3OtbYFAqKHCWezF0EGGr5lcyI2KbaXW2Ik7Xp8Mu9TxbSTuwTe4rTntwg8ngPjUQU3SUHzgjqVB8qjiGqFXCA==",
"requires": {
"@sentry/types": "6.19.7",
"@sentry/utils": "6.19.7",
"tslib": "^1.9.3"
},
"dependencies": {
"@sentry/types": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz",
"integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg=="
},
"@sentry/utils": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.7.tgz",
"integrity": "sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==",
"requires": {
"@sentry/types": "6.19.7",
"tslib": "^1.9.3"
}
}
}
},
"@sentry/minimal": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.19.7.tgz",
"integrity": "sha512-wcYmSJOdvk6VAPx8IcmZgN08XTXRwRtB1aOLZm+MVHjIZIhHoBGZJYTVQS/BWjldsamj2cX3YGbGXNunaCfYJQ==",
"requires": {
"@sentry/hub": "6.19.7",
"@sentry/types": "6.19.7",
"tslib": "^1.9.3"
},
"dependencies": {
"@sentry/types": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz",
"integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg=="
}
}
},
"@sentry/replay": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-7.109.0.tgz",
"integrity": "sha512-hCDjbTNO7ErW/XsaBXlyHFsUhneyBUdTec1Swf98TFEfVqNsTs6q338aUcaR8dGRLbLrJ9YU9D1qKq++v5h2CA==",
"requires": {
"@sentry-internal/tracing": "7.109.0",
"@sentry/core": "7.109.0",
"@sentry/types": "7.109.0",
"@sentry/utils": "7.109.0"
}
},
"@sentry/tracing": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-7.109.0.tgz",
"integrity": "sha512-lgveekdd/XLgQ6oZLvcRGUWBIOAZ7QwbjLHEd8zzeKubHbIwFzMkhIejskqLi2z2OwzrYl5q+Zo1jS1z9f62YQ==",
"requires": {
"@sentry-internal/tracing": "7.109.0"
}
},
"@sentry/types": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.109.0.tgz",
"integrity": "sha512-egCBnDv3YpVFoNzRLdP0soVrxVLCQ+rovREKJ1sw3rA2/MFH9WJ+DZZexsX89yeAFzy1IFsCp7/dEqudusml6g=="
},
"@sentry/utils": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.109.0.tgz",
"integrity": "sha512-3RjxMOLMBwZ5VSiH84+o/3NY2An4Zldjz0EbfEQNRY9yffRiCPJSQiCJID8EoylCFOh/PAhPimBhqbtWJxX6iw==",
"requires": {
"@sentry/types": "7.109.0"
}
},
"@sentry/vue": {
"version": "7.109.0",
"resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-7.109.0.tgz",
"integrity": "sha512-aATuLXJB7YJaezedwP71sGeVabt9moyvxlZZdTU+LdgTizdMZk3zvWF/Uen6HGCgvKerDYt52zSHWSQvDHCvLw==",
"requires": {
"@sentry/browser": "7.109.0",
"@sentry/core": "7.109.0",
"@sentry/types": "7.109.0",
"@sentry/utils": "7.109.0"
}
},
"ajv": { "ajv": {
"version": "6.12.6", "version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
...@@ -313,6 +173,11 @@ ...@@ -313,6 +173,11 @@
"resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-0.0.3.tgz", "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-0.0.3.tgz",
"integrity": "sha512-Cp+jOa8QJef5nXS5hU7M1DWzXPEIoVR3kbV0dQuVGwROZg8bGf1DcCnkmajBTnvghTtSNMUdRrPjgaT6ZQucbw==" "integrity": "sha512-Cp+jOa8QJef5nXS5hU7M1DWzXPEIoVR3kbV0dQuVGwROZg8bGf1DcCnkmajBTnvghTtSNMUdRrPjgaT6ZQucbw=="
}, },
"dayjs": {
"version": "1.11.10",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
},
"delayed-stream": { "delayed-stream": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
...@@ -867,45 +732,6 @@ ...@@ -867,45 +732,6 @@
"resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz",
"integrity": "sha512-5OkOBiw69xqmxOFIXwXsiY1HlE+om8nNptg1ZIf95fzcnfgOv2fLm7pmmGbRJsjJIqPpW5Kwy4wpDBTz5wQlUw==" "integrity": "sha512-5OkOBiw69xqmxOFIXwXsiY1HlE+om8nNptg1ZIf95fzcnfgOv2fLm7pmmGbRJsjJIqPpW5Kwy4wpDBTz5wQlUw=="
}, },
"sentry-uniapp": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/sentry-uniapp/-/sentry-uniapp-1.0.12.tgz",
"integrity": "sha512-vAmJsYASH41R6Ery0F1Pmsxqj9fYw45GIQpYF2lOitb02B9xQ7A/1nvBlZilUWeggkj2a03825UySui4AZsv9A==",
"requires": {
"@sentry/core": "6.19.7",
"@sentry/types": "6.19.7",
"@sentry/utils": "6.19.7",
"tslib": "^1.10.0"
},
"dependencies": {
"@sentry/core": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.7.tgz",
"integrity": "sha512-tOfZ/umqB2AcHPGbIrsFLcvApdTm9ggpi/kQZFkej7kMphjT+SGBiQfYtjyg9jcRW+ilAR4JXC9BGKsdEQ+8Vw==",
"requires": {
"@sentry/hub": "6.19.7",
"@sentry/minimal": "6.19.7",
"@sentry/types": "6.19.7",
"@sentry/utils": "6.19.7",
"tslib": "^1.9.3"
}
},
"@sentry/types": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz",
"integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg=="
},
"@sentry/utils": {
"version": "6.19.7",
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.7.tgz",
"integrity": "sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==",
"requires": {
"@sentry/types": "6.19.7",
"tslib": "^1.9.3"
}
}
}
},
"source-map": { "source-map": {
"version": "0.6.1", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
...@@ -1051,11 +877,6 @@ ...@@ -1051,11 +877,6 @@
"punycode": "^2.1.1" "punycode": "^2.1.1"
} }
}, },
"tslib": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
},
"tunnel-agent": { "tunnel-agent": {
"version": "0.6.0", "version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
......
...@@ -7,9 +7,10 @@ ...@@ -7,9 +7,10 @@
<view class="input"> <view class="input">
<input <input
type="tel" type="tel"
v-model.trim="mobile" :value="mobile"
placeholder="请输入手机号" placeholder="请输入手机号"
maxlength="11" maxlength="11"
@blur="input($event,'mobile')"
/> />
<template v-if="mobile"> <template v-if="mobile">
<view <view
...@@ -27,9 +28,10 @@ ...@@ -27,9 +28,10 @@
<view class="input"> <view class="input">
<input <input
type="number" type="number"
v-model.trim="code" :value="code"
placeholder="请输入验证码" placeholder="请输入验证码"
maxlength="4" maxlength="4"
@blur="input($event,'code')"
/> />
<template v-if="code"> <template v-if="code">
<view <view
...@@ -81,10 +83,11 @@ export default { ...@@ -81,10 +83,11 @@ export default {
mobile: '', mobile: '',
code: '', code: '',
count: '', count: '',
noSignIn: true noSignIn: true,
}; };
}, },
onLoad (options) { onLoad (options) {
uni.$storage.rm('accountLength')
const noSignInUuid = uni.$storage.get('noSignInUuid') const noSignInUuid = uni.$storage.get('noSignInUuid')
if (noSignInUuid) this.autoLogin(noSignInUuid) if (noSignInUuid) this.autoLogin(noSignInUuid)
}, },
...@@ -137,7 +140,7 @@ export default { ...@@ -137,7 +140,7 @@ export default {
mobile, mobile,
code: smsCode code: smsCode
} }
if(noSignIn) params.noSignIn = noSignIn if (noSignIn) params.noSignIn = noSignIn
uni.showLoading(); uni.showLoading();
const { code, data, message } = await uni.$api.userApi.smsLogin(params); const { code, data, message } = await uni.$api.userApi.smsLogin(params);
console.log(code, data, message); console.log(code, data, message);
...@@ -161,8 +164,10 @@ export default { ...@@ -161,8 +164,10 @@ export default {
}, },
// 获取登录账号下园区店列表 // 获取登录账号下园区店列表
getAccountLoginList (loginUserInfoList) { getAccountLoginList (loginUserInfoList) {
console.log(loginUserInfoList, '===') uni.$storage.set('accountLength', loginUserInfoList?.length)
if (loginUserInfoList?.length == 1) this.get4SStoreList(loginUserInfoList[0]) if (loginUserInfoList?.length == 1) {
this.get4SStoreList(loginUserInfoList[0])
}
else uni.navigateTo({ else uni.navigateTo({
url: '/pages/common/accountItems' url: '/pages/common/accountItems'
}) })
...@@ -180,24 +185,27 @@ export default { ...@@ -180,24 +185,27 @@ export default {
} else uni.reLaunch({ } else uni.reLaunch({
url: '/pages/common/nothing' url: '/pages/common/nothing'
}); });
},
input (e, key) {
setTimeout(() => {
let { value } = e.detail,
numbers = value.match(/\d+/g)
console.log(numbers)
this[key] = numbers ? numbers.join('') : ''
}, 0)
} }
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.a {
width: 500px;
height: 200px;
}
.bg { .bg {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
background-image: url("https://img02.glsx.com.cn/weapp/resource/app-tape/login/bg.png"); background-image: url("../../assets/images/login/bg.webp");
background-size: 100% 100%; background-size: 100% 100%;
} }
.login { .login {
......
...@@ -204,14 +204,14 @@ export default { ...@@ -204,14 +204,14 @@ export default {
this.customStoreList = listArr this.customStoreList = listArr
this.jumpPage(item) this.jumpPage(item)
}, },
jumpPage (item) { async jumpPage (item) {
console.log(item) console.log(item)
let { openSceneArr, selectIndex } = this, let { openSceneArr, selectIndex } = this,
{ merchantName: shopMerchantName, merchantId: shopMerchantId } = item, { merchantName: shopMerchantName, merchantId: shopMerchantId } = item,
userInfo = uni.$storage.get('userInfo') userInfo = uni.$storage.get('userInfo')
if (!openSceneArr?.length && !userInfo?.isSuper) return uni.showToast({ if (!openSceneArr?.length && !userInfo?.isSuper) return uni.showToast({
title:'暂无开通业务,请联系总部管理员', title: '暂无开通业务,请联系总部管理员',
icon:'none' icon: 'none'
}) })
uni.$storage.set('userInfo', { uni.$storage.set('userInfo', {
...userInfo, ...userInfo,
...@@ -233,13 +233,18 @@ export default { ...@@ -233,13 +233,18 @@ export default {
// uni.$storage.rm('dateStaffPop') // uni.$storage.rm('dateStaffPop')
this.jumpPageFlag = false this.jumpPageFlag = false
if (selectIndex == 0) { // 搜门店 if (selectIndex == 0) { // 搜门店
const res = await uni.$api.userApi.selectMerchantScene({
merchantId: shopMerchantId,
merchantName: shopMerchantName,
sceneType: 0
})
uni.reLaunch({ uni.reLaunch({
url: '/pages/home/home' url: '/pages/home/home'
}) })
} else { // 搜客户 } else { // 搜客户
if (!openSceneArr.includes(0)) return uni.showToast({ if (!openSceneArr.includes(0)) return uni.showToast({
title:'暂未开通精品升级场景', title: '暂未开通精品升级场景',
icon:'none' icon: 'none'
}) })
// 进入精品升级场景 工单/预约详情 // 进入精品升级场景 工单/预约详情
} }
......
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
import Employee from './Employee.vue' import Employee from './Employee.vue'
import CarBrands from './CarBrands.vue' import CarBrands from './CarBrands.vue'
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
const phoneRex = /^[1]([3-9])[0-9]{9}$/;
export default { export default {
components: { Employee, CarBrands }, components: { Employee, CarBrands },
name: 'FinishStep', name: 'FinishStep',
...@@ -121,7 +122,7 @@ export default { ...@@ -121,7 +122,7 @@ export default {
key: "phoneNumber", key: "phoneNumber",
type: "input", type: "input",
inputType: "tel", inputType: "tel",
maxlength: 20, maxlength: 11,
placeholder: '请输入电话' placeholder: '请输入电话'
}, },
{ {
...@@ -184,7 +185,9 @@ export default { ...@@ -184,7 +185,9 @@ export default {
methods: { methods: {
...mapMutations("audio", ["setReceptionStatus"]), ...mapMutations("audio", ["setReceptionStatus"]),
showError (key) { showError (key) {
return this.errorTip && !this.formData[key] let flag = !this.formData[key]
if (key == 'phoneNumber' && this.formData[key]) flag = !phoneRex.test(this.formData[key])
return this.errorTip && flag
}, },
showPopup (e) { showPopup (e) {
this.$refs[e].open(); this.$refs[e].open();
...@@ -199,11 +202,23 @@ export default { ...@@ -199,11 +202,23 @@ export default {
this.receptionStatus = -1 this.receptionStatus = -1
this.$refs.formRef.close() this.$refs.formRef.close()
}, },
check () {
let flag = true
try {
Object.keys(this.formData).map(key => {
if (!this.formData[key]) throw false
if (key == 'phoneNumber' && this.formData[key] && !phoneRex.test(this.formData[key])) throw false
})
} catch (error) {
flag = error
}
return flag
},
// 保存 // 保存
submit () { submit () {
if (this.step == 1) { if (this.step == 1) {
this.errorTip = true; this.errorTip = true;
if (Object.values(this.formData).every((value) => !!value)) this.step = 2 if (this.check()) this.step = 2
} else { } else {
let { receptionStatus } = this let { receptionStatus } = this
if (receptionStatus == -1) return uni.showToast({ if (receptionStatus == -1) return uni.showToast({
...@@ -232,7 +247,12 @@ export default { ...@@ -232,7 +247,12 @@ export default {
this.errorTip = false this.errorTip = false
this.receptionStatus = -1 this.receptionStatus = -1
this.formData = customerInfo this.formData = customerInfo
this.step = Object.values(customerInfo).every((value) => !!value) ? 2 : 1 let step = Object.values(customerInfo).every((value) => !!value) ? 2 : 1
if (step == 2 && !this.check()) {
this.errorTip = true
step = 1
}
this.step = step
this.$refs.formRef.open() this.$refs.formRef.open()
}) })
}, },
......
<template>
<view class="layout">
<view class="bg">
<image :src="mediaBg" />
</view>
<view
class="content"
:style="{background:background}"
>
<view class="title">{{title}}</view>
<template v-if="views.length && views.length > 1">
<tabs
:list="views"
@tabclick="changeView"
ref="tabs"
/>
</template>
<view class="canvas-box">
<template v-for="(i,index) in views">
<view
:key="index"
v-show="viewIndex == index"
:class="['canvas-view', `${viewIndex == 0 ? 'left' : 'right'}`]"
>
<wnCanvas
:drawImage="i.detailUrl"
:drawStatus="penSwitch"
:canvasId="`c-${madiaId}-${index}`"
></wnCanvas>
</view>
</template>
</view>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
import Tabs from './Tabs.vue'
export default {
components: { Tabs },
props: {
views: Array,
penSwitch: Boolean,
title: String,
madiaId: Number,
mediaBg: String,
background: String
},
name: 'MediaComponent',
data () {
return {
viewIndex: 0
}
},
watch: {
watchStatus: {
immediate: true,
handler (newval) {
this.$refs?.tabs?.tabClick(0)
}
},
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
mounted () {
},
methods: {
changeView (index) {
this.viewIndex = index
},
}
}
</script>
<style scoped lang='scss'>
.layout {
padding-top: 192rpx;
position: relative;
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 240rpx;
image {
width: 100%;
height: 100%;
}
}
.content {
border-radius: 40rpx 40rpx 0 0;
background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 100%);
overflow: hidden;
position: relative;
z-index: 1;
.title {
font-size: 40rpx;
line-height: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
}
}
.canvas-box {
padding-top: 6rpx;
.left {
animation: show-view-left 0.3s;
}
.right {
animation: show-view-right 0.3s;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<image src="../../../assets/images/media/bg-1.webp" /> <image src="../../../assets/images/media/bg-1.webp" />
</view> </view>
<view class="content"> <view class="content">
<view class="title">{{title||'问界·交车告知书'}}</view> <view class="title">{{title}}</view>
<view class="form"> <view class="form">
<template v-for="(i, index) in formObject"> <template v-for="(i, index) in formObject">
<view <view
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
key: 'phoneNumber', key: 'phoneNumber',
type: 'input', type: 'input',
inputType: 'tel', inputType: 'tel',
maxlength: 20 maxlength: 11
}, },
{ {
label: '销售姓名', label: '销售姓名',
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
:class="['canvas-view', `${viewIndex == 0 ? 'left' : 'right'}`]" :class="['canvas-view', `${viewIndex == 0 ? 'left' : 'right'}`]"
> >
<wnCanvas <wnCanvas
saveImageType="3"
:drawImage="i.detailUrl" :drawImage="i.detailUrl"
:drawStatus="penSwitch" :drawStatus="penSwitch"
:canvasId="`c-2-${index}`" :canvasId="`c-2-${index}`"
......
...@@ -28,12 +28,15 @@ ...@@ -28,12 +28,15 @@
:key="index" :key="index"
> >
<component <component
:is="'media_' + item.id" :is="item.id == 1 || item.id == 6 ? 'media_' + item.id : 'media-component'"
:views="item.receptionSourceDetailList || []" :views="item.receptionSourceDetailList || []"
:penSwitch="penSwitch" :penSwitch="penSwitch"
:show="id == 6" :show="id == 6"
:ref="'media'+item.id" :ref="'media'+item.id"
:title="item.detailTitle || ''" :title="item.detailTitle || ''"
:mediaBg="item.top_bg"
:madiaId="item.id"
:background="item.background"
/> />
</view> </view>
</template> </template>
...@@ -70,10 +73,7 @@ ...@@ -70,10 +73,7 @@
import ToolBox from "./components/ToolBox.vue"; import ToolBox from "./components/ToolBox.vue";
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import Media_1 from "./components/Media_1.vue"; import Media_1 from "./components/Media_1.vue";
import Media_2 from "./components/Media_2.vue"; import MediaComponent from "./components/MediaComponent.vue";
import Media_3 from "./components/Media_3.vue";
import Media_4 from "./components/Media_4.vue";
import Media_5 from "./components/Media_5.vue";
import Media_6 from "./components/Media_6.vue"; import Media_6 from "./components/Media_6.vue";
import payPop from "./components/payPop.vue"; import payPop from "./components/payPop.vue";
import FinishStep from './components/FinishStep.vue'; import FinishStep from './components/FinishStep.vue';
...@@ -82,10 +82,7 @@ export default { ...@@ -82,10 +82,7 @@ export default {
components: { components: {
ToolBox, ToolBox,
Media_1, Media_1,
Media_2, MediaComponent,
Media_3,
Media_4,
Media_5,
Media_6, Media_6,
payPop, payPop,
FinishStep FinishStep
...@@ -97,14 +94,15 @@ export default { ...@@ -97,14 +94,15 @@ export default {
type: { type: {
type: String, type: String,
default: 'preview' default: 'preview'
} },
payInfo: Object,// 支付信息
accountInfo: Object // 对公账户信息
}, },
data () { data () {
return { return {
drawStatus: false, drawStatus: false,
finishVisible: false, finishVisible: false,
payInfo: null,
accountInfo: null
}; };
}, },
computed: { computed: {
...@@ -124,7 +122,7 @@ export default { ...@@ -124,7 +122,7 @@ export default {
}, },
}, },
mounted () { mounted () {
this.findPayInfo();
}, },
methods: { methods: {
...mapMutations("audio", ["setReceptionStatus"]), ...mapMutations("audio", ["setReceptionStatus"]),
...@@ -134,27 +132,12 @@ export default { ...@@ -134,27 +132,12 @@ export default {
/**切换素材 */ /**切换素材 */
choose (e) { choose (e) {
if (this.id == 1) this.$refs.media1[0].closeAllPopup() if (this.id == 1) this.$refs.media1[0].closeAllPopup()
this.$emit('update:id',e.id) this.$emit('update:id', e.id)
if (e.id == 2 || e.id == 4) { if (e.id == 2 || e.id == 4) {
console.log(this.$refs[`media${e.id}`][0].$refs) console.log(this.$refs[`media${e.id}`][0].$refs)
this.$refs[`media${e.id}`][0].$refs.tabs.init() this.$refs[`media${e.id}`][0].$refs.tabs.init()
} }
}, },
async getFindSoureDetail (id) {
try {
if (id == 6) return;
if (!this.media[id].length) {
this.media[id] =
(await uni.$api.commonApi.getFindSoureDetail({ id })) || [];
uni.pageScrollTo({
scrollTop: 0
})
}
} catch (error) {
console.log(error);
}
},
back () { back () {
this.$refs?.toolRef?.hide() this.$refs?.toolRef?.hide()
this.$emit('back') this.$emit('back')
...@@ -170,17 +153,8 @@ export default { ...@@ -170,17 +153,8 @@ export default {
toPay () { toPay () {
this.$refs.pay.show() this.$refs.pay.show()
}, },
// 查询门店支付配置 dbClick () {
async findPayInfo () { if (this.type != 'preview') this.drawStatus = !this.drawStatus
const { shopMerchantId } = uni.$storage.get("userInfo");
const data = await uni.$api.commonApi.findPayInfo({
merchantId: shopMerchantId,
});
this.payInfo = data.find((item) => item.paymentType == 1);
this.accountInfo = data.find((item) => item.paymentType == 2);
},
dbClick(){
if(this.type != 'preview') this.drawStatus = !this.drawStatus
} }
}, },
}; };
......
...@@ -13,7 +13,8 @@ export const STORAGE_OBJECTkEY = { ...@@ -13,7 +13,8 @@ export const STORAGE_OBJECTkEY = {
storageFile: "storageFile", storageFile: "storageFile",
userInfo: 'userInfo', userInfo: 'userInfo',
noSignInUuid: 'noSignInUuid', noSignInUuid: 'noSignInUuid',
noviceGuideStatus:'noviceGuideStatus' noviceGuideStatus: 'noviceGuideStatus',
accountLength: 'accountLength'
}; };
// export const IMG_VERSION = async () => { // export const IMG_VERSION = async () => {
......
import defaultStorage from './storage'; import defaultStorage from './storage';
/**
* 日期格式化
* let time = new Date().format('yyyy-MM-dd hh:mm:ss')
*/
Date.prototype.format = function (fmt) {
let o = {
'M+': this.getMonth() + 1, //月份
'd+': this.getDate(), //日
'h+': this.getHours(), //小时
'm+': this.getMinutes(), //分
's+': this.getSeconds(), //秒
//季度
'q+': Math.floor((this.getMonth() + 3) / 3),
S: this.getMilliseconds() //毫秒
}
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
}
for (let k in o) {
if (new RegExp(`(${k})`).test(fmt)) {
fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length))
}
}
return fmt
}
export default defaultStorage; export default defaultStorage;
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!