Commit d82e2782 by 前端

Merge branch 'v1.0.2' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.2

2 parents d2f31f1c c9c79915
......@@ -14,13 +14,13 @@ const HOST = {
ip: 'http://192.168.9.119:8292'
};
class Request {
get(params, returnAll = false, hostType) {
get (params, returnAll = false, hostType) {
return this.request("GET", params, returnAll, hostType);
}
post(params, returnAll = false, hostType) {
post (params, returnAll = false, hostType) {
return this.request("POST", params, returnAll, hostType);
}
fetch(method, data, returnAll = true, hostType) {
fetch (method, data, returnAll = true, hostType) {
return this.post(
{
method,
......@@ -30,16 +30,16 @@ class Request {
hostType
);
}
request(RequestMethods, params, returnAll, hostType = "dj") {
request (RequestMethods, params, returnAll, hostType = "dj") {
return new Promise((resolve, reject) => {
let header =
RequestMethods === "POST"
? {
"content-type": "application/x-www-form-urlencoded",
}
"content-type": "application/x-www-form-urlencoded",
}
: {
"Cache-Control": "no-cache",
};
"Cache-Control": "no-cache",
};
let projectName = params.projectName;
if (!projectName) projectName = this.getRopProject(params.method);
const path = pathEnum[projectName];
......@@ -51,7 +51,7 @@ class Request {
header,
dataType: "json",
responseType: "text",
success(response) {
success (response) {
/**业务代码 */
let {
data: { code, message },
......@@ -77,25 +77,25 @@ class Request {
}
}
},
fail(error) {
fail (error) {
uni.hideLoading();
console.error(`${params.method}接口异常:`, error);
uni.showToast({
title:
typeof error == "string"
? error
: JSON.stringify(error) || "系统异常",
: error.errMsg ? error.errMsg : JSON.stringify(error) || "系统异常",
icon: "error",
});
reject(error);
},
complete() {
complete () {
uni.stopPullDownRefresh();
},
});
});
}
getData(params, hostType = "scrm") {
getData (params, hostType = "scrm") {
let projectName = params.projectName;
if (!projectName) projectName = this.getRopProject(params.method);
else delete params.projectName;
......@@ -127,11 +127,11 @@ class Request {
params.appKey = appKey;
return sign(params, secret, noSignAttr);
}
getRopProject(method) {
getRopProject (method) {
const projectName = method.split(".")[2];
return projectName;
}
uni_request({
uni_request ({
url,
method = "GET",
data = {},
......@@ -147,7 +147,7 @@ class Request {
header,
dataType,
responseType,
success(response) {
success (response) {
resolve(response.data);
},
});
......
......@@ -13,12 +13,14 @@ export default {
let userInfo = uni.$storage.get('userInfo')
uni.$api.userApi.getListSelectAccount().then(res => {
uni.hideLoading()
if (res.code == 0 && userInfo) uni.reLaunch({
url: '/pages/home/home'
})
else uni.reLaunch({
url: '/pages/common/login'
})
setTimeout(() => {
if (res.code == 0 && userInfo) uni.reLaunch({
url: '/pages/home/home'
})
else uni.reLaunch({
url: '/pages/common/login'
})
}, 300)
})
},
methods: {
......
......@@ -82,7 +82,16 @@
ref="employeeBoxVisible"
@select="handleSelect($event,'employeeBoxVisible')"
/>
<uni-popup
ref="successRef"
type="message"
>
<uni-popup-message
type="success"
message="保存成功"
:duration="1500"
></uni-popup-message>
</uni-popup>
</view>
</template>
......@@ -185,6 +194,7 @@ export default {
title: '请完善本次接待结果',
icon: 'none'
})
this.$refs.successRef.open();
this.setReceptionStatus(receptionStatus);
this.$emit('submit', receptionStatus)
}
......
......@@ -149,7 +149,7 @@ export default {
<style scoped lang="scss">
.layout {
padding-top: 200rpx;
padding-top: 192rpx;
position: relative;
.bg {
position: absolute;
......@@ -170,8 +170,8 @@ export default {
z-index: 1;
min-height: calc(100vh - 200rpx);
.title {
font-weight: 500;
font-size: 48rpx;
font-size: 40rpx;
line-height: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
......@@ -180,7 +180,7 @@ export default {
display: flex;
flex-wrap: wrap;
gap: 28rpx 0;
padding: 30rpx 0 20rpx;
padding: 30rpx 0;
&-item {
flex: 50%;
display: flex;
......@@ -222,7 +222,7 @@ export default {
.view {
position: relative;
z-index: 2;
margin-top: 36rpx;
margin-top: 44rpx;
}
}
}
......
......@@ -60,7 +60,7 @@ export default {
<style scoped lang='scss'>
.layout {
padding-top: 190rpx;
padding-top: 192rpx;
position: relative;
.bg {
position: absolute;
......@@ -75,19 +75,20 @@ export default {
}
.content {
border-radius: 40rpx 40rpx 0 0;
background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 100%);
background: #FCFBF9;
overflow: hidden;
position: relative;
z-index: 1;
.title {
font-weight: 500;
font-size: 48rpx;
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;
}
......
......@@ -68,8 +68,8 @@ export default {
position: relative;
z-index: 1;
.title {
font-weight: 500;
font-size: 48rpx;
font-size: 40rpx;
line-height: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
......
......@@ -81,14 +81,15 @@ export default {
position: relative;
z-index: 1;
.title {
font-weight: 500;
font-size: 48rpx;
font-size: 40rpx;
line-height: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
}
}
.canvas-box {
margin-top: -4rpx;
.left {
animation: show-view-left 0.3s;
}
......
......@@ -45,7 +45,7 @@ export default {
<style scoped lang='scss'>
.layout {
padding-top: 146rpx;
padding-top: 192rpx;
position: relative;
.bg {
position: absolute;
......
......@@ -178,14 +178,14 @@ export default {
<style scoped lang="scss">
.layout {
padding-top: 136rpx;
padding-top: 192rpx;
position: relative;
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 176rpx;
height: 240rpx;
image {
width: 100%;
height: 100%;
......@@ -198,8 +198,8 @@ export default {
position: relative;
z-index: 1;
.title {
font-weight: 500;
font-size: 48rpx;
font-size: 40rpx;
line-height: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
......@@ -212,7 +212,7 @@ export default {
grid-template-rows: 0fr;
justify-content: center;
grid-gap: 32rpx;
min-height: calc(100vh - 368rpx);
min-height: calc(100vh - 416rpx);
.card-item {
margin: 16rpx auto;
padding: 24rpx 40rpx;
......
......@@ -40,7 +40,7 @@ export default {
init () {
setTimeout(() => {
this.setBorderLeft()
}, 300)
}, 500)
},
tabClick (index) {
this.tabIndex = index
......
......@@ -134,7 +134,7 @@ export default {
/**切换素材 */
choose (e) {
if (this.id == 1) this.$refs.media1[0].closeAllPopup()
this.id = e.id;
this.$emit('update:id',e.id)
if (e.id == 2 || e.id == 4) {
console.log(this.$refs[`media${e.id}`][0].$refs)
this.$refs[`media${e.id}`][0].$refs.tabs.init()
......
......@@ -263,15 +263,18 @@ export default {
this.$refs.finish.close()
this.stopAudio();
// uni.navigateBack();
this.id = "";
this.type = "";
this.$store.dispatch("clearCanvas", true);
this.setReceptionStatus(e);
setTimeout(() => {
this.id = "";
this.type = "";
this.$store.dispatch("clearCanvas", true);
this.setReceptionStatus(e);
}, 1500);
},
back () {
if (!this.id) return uni.navigateBack();
if (this.type != "preview") return this.$refs.finish.open();
this.$store.dispatch("clearCustomerInfo");
this.$store.dispatch("clearCanvas", true);
this.id = "";
this.type = "";
},
......@@ -293,7 +296,7 @@ export default {
this.type = 'preview'
this.id = id
},
openStep(){
openStep () {
this.$refs.finish.close()
this.$refs.detail.open()
}
......
......@@ -3,13 +3,11 @@
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-18 11:20:44
* @LastEditTime: 2024-04-18 11:24:22
-->
<template>
<view class="information-entry">
<view class="information-tips"
>建议同步采集资源,若接待工作单一可在提单初期再进行补充。</view
>
<view class="information-tips">建议同步采集凭证,若接待工作繁忙可在提单环节再进行补充。</view>
<view class="information-box">
<view
class="information-item"
......@@ -51,14 +49,10 @@
cancelBtnText="否"
confirmBtnText="是"
></MessageBox>
<finish-step ref="stepRef" @submit="submit" />
<uni-popup ref="successRef" type="message">
<uni-popup-message
type="success"
message="保存成功"
:duration="1500"
></uni-popup-message>
</uni-popup>
<finish-step
ref="stepRef"
@submit="submit"
/>
<update-box />
</view>
</template>
......@@ -149,7 +143,6 @@ export default {
this.setBooks(utils.deepClone(this.infoList));
this.stopAudio();
this.infoList = INFO_LIST.map((item) => delete item.imgUrl);
this.$refs.successRef.open();
setTimeout(() => {
uni.reLaunch({
url: "/pages/home/home",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!