Browse Source

出版

master
jianglong 3 years ago
parent
commit
c8ed6d697a
  1. 16
      bundle/pages/user/complain.vue
  2. 12
      bundle/pages/user_profile/user_profile.vue

16
bundle/pages/user/complain.vue

@ -34,7 +34,7 @@
<view class="apply-form-item"> <view class="apply-form-item">
<view class="label">备注说明</view> <view class="label">备注说明</view>
<view class="flex-1" style="background-color: #F8F8F8;"> <view class="flex-1" style="background-color: #F8F8F8;">
<u-input v-model="content" type="textarea" placeholder="请描述具体原因,300字以内" :border="false" <u-input v-model="content" type="textarea" placeholder="请描述具体原因,300字以内" :border="false"
:height="160" /> :height="160" />
</view> </view>
</view> </view>
@ -115,6 +115,8 @@
} = await getComplainCategory() } = await getComplainCategory()
if (code == 1) { if (code == 1) {
this.shopCategory = data.lists this.shopCategory = data.lists
this.form.cid = this.shopCategory[0].id
this.form.clabel = this.shopCategory[0].name
} }
}, },
// //
@ -128,6 +130,18 @@
image: fileList[0], image: fileList[0],
content:this.content content:this.content
} }
if (!this.content || this.content == ""){
return this.$toast({
title: '请输入投诉内容',
});
}
if (!this.fileList || this.fileList.length == 0){
return this.$toast({
title: '请输入投诉截图',
});
}
delete submitObj.clabel delete submitObj.clabel
const { const {
data, data,

12
bundle/pages/user_profile/user_profile.vue

@ -491,15 +491,17 @@ export default {
// //
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
async getPhoneNumber(e) { async getPhoneNumber(e) {
console.log(e, this.code)
const { const {
encryptedData, encryptedData,
iv iv,
code
} = e.detail; } = e.detail;
console.log(e, code)
const params = { const params = {
code: this.code, code: code,
encrypted_data: encryptedData, // encrypted_data: encryptedData,
iv // iv
} }
this.fieldType = FieldType.MOBILE this.fieldType = FieldType.MOBILE
if (encryptedData) { if (encryptedData) {

Loading…
Cancel
Save