管骁翰_修改

main
guanxiaohan 10 months ago
parent 85b5deeaee
commit 98ea49bff8
  1. 4
      common/globalJs/globalJs.js
  2. 4
      manifest.json
  3. 69
      pages/index/detail.vue
  4. BIN
      static/nav/yindao.png

@ -2,8 +2,8 @@
// #ifdef APP-PLUS || MP
// const baseUrl = "http://116.62.210.143:9002";
// const baseUrl = "http://118.89.79.160:8800/HiatmpPro";
// const baseUrl = "http://49.235.207.167:8800/HiatmpPro";
const baseUrl = "http://219.147.31.25:30001/tht-app-api/HiatmpPro";
const baseUrl = "http://49.235.207.167:8800/HiatmpPro";
// const baseUrl = "http://219.147.31.25:30001/tht-app-api/HiatmpPro";
const chatUrl = "http://219.147.31.25:30001/hitap";
// #endif
// #ifdef H5

@ -135,8 +135,8 @@
"https" : false,
"proxy" : {
"/HiatmpPro" : {
// "target" : "http://49.235.207.167:8800",
"target" : "http://219.147.31.25:30001/tht-app-api",
"target" : "http://49.235.207.167:8800",
// "target" : "http://219.147.31.25:30001/tht-app-api",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {

@ -58,9 +58,7 @@
<view class="content">
<view style="width: 100%; overflow: hidden;">
<zeroMarkdownView :markdown="item.data || ''" />
<!-- <view class="yindao" v-if="isShowYindao" @click="clickYinDao(item.data)">
安装条件引导
</view> -->
</view>
<!-- <ua-markdown :source="mdvalue" /> -->
<view class="btnBox">
@ -109,6 +107,10 @@
<view class="btn" @click="handleGroup(item)">确认</view>
<view class="btn" @click="handleGroup2(i)">清空</view>
</view>
<!-- v-if="isShowYindao && item.isOver" -->
<view class="yindao" v-if="isShowYindao && item.isOver && item" @click="clickYinDao(item.reference)">
<image src="../../static/nav/yindao.png" style="height: 40rpx; width: 40rpx;"></image>
</view>
</view>
</view>
<view class="loading-animation" v-if="loading">
@ -138,6 +140,15 @@
</view> -->
</view>
</view>
<u-popup :show="showYinDao" @close="showYinDao = false">
<view class="custom-pop-head">
<view class="title">{{ dataYinDao.title }}</view>
<uni-icons class="left" type="closeempty" size="23" @click="showYinDao = false"></uni-icons>
</view>
<view class="custom-pop-content">
{{ dataYinDao.content }}
</view>
</u-popup>
</view>
</template>
@ -192,6 +203,8 @@
tabkey: 0,
radiovalue1: "",
checkboxValue1: [],
showYinDao: false,
dataYinDao: ''
};
},
onLoad(options) {
@ -255,6 +268,7 @@
methods: {
clickYinDao(data) {
console.log('data12121 ========>',data)
this.showYinDao = true
// let newData = data.content + data.reference.content
// const timer = setInterval(() => {
// data.content += data.reference.content
@ -264,14 +278,14 @@
// }
// }, 50);
// console.log('data ========>',data)
let newdata = data
const timer = setInterval(() => {
data += data.reference ? data.reference.content :''
this.dataYinDao = data
// const timer = setInterval(() => {
// data += data.reference ? data.reference.content :''
if (newdata == data.content) {
clearInterval(timer);
}
}, 50);
// if (this.dataYinDao == data.content) {
// clearInterval(timer);
// }
// }, 50);
// uni.showToast({
// title: data,
// icon: "none",
@ -490,14 +504,19 @@
data.answerId || "1",
data.content,
data.optionType,
data.answerOptions
data.answerOptions,
data.reference
);
}
if(JSON.stringify(data.reference) != '{}'){
if(data.reference.content != null && data.reference.title != null) {
this.isShowYindao = true
} else {
this.isShowYindao = false
}
}else{
this.isShowYindao = false
}
this.loading = false;
if (this.isExpanded) {
this.isExpanded = !this.isExpanded;
@ -562,7 +581,7 @@
}
},
//
changeMsgList(answerId, data, optionType, answerOptions) {
changeMsgList(answerId, data, optionType, answerOptions, reference) {
let id = 1;
data = data.replace("undefined", '')
data = data.replace("null", '')
@ -601,10 +620,12 @@
answerOptions || [];
this.msgList[this.msgList.length - 1].checkboxValue1 = [];
this.msgList[this.msgList.length - 1].radiovalue1 = "";
this.msgList[this.msgList.length - 1].reference = reference;
} else {
this.msgList[this.msgList.length - 1].options = answerOptions;
}
clearInterval(timer);
this.msgList[this.msgList.length - 1].isOver = true
}
}, 50);
} else {
@ -971,4 +992,28 @@
word-spacing: 0.1em;
color: rgba(0, 102, 255, 1)
}
.custom-pop-head {
width: 100%;
padding: 20rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #E6E6E6;
margin-bottom: 20rpx;
.left {
color: #666666;
font-size: 16px;
margin-right: 20rpx;
}
.title {
font-size: 18px;
margin-left: 20rpx;
}
}
.custom-pop-content{
margin: 20rpx;
font-size: 16px;
line-height: 2.3;
word-spacing: 0.1em;
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Loading…
Cancel
Save