Browse Source

丢失的代码回家

master
mk 1 year ago
parent
commit
6b023a758b
  1. BIN
      yt_huizhangguanli/.DS_Store
  2. BIN
      yt_huizhangguanli/components/.DS_Store
  3. BIN
      yt_huizhangguanli/pages/.DS_Store
  4. 6
      yt_huizhangguanli/pages/apply/apply.vue
  5. 152
      yt_huizhangguanli/pages/index/index.vue
  6. BIN
      yt_huizhangguanli/uni_modules/.DS_Store
  7. BIN
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli.zip
  8. 2
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/index.html
  9. 7
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/chunk-vendors.cc6697e8.js
  10. 1
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/index.9bb91c68.js
  11. 1
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-apply-apply.a87ec100.js
  12. 3
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-apply-apply~pages-communist-communist.1f2079e7.js
  13. 1
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-authLogin-index.98fdb53d.js
  14. 1
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-communist-communist.a9eeeecb.js
  15. 3
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-grid-grid.5600839b.js
  16. 3
      yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-index-index.617a0603.js
  17. BIN
      yt_huizhangguanli/utils/.DS_Store
  18. BIN
      yt_wodebaoshi/.DS_Store
  19. BIN
      yt_wodebaoshi/components/.DS_Store
  20. 4
      yt_wodebaoshi/manifest.json
  21. BIN
      yt_wodebaoshi/pages/.DS_Store
  22. 233
      yt_wodebaoshi/pages/detail/detail.vue
  23. 163
      yt_wodebaoshi/pages/index/index.vue
  24. BIN
      yt_wodebaoshi/uni_modules/.DS_Store
  25. BIN
      yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi.zip
  26. 2
      yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/index.html
  27. 7
      yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/chunk-vendors.cc6697e8.js
  28. 1
      yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/index.622633b9.js
  29. 1
      yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/pages-authLogin-index.35c77649.js
  30. 3
      yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/pages-detail-detail.cc59b3d1.js
  31. 3
      yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/pages-grid-grid.12530943.js
  32. 3
      yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/pages-index-index.3d6dad75.js
  33. 8
      yt_yishiting/pages/index/index.vue
  34. BIN
      yt_yishiting/unpackage/dist/build/h5-yishiting.zip
  35. 2
      yt_yishiting/unpackage/dist/build/h5-yishiting/index.html

BIN
yt_huizhangguanli/.DS_Store

Binary file not shown.

BIN
yt_huizhangguanli/components/.DS_Store

Binary file not shown.

BIN
yt_huizhangguanli/pages/.DS_Store

Binary file not shown.

6
yt_huizhangguanli/pages/apply/apply.vue

@ -1152,7 +1152,7 @@ page {
margin-left: 10rpx;
width: 138rpx;
height: 40rpx;
background: #22BDF0;
background: #329AFF;
border-radius: 10rpx;
text-align: center;
font-size: 22rpx;
@ -1286,7 +1286,7 @@ page {
border: none;
outline: 0;
font-size: 30rpx;
background: #22BDF0;
background: #329AFF;
color: #fff;
text-align: center;
transition: background-color 0.13s;
@ -1300,6 +1300,6 @@ page {
opacity: 0.5;
}
.m-fm .btn:active {
background: #22BDF0;
background: #329AFF;
}
</style>

152
yt_huizhangguanli/pages/index/index.vue

@ -83,8 +83,27 @@ export default {
};
},
onLoad() {
let _this = this;
this.getuserInfo();
},
async onShow() {
if (this.showPage) {
await this.init();
await this.getBadgeList();
}
},
methods: {
async init() {
let userInfo = userTools.getStoreUserInfo();
let gridInfo = userTools.getStoreGridInfo();
this.setData({
userInfo,
gridInfo,
showPage: true,
});
await this.getBadgeList();
},
getuserInfo() {
function getIframeQueryParams() {
// 使URLSearchParams
function getStringAfterQuestionMark(str) {
@ -104,43 +123,130 @@ export default {
const query = getIframeQueryParams();
const token =
process.env.NODE_ENV == "development"
? "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhcHAiOiJnb3YiLCJjbGllbnQiOiJ3ZWIiLCJleHAiOjE4MTQxNDkxOTksInVzZXJJZCI6IjE3MTQ1Njc3MDIxNDQ3NzgyNDEiLCJpYXQiOjE3MTk1NDExOTl9.Rm5CP020giWIlMDXUin22Td4vJIRlCxRsM9YBsRTyrOvEjqjdlR554R3PtAkwDErgVYkBLgnmqpomDKo_Mfktg"
? "eyJhbGciOiJSUzI1NiJ9.eyJyZWFsTmFtZSI6IiIsIm5pY2tOYW1lIjoiRFAzODA3IiwiaXNzIjoibmluZ2JvIiwidXNlclR5cGUiOiIwMCIsImV4cCI6MTcxNjYwNDQ1NywidXNlcklkIjoiMjAyMzA5MTUxNTA4MjAxMDMwMDAwMjgxMjY5ODI0MDIiLCJpYXQiOjE3MTQwMTI0NTcsImp0aSI6IjFkYmEwMmU1MTM0NTFmNTkwODE4YWI1OGEzNThhYzNiIn0.zD8CVi_NZta9_pu4KKXH-AO--FPx6ke_BGEkJ8j0uPqCmD8DiywBBhOAClayOmpdY7Qz_IW28l-vcrwx2E9nKu87bBKSEvtkrwiiA-78WPJxviX5bcVnSTIHISFOztFdeYFeCs5oAK_BYjhhq3tmNQDFRHb6GEW3-YCD174PqhtMfEgrrm1ceHxt6VQhNDeBGDkR562Ba9iDKMdTVUsqpgycmsWNMBfYbz-EoWqBML3crZOUAYpPCPUSPJwCY4a5DX-1FLz6D70ZYaKPDdsL1MD5xmWPWSexijklaHh6S6fi8J_vIKlnHivHCZTiVlIpiYMNQYzdXfzBtRqyJQDOzw"
: query.token;
const gridId =
const url =
process.env.NODE_ENV == "development"
? "32a5f8a8-f7c9-11ee-96cf-fa163ef15b63"
: query.gridId;
? ""
: "https://lantu.ytyanhuo.com/api";
uni.request({
url: "https://inlife.ytyanhuo.com/oxm-user-center/user/userInfo/findByUserId",
method: "post",
header: {
Authorization: token,
},
data: {},
success: (res) => {
if (res.data.code !== "200") {
uni.showToast({
title: res.data.msg,
icon: "none",
duration: 3000,
});
return;
}
var info = res.data.data;
uni.request({
url: url + "/auth/thirdlogin/resiInfo-lantu",
method: "post",
data: {
loginMobile: info.loginMobile,
},
success: (res1) => {
if (res1.data.code === 0) {
if (res1.data.data.userBaseInfoId) {
const userBaseInfoId = res1.data.data.userBaseInfoId;
uni.request({
url: url + "/auth/thirdlogin/resilogin-hfive",
method: "post",
data: {
userBaseInfoId,
},
success: (res2) => {
if (res2.data.code === 0) {
const data = res2.data.data;
userTools.setStoreUserInfo(
JSON.stringify({
authorization: token,
gridId: data.gridId,
authorization: data.authorization,
customerId: "1535072605621841922",
})
);
userTools.setStoreGridInfo(
JSON.stringify({
gridId: gridId,
gridId: data.gridId,
})
);
_this.init();
this.setData(
{
userInfo: {
gridId: data.gridId,
authorization: data.authorization,
customerId: "1535072605621841922",
},
async onShow() {
if (this.showPage) {
await this.init();
await this.getBadgeList();
}
gridInfo: {
gridId: data.gridId,
},
methods: {
async init() {
let userInfo = userTools.getStoreUserInfo();
let gridInfo = userTools.getStoreGridInfo();
this.setData({
userInfo,
gridInfo,
showPage: true,
},
() => {
this.init();
}
);
}
},
});
await this.getBadgeList();
} else {
uni.showToast({
title:
"您尚未完善社区信息,请到“我的房产”完善社区信息后重试",
icon: "none",
duration: 3000,
});
setTimeout(() => {
uni.navigateBack({
delta: 1, // 1
});
}, 3000);
}
}
},
});
},
});
// const gridId =
// process.env.NODE_ENV == "development"
// ? "32a5f8a8-f7c9-11ee-96cf-fa163ef15b63"
// : query.gridId;
// userTools.setStoreUserInfo(
// JSON.stringify({
// gridId: gridId,
// authorization: token,
// customerId: "1535072605621841922",
// })
// );
// userTools.setStoreGridInfo(
// JSON.stringify({
// gridId: gridId,
// })
// );
// this.setData(
// {
// userInfo: {
// gridId: gridId,
// authorization: token,
// customerId: "1535072605621841922",
// },
// gridInfo: {
// gridId,
// },
// showPage: true,
// },
// () => {}
// );
// this.setData({showPage:true})
// this.init();
},
async getBadgeList() {
let customerId = this.userInfo.customerId;
const { data, code, msg } = await operlist({
@ -605,7 +711,7 @@ page {
height: 60rpx;
line-height: 60rpx;
text-align: center;
background: #22BDF0;
background: #329aff;
border-radius: 30rpx;
font-size: 26rpx;
color: #fff;

BIN
yt_huizhangguanli/uni_modules/.DS_Store

Binary file not shown.

BIN
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli.zip

Binary file not shown.

2
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/index.html

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>yantai</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/h5-huizhangguanli/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/h5-huizhangguanli/static/js/chunk-vendors.cc6697e8.js></script><script src=/h5-huizhangguanli/static/js/index.9bb91c68.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/h5-huizhangguanli/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/h5-huizhangguanli/static/js/chunk-vendors.b6a101e0.js></script><script src=/h5-huizhangguanli/static/js/index.0553a8e1.js></script></body></html>

7
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/chunk-vendors.cc6697e8.js

File diff suppressed because one or more lines are too long

1
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/index.9bb91c68.js

File diff suppressed because one or more lines are too long

1
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-apply-apply.a87ec100.js

File diff suppressed because one or more lines are too long

3
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-apply-apply~pages-communist-communist.1f2079e7.js

File diff suppressed because one or more lines are too long

1
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-authLogin-index.98fdb53d.js

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-authLogin-index"],{"0237":function(t,e,n){"use strict";n.r(e);var a=n("fe16"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"1448a":function(t,e,n){var a=n("ee98");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("4f7c9aa4",a,!0,{sourceMap:!1,shadowMode:!1})},"53bd":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("v-uni-view",{staticClass:"auth-box"},[n("v-uni-view",{staticClass:"icon-box"},[n("v-uni-view",{staticClass:"icon"},[n("v-uni-image",{attrs:{mode:"scaleToFill",src:"/static/data/images/app-icon.png"}})],1),n("v-uni-view",{staticClass:"label"},[n("v-uni-label",[t._v("徽章管理")])],1)],1),n("v-uni-view",{staticClass:"auth-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openApp.apply(void 0,arguments)}}},[t._v("授权登录")])],1)],1)},i=[]},7641:function(t,e,n){"use strict";var a=n("1448a"),i=n.n(a);i.a},d397:function(t,e,n){"use strict";n.r(e);var a=n("53bd"),i=n("0237");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("7641");var c=n("f0c5"),u=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"349b475c",null,!1,a["a"],void 0);e["default"]=u.exports},ee98:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,"uni-page-body[data-v-349b475c]{display:flex;position:relative;background-color:#fff;align-items:center;justify-content:center}body.?%PAGE?%[data-v-349b475c]{background-color:#fff}.auth-box[data-v-349b475c]{position:absolute;top:%?260?%;width:100%;display:flex;flex-direction:column;align-items:center}.icon-box[data-v-349b475c]{display:flex;flex-direction:column;align-items:center}.icon[data-v-349b475c]{width:%?140?%;height:%?140?%}.icon uni-image[data-v-349b475c]{width:100%;height:100%;border-radius:%?20?%}.label[data-v-349b475c]{font-size:%?32?%;margin-top:%?16?%}.auth-btn[data-v-349b475c]{display:flex;align-items:center;justify-content:center;color:#fff;font-size:%?39?%;width:75%;height:%?90?%;margin-top:%?240?%;background:#416eff;box-shadow:0 %?6?% %?16?% 0 rgba(65,110,255,.36);border-radius:46px}",""]),t.exports=e},fe16:function(t,e,n){"use strict";n("7a82");var a=n("ee27").default,i=n("4a46").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("e9c4");n("aab2"),i(n("f691")),a(n("4d4d"));var o=n("8d9b"),c=(getApp(),{data:function(){return{}},onLoad:function(){},onHide:function(){offAuthListener()},onUnload:function(){offAuthListener()},methods:{openApp:function(){return openAuthMiniApp({path:"pages/home/home",panelHeight:"percent50",extraData:{clientId:o.clientId,rpcScope:"Contact.User.Read",fieldScope:"Contact.User.mobile",type:0,ext:JSON.stringify({}),from:""}})}}});e.default=c}}]);

1
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-communist-communist.a9eeeecb.js

File diff suppressed because one or more lines are too long

3
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-grid-grid.5600839b.js

File diff suppressed because one or more lines are too long

3
yt_huizhangguanli/unpackage/dist/build/h5-huizhangguanli/static/js/pages-index-index.617a0603.js

File diff suppressed because one or more lines are too long

BIN
yt_huizhangguanli/utils/.DS_Store

Binary file not shown.

BIN
yt_wodebaoshi/.DS_Store

Binary file not shown.

BIN
yt_wodebaoshi/components/.DS_Store

Binary file not shown.

4
yt_wodebaoshi/manifest.json

@ -77,6 +77,10 @@
"target" : "https://www.yantai1s.com",
"changeOrigin" : true
},
"/api" : {
"target" : "https://lantu.ytyanhuo.com",
"changeOrigin" : true
},
"/" : {
"target" : "https://lantu.ytyanhuo.com/api",
"changeOrigin" : true,

BIN
yt_wodebaoshi/pages/.DS_Store

Binary file not shown.

233
yt_wodebaoshi/pages/detail/detail.vue

@ -8,20 +8,25 @@
{{ myReportDetail.eventContent }}
</view>
<view>
<!-- <topic-audio
<audio
v-if="voiceList.length > 0"
:url="voiceList[0].attachmentUrl"
:duration="voiceList[0].duration"
onAudioDel="handleAudioDel"
:show-del="false"
:disabled="true"
/> -->
<audio v-if="voiceList.length > 0" id="audio1" :src="voiceList[0].attachmentUrl" type="audio/webm"
controls></audio>
</view>
<view class="report-image">
<image :src="item" :data-value="index" @click="previewImage"
v-for="(item, index) in myReportDetail.imageList" :key="index"></image>
id="audio1"
:src="voiceList[0].attachmentUrl"
type="audio/webm"
controls
></audio>
</view>
<view
class="report-image"
v-if="imageList && imageList.length > 0"
>
<image
:src="item"
:data-value="index"
@click="previewImage"
v-for="(item, index) in imageList"
:key="index"
></image>
</view>
<view class="report-address">
<text>地址</text>
@ -30,11 +35,20 @@
</view>
<view class="reply" v-if="replyList && replyList.length > 0">
<view class="reply-input" v-if="myReportDetail.replyFlag">
<textarea placeholder="请输入补充内容" onInput="handleReply" maxlength="200" :value="reply"></textarea>
<textarea
placeholder="请输入补充内容"
onInput="handleReply"
maxlength="200"
:value="reply"
></textarea>
<view @click="replyBtn">确定</view>
</view>
<view class="reply-block" v-for="(item, index) in replyList" :key="index">
<view class="reply-title">{{ epmetUserId == item.createdBy ? '我' : item.userShowName }}回复:</view>
<view class="reply-title"
>{{
epmetUserId == item.createdBy ? "我" : item.userShowName
}}回复:</view
>
<view class="reply-time">
{{ item.createdTime }}
@ -53,11 +67,16 @@
<text></text>
</view>
<view v-if="processData.type == 'demand'" class="handle-right">
<view class="handle-right-title">{{ processData.processName }}</view>
<view class="handle-right-title"
>{{ processData.processName }}</view
>
<view class="handle-right-time">
{{ processData.processTime }}
</view>
<view class="handle-right-item" v-if="processData.processName == '转服务'">
<view
class="handle-right-item"
v-if="processData.processName == '转服务'"
>
<view>
<text></text>
<text></text>
@ -67,7 +86,10 @@
<text>:</text>
<text>{{ processData.serviceTime }}</text>
</view>
<view class="handle-right-item" v-if="processData.processName == '需求完成'">
<view
class="handle-right-item"
v-if="processData.processName == '需求完成'"
>
<view>
<text></text>
<text></text>
@ -76,7 +98,10 @@
<text>:</text>
<text>{{ processData.serviceParty }}</text>
</view>
<view class="handle-right-item" v-if="processData.processName == '需求完成'">
<view
class="handle-right-item"
v-if="processData.processName == '需求完成'"
>
<view style="width: 200rpx">
<text></text>
<text></text>
@ -90,7 +115,9 @@
</view>
</view>
<view v-else class="handle-right">
<view class="handle-right-title">{{ processData.processName }}</view>
<view class="handle-right-title"
>{{ processData.processName }}</view
>
<view class="handle-right-time">
{{ processData.processTime }}
</view>
@ -115,7 +142,10 @@
</view>
</view>
</view>
<view class="satisfaction item" v-if="myReportDetail.status == 'closed_case'">
<view
class="satisfaction item"
v-if="myReportDetail.status == 'closed_case'"
>
<view class="item-title">满意度评价</view>
<!--<view class="satisfaction-content"><view class="{{satisfaction == 'bad'?'check-block':''}}" @click="common" data-value="bad"><image src="../../data/images/report/satisfied_1.jpg" a:if="{{satisfaction == 'bad'}}" /><image src="../../data/images/report/satisfied_1_no.png" a:else /><view>
不满意</view></view><view class="{{satisfaction == 'good'?'check-block':''}}" @click="common" data-value="good"><image src="../../data/images/report/satisfied_2.jpg" a:if="{{satisfaction == 'good'}}" /><image src="../../data/images/report/satisfied_2_no.png" a:else /><view>
@ -124,9 +154,18 @@
<view>
<view class="stars">
<view class="stars-click">
<image class="shop-score-star"
:src="item.id > starId ? '../../data/images/report/no_star.png' : '../../data/images/report/star.png'"
@click="score_xing" :data-index="index" v-for="(item, index) in stars" :key="index"></image>
<image
class="shop-score-star"
:src="
item.id > starId
? '../../data/images/report/no_star.png'
: '../../data/images/report/star.png'
"
@click="score_xing"
:data-index="index"
v-for="(item, index) in stars"
:key="index"
></image>
</view>
</view>
</view>
@ -135,21 +174,21 @@
</template>
<script>
import topicAudio from '../../components/topic-audio/topic-audio';
import topicAudio from "../../components/topic-audio/topic-audio";
// import { ddSdk } from './dingtalk-jsapi/lib/ddSdk';
import {
myreportdetail,
replylist,
process,
comment,
resiReply
} from '../../utils/api/customerApi.js';
import {formatYYMMDDDate} from '../../utils/date';
import * as userTools from '../../utils/user';
resiReply,
} from "../../utils/api/customerApi.js";
import { formatYYMMDDDate } from "../../utils/date";
import * as userTools from "../../utils/user";
const app = getApp();
export default {
components: {
topicAudio
topicAudio,
},
data() {
return {
@ -158,31 +197,33 @@
myReportDetail: {},
replyList: [],
processData: null,
reply: '',
reply: "",
satisfaction: null,
voiceList: [],
imageList: [],
epmetUserId: null,
stars: [{
id: 1
stars: [
{
id: 1,
},
{
id: 2
id: 2,
},
{
id: 3
id: 3,
},
{
id: 4
id: 4,
},
{
id: 5
}
id: 5,
},
],
starId: 0,
attachmentUrl: '',
duration: ''
attachmentUrl: "",
duration: "",
};
},
async onLoad(option) {
@ -190,7 +231,7 @@
this.setData({
icEventId: option.id,
gridId: option.gridId,
epmetUserId: userInfo.epmetUserId
epmetUserId: userInfo.epmetUserId,
});
this.reportDetailFun();
this.replyFun();
@ -203,82 +244,74 @@
}
let starId = e.currentTarget.dataset.index + 1;
this.setData({
starId: starId
starId: starId,
});
uni.confirm({
title: '温馨提示',
content: '提交当前评价?',
confirmButtonText: '确定',
cancelButtonText: '取消',
title: "温馨提示",
content: "提交当前评价?",
confirmButtonText: "确定",
cancelButtonText: "取消",
success: async (result) => {
if (result.confirm) {
const {
code
} = await comment({
const { code } = await comment({
satisfaction: this.starId,
icEventId: this.icEventId
icEventId: this.icEventId,
});
if (code == 0) {
uni.showToast({
type: 'success',
content: '评价成功'
type: "success",
content: "评价成功",
});
this.reportDetailFun();
}
} else {
this.setData({
starId: 0
starId: 0,
});
}
}
},
});
},
//
async reportDetailFun() {
const {
data
} = await myreportdetail({
icEventId: this.icEventId
const { data } = await myreportdetail({
icEventId: this.icEventId,
});
console.log('data::', data);
this.setData({
myReportDetail: data,
starId: data.satisfaction ? data.satisfaction : 0,
voiceList: data.voiceList
voiceList: data.voiceList || [],
imageList: data.imageList || [],
});
},
//
async replyFun() {
const {
data
} = await replylist({
icEventId: this.icEventId
const { data } = await replylist({
icEventId: this.icEventId,
});
this.setData({
replyList: data
replyList: data,
});
},
//
async processFun() {
const {
data
} = await process({
icEventId: this.icEventId
const { data } = await process({
icEventId: this.icEventId,
});
if (Array.isArray(data) && data.length > 0) {
this.setData({
processData: data[0]
processData: data[0],
});
let time = formatYYMMDDDate(this.processData.processTime);
this.setData({
['processData.processTime']: time
["processData.processTime"]: time,
});
} else {
this.setData({
processData: null
processData: null,
});
}
},
@ -286,25 +319,23 @@
//
handleReply(e) {
this.setData({
reply: e.detail.value
reply: e.detail.value,
});
},
async replyBtn() {
let data = {
content: this.reply,
icEventId: this.icEventId
icEventId: this.icEventId,
};
const {
code
} = await resiReply(data);
const { code } = await resiReply(data);
if (code == 0) {
uni.showToast({
type: 'success',
content: '回复成功'
type: "success",
content: "回复成功",
});
this.setData({
reply: ''
reply: "",
});
this.reportDetailFun();
this.replyFun();
@ -313,55 +344,49 @@
//
common(e) {
if (this.satisfaction != '') {
if (this.satisfaction != "") {
return;
}
const {
value
} = e.currentTarget.dataset;
const { value } = e.currentTarget.dataset;
this.setData({
satisfaction: value
satisfaction: value,
});
uni.confirm({
title: '温馨提示',
content: '提交当前评价?',
confirmButtonText: '确定',
cancelButtonText: '取消',
title: "温馨提示",
content: "提交当前评价?",
confirmButtonText: "确定",
cancelButtonText: "取消",
success: async (result) => {
if (result.confirm) {
const {
code
} = await comment({
const { code } = await comment({
satisfaction: this.satisfaction,
icEventId: this.icEventId
icEventId: this.icEventId,
});
if (code == 0) {
uni.showToast({
type: 'success',
content: '评价成功'
type: "success",
content: "评价成功",
});
this.reportDetailFun();
}
} else {
this.setData({
satisfaction: ''
satisfaction: "",
});
}
}
},
});
},
//
previewImage(e) {
const {
value
} = e.currentTarget.dataset;
const { value } = e.currentTarget.dataset;
uni.previewImage({
current: value,
urls: this.myReportDetail.imageList
urls: this.myReportDetail.imageList,
});
}
}
},
},
};
</script>
<style>
@ -423,7 +448,7 @@
width: 110rpx;
height: 48rpx;
border-radius: 48rpx;
background: #22BDF0;
background: #329AFF;
color: #fff;
text-align: center;
position: absolute;

163
yt_wodebaoshi/pages/index/index.vue

@ -38,7 +38,7 @@
<view class="block-image">
<image
:src="img"
v-for="(img) in item.imageList"
v-for="img in item.imageList"
:key="img"
></image>
</view>
@ -104,6 +104,33 @@ export default {
};
},
onLoad() {
this.getuserInfo();
},
onShow() {},
async onPullDownRefresh() {
this.setData({
pageNo: 1,
});
await this.reportListFun();
this.stopPullDownRefresh();
},
//
onReachBottom() {
let page = (this.pageNo += 1);
this.setData({
pageNo: page,
});
this.reportListFun();
},
methods: {
init() {
this.setData({
pageNo: 1,
reportList: [],
});
this.reportListFun();
},
getuserInfo() {
function getIframeQueryParams() {
// 使URLSearchParams
function getStringAfterQuestionMark(str) {
@ -123,66 +150,130 @@ export default {
const query = getIframeQueryParams();
const token =
process.env.NODE_ENV == "development"
? "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhcHAiOiJnb3YiLCJjbGllbnQiOiJ3ZWIiLCJleHAiOjE4MTQxNDkxOTksInVzZXJJZCI6IjE3MTQ1Njc3MDIxNDQ3NzgyNDEiLCJpYXQiOjE3MTk1NDExOTl9.Rm5CP020giWIlMDXUin22Td4vJIRlCxRsM9YBsRTyrOvEjqjdlR554R3PtAkwDErgVYkBLgnmqpomDKo_Mfktg"
? "eyJhbGciOiJSUzI1NiJ9.eyJyZWFsTmFtZSI6IiIsIm5pY2tOYW1lIjoiRFAzODA3IiwiaXNzIjoibmluZ2JvIiwidXNlclR5cGUiOiIwMCIsImV4cCI6MTcxNjYwNDQ1NywidXNlcklkIjoiMjAyMzA5MTUxNTA4MjAxMDMwMDAwMjgxMjY5ODI0MDIiLCJpYXQiOjE3MTQwMTI0NTcsImp0aSI6IjFkYmEwMmU1MTM0NTFmNTkwODE4YWI1OGEzNThhYzNiIn0.zD8CVi_NZta9_pu4KKXH-AO--FPx6ke_BGEkJ8j0uPqCmD8DiywBBhOAClayOmpdY7Qz_IW28l-vcrwx2E9nKu87bBKSEvtkrwiiA-78WPJxviX5bcVnSTIHISFOztFdeYFeCs5oAK_BYjhhq3tmNQDFRHb6GEW3-YCD174PqhtMfEgrrm1ceHxt6VQhNDeBGDkR562Ba9iDKMdTVUsqpgycmsWNMBfYbz-EoWqBML3crZOUAYpPCPUSPJwCY4a5DX-1FLz6D70ZYaKPDdsL1MD5xmWPWSexijklaHh6S6fi8J_vIKlnHivHCZTiVlIpiYMNQYzdXfzBtRqyJQDOzw"
: query.token;
const gridId =
const url =
process.env.NODE_ENV == "development"
? "32a5f8a8-f7c9-11ee-96cf-fa163ef15b63"
: query.gridId;
? ""
: "https://lantu.ytyanhuo.com/api";
uni.request({
url: "https://inlife.ytyanhuo.com/oxm-user-center/user/userInfo/findByUserId",
method: "post",
header: {
Authorization: token,
},
data: {},
success: (res) => {
if (res.data.code !== "200") {
uni.showToast({
title: res.data.msg,
icon: "none",
duration: 3000,
});
return;
}
var info = res.data.data;
uni.request({
url: url + "/auth/thirdlogin/resiInfo-lantu",
method: "post",
data: {
loginMobile: info.loginMobile,
},
success: (res1) => {
if (res1.data.code === 0) {
if (res1.data.data.userBaseInfoId) {
const userBaseInfoId = res1.data.data.userBaseInfoId;
uni.request({
url: url + "/auth/thirdlogin/resilogin-hfive",
method: "post",
data: {
userBaseInfoId,
},
success: (res2) => {
if (res2.data.code === 0) {
const data = res2.data.data;
userTools.setStoreUserInfo(
JSON.stringify({
gridId: gridId,
authorization: token,
gridId: data.gridId,
authorization: data.authorization,
customerId: "1535072605621841922",
})
);
userTools.setStoreGridInfo(
JSON.stringify({
gridId: gridId,
gridId: data.gridId,
})
);
this.setData(
{
userInfo: {
gridId: gridId,
authorization: token,
gridId: data.gridId,
authorization: data.authorization,
customerId: "1535072605621841922",
},
gridInfo: {
gridId,
gridId: data.gridId,
},
showPage: true,
},
() => {}
);
// this.setData({showPage:true})
() => {
this.init();
}
);
}
},
onShow() {},
async onPullDownRefresh() {
this.setData({
pageNo: 1,
});
await this.reportListFun();
this.stopPullDownRefresh();
} else {
uni.showToast({
title:
"您尚未完善社区信息,请到“我的房产”完善社区信息后重试",
icon: "none",
duration: 3000,
});
setTimeout(() => {
uni.navigateBack({
delta: 1, // 1
});
}, 3000);
}
}
},
//
onReachBottom() {
let page = (this.pageNo += 1);
this.setData({
pageNo: page,
});
this.reportListFun();
},
methods: {
init() {
this.setData({
pageNo: 1,
reportList: [],
});
this.reportListFun();
// const gridId =
// process.env.NODE_ENV == "development"
// ? "32a5f8a8-f7c9-11ee-96cf-fa163ef15b63"
// : query.gridId;
// userTools.setStoreUserInfo(
// JSON.stringify({
// gridId: gridId,
// authorization: token,
// customerId: "1535072605621841922",
// })
// );
// userTools.setStoreGridInfo(
// JSON.stringify({
// gridId: gridId,
// })
// );
// this.setData(
// {
// userInfo: {
// gridId: gridId,
// authorization: token,
// customerId: "1535072605621841922",
// },
// gridInfo: {
// gridId,
// },
// showPage: true,
// },
// () => {}
// );
// this.setData({showPage:true})
// this.init();
},
//
async reportListFun() {
let reportData = {
@ -199,8 +290,8 @@ export default {
});
if ((Array.isArray(data) && data.length == 0) || !data) {
uni.showToast({
type: "none",
content: "暂时没有更多内容了",
icon: "none",
title: "暂时没有更多内容了",
duration: 1000,
});
}
@ -261,7 +352,7 @@ export default {
.titleSel {
color: #484747;
font-size: 36rpx;
font-size: 34rpx;
display: flex;
flex-direction: column;
align-items: center;

BIN
yt_wodebaoshi/uni_modules/.DS_Store

Binary file not shown.

BIN
yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi.zip

Binary file not shown.

2
yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/index.html

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>yantai</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/h5-wodebaoshi/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/h5-wodebaoshi/static/js/chunk-vendors.cc6697e8.js></script><script src=/h5-wodebaoshi/static/js/index.622633b9.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/h5-wodebaoshi/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/h5-wodebaoshi/static/js/chunk-vendors.b6a101e0.js></script><script src=/h5-wodebaoshi/static/js/index.1836f73a.js></script></body></html>

7
yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/chunk-vendors.cc6697e8.js

File diff suppressed because one or more lines are too long

1
yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/index.622633b9.js

File diff suppressed because one or more lines are too long

1
yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/pages-authLogin-index.35c77649.js

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-authLogin-index"],{"1bbb":function(t,e,a){"use strict";a("7a82");var n=a("4a46").default,i=a("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a("c2b9"),c=i(a("7ce7")),d=n(a("fdb2")),u=(a("f220"),getApp()),r={data:function(){return{}},onLoad:function(){},onShow:function(){disposeAuthData((function(t){var e=t.status,a=t.result;"ok"==e&&(c.default.setStorageSync("authCode",a.authCode),(0,o.fetchToken)().then((function(t){var e=t.data;e.extInfo=JSON.parse(t.data.extInfo),d.setStoreUserInfo(e),e.gridId?(u.globalData.session=!0,uni.reLaunch({url:"/pages/index/index"})):uni.reLaunch({url:"/pages/grid/grid"})})))}))},onHide:function(){offAuthListener()},onUnload:function(){offAuthListener()},methods:{}};e.default=r},"616b":function(t,e,a){"use strict";a.r(e);var n=a("1bbb"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"6dd4":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"uni-page-body[data-v-85cdcb58]{display:flex;position:relative;background-color:#fff;align-items:center;justify-content:center}body.?%PAGE?%[data-v-85cdcb58]{background-color:#fff}.auth-box[data-v-85cdcb58]{position:absolute;top:%?260?%;width:100%;display:flex;flex-direction:column;align-items:center}.icon-box[data-v-85cdcb58]{display:flex;flex-direction:column;align-items:center}.icon[data-v-85cdcb58]{width:%?140?%;height:%?140?%}.icon uni-image[data-v-85cdcb58]{width:100%;height:100%;border-radius:%?20?%}.label[data-v-85cdcb58]{font-size:%?32?%;margin-top:%?16?%}.auth-btn[data-v-85cdcb58]{display:flex;align-items:center;justify-content:center;color:#fff;font-size:%?39?%;width:75%;height:%?90?%;margin-top:%?240?%;background:#416eff;box-shadow:0 %?6?% %?16?% 0 rgba(65,110,255,.36);border-radius:46px}",""]),t.exports=e},"7e85":function(t,e,a){"use strict";a.r(e);var n=a("8f60"),i=a("616b");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("ad3a");var c=a("f0c5"),d=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"85cdcb58",null,!1,n["a"],void 0);e["default"]=d.exports},"8f60":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"page"},[e("v-uni-view",{staticClass:"auth-box"},[e("v-uni-view",{staticClass:"icon-box"},[e("v-uni-view",{staticClass:"icon"},[e("v-uni-image",{attrs:{mode:"scaleToFill",src:"/static/data/images/app-icon.jpg"}})],1),e("v-uni-view",{staticClass:"label"},[e("v-uni-label",[this._v("我的报事")])],1)],1)],1)],1)},i=[]},ad3a:function(t,e,a){"use strict";var n=a("d396"),i=a.n(n);i.a},d396:function(t,e,a){var n=a("6dd4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("87a5c704",n,!0,{sourceMap:!1,shadowMode:!1})}}]);

3
yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/pages-detail-detail.cc59b3d1.js

File diff suppressed because one or more lines are too long

3
yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/pages-grid-grid.12530943.js

File diff suppressed because one or more lines are too long

3
yt_wodebaoshi/unpackage/dist/build/h5-wodebaoshi/static/js/pages-index-index.3d6dad75.js

File diff suppressed because one or more lines are too long

8
yt_yishiting/pages/index/index.vue

@ -2,7 +2,9 @@
<view class="report">
<view v-if="showPage">
<view>
<view class="title">
<view
:class="'titleSel ' + (idx == currentIndex ? 'active' : '')"
@click="onBindTabChange(tab, idx)"
@ -10,6 +12,8 @@
v-for="(tab, idx) in tabList"
:key="idx"
>
<text>{{ tab.tabName }} </text>
<view
@ -442,7 +446,7 @@ export default {
: query.token;
const gridId =
process.env.NODE_ENV == "development"
? "32a5ea3f-f7c9-11ee-96cf-fa163ef15b63"
? "32a5f0dd-f7c9-11ee-96cf-fa163ef15b63"
: query.gridId;
userTools.setStoreUserInfo(
JSON.stringify({
@ -617,7 +621,7 @@ export default {
if ((Array.isArray(value) && value.length == 0) || !value) {
uni.showToast({
icon: 'none',
title: "暂时没有更多内容了",
title: "暂时没有更多内容了",
duration: 1000,
});
}

BIN
yt_yishiting/unpackage/dist/build/h5-yishiting.zip

Binary file not shown.

2
yt_yishiting/unpackage/dist/build/h5-yishiting/index.html

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>yantai</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/h5-yishiting/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/h5-yishiting/static/js/chunk-vendors.b6a101e0.js></script><script src=/h5-yishiting/static/js/index.708336a3.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/h5-yishiting/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/h5-yishiting/static/js/chunk-vendors.b6a101e0.js></script><script src=/h5-yishiting/static/js/index.037a55ce.js></script></body></html>
Loading…
Cancel
Save