|
@@ -28,7 +28,7 @@ Page({
|
|
/** 图片选择 */
|
|
/** 图片选择 */
|
|
bindViewTap: function(){
|
|
bindViewTap: function(){
|
|
var that = this;
|
|
var that = this;
|
|
- if(this.data.avatarUrl.length < 4){
|
|
|
|
|
|
+ if(this.data.avatarUrlShow.length < 4){
|
|
wx.chooseImage({
|
|
wx.chooseImage({
|
|
// 设置最多可以选择的图片张数,默认9,如果我们设置了多张,那么接收时//就不在是单个变量了,
|
|
// 设置最多可以选择的图片张数,默认9,如果我们设置了多张,那么接收时//就不在是单个变量了,
|
|
count: 1,
|
|
count: 1,
|
|
@@ -142,6 +142,14 @@ Page({
|
|
* 提交
|
|
* 提交
|
|
*/
|
|
*/
|
|
toSubmit: function() {
|
|
toSubmit: function() {
|
|
|
|
+ if(this.data.content == null || this.data.content == '' || this.data.content == undefined){
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: '意见内容必填',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 1500
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
WelfareMall.feedBackAdd({
|
|
WelfareMall.feedBackAdd({
|
|
mobile: getMobileCache(),
|
|
mobile: getMobileCache(),
|
|
photoList: this.data.avatarUrl,
|
|
photoList: this.data.avatarUrl,
|