Commit bba50b52 by 前端

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

2 parents bf7fe202 9d96718a
......@@ -31,68 +31,82 @@ class Request {
);
}
request (RequestMethods, params, returnAll, hostType = "dj") {
return new Promise((resolve, reject) => {
let header =
RequestMethods === "POST"
? {
"content-type": "application/x-www-form-urlencoded",
}
: {
"Cache-Control": "no-cache",
};
let projectName = params.projectName;
if (!projectName) projectName = this.getRopProject(params.method);
const path = pathEnum[projectName];
params = this.getData(params, hostType);
uni.request({
url: `${HOST[hostType]}${path}router?method=${params.method}`,
data: params,
method: RequestMethods,
header,
dataType: "json",
responseType: "text",
success (response) {
/**业务代码 */
let {
data: { code, message },
data,
} = response;
if (returnAll) {
resolve(data);
return;
}
if (code == 20 || code == 21) {
let _this = this
uni.getNetworkType({
success (res) {
if(res.networkType == 'none'){
uni.hideLoading();
uni.reLaunch({
url: "/pages/common/login",
});
} else {
if (code == "0") {
resolve(data.data);
} else {
uni.showToast({
title: message || "系统异常",
icon: "none",
title:'网络异常',
icon: "error",
});
}
reject('网络异常');
return
}
},
fail (error) {
uni.hideLoading();
console.error(`${params.method}接口异常:`, error);
uni.showToast({
title:
typeof error == "string"
? error
: error.errMsg ? error.errMsg : JSON.stringify(error) || "系统异常",
icon: "error",
let header = RequestMethods === "POST"
? {
"content-type": "application/x-www-form-urlencoded",
}
: {
"Cache-Control": "no-cache",
};
let projectName = params.projectName;
if (!projectName) projectName = _this.getRopProject(params.method);
const path = pathEnum[projectName];
params = _this.getData(params, hostType);
uni.request({
url: `${HOST[hostType]}${path}router?method=${params.method}`,
data: params,
method: RequestMethods,
header,
dataType: "json",
responseType: "text",
success (response) {
/**业务代码 */
let {
data: { code, message },
data,
} = response;
if (returnAll) {
resolve(data);
return;
}
if (code == 20 || code == 21) {
uni.hideLoading();
uni.reLaunch({
url: "/pages/common/login",
});
} else {
if (code == "0") {
resolve(data.data);
} else {
uni.showToast({
title: message || "系统异常",
icon: "none",
});
}
}
},
fail (error) {
uni.hideLoading();
console.error(`${params.method}接口异常:`, error);
uni.showToast({
title:
typeof error == "string"
? error
: error.errMsg ? error.errMsg : JSON.stringify(error) || "系统异常",
icon: "error",
});
reject(error);
},
complete () {
uni.stopPullDownRefresh();
},
});
reject(error);
},
complete () {
uni.stopPullDownRefresh();
},
});
}
})
});
}
getData (params, hostType = "scrm") {
......
.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;}
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1338rpx 710rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1114rpx -524rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -1114rpx -464rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1156rpx -524rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -1242rpx -294rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -796rpx -464rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -902rpx -464rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1008rpx -464rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1198rpx -524rpx;}
.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-addr { width: 32rpx; height: 32rpx; background-position: -1240rpx -524rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -674rpx -464rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1282rpx -524rpx;}
.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-icon-male { width: 32rpx; height: 32rpx; background-position: -1072rpx -588rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1114rpx -588rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -844rpx -294rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1156rpx -588rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1198rpx -588rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1240rpx -588rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1282rpx -588rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: 0rpx -678rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -674rpx -294rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -982rpx -294rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -1112rpx -294rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1252rpx -464rpx;}
.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-setting { width: 32rpx; height: 32rpx; background-position: -42rpx -678rpx;}
.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;}
......

978 KB | W: | H:

1020 KB | W: | H:

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

1.9 KB | W: | H:

1.87 KB | W: | H:

assets/spritesmith/feedback.png
assets/spritesmith/feedback.png
assets/spritesmith/feedback.png
assets/spritesmith/feedback.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -116,7 +116,6 @@ const CONFIG_ENV_MAP = {
3: "production",
4: "beta",
};
console.log(secretKey, "===");
module.exports = {
index,
domain,
......
......@@ -69,6 +69,9 @@
}
}
},
{
"path": "pages/common/webview"
}
],
"globalStyle": {
......
<template>
<web-view :src="url"></web-view>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
url:''
}
},
onLoad(options){
this.url = options.url
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
</style>
\ No newline at end of file
......@@ -7,7 +7,7 @@
class="content"
:style="{background:background}"
>
<view class="title">{{title}}</view>
<view class="title" v-if="title">{{title}}</view>
<template v-if="views.length && views.length > 1">
<tabs
:list="views"
......
<template>
<view class="layout">
<view class="bg">
<image src="../../../assets/images/media/bg-2.webp" />
</view>
<view class="content">
<view class="title">{{title||'问界·商城延保价格明细'}}</view>
<template v-if="views.length">
<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-2-${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
},
name: 'Media_2',
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: #fcfbf9;
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
<template>
<view class="layout">
<view class="bg">
<image src="../../../assets/images/media/bg-3.webp" />
</view>
<view class="content">
<view class="canvas-box">
<template v-for="(i,index) in views">
<view
:key="index"
v-show="viewIndex == index"
>
<wnCanvas
saveImageType="3"
:drawImage="i.detailUrl"
:drawStatus="penSwitch"
:canvasId="`c-3-${index}`"
></wnCanvas>
</view>
</template>
</view>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
views: Array,
penSwitch: Boolean
},
name: 'Media_3',
data () {
return {
viewIndex: 0
}
},
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;
}
}
}
</style>
\ No newline at end of file
<template>
<view class="layout">
<view class="bg">
<image src="../../../assets/images/media/bg-4.webp" />
</view>
<view class="content">
<view class="title">{{title||'问界·汽车产品三包凭证'}}</view>
<template v-if="views.length">
<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
saveImageType="3"
:drawImage="i.detailUrl"
:drawStatus="penSwitch"
:canvasId="`c-4-${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
},
name: 'Media_4',
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 {
margin-top: -4rpx;
.left {
animation: show-view-left 0.3s;
}
.right{
animation: show-view-right 0.3s;
}
}
}
</style>
\ No newline at end of file
<template>
<view class="layout">
<view class="bg">
<image src="../../../assets/images/media/bg-5.webp" />
</view>
<view class="content">
<view class="canvas-box">
<template v-for="(i,index) in views">
<view
:key="index"
v-show="viewIndex == index"
>
<wnCanvas
saveImageType="3"
:drawImage="i.detailUrl"
:drawStatus="penSwitch"
:canvasId="`c-5-${index}`"
></wnCanvas>
</view>
</template>
</view>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
views: Array,
penSwitch: Boolean
},
name: 'Media_5',
data () {
return {
viewIndex: 0
}
},
mounted () {
},
methods: {
}
}
</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-weight: 500;
font-size: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
}
}
}
</style>
\ No newline at end of file
......@@ -3,6 +3,7 @@
class="record-box"
scroll-y
@scrolltolower="pageonReachBottom"
@scroll="scroll"
>
<view class="record-content">
<view class="data-box">
......@@ -30,15 +31,17 @@
</view>
</template>
</view>
<view class="data-tabs">
<template v-for="(i, index) in dateList">
<view
:class="['tab flex', { active: dateIndex == index }]"
:key="index"
@click="changeIndex(index)"
>{{ i.text }}</view>
</template>
<view :class="['active-btn', `active-btn-${dateIndex}`]"></view>
<view :class="['data-tabs-box', {sticky:sticky} ]">
<view class="data-tabs">
<template v-for="(i, index) in dateList">
<view
:class="['tab flex', { active: dateIndex == index }]"
:key="index"
@click="changeIndex(index)"
>{{ i.text }}</view>
</template>
<view :class="['active-btn', `active-btn-${dateIndex}`]"></view>
</view>
</view>
<view class="list">
<template v-if="flag">
......@@ -133,13 +136,17 @@ export default {
list: [],
flag: false,
nothing: false,
pageSize: 18
pageSize: 18,
sticky: false
}
},
mounted () {
this.init()
},
methods: {
scroll (e) {
this.sticky = e.detail.scrollTop >= 148
},
init () {
this.dateList.map((e, index) => {
const tatget = ['day', 'week', 'month'][index]
......@@ -275,7 +282,7 @@ export default {
.record-box {
box-sizing: border-box;
height: 100%;
.record-content{
.record-content {
padding: 96rpx 60rpx;
}
.list {
......@@ -336,7 +343,7 @@ export default {
.data-box {
display: flex;
justify-content: space-between;
margin-bottom: 60rpx;
.data-item {
width: 580rpx;
height: 200rpx;
......@@ -392,56 +399,81 @@ export default {
color: #ff8e43;
}
}
.data-tabs {
display: flex;
justify-content: space-between;
width: 784rpx;
height: 70rpx;
border-radius: 370rpx;
margin: 0 auto;
position: sticky;
.data-tabs-box {
position: relative;
top: 0;
z-index: 3;
&::after {
position: absolute;
z-index: -2;
background: #ffffffb3;
width: 100%;
height: 100%;
border-radius: 370rpx;
left: 0;
top: 0;
content: "";
}
.tab {
width: 240rpx;
width: calc(100% + 120rpx);
transform: translateX(-60rpx);
padding-top: 60rpx;
.data-tabs {
display: flex;
justify-content: space-between;
width: 784rpx;
height: 70rpx;
justify-content: center;
font-weight: 500;
font-size: 32rpx;
color: #333333;
}
.active {
color: #ffffff;
border-radius: 370rpx;
margin: 0 auto;
position: relative;
&::after {
position: absolute;
z-index: -2;
background: #ffffffb3;
width: 100%;
height: 100%;
border-radius: 370rpx;
left: 0;
top: 0;
content: "";
}
.tab {
width: 240rpx;
height: 70rpx;
justify-content: center;
font-weight: 500;
font-size: 32rpx;
color: #333333;
}
.active {
color: #ffffff;
}
.active-btn {
position: absolute;
width: 240rpx;
height: 70rpx;
background: #3b73ff;
border-radius: 360rpx;
top: 0;
z-index: -1;
transition: all 0.15s;
}
.active-btn-0 {
left: 0;
}
.active-btn-1 {
left: 272rpx;
}
.active-btn-2 {
left: 544rpx;
}
}
.active-btn {
}
.sticky {
position: sticky;
top: 0;
background-image: url("../../../assets/images/home/bg.webp");
background-size: 100vw 100vh;
background-position: -220rpx 0;
background-attachment: fixed !important;
&::after {
position: absolute;
width: 240rpx;
height: 70rpx;
background: #3b73ff;
border-radius: 360rpx;
top: 0;
z-index: -1;
transition: all 0.15s;
}
.active-btn-0 {
left: 0;
}
.active-btn-1 {
left: 272rpx;
}
.active-btn-2 {
left: 544rpx;
left: 60rpx;
bottom: -80rpx;
width: calc(100% - 270rpx);
height: 80rpx;
transform: scaleY(-1);
background-image: linear-gradient(180deg, #e9f1fe00 0%, #f3f7ff 100%);
content: '';
}
}
.nothing {
......
<template>
<uni-popup
ref="popup"
border-radius="20px"
>
<view class="setting-box">
<view
class="close flex"
@click="close"
>
<uni-icons
type="closeempty"
:size="14"
color="#1A1A1A"
></uni-icons>
</view>
<view class="app-info flex">
<view class="sprite-icon icon-logo"></view>
展业助手
<view class="version">
版本号:V{{version}}
</view>
</view>
<view class="btn-box">
<view
v-if="accountLength > 1"
class="btn flex"
@click="changeAccount"
>
切换账号
</view>
<view
class="btn flex logout"
@click="logout"
>退出</view>
</view>
<view class="a" @click="jump('agreement')">《用户隐私协议》</view>
<view
class="icp flex"
@click="jump('icp')"
>
ICP备案号:苏ICP备18023686号-2A
<view class="sprite-icon icon-arrow-right"></view>
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
import myClick from "@/mixin/click";
export default {
mixins: [myClick],
name: 'SettingBox',
data () {
return {
accountLength: uni.$storage.get('accountLength'),
version: '',
}
},
mounted () {
this.version = plus?.runtime?.version || '1.0.0'
},
methods: {
open () {
this.$refs.popup.open("center");
},
close () {
this.$refs.popup.close()
},
changeAccount () {
uni.redirectTo({
url: '/pages/common/accountItems'
})
},
// 退出
logout () {
uni.$storage.rm("userInfo");
uni.$storage.rm("sessionId");
uni.$storage.rm("noSignInUuid");
this.stopAudio();
uni.reLaunch({
url: "/pages/common/login",
});
},
jump (type) {
let url = type == 'icp' ? 'https://beian.miit.gov.cn/' : 'https://img01.glsx.com.cn/weapp/resource/saas/app/privacy.html'
uni.navigateTo({
url: `/pages/common/webview?url=${url}`
})
}
}
}
</script>
<style scoped lang='scss'>
.setting-box {
position: relative;
width: 720rpx;
height: 880rpx;
background: #ffffff;
border-radius: 40rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
.close {
position: absolute;
width: 120rpx;
height: 120rpx;
top: 0;
right: 0;
justify-content: center;
}
.app-info {
flex-direction: column;
font-size: 32rpx;
color: #333333;
.sprite-icon {
margin-bottom: 12rpx;
}
.version {
margin-top: 8rpx;
font-size: 24rpx;
color: #999999;
}
}
.btn-box {
margin-top: 120rpx;
.btn {
width: 384rpx;
height: 64rpx;
background: #3b73ff1a;
border: 2rpx solid transparent;
border-radius: 32rpx;
justify-content: center;
font-size: 28rpx;
color: #3b73ff;
margin-bottom: 16rpx;
}
.logout {
background: #ffffff;
color: #333333;
border: 2rpx solid #e8e8e8;
}
}
.a {
font-size: 24rpx;
color: #2c66f7;
margin: 48rpx 0 16rpx;
}
.icp {
font-size: 24rpx;
color: #999999;
}
}
</style>
\ 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!