This commit is contained in:
xiaoshan
2023-10-24 13:43:57 +08:00
parent 17793e7227
commit 276390adc8
6 changed files with 48 additions and 11 deletions

View File

@@ -33,4 +33,23 @@ export function privacyPolicy(params) {
method: 'get',
params
})
}
}
// 获取关于app
export function aboutApp(params) {
return request({
url: '/ums/login/aboutApp',
method: 'get',
params
})
}
// 获取关于app
export function addOpinion(data) {
return request({
url: '/app/ums/userOpinion/addOpinion',
method: 'post',
data
})
}

View File

@@ -153,7 +153,7 @@
this.compress.push(compressUrl);
if(i==(len-1)) {
let images = this.PhotoSharinglist.join()
this.$emit('success', images)
this.$emit('input', images)
}
},
fail: (error) => {

View File

@@ -8,7 +8,7 @@
</template>
<script>
import { userAgreement, privacyPolicy } from '@/api/system/system'
import { userAgreement, privacyPolicy, aboutApp } from '@/api/system/system'
export default {
data() {
return {
@@ -25,6 +25,7 @@
})
if(options.title == '用户协议') this.getUserAgreement()
if(options.title == '隐私政策') this.getPrivacyPolicy()
if(options.title == '关于APP') this.getAboutApp()
},
methods: {
// 获取用户协议
@@ -40,6 +41,12 @@
this.type = 1
this.content = res.data
})
},
getAboutApp() {
aboutApp().then(res => {
this.type = 1
this.content = res.data
})
}
}
}

View File

@@ -7,7 +7,7 @@
<view class="mt-2">
<u-textarea
border="none"
v-model="form.opinion"
placeholder-style="fontSize: 28rpx"
placeholder="说说你的建议或问题以便我们可以为你提供更好的服务。5个字以上"
/>
@@ -16,7 +16,7 @@
上传图片事情说的更明白
</view>
<view class="mt-2">
<image-upload :imageWidth="156" />
<image-upload :imageWidth="156" v-model="form.remark" />
</view>
</view>
<view class="phone mt-3 bg-fff">
@@ -24,17 +24,18 @@
联系方式
</view>
<view class="mt-3">
<u-input border="none" v-model="form.phone" placeholder="请输入您的手机号(选填)" />
<u-input border="none" type="number" v-model="form.phone" placeholder="请输入您的手机号(选填)" />
</view>
</view>
<view class="btn-box">
<u-button type="primary" shape="circle">提交反馈</u-button>
<u-button type="primary" shape="circle" @click="submit">提交反馈</u-button>
</view>
</view>
</template>
<script>
import imageUpload from '@/components/image-upload/image-upload'
import { addOpinion } from '@/api/system/system'
export default {
components: {
imageUpload
@@ -42,12 +43,22 @@
data() {
return {
form: {
phone: ''
phone: '',
remark: '',
type: '',
opinion: ''
}
}
},
methods: {
submit(){
console.log(this.form);
addOpinion(this.form).then(res => {
console.log(res);
this.$toast('感谢反馈')
uni.navigateBack()
})
}
}
}
</script>

View File

@@ -82,7 +82,7 @@
},
// 广告图轮播变化
changePic(e) {
console.log(e);
},
gotoSet() {
this.$tab.navigateTo('/pages/mine/setting/index')

View File

@@ -26,7 +26,7 @@
</u-cell>
<u-cell class="bg-fff" title="意见反馈" isLink url="/pages/mine/help/index" />
<u-cell class="bg-fff" title="清除缓存" :value="cacheSize" isLink @click="clearStorage" />
<u-cell class="bg-fff" title="关于连线客APP" :value="version" isLink url="/pages/mine/about/index" />
<u-cell class="bg-fff" title="关于连线客APP" :value="version" isLink url="/pages/common/textview/index?title=关于APP" />
<u-cell class="bg-fff" title="相关协议" isLink url="/pages/mine/about/agreements" />
<!-- <view class="menu-list">
<view class="list-cell list-cell-arrow" @click="handleToPwd">