盛安新版本问题优化-1

This commit is contained in:
曹磊 2024-10-26 16:43:55 +08:00
parent 77c8b132fc
commit b7f1640c6f
10 changed files with 55 additions and 31 deletions

View File

@ -39,6 +39,7 @@ const ROOTPATH1 = (checkdomain(ROOTHOST) ? "https://" : "http://") + ROOTHOST +
const ROOTPATH2 = "wss://" + ROOTHOST + "/wss/chatSocket/"; //联系客服
const WEBSOCKETADDRESS = "wss://" + ROOTHOST + "/wss/chatSocket/"; //退出软件后台后将用户状态置为离线
const UPLOAD_PATH = ROOTPATH1 + '/alioss/upload';
const UPLOAD_AVATAR = ROOTPATH1 + '/alioss/uploadAvatar';
// const ROOTPATH = "http://192.168.0.131:8187/sqx_fast";
// const ROOTPATH1 = "http://192.168.0.131:8187/sqx_fast";
@ -68,6 +69,7 @@ module.exports = {
APIHOST1: ROOTPATH1,
WSHOST: ROOTPATH2,
UPLOAD_PATH,
UPLOAD_AVATAR,
// WSHOST1: ROOTPATH3,
TX_MAP_KEY,
WS_BASE_PATH,

View File

@ -80,8 +80,9 @@ export default {
let eT = +this.cTime;
if (sT <= eT) {
let h = date1.getHours() < sT ? sT : date1.getHours();
h = h + parseInt(this.timeNum);
// let h = date1.getHours() < sT ? sT : date1.getHours();
// h = h + parseInt(this.timeNum);
let h = sT;
if (h > eT || this.sDayNum > 0) {
this.sDayNum = this.sDayNum <= 0 ? parseInt(this.sDay) + 1 : parseInt(this.sDay);
for (let i = sT; i <= eT; i++) {
@ -93,8 +94,9 @@ export default {
}
}
} else {
let h = date1.getHours() < sT ? sT : date1.getHours();
h = h + parseInt(this.timeNum);
// let h = date1.getHours() < sT ? sT : date1.getHours();
// h = h + parseInt(this.timeNum);
let h = sT;
if ((h > eT && h < sT) || h > 23 || this.sDayNum > 0) {
this.sDayNum = this.sDayNum <= 0 ? parseInt(this.sDay) + 1 : parseInt(this.sDay);
for (let i = 0; i <= 23; i++) {

View File

@ -69,7 +69,7 @@ export default {
},
pickerTap: function() {
let date = new Date();
date.setDate(date.getDate() + 1);
//date.setDate(date.getDate() + 1);
let monthDay = [];
let hours = [];
let minute = [];
@ -202,7 +202,6 @@ export default {
}
},
bindStartMultiPickerChange(e) {
console.log(e);
this.multiIndex = e.detail.value;
let da = this.multiArray;
let di = e.detail.value;

View File

@ -49,10 +49,19 @@
</u-form-item>
</u-form>
</view>
<view class=" padding bg radius margin" style="padding-top: 20rpx; margin-top: 20rpx;">
<view v-if="renzheng == 0 || renzheng == 3" class=" padding bg radius margin" style="padding-top: 20rpx; margin-top: 20rpx;">
<view class="margin-top-sm">请选择认证类型</view>
<view class="guke-list">
<view class="guke-btn huiBtn" :class="{ lanBtn: selected.includes(item) }" @click="gukeBtn(item)"
<view class="guke-btn huiBtn" :class="{ lanBtn: selected.includes(item.id) }" @click="gukeBtn(item)"
v-for="(item,index) in typeList" :key="index">
{{item.value}}
</view>
</view>
</view>
<view v-else class=" padding bg radius margin" style="padding-top: 20rpx; margin-top: 20rpx;">
<view class="margin-top-sm">已认证类型</view>
<view class="guke-list">
<view class="guke-btn huiBtn" :class="{ lanBtn: selected.includes(item.id) }"
v-for="(item,index) in typeList" :key="index">
{{item.value}}
</view>
@ -136,8 +145,8 @@
</view>
</view>
</view>
<jp-cropper-watermark :watermarkType="1" mode="ratio" :width="400" :height="500" :maxWidth="400"
:maxHeight="500" :url="url" @cancel="oncancel" @ok="onok"></jp-cropper-watermark>
<jp-cropper-watermark :watermarkType="1" mode="ratio" :width="300" :height="500" :maxWidth="1080"
:maxHeight="1920" :url="url" @cancel="oncancel" @ok="onok"></jp-cropper-watermark>
</view>
<view class="margin-top-sm">持有资质证书可多张</view>
<view class="flex" style="overflow: hidden;flex-wrap: wrap;">
@ -397,15 +406,16 @@
return `${year}-${month}-${day}`;
},
gukeBtn(item) {
var index = this.selected.indexOf(item);
console.log(this.selected);
var index = this.selected.indexOf(item.id);
if (index === -1) {
this.selected.push(item);
this.selected.push(item.id);
} else {
this.selected.splice(index, 1);
}
var data = [];
for (var i = 0; i < this.selected.length; i++) {
data.push(this.selected[i].id)
data.push(this.selected[i])
}
this.typeId = data.join(",")
console.log("this.typeId", this.typeId)
@ -734,6 +744,13 @@
if (res.data.status == 2) {
this.form.remek = res.data.remek ? res.data.remek : ''
}
if (res.data.classifyId) {
let classifyIds = res.data.classifyId.split(',');
for (let i = 0; i < classifyIds.length; i++) {
let id = classifyIds[i];
this.selected.push(Number(id));
}
}
}
});
},
@ -803,24 +820,21 @@
onok(ev) {
var that = this;
this.url = "";
// that.form.headImg = ev.path;
var url = null;
if (ev.path) {
that.$queue.showLoading("上传中...");
// 2MB
that.urlUol = ev.path;
uni.uploadFile({ //
url: websocketUtils.uploadFileUrl(), //
url: websocketUtils.uploadAvatarUrl(), //
filePath: that.urlUol,
name: 'file',
success: (uploadFileRes) => {
that.form.headImg = JSON.parse(uploadFileRes.data).data
console.log(that.form.headImg)
uni.hideLoading();
}
});
}
console.log("asdasdasdasd", this.avatar)
},
oncancel() {
// url
@ -1064,7 +1078,6 @@
}
},
setPayment(name, order) {
console.log(777777777, name, order)
uni.requestPayment({
provider: name,
orderInfo: order, //

View File

@ -79,8 +79,8 @@
<view class="mian-bottom">
<view class="mian-bottom-xiang shouyi-text">项目金额 : {{item.priceTotal}}</view>
<view class="mian-bottom-shou">
<span class="shouyi-text">本单收益: </span>
<span class="shouyi-text" style="color: #FF6000;font-weight: bold;">{{item.artificerMoneyTotal}}</span>
<span class="shouyi-text">本单积分: </span>
<span class="shouyi-text" style="color: #FF6000;font-weight: bold;">{{item.jifen}}</span>
</view>
</view>
</view>

View File

@ -23,7 +23,7 @@
<view class="flex align-center" style="font-size: 14px;">
<image src="../../static/images/my/start.png"
style="width: 13px;height: 12px;margin: 0 6rpx 0 20rpx;"></image>
5.0
{{ordersScore}}
</view>
<view class="xyf" @click="goNav('/my/wallet/xinyongfendetail')">{{ creditScore }}</view>
</view>

View File

@ -6,7 +6,7 @@
<switch :checked='isTrue' style="transform:scale(0.7)" color="#029d88" @change="switch1Change"/>
</view>
<view class="selectTimt">
<view class="dx_title">选择接单时</view>
<view class="dx_title">选择接单时</view>
<view class="selectTimt-bottom">
<hTimePicker class="selectTimt-time" dayNum='0' sTime="0" cTime="23" interval="30" @changeTime="bindTimeChange">
<view slot="pCon" class="changeTime">
@ -18,7 +18,6 @@
<view slot="pCon" class="changeTime">
<view class="selectTimt-time-title">结束时间</view>
<view class="uni-input">
<span style="margin-right: 5px;">次日</span>
<span>{{endTime}}</span>
</view>
</view>
@ -378,7 +377,7 @@
multiSelector: '',
isTrue: true,
starTime:'00:00',
endTime: '00:00',
endTime: '23:59',
appointTime:[],
disableTimeSlot:[],
newmsList: [],
@ -558,7 +557,11 @@
this.msList=time;
},
sub() {
this.saveMangShi();
if(this.endTime>=this.starTime){
this.saveMangShi();
}else{
this.$queue.showToast('开始时间需早于结束时间!');
}
// if (this.msList.length == 0) {
// if(this.yearsDate === ''){
// this.$queue.showToast('');

View File

@ -15,7 +15,7 @@
<!-- #endif -->
<!-- #ifndef MP-WEIXIN -->
<view @click="toggle()">
<jp-cropper-watermark :watermarkType="1" mode="ratio" :width="400" :height="500" :maxWidth="400" :maxHeight="500" :url="url" @cancel="oncancel" @ok="onok"></jp-cropper-watermark>
<jp-cropper-watermark :watermarkType="1" mode="ratio" :width="300" :height="500" :maxWidth="1080" :maxHeight="1920" :url="url" @cancel="oncancel" @ok="onok"></jp-cropper-watermark>
<image src="../../static/logo.png" v-if="avatar==null" mode=""
style="width: 111rpx;height: 111rpx;border-radius: 50%;"></image>
<image v-else :src="avatar" mode="" style="width: 111rpx;height: 111rpx;border-radius: 50%;">
@ -187,7 +187,7 @@
});
let userId = uni.getStorageSync('userId');
uni.uploadFile({
url: websocketUtils.uploadFileUrl(), //
url: websocketUtils.uploadAvatarUrl(), //
filePath: e.detail.avatarUrl,
header: {
token: token
@ -214,8 +214,9 @@
});
let token = uni.getStorageSync('token');
let userId = uni.getStorageSync('userId');
that.upUrl = ev.path;
uni.uploadFile({
url: websocketUtils.uploadFileUrl(), //
url: websocketUtils.uploadAvatarUrl(), //
filePath:that.upUrl,
header: {
token: token

View File

@ -596,6 +596,10 @@ export function uploadFileUrl() {
return config('UPLOAD_PATH');
}
export function uploadAvatarUrl() {
return config('UPLOAD_AVATAR');
}
export function getWsBaseUrl() {
return config('WSHOST');
}

View File

@ -101,9 +101,9 @@ class Request {
constructor() {
this.config = {
// baseUrl: 'https://admin.sjajk.com/', // 请求的根域名//生产需替换
baseUrl: 'https://admin.sjajk.com/', // 请求的根域名//生产需替换
// baseUrl: 'http://192.168.2.222:8187/', // 请求的根域名
baseUrl: 'https://sausers.blxinchuang.com', // 请求的根域名
// baseUrl: 'https://sausers.blxinchuang.com', // 请求的根域名
// 默认的请求头
header: {},
method: 'POST',