This commit is contained in:
ylj20011123 2025-12-01 09:02:03 +08:00
parent bc2c1bb9e5
commit c3911e17a9
8 changed files with 77 additions and 65 deletions

View File

@ -152,7 +152,8 @@
"path": "index",
"style": {
"navigationBarTitleText": "优质文明服务监督",
"enablePullDownRefresh": true
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
},
{

View File

@ -332,9 +332,9 @@ export default {
SERVERPART_ID: this.detailSuggestion.SERVERPART_ID,
SERVERPART_NAME: this.detailSuggestion.SERVERPART_NAME,
}
this.imgsList = this.detailSuggestion.IMAGE_URL.split(',')
this.imgsList = this.detailSuggestion.IMAGE_URL ? this.detailSuggestion.IMAGE_URL.split(',') : []
let labelList = this.detailSuggestion.ENUM_LABEL.split(',')
let labelList = this.detailSuggestion.ENUM_LABEL ? this.detailSuggestion.ENUM_LABEL.split(',') : []
this.pageMsg.typeName = this.detailSuggestion.SUGGESTION_TYPE ? this.msgTypeObj[this.detailSuggestion.SUGGESTION_TYPE] : ""
this.typeIndex = this.detailSuggestion.SUGGESTION_TYPE === 2000 ? '0' : this.detailSuggestion.SUGGESTION_TYPE === 1050 ? '1' : this.detailSuggestion.SUGGESTION_TYPE === 4000 ? '2' : '0'
@ -491,7 +491,7 @@ export default {
mask: true
})
uni.uploadFile({
url: 'https://eshangtech.com:18998/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=suggestion',
url: 'https://eshangtech.com:18998/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=suggestion',
// filePath: res.tempFilePath,
filePath: imgInfo.path,
name: 'data',

View File

@ -1,7 +1,10 @@
<template>
<view class="complaints">
<view class="complaints-content">
<!-- 因为说扫码进入不要微信小程序自带的 返回首页按钮 那就只能 去掉自带的标题内容 自己搞了 -->
<div class="mainTop" :style="{ height: menu.bottom + 6 + 'px', paddingTop: menu.top + 'px' }">
<div class="pageTitle" :style="{ height: menu.height + 'px' }">优质文明服务监督</div>
</div>
<view class="complaints-content" :style="{ marginTop: menu.bottom + 6 + 'px' }">
<view class="complaints-content-unit" v-for="(unit, i) in complaintsRecord" :key="i"
@click="goDetail(unit)">
@ -58,7 +61,8 @@ export default {
pageIndex: 1,
isLoadMore: true,
isScreen: false
}
},
menu: {}, //
}
},
components: {
@ -175,6 +179,9 @@ export default {
this.pageMsg.pageIndex = 1
this.pageMsg.isLoadMore = true
this.getConsuptionRecord()
},
onLoad() {
this.menu = uni.getMenuButtonBoundingClientRect();
}
}
</script>
@ -187,6 +194,24 @@ export default {
box-sizing: border-box;
}
.mainTop {
width: 100%;
background-color: #f8f8f8;
box-sizing: border-box;
position: fixed;
left: 0;
top: 0;
z-index: 999;
.pageTitle {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
}
}
.complaints-content {
padding: 24rpx 32rpx;
}

View File

@ -143,25 +143,25 @@ export default {
},
onShow() {
this.getUserPoints();
},
methods: {
//
async getUserPoints() {
let _this = this;
try {
const data = await this.$api.getCoop({
action_type: "GetMembershipInfo",
WechatUserId: this.user.WechatUserId,
noLoading: true,
});
const req = {
mobile: this.user.MEMBERSHIP_MOBILEPHONE,
outUserId: this.user.MEMBERSHIP_ID,
type: "encryption"
}
const data = await this.$api.$post('/MemberApi/ThirdInterface/GetYTSLMemberPoint', req)
console.log('datadatadatadata321', data);
if (data.Result_Code === 100) {
let res = data.Result_Data
if (data.ResultCode === "100") {
this.userPoints = data.Data.MEMBERSHIP_POINT || 0;
}
} catch (error) {
console.error('获取用户积分失败:', error);
} else {
uni.showToast({
title: data.Result_Desc,
icon: 'none'
});
}
},
@ -179,7 +179,6 @@ export default {
//
handleExchange() {
if (!this.etcPoints || this.etcPoints <= 0) { uni.showToast({ title: '请输入兑换积分', icon: 'none' }); return; } if
(Number(this.etcPoints) < 100) { uni.showToast({ title: '单次最低兑换100积分', icon: 'none' }); return; } if
(Number(this.etcPoints) > this.userPoints) {
uni.showToast({
title: 'ETC积分不足',
@ -203,36 +202,16 @@ export default {
async doExchange() {
uni.showLoading({ title: '兑换中...' });
try {
// TODO:
// const result = await this.$api.postCoop({
// action_type: "ExchangePoints",
// etcPoints: this.etcPoints,
// platformPoints: this.platformPoints
// });
//
setTimeout(() => {
uni.hideLoading();
uni.showToast({
title: '兑换成功',
icon: 'success'
});
//
this.getUserPoints();
//
this.etcPoints = '';
this.platformPoints = 0;
}, 1000);
} catch (error) {
uni.hideLoading();
uni.showToast({
title: '兑换失败,请稍后重试',
icon: 'none'
});
const req = {
orderno: "",
outUserId: this.user.MEMBERSHIP_ID,
changePoint: this.platformPoints,
memo: "积分兑换",
type: "encryption"
}
const data = await this.$api.$post('/MemberApi/ThirdInterface/ChangeYTSLMemberPoint', req)
console.log('datadatadatadata321', data);
},
//

View File

@ -448,8 +448,8 @@ export default {
// }
//
// this.handleGetYNUserInfo()
//
this.handleGetYNUserInfo()
//
@ -656,9 +656,9 @@ export default {
async handleGetYNUserInfo() {
let params = {
// mobile: this.user.MEMBERSHIP_MOBILEPHONE,
mobile: "15067121398",
mobile: "13508703001",
// out_user_id: this.user.MEMBERSHIP_ID,
outUserId: "3209361",
outUserId: "46999999",
};
let time = Math.ceil(new Date().getTime() / 1000);
let req = {
@ -698,7 +698,7 @@ export default {
const tweetsData = await new Promise((resolve, reject) => {
uni.request({
url: `https://sxgzh.etclife.cn/etc/api/v1/gzh/point/balance`,
url: `https://tuozhan.yns-etc.com/gzh/api/v1/gzh/point/balance`,
method: "POST",
data: req,
header: {

File diff suppressed because one or more lines are too long

View File

@ -301,8 +301,8 @@ var _default = {
case 13:
// }
// 请求一下云南那边的积分信息
// this.handleGetYNUserInfo()
// 请求一下云南那边的积分信息
_this2.handleGetYNUserInfo();
// 拿到订单信息
// await this.handleGetOrderDetail()
@ -340,7 +340,7 @@ var _default = {
_this2.$utils.addUserBehaviorNew({
behaviorRecordDesc: "进入了我的页面"
});
case 15:
case 16:
case "end":
return _context2.stop();
}
@ -540,9 +540,9 @@ var _default = {
case 0:
params = {
// mobile: this.user.MEMBERSHIP_MOBILEPHONE,
mobile: "15067121398",
mobile: "13508703001",
// out_user_id: this.user.MEMBERSHIP_ID,
outUserId: "3209361"
outUserId: "46999999"
};
time = Math.ceil(new Date().getTime() / 1000);
req = {
@ -581,7 +581,7 @@ var _default = {
_context4.next = 11;
return new Promise(function (resolve, reject) {
uni.request({
url: "https://sxgzh.etclife.cn/etc/api/v1/gzh/point/balance",
url: "https://tuozhan.yns-etc.com/gzh/api/v1/gzh/point/balance",
method: "POST",
data: req,
header: {

View File

@ -9,11 +9,18 @@
"miniprogram": {
"list": [
{
"name": "pages/pointsRedemption/index",
"pathName": "pages/pointsRedemption/index",
"name": "pages/complaints/addComplaints",
"pathName": "pages/complaints/index",
"query": "",
"scene": null,
"launchMode": "default"
},
{
"name": "pages/pointsRedemption/index",
"pathName": "pages/pointsRedemption/index",
"query": "",
"launchMode": "default",
"scene": null
}
]
}