diff --git a/pages/giftpack/birthdaygift/birthdaygift.js b/pages/giftpack/birthdaygift/birthdaygift.js
index 3a695eb..c789f95 100644
--- a/pages/giftpack/birthdaygift/birthdaygift.js
+++ b/pages/giftpack/birthdaygift/birthdaygift.js
@@ -32,24 +32,28 @@ Page({
GetList: function () {
var th = this;
var url = "/api/weshop/marketing/giftbag/bound/get";
+ wx.showLoading({
+ title: '加载中',
+ })
getApp().request.promiseGet(url, {
data: {
"actId": th.data.getActId, //活动id
- "actType":4, //活动类型 1新人礼 2评价有礼 3节日营销 4生日营销
+ "actType": 4, //活动类型 1新人礼 2评价有礼 3节日营销 4生日营销
"giftBagId": th.data.giftID, //礼包ID
"storeId": a.stoid, //商家ID
"userId": d.user_id //用户ID
}
}).then(res => {
+ wx.hideLoading();
if (res.data.code == 0) {
- if (res.data.data.lbCoupons.length > 0 && res.data.data.lbCoupons!=null) {
+ if (res.data.data.lbCoupons.length > 0 && res.data.data.lbCoupons != null) {
//礼包内容--礼券
th.setData({
cardShow: true,
cards: res.data.data.lbCoupons
})
}
- if (res.data.data.lbSM.length > 0 && res.data.data.lbSM!=nll) {
+ if (res.data.data.lbSM.length > 0 && res.data.data.lbSM != nll) {
//礼包内容--服务项目
th.setData({
itemShow: true,
@@ -100,7 +104,8 @@ Page({
if (res.data.data.actIntro != '') {
th.setData({
textShow: true,
- textTitle: res.data.data.actIntro
+ textTitle: res.data.data.actIntro.replace(/\/g, '\div>')
})
}
} else {
@@ -119,11 +124,7 @@ Page({
th.GetList();
},
onShow: function onShow() {
- var th = this;
- var textTitle = th.data.textTitle.replace(/
-