|
@@ -68,10 +68,6 @@ Page({
|
|
|
isDisabled: true
|
|
|
})
|
|
|
} else {
|
|
|
- //解析富文本
|
|
|
- var article = decodeURIComponent(options.fintroduction);
|
|
|
- var that = this;
|
|
|
- WxParse.wxParse('article', 'html', article, that, 5);
|
|
|
//处理数据
|
|
|
const data = JSON.parse(options.data);
|
|
|
this.returnData(data)
|
|
@@ -79,8 +75,17 @@ Page({
|
|
|
},
|
|
|
//跳转富文本
|
|
|
toRichText() {
|
|
|
+ const that = this;
|
|
|
+ const fintroduction = encodeURIComponent(this.data.fintroduction);
|
|
|
wx.navigateTo({
|
|
|
- url: './editor/editor?isDisabled=' + this.data.isDisabled,
|
|
|
+ url: './editor/editor?fintroduction=' + fintroduction,
|
|
|
+ events: {
|
|
|
+ richTextCallBack: function (richText) {
|
|
|
+ that.setData({
|
|
|
+ fintroduction: richText.richText
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
/* 添加图片 */
|
|
@@ -109,6 +114,7 @@ Page({
|
|
|
},
|
|
|
/* 返回数据 */
|
|
|
returnData(data) {
|
|
|
+ console.log(data)
|
|
|
var attinfos = [],
|
|
|
coverAttinfos = [];
|
|
|
// 格式化图片
|
|
@@ -126,14 +132,14 @@ Page({
|
|
|
coverAttinfos.unshift(Data)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
//格式化经营类目
|
|
|
if (data.saleprodclass.length >= 1) {
|
|
|
this.saleprodChange({
|
|
|
detail: data.saleprodclass
|
|
|
})
|
|
|
}
|
|
|
- /* fintroduction: data.fintroduction, */
|
|
|
+ //解码富文本
|
|
|
+ const fintroduction = decodeURIComponent(data.fintroduction);
|
|
|
this.setData({
|
|
|
fbrand: data.fbrand,
|
|
|
saleprodclass: data.saleprodclass,
|
|
@@ -143,7 +149,8 @@ Page({
|
|
|
faddress: data.faddress,
|
|
|
fdutyparagraph: data.fdutyparagraph,
|
|
|
attinfos,
|
|
|
- coverAttinfos
|
|
|
+ coverAttinfos,
|
|
|
+ fintroduction
|
|
|
})
|
|
|
},
|
|
|
/* 提交数据 */
|