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