Compare commits
No commits in common. "a5d7a4e4e79e54cd3734d486ec9b0ba628fb3a2a" and "6a185803c5d9142549bd74cacdb4b139731f3750" have entirely different histories.
a5d7a4e4e7
...
6a185803c5
@ -4,24 +4,23 @@
|
|||||||
"version" : "0.0",
|
"version" : "0.0",
|
||||||
"configurations" : [
|
"configurations" : [
|
||||||
{
|
{
|
||||||
"app-plus" : {
|
"app-plus" :
|
||||||
"launchtype" : "local"
|
{
|
||||||
},
|
"launchtype" : "local"
|
||||||
"default" : {
|
},
|
||||||
"launchtype" : "local"
|
"default" :
|
||||||
},
|
{
|
||||||
"mp-weixin" : {
|
"launchtype" : "local"
|
||||||
"launchtype" : "local"
|
},
|
||||||
},
|
"mp-weixin" :
|
||||||
"type" : "uniCloud"
|
{
|
||||||
|
"launchtype" : "local"
|
||||||
|
},
|
||||||
|
"type" : "uniCloud"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"playground" : "standard",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
},
|
|
||||||
{
|
|
||||||
"playground" : "standard",
|
|
||||||
"type" : "uni-app:app-ios"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
import APPUpdate, { getCurrentNo } from "@/config/appUpdate";
|
import APPUpdate, { getCurrentNo } from "@/config/appUpdate";
|
||||||
// #endif
|
// #endif
|
||||||
import { mapState, mapActions } from "vuex";
|
import { mapState, mapActions } from "vuex";
|
||||||
import GtPush from "@/utils/gtpush-min.js";
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -22,39 +21,6 @@ export default {
|
|||||||
this.onAPPUpdate();
|
this.onAPPUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
// plus.push.addEventListener("click", function (msg) {
|
|
||||||
// if (permision.isIOS) {
|
|
||||||
// console.log("ios:click收到" + JSON.parse(JSON.stringify(msg)).payload);
|
|
||||||
// var obj = JSON.parse(JSON.stringify(msg)).payload;
|
|
||||||
// that.toPushMessagePage(obj.data ? obj.data : obj);
|
|
||||||
// } else {
|
|
||||||
// console.log("安卓:click收到" + JSON.parse(JSON.stringify(msg)));
|
|
||||||
// var obj = JSON.parse(JSON.stringify(msg)).payload;
|
|
||||||
// that.toPushMessagePage(obj.data ? obj.data : obj);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// plus.push.addEventListener("receive", (message) => {
|
|
||||||
// console.log("receive收到");
|
|
||||||
// //收到透传消息,执行该事件
|
|
||||||
// let payload = message.payload; //自定义内容获取
|
|
||||||
// let text = message.payload.text;
|
|
||||||
|
|
||||||
// if (permision.isIOS) {
|
|
||||||
// console.log("ios:receive收到");
|
|
||||||
// let payload = message.payload; //自定义内容获取
|
|
||||||
// let text = message.content;
|
|
||||||
// that.createLocalMessage(text, payload);
|
|
||||||
// } else {
|
|
||||||
// console.log("安卓收到");
|
|
||||||
// that.toPushMessagePage(payload);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
this.initAppOrderPush();
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// #ifdef H5
|
|
||||||
this.initH5OrderPush();
|
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -74,124 +40,6 @@ export default {
|
|||||||
onAPPUpdate() {
|
onAPPUpdate() {
|
||||||
APPUpdate(this.version);
|
APPUpdate(this.version);
|
||||||
},
|
},
|
||||||
getCidAsync() {
|
|
||||||
return new Promise(function (resolve, reject) {
|
|
||||||
// 获取客户端推送信息
|
|
||||||
plus.push.getClientInfoAsync(
|
|
||||||
function (clientInfo) {
|
|
||||||
// 获取CID
|
|
||||||
var cid = clientInfo.clientid;
|
|
||||||
// 调用resolve方法返回CID
|
|
||||||
resolve(cid);
|
|
||||||
},
|
|
||||||
function (error) {
|
|
||||||
// 获取CID失败,调用reject方法返回错误信息
|
|
||||||
reject(error);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
initH5OrderPush() {
|
|
||||||
let _this = this;
|
|
||||||
GtPush.setDebugMode(true);
|
|
||||||
GtPush.init({
|
|
||||||
appid: "KXgzOaKSzd5HG3p9IPaVa8",
|
|
||||||
onClientId: (res) => {
|
|
||||||
console.log("onClientId = " + res.cid);
|
|
||||||
_this.cid = res.cid;
|
|
||||||
},
|
|
||||||
onlineState: (res) => {
|
|
||||||
console.log("onlineState = " + res.online);
|
|
||||||
_this.online = res.online;
|
|
||||||
},
|
|
||||||
onPushMsg: (res) => {
|
|
||||||
console.log("onPushMsg = " + res.message);
|
|
||||||
debugger;
|
|
||||||
_this.messages += "onPushMsg: " + res.message + "\n";
|
|
||||||
},
|
|
||||||
onError: (res) => {
|
|
||||||
_this.messages += "onError: " + res.error + "\n";
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
|
||||||
async initAppOrderPush() {
|
|
||||||
var pinf = plus.push.getClientInfo();
|
|
||||||
var cid = pinf.clientid; //客户端标识
|
|
||||||
|
|
||||||
console.log("当前机子CID:", cid);
|
|
||||||
|
|
||||||
plus.push.getClientInfoAsync((info) => {
|
|
||||||
let cid = info["clientid"];
|
|
||||||
console.log("当前机子CID:", cid);
|
|
||||||
});
|
|
||||||
|
|
||||||
let res = await this.getCidAsync();
|
|
||||||
console.log("getCidAsync", res);
|
|
||||||
|
|
||||||
uni.setClipboardData({
|
|
||||||
data: cid, // 需要复制的内容
|
|
||||||
success: () => {
|
|
||||||
// 成功提示框显示 1 秒钟
|
|
||||||
uni.showToast({
|
|
||||||
title: "复制成功",
|
|
||||||
icon: "success",
|
|
||||||
duration: 1000,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
fail: () => {
|
|
||||||
// 失败提示框显示 1 秒钟
|
|
||||||
uni.showToast({
|
|
||||||
title: "复制失败,请重试",
|
|
||||||
icon: "none",
|
|
||||||
duration: 1000,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
uni.showToast({
|
|
||||||
title: cid,
|
|
||||||
icon: "success",
|
|
||||||
duration: 20000,
|
|
||||||
});
|
|
||||||
|
|
||||||
const _self = this;
|
|
||||||
//监听系统通知栏消息点击事件
|
|
||||||
plus.push.addEventListener(
|
|
||||||
"click",
|
|
||||||
function (message) {
|
|
||||||
//处理点击消息的业务逻辑代码
|
|
||||||
console.log(message);
|
|
||||||
plus.nativeUI.toast("click:" + JSON.stringify(message));
|
|
||||||
//plus.nativeUI.toast('push click');
|
|
||||||
_self._handlePush(message);
|
|
||||||
uni.showToast({
|
|
||||||
title: message,
|
|
||||||
icon: "none",
|
|
||||||
duration: 1000,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
false
|
|
||||||
);
|
|
||||||
|
|
||||||
//监听接收透传消息事件
|
|
||||||
plus.push.addEventListener(
|
|
||||||
"receive",
|
|
||||||
function (message) {
|
|
||||||
console.log(message);
|
|
||||||
plus.nativeUI.toast("receive:" + JSON.stringify(message));
|
|
||||||
//处理透传消息的业务逻辑代码
|
|
||||||
//plus.nativeUI.toast('push receive');
|
|
||||||
_self._handlePush(message);
|
|
||||||
uni.showToast({
|
|
||||||
title: message,
|
|
||||||
icon: "none",
|
|
||||||
duration: 1000,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
false
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -63,3 +63,20 @@ export function GetOrderList(params) {
|
|||||||
// }).catch(e => reject(console.warn(e)))
|
// }).catch(e => reject(console.warn(e)))
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取订单个推
|
||||||
|
* @author Seven
|
||||||
|
* @data 2025-3-28
|
||||||
|
* @param channel
|
||||||
|
* @returns { cid:f9da7081a7951cff6d7f1d4e2d2f270b }
|
||||||
|
* @see https://mall.gpxscs.cn/api/mobile/account/login/push/testcase
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function GetOrderPush(params) {
|
||||||
|
return http({
|
||||||
|
url: "/account/login/push/testcase",
|
||||||
|
method: "post",
|
||||||
|
data: params,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@ -5,6 +5,8 @@ import uView from "@/uni_modules/uview-ui";
|
|||||||
import "./uni.promisify.adaptor";
|
import "./uni.promisify.adaptor";
|
||||||
import tui from "./utils/httpRequest";
|
import tui from "./utils/httpRequest";
|
||||||
import Socket from "./utils/socket.js";
|
import Socket from "./utils/socket.js";
|
||||||
|
// import Utils from './utils/http'
|
||||||
|
// import "@/static/font/iconfont.css"
|
||||||
|
|
||||||
Vue.use(uView);
|
Vue.use(uView);
|
||||||
|
|
||||||
|
|||||||
@ -23,8 +23,7 @@
|
|||||||
"Camera" : {},
|
"Camera" : {},
|
||||||
"Record" : {},
|
"Record" : {},
|
||||||
"VideoPlayer" : {},
|
"VideoPlayer" : {},
|
||||||
"UIWebview" : {},
|
"UIWebview" : {}
|
||||||
"Push" : {}
|
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute" : {
|
"distribute" : {
|
||||||
@ -64,23 +63,7 @@
|
|||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs" : {
|
"sdkConfigs" : {
|
||||||
"maps" : {},
|
"maps" : {},
|
||||||
"push" : {
|
"push" : {}
|
||||||
"unipush" : {
|
|
||||||
"offline" : true,
|
|
||||||
"fcm" : {},
|
|
||||||
"honor" : {},
|
|
||||||
"meizu" : {},
|
|
||||||
"mi" : {},
|
|
||||||
"vivo" : {},
|
|
||||||
"oppo" : {},
|
|
||||||
"hms" : {}
|
|
||||||
},
|
|
||||||
"igexin" : {
|
|
||||||
"appid" : "KXgzOaKSzd5HG3p9IPaVa8",
|
|
||||||
"appkey" : "neXXX9r1Tc7gMxN2PIcHA1",
|
|
||||||
"appsecret" : "aQQys9eufd8KHH1Y0kfQm6"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
@ -113,9 +96,6 @@
|
|||||||
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"splashscreen" : {
|
|
||||||
"androidStyle" : "common"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -59,12 +59,6 @@
|
|||||||
"navigationBarTitleText": "填写地区信息"
|
"navigationBarTitleText": "填写地区信息"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/audit/contractSigning",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "合同签署"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/agreement/agreement",
|
"path": "pages/agreement/agreement",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@ -53,13 +53,7 @@
|
|||||||
拒绝原因:{{ auditInfo.approval_remark }}
|
拒绝原因:{{ auditInfo.approval_remark }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view class="" v-if="[3, 5].includes(auditInfo.approval_status)">
|
||||||
class=""
|
|
||||||
v-if="
|
|
||||||
[3, 5].includes(auditInfo.approval_status) &&
|
|
||||||
!auditInfo.lkl_ec_result_url
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<view class="img-await"></view>
|
<view class="img-await"></view>
|
||||||
<view class="tips">审核中,1-7个工作日内答复,请耐心等待</view>
|
<view class="tips">审核中,1-7个工作日内答复,请耐心等待</view>
|
||||||
</view>
|
</view>
|
||||||
@ -67,30 +61,6 @@
|
|||||||
<view class="img-no-audit"></view>
|
<view class="img-no-audit"></view>
|
||||||
<view class="tips">暂无申请记录!</view>
|
<view class="tips">暂无申请记录!</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
|
||||||
class=""
|
|
||||||
v-if="auditInfo.has_ec_signed == 2 && auditInfo.lkl_ec_result_url"
|
|
||||||
>
|
|
||||||
<view class="img-pass-audit"></view>
|
|
||||||
<view class="tips">申请通过:请在24小时内签署合同,过期会失效!</view>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
class=""
|
|
||||||
v-if="auditInfo.has_apply_mer == 1 && auditInfo.has_ec_signed == 1"
|
|
||||||
>
|
|
||||||
<view class="img-pass-audit"></view>
|
|
||||||
<view class="tips">店铺初始化中,请耐心等待。</view>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
class=""
|
|
||||||
v-if="
|
|
||||||
(auditInfo.has_ec_signed == 1 && auditInfo.has_apply_mer == 2) ||
|
|
||||||
auditInfo.approval_status == 21
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<view class="img"></view>
|
|
||||||
<view class="tips">进件失败,需要管理员处理</view>
|
|
||||||
</view>
|
|
||||||
<view class="time" v-if="auditInfo.approval_status != 4">
|
<view class="time" v-if="auditInfo.approval_status != 4">
|
||||||
申请时间:{{ auditInfo.created_at }}
|
申请时间:{{ auditInfo.created_at }}
|
||||||
</view>
|
</view>
|
||||||
@ -245,7 +215,7 @@
|
|||||||
></u-datetime-picker>
|
></u-datetime-picker>
|
||||||
<view
|
<view
|
||||||
class="contract-content"
|
class="contract-content"
|
||||||
v-if="auditInfo.has_ec_signed == 2 && auditInfo.lkl_ec_result_url"
|
v-if="auditInfo.has_ec_signed == 2 && auditInfo.has_apply_mer == 1"
|
||||||
>
|
>
|
||||||
<view class="contract-tips">您还没有签署,请签署</view>
|
<view class="contract-tips">您还没有签署,请签署</view>
|
||||||
<u-button class="btn-submit" @click="skipuContract">立即签署</u-button>
|
<u-button class="btn-submit" @click="skipuContract">立即签署</u-button>
|
||||||
@ -403,7 +373,6 @@ export default {
|
|||||||
approval_remark: "",
|
approval_remark: "",
|
||||||
approval_invalid_col: [],
|
approval_invalid_col: [],
|
||||||
};
|
};
|
||||||
// this.auditInfo.has_apply_mer = 2;
|
|
||||||
|
|
||||||
if (!res.data) {
|
if (!res.data) {
|
||||||
this.showLoading = false;
|
this.showLoading = false;
|
||||||
@ -700,14 +669,8 @@ export default {
|
|||||||
let validity = ocr.validity.split("-");
|
let validity = ocr.validity.split("-");
|
||||||
this.startTime = validity[0];
|
this.startTime = validity[0];
|
||||||
this.endTime = validity[1];
|
this.endTime = validity[1];
|
||||||
this.form.individual_id_period_begin = this.startTime.replace(
|
this.form.individual_id_period_begin = this.startTime;
|
||||||
/\./g,
|
this.form.individual_id_period_end = this.endTime;
|
||||||
"-"
|
|
||||||
);
|
|
||||||
this.form.individual_id_period_end = this.endTime.replace(
|
|
||||||
/\./g,
|
|
||||||
"-"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
// 银行
|
// 银行
|
||||||
@ -1079,11 +1042,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
skipuContract() {
|
skipuContract() {},
|
||||||
uni.navigateTo({
|
|
||||||
url: `/pages/audit/contractSigning?url=${this.auditInfo.lkl_ec_result_url}`,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
loginOut() {
|
loginOut() {
|
||||||
this.$store.dispatch("user/LoginOut");
|
this.$store.dispatch("user/LoginOut");
|
||||||
},
|
},
|
||||||
@ -1145,16 +1104,6 @@ export default {
|
|||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.img-pass-audit {
|
|
||||||
margin: 0 auto;
|
|
||||||
margin-top: 17%;
|
|
||||||
margin-bottom: 20%;
|
|
||||||
width: 400rpx;
|
|
||||||
height: 400rpx;
|
|
||||||
background-image: url("../../static/pass.png");
|
|
||||||
background-size: 100% 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tips {
|
.tips {
|
||||||
margin-bottom: 24rpx;
|
margin-bottom: 24rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@ -1,56 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view class="contractSigning-container">
|
|
||||||
<web-view
|
|
||||||
:src="contractUrl"
|
|
||||||
@onPageStarted="onPageStarted"
|
|
||||||
@onPageFinished="onPageFinished"
|
|
||||||
/>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import favoriteLoading from "@/components/favorite-loading/favorite-loading.vue";
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
contractUrl: "",
|
|
||||||
|
|
||||||
time: null,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
onLoad(options) {
|
|
||||||
if (options) {
|
|
||||||
clearTimeout(this.time);
|
|
||||||
|
|
||||||
uni.showLoading({
|
|
||||||
title: "合同页加载中...",
|
|
||||||
mask: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
this.showLoading = true;
|
|
||||||
|
|
||||||
this.contractUrl = options.url;
|
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
uni.hideLoading();
|
|
||||||
}, 4000);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
onPageStarted() {
|
|
||||||
debugger;
|
|
||||||
},
|
|
||||||
onPageFinished() {
|
|
||||||
debugger;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
.contractSigning-container {
|
|
||||||
.loading {
|
|
||||||
margin: 70% auto;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@ -103,8 +103,6 @@
|
|||||||
:width="'100%'"
|
:width="'100%'"
|
||||||
:height="154"
|
:height="154"
|
||||||
:upload-text="''"
|
:upload-text="''"
|
||||||
:maxSize="8 * 1024 * 1024"
|
|
||||||
@oversize="overSize"
|
|
||||||
></u-upload>
|
></u-upload>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="环境图" prop="environment_image">
|
<u-form-item label="环境图" prop="environment_image">
|
||||||
@ -118,8 +116,6 @@
|
|||||||
:width="'100%'"
|
:width="'100%'"
|
||||||
:height="154"
|
:height="154"
|
||||||
:upload-text="''"
|
:upload-text="''"
|
||||||
:maxSize="8 * 1024 * 1024"
|
|
||||||
@oversize="overSize"
|
|
||||||
></u-upload>
|
></u-upload>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</u-form>
|
</u-form>
|
||||||
@ -226,9 +222,6 @@ export default {
|
|||||||
pageBack() {
|
pageBack() {
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
},
|
},
|
||||||
overSize(e) {
|
|
||||||
uni.$u.toast("上传图片大小不能超过8MB!");
|
|
||||||
},
|
|
||||||
async afterRead1(e) {
|
async afterRead1(e) {
|
||||||
const item = e.file;
|
const item = e.file;
|
||||||
const imgUrl = item.url;
|
const imgUrl = item.url;
|
||||||
|
|||||||
@ -53,8 +53,6 @@
|
|||||||
:max-count="1"
|
:max-count="1"
|
||||||
width="125"
|
width="125"
|
||||||
height="88"
|
height="88"
|
||||||
:maxSize="8 * 1024 * 1024"
|
|
||||||
@oversize="overSize"
|
|
||||||
uploadText="点击上传营业执照"
|
uploadText="点击上传营业执照"
|
||||||
></u-upload>
|
></u-upload>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@ -130,8 +128,6 @@
|
|||||||
"
|
"
|
||||||
:fileList="form.specialLicenseFiles"
|
:fileList="form.specialLicenseFiles"
|
||||||
:max-count="5"
|
:max-count="5"
|
||||||
:maxSize="8 * 1024 * 1024"
|
|
||||||
@oversize="overSize"
|
|
||||||
width="125"
|
width="125"
|
||||||
height="88"
|
height="88"
|
||||||
></u-upload>
|
></u-upload>
|
||||||
@ -164,8 +160,6 @@
|
|||||||
width="180"
|
width="180"
|
||||||
height="110"
|
height="110"
|
||||||
uploadIcon=""
|
uploadIcon=""
|
||||||
:maxSize="8 * 1024 * 1024"
|
|
||||||
@oversize="overSize"
|
|
||||||
></u-upload>
|
></u-upload>
|
||||||
<u-upload
|
<u-upload
|
||||||
:class="fileList4.length == 0 ? 'shop2-5-upload' : ''"
|
:class="fileList4.length == 0 ? 'shop2-5-upload' : ''"
|
||||||
@ -177,8 +171,6 @@
|
|||||||
width="180"
|
width="180"
|
||||||
height="110"
|
height="110"
|
||||||
uploadIcon=""
|
uploadIcon=""
|
||||||
:maxSize="8 * 1024 * 1024"
|
|
||||||
@oversize="overSize"
|
|
||||||
></u-upload>
|
></u-upload>
|
||||||
</view>
|
</view>
|
||||||
<u-form
|
<u-form
|
||||||
@ -280,8 +272,6 @@
|
|||||||
height="110"
|
height="110"
|
||||||
:upload-text="''"
|
:upload-text="''"
|
||||||
uploadIcon=""
|
uploadIcon=""
|
||||||
:maxSize="8 * 1024 * 1024"
|
|
||||||
@oversize="overSize"
|
|
||||||
></u-upload>
|
></u-upload>
|
||||||
<u-upload
|
<u-upload
|
||||||
:class="fileList6.length == 0 ? 'shop2-5-upload' : ''"
|
:class="fileList6.length == 0 ? 'shop2-5-upload' : ''"
|
||||||
@ -294,8 +284,6 @@
|
|||||||
height="110"
|
height="110"
|
||||||
:upload-text="''"
|
:upload-text="''"
|
||||||
uploadIcon=""
|
uploadIcon=""
|
||||||
:maxSize="8 * 1024 * 1024"
|
|
||||||
@oversize="overSize"
|
|
||||||
></u-upload>
|
></u-upload>
|
||||||
</view>
|
</view>
|
||||||
<u-form
|
<u-form
|
||||||
@ -529,8 +517,6 @@ export default {
|
|||||||
legal_person_id_addr: "", // 身份证地址
|
legal_person_id_addr: "", // 身份证地址
|
||||||
legal_person_id_period_begin: "", //身份证开始有效日期
|
legal_person_id_period_begin: "", //身份证开始有效日期
|
||||||
legal_person_id_period_end: "", // 身份证截止日期
|
legal_person_id_period_end: "", // 身份证截止日期
|
||||||
biz_license_period_begin: "",
|
|
||||||
biz_license_period_end: "9999-12-31",
|
|
||||||
businessLicenseFiles: [],
|
businessLicenseFiles: [],
|
||||||
specialLicenseFiles: [],
|
specialLicenseFiles: [],
|
||||||
},
|
},
|
||||||
@ -708,10 +694,7 @@ export default {
|
|||||||
pageBack() {
|
pageBack() {
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
},
|
},
|
||||||
overSize(e) {
|
getOcrText(filePath, file, type) {
|
||||||
uni.$u.toast("上传图片大小不能超过8MB!");
|
|
||||||
},
|
|
||||||
async getOcrText(filePath, file, type) {
|
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
const batchNoRes = await batchNoApi(filePath, file, type);
|
const batchNoRes = await batchNoApi(filePath, file, type);
|
||||||
const batchNo = batchNoRes.batchNo;
|
const batchNo = batchNoRes.batchNo;
|
||||||
@ -733,7 +716,6 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const imgOcrRes = await imgOcrResultApi(formDataStr);
|
const imgOcrRes = await imgOcrResultApi(formDataStr);
|
||||||
|
|
||||||
clearTimeout(this.orcTimeout);
|
clearTimeout(this.orcTimeout);
|
||||||
resolve(imgOcrRes?.data);
|
resolve(imgOcrRes?.data);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
@ -810,10 +792,6 @@ export default {
|
|||||||
this.form.legal_person_name = ocr.bizLicenseOwnerName;
|
this.form.legal_person_name = ocr.bizLicenseOwnerName;
|
||||||
this.form.biz_license_number = ocr.bizLicenseCreditCode;
|
this.form.biz_license_number = ocr.bizLicenseCreditCode;
|
||||||
this.form.biz_license_content = ocr.bizLicenseScope || "";
|
this.form.biz_license_content = ocr.bizLicenseScope || "";
|
||||||
this.form.biz_license_period_begin = ocr.bizLicenseStartTime
|
|
||||||
.replace(/年|月|日/g, "-")
|
|
||||||
.replace(/-$/g, "")
|
|
||||||
.replace(/-+/g, "-");
|
|
||||||
console.log("BUSINESS_LICENCE", ocr);
|
console.log("BUSINESS_LICENCE", ocr);
|
||||||
break;
|
break;
|
||||||
case "licenseNumber":
|
case "licenseNumber":
|
||||||
@ -840,14 +818,9 @@ export default {
|
|||||||
let validity = ocr.validity.split("-");
|
let validity = ocr.validity.split("-");
|
||||||
this.startTime = validity[0];
|
this.startTime = validity[0];
|
||||||
this.endTime = validity[1];
|
this.endTime = validity[1];
|
||||||
this.form.legal_person_id_period_begin = this.startTime.replace(
|
|
||||||
/\./g,
|
this.form.legal_person_id_period_begin = this.startTime;
|
||||||
"-"
|
this.form.legal_person_id_period_end = this.endTime;
|
||||||
);
|
|
||||||
this.form.legal_person_id_period_end = this.endTime.replace(
|
|
||||||
/\./g,
|
|
||||||
"-"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -72,8 +72,6 @@ export default {
|
|||||||
height: 240rpx;
|
height: 240rpx;
|
||||||
margin: 50% auto;
|
margin: 50% auto;
|
||||||
margin-bottom: 32rpx;
|
margin-bottom: 32rpx;
|
||||||
border-radius: 12rpx;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-name {
|
.app-name {
|
||||||
|
|||||||
@ -26,14 +26,12 @@ export default {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.versions-container {
|
.versions-container {
|
||||||
.logo-content {
|
.logo-content {
|
||||||
margin: 50% auto;
|
background-image: url("../../static/logo-2.png");
|
||||||
margin-bottom: 32rpx;
|
background-size: 100% 100%;
|
||||||
width: 228rpx;
|
width: 228rpx;
|
||||||
height: 228rpx;
|
height: 228rpx;
|
||||||
background-size: 100% 100%;
|
margin: 50% auto;
|
||||||
background-image: url("../../static/logo-2.png");
|
margin-bottom: 32rpx;
|
||||||
border-radius: 12rpx;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
.versions-content {
|
.versions-content {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@ -895,7 +895,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
shopNmae: "",
|
shopNmae: "",
|
||||||
logoUrl: "@/static/xiaofa-logo.png",
|
logoUrl: "",
|
||||||
sfStatus: [
|
sfStatus: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 52 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 52 KiB |
@ -1,17 +1,16 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue'
|
||||||
import Vuex from 'vuex';
|
import Vuex from 'vuex'
|
||||||
import user from './modules/user';
|
import user from './modules/user'
|
||||||
import account from './modules/account';
|
import account from './modules/account'
|
||||||
import order from './modules/order';
|
|
||||||
|
Vue.use(Vuex)
|
||||||
Vue.use(Vuex);
|
|
||||||
|
|
||||||
const store = new Vuex.Store({
|
const store = new Vuex.Store({
|
||||||
modules: {
|
modules:{
|
||||||
user,
|
user,
|
||||||
account,
|
account
|
||||||
order,
|
}
|
||||||
},
|
})
|
||||||
});
|
|
||||||
|
|
||||||
export default store;
|
|
||||||
|
export default store
|
||||||
@ -1,5 +1,4 @@
|
|||||||
import { GetOrderPush } from '../../api/order';
|
import { GetOrderPush } from "../../api/user";
|
||||||
import GtPush from '@/utils/gtpush-min.js';
|
|
||||||
|
|
||||||
const defaultState = () => {
|
const defaultState = () => {
|
||||||
return {
|
return {
|
||||||
@ -13,49 +12,11 @@ const getters = {};
|
|||||||
|
|
||||||
const mutations = {};
|
const mutations = {};
|
||||||
|
|
||||||
const getClient = () => {
|
|
||||||
// #ifdef APP-PLUS
|
|
||||||
let clientInfo = plus.push.getClientInfo(); //获取 clientID
|
|
||||||
uni.setStorageSync('clientid', clientInfo.clientid);
|
|
||||||
return clientInfo.clientid;
|
|
||||||
console.log(clientInfo);
|
|
||||||
// #endif
|
|
||||||
};
|
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
async intOrderPush({ dispatch }) {
|
async getOrderPush() {
|
||||||
GtPush.init({
|
let res = await GetOrderPush();
|
||||||
appid: 'KXgzOaKSzd5HG3p9IPaVa8',
|
if (res && res.status) {
|
||||||
onClientId: (res) => {
|
debugger;
|
||||||
let params = {
|
|
||||||
cid: res.cid,
|
|
||||||
message: '测试',
|
|
||||||
};
|
|
||||||
|
|
||||||
dispatch('getOrderPush', params);
|
|
||||||
console.log('onClientId = ' + res.cid);
|
|
||||||
},
|
|
||||||
onlineState: (res) => {
|
|
||||||
console.log('onlineState = ' + res.online);
|
|
||||||
},
|
|
||||||
onPushMsg: (res) => {
|
|
||||||
console.log('onPushMsg = ' + res.message);
|
|
||||||
},
|
|
||||||
onError: (res) => {
|
|
||||||
console.log('error', +res.message);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
async getOrderPush({ dispatch }, params) {
|
|
||||||
// #ifdef APP-PLUS
|
|
||||||
let clientid = getClient();
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
let res = await GetOrderPush(params);
|
|
||||||
|
|
||||||
if (res && res.second) {
|
|
||||||
console.log('OrderPush', res);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
88
java-mall-app-shop-admin/utils/gtpush-min.js
vendored
88
java-mall-app-shop-admin/utils/gtpush-min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,67 +0,0 @@
|
|||||||
export default {
|
|
||||||
init: () => {
|
|
||||||
// #ifdef APP-PLUS
|
|
||||||
plus.push.setAutoNotification(true); //设置通知栏显示通知 //必须设置
|
|
||||||
plus.push.addEventListener("click", function(msg) {
|
|
||||||
plus.push.clear(); //清空通知栏
|
|
||||||
pushHandle(msg) //处理方法
|
|
||||||
}, false);
|
|
||||||
// 监听在线消息事件
|
|
||||||
plus.push.addEventListener("receive", function(msg) {
|
|
||||||
if (plus.os.name=='iOS') { //由于IOS 必须要创建本地消息 所以做这个判断
|
|
||||||
if (msg.payload&& msg.payload!=null&&msg.type=='receive') {
|
|
||||||
console.log(msg);
|
|
||||||
// {"title": "xxx","content": "xxx","payload": "xxx"} 符合这种 才会自动创建消息 文档地址https://ask.dcloud.net.cn/article/35622
|
|
||||||
plus.push.createMessage(msg.payload.content,JSON.stringify(msg.payload)) //创建本地消息
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (plus.os.name=='Android') {
|
|
||||||
if(!msg.title||!msg.content||!msg.payload){ // 不符合自动创建消息的情况
|
|
||||||
//这里根据你消息字段来创建消息
|
|
||||||
// plus.push.createMessage(msg.payload.content,JSON.stringify(msg.payload)) //创建本地消息
|
|
||||||
}else{
|
|
||||||
//符合自动创建消息
|
|
||||||
pushHandle(msg)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}, false);
|
|
||||||
// #endif
|
|
||||||
},
|
|
||||||
|
|
||||||
getClient: (callback) => {
|
|
||||||
// #ifdef APP-PLUS
|
|
||||||
let clientInfo = plus.push.getClientInfo(); //获取 clientID
|
|
||||||
uni.setStorageSync('clientid', clientInfo.clientid)
|
|
||||||
console.log(clientInfo);
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
|
||||||
const pushHandle = (msg) => {
|
|
||||||
if (typeof (msg.payload )=='string') { //如果是字符串,表示是ios创建的 要转换一下
|
|
||||||
msg.payload=JSON.parse(msg.payload )
|
|
||||||
}
|
|
||||||
if(!msg) return false;
|
|
||||||
plus.runtime.setBadgeNumber(0); //清除app角标
|
|
||||||
|
|
||||||
//下面的代码根据自己业务来写 这里可以写跳转业务代码
|
|
||||||
//跳转到tab
|
|
||||||
if (msg.payload.pathType == '1') {
|
|
||||||
uni.switchTab({
|
|
||||||
url: msg.payload.url
|
|
||||||
})
|
|
||||||
}
|
|
||||||
//跳转到详情
|
|
||||||
if (msg.payload.pathType == 0) {
|
|
||||||
let url = msg.payload.url
|
|
||||||
if (msg.payload.args) {
|
|
||||||
url = url + '?listId=' + msg.payload.args
|
|
||||||
}
|
|
||||||
console.log(url);
|
|
||||||
uni.navigateTo({
|
|
||||||
url: url
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user