diff --git a/app.json b/app.json
index b2d95a0..fabb3de 100644
--- a/app.json
+++ b/app.json
@@ -37,7 +37,8 @@
"pages/shop/yetGoodsOrderDetail/yetGoodsOrderDetail",
"pages/shop/betrayGoodsDetail/betrayGoodsDetail",
"pages/shop/saveAssigneeInfo/saveAssigneeInfo",
- "pages/shop/reportReplenish/reportReplenish"
+ "pages/shop/reportReplenish/reportReplenish",
+ "pages/shop/replenishDetail/replenishDetail"
],
"window": {
"navigationBarTextStyle": "black",
diff --git a/app.wxss b/app.wxss
index 1bf5eae..67df8d7 100644
--- a/app.wxss
+++ b/app.wxss
@@ -372,8 +372,7 @@ swiper-item {
}
.weui-half-screen-dialog__ft {
- height: 0;
- padding: 0rpx 0rpx 50rpx;
+ padding: 0rpx 0rpx 10px 0rpx;
}
.tip-margin {
diff --git a/net/api/shop.js b/net/api/shop.js
index 77f1883..ba7f506 100644
--- a/net/api/shop.js
+++ b/net/api/shop.js
@@ -29,6 +29,7 @@ const apiPath = {
mineSellGoods: '/api/goods/listpage', //我售卖的软著
replenishList: '/api/correction/{kind}', //补充资料列表
replenishDetail: '/api/correction/get/{correctionId}', //补充资料详情
+ replenishSave: '/api/correction/save', //保存补充材料
saveBuyPersonInfo: '/api/order/save-input/{orderId}', //保存购买人信息
}
class Shop {
@@ -183,6 +184,10 @@ class Shop {
correctionId: id
})
}
+ //保存补充材料
+ static doSaveReplenish(data) {
+ return this.requestHandler(apiPath.replenishSave, "POST", data)
+ }
//保存受让人信息
static doSaveBuyPersonInfo(orderId, data) {
return this.requestHandler(apiPath.saveBuyPersonInfo, "POST", data, {
diff --git a/net/mainUrl.js b/net/mainUrl.js
index 7747ce7..645d3bd 100644
--- a/net/mainUrl.js
+++ b/net/mainUrl.js
@@ -1,6 +1,6 @@
// 定义api服务地址
-// const appUrl = 'https://www.aimzhu.com'
-const appUrl = 'http://121.36.71.250:58038'
+const appUrl = 'https://www.aimzhu.com'
+// const appUrl = 'http://121.36.71.250:58038'
const prewBaseUrl = ''
const operatorUrl = appUrl + '/operator'
const operatorPlug = appUrl + '/operator-plugin'
@@ -11,6 +11,7 @@ const previewUrl = copyrightUrl + '/route/file/v2/download/true/'
const imgAssets = appUrl + '/miniapp-assets'
const sImgPrefix = aiShopUrl + '/route/file/download/true/'
const upShopImgUrl = aiShopUrl + '/api/file/v2/upload-image'
+const upShopFileUrl = aiShopUrl + '/api/file/v2/upload-file'
export {
@@ -23,5 +24,6 @@ export {
imgAssets,
appUrl,
sImgPrefix,
- upShopImgUrl
+ upShopImgUrl,
+ upShopFileUrl
}
\ No newline at end of file
diff --git a/pages/copyright/applyRefund/applyRefund.wxss b/pages/copyright/applyRefund/applyRefund.wxss
index 2355d96..cd0644f 100644
--- a/pages/copyright/applyRefund/applyRefund.wxss
+++ b/pages/copyright/applyRefund/applyRefund.wxss
@@ -232,9 +232,7 @@
padding-bottom: 40rpx;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 20rpx;
-}
+
.weui-half-screen-dialog__hd__side+.weui-half-screen-dialog__hd__main {
padding: 0 46rpx;
diff --git a/pages/copyright/applyRepair/applyRepair.wxss b/pages/copyright/applyRepair/applyRepair.wxss
index 465f81f..1ed54f0 100644
--- a/pages/copyright/applyRepair/applyRepair.wxss
+++ b/pages/copyright/applyRepair/applyRepair.wxss
@@ -231,9 +231,7 @@
padding-bottom: 40rpx;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 20rpx;
-}
+
.weui-half-screen-dialog__hd__side+.weui-half-screen-dialog__hd__main {
padding: 0 46rpx;
diff --git a/pages/copyright/createProjectInfo/createProjectInfo.wxss b/pages/copyright/createProjectInfo/createProjectInfo.wxss
index 64d23cc..795df29 100644
--- a/pages/copyright/createProjectInfo/createProjectInfo.wxss
+++ b/pages/copyright/createProjectInfo/createProjectInfo.wxss
@@ -181,9 +181,7 @@
background-color: #f0f0f0;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 40rpx 0rpx;
-}
+
.bottom-box {
position: fixed;
diff --git a/pages/copyright/refund/refund.wxss b/pages/copyright/refund/refund.wxss
index ea0e41c..a22c33a 100644
--- a/pages/copyright/refund/refund.wxss
+++ b/pages/copyright/refund/refund.wxss
@@ -610,9 +610,6 @@
color: white;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 40rpx;
-}
.weui-half-screen-dialog__bd {
padding-bottom: 40rpx;
diff --git a/pages/copyright/repair/repair.wxss b/pages/copyright/repair/repair.wxss
index d64f835..fa4b978 100644
--- a/pages/copyright/repair/repair.wxss
+++ b/pages/copyright/repair/repair.wxss
@@ -615,9 +615,6 @@
color: white;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 40rpx;
-}
.weui-half-screen-dialog__bd {
padding-bottom: 40rpx;
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
index 2769ac1..156df51 100644
--- a/pages/index/index.wxss
+++ b/pages/index/index.wxss
@@ -562,8 +562,3 @@
color: var(--primary-color);
font-weight: bold;
}
-
-.weui-half-screen-dialog__ft {
- height: 0;
- padding: 0rpx 0rpx 40rpx;
-}
\ No newline at end of file
diff --git a/pages/login/login.wxss b/pages/login/login.wxss
index 241bf07..e4d56a8 100644
--- a/pages/login/login.wxss
+++ b/pages/login/login.wxss
@@ -122,10 +122,7 @@
margin-bottom: 10px;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 40rpx;
- text-align: center;
-}
+
.custom-tips {
margin-top: 80px;
diff --git a/pages/mine/mineAccount/invoiceInfo/invoiceInfo.wxss b/pages/mine/mineAccount/invoiceInfo/invoiceInfo.wxss
index f1a4d0f..2f1b6b2 100644
--- a/pages/mine/mineAccount/invoiceInfo/invoiceInfo.wxss
+++ b/pages/mine/mineAccount/invoiceInfo/invoiceInfo.wxss
@@ -231,9 +231,6 @@
color: white;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 40rpx;
-}
.weui-half-screen-dialog__bd {
padding-bottom: 40rpx;
diff --git a/pages/mine/mineAccount/makeInvoice/makeInvoice.wxss b/pages/mine/mineAccount/makeInvoice/makeInvoice.wxss
index 4333006..638f4a8 100644
--- a/pages/mine/mineAccount/makeInvoice/makeInvoice.wxss
+++ b/pages/mine/mineAccount/makeInvoice/makeInvoice.wxss
@@ -176,9 +176,7 @@
margin-left: 20rpx;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 40rpx;
-}
+
.weui-half-screen-dialog__bd {
padding-bottom: 40rpx;
diff --git a/pages/mine/mineAccount/mineContact/mineContact.wxss b/pages/mine/mineAccount/mineContact/mineContact.wxss
index 10ea012..498850a 100644
--- a/pages/mine/mineAccount/mineContact/mineContact.wxss
+++ b/pages/mine/mineAccount/mineContact/mineContact.wxss
@@ -217,9 +217,7 @@
background-color: var(--btn-green-color-active);
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 40rpx 0rpx;
-}
+
.weui-half-screen-dialog__bd {
padding-bottom: 40rpx;
diff --git a/pages/mine/mineAccount/mineInvoiceManage/mineInvoiceManage.wxss b/pages/mine/mineAccount/mineInvoiceManage/mineInvoiceManage.wxss
index 2783fdd..fac451b 100644
--- a/pages/mine/mineAccount/mineInvoiceManage/mineInvoiceManage.wxss
+++ b/pages/mine/mineAccount/mineInvoiceManage/mineInvoiceManage.wxss
@@ -343,10 +343,6 @@
color: white;
}
-.weui-half-screen-dialog__ft {
- padding: 0rpx 0rpx 40rpx;
-}
-
.weui-half-screen-dialog__bd {
padding-bottom: 40rpx;
}
\ No newline at end of file
diff --git a/pages/mine/mineIndex/mine.js b/pages/mine/mineIndex/mine.js
index 5e7ecfb..0f91971 100644
--- a/pages/mine/mineIndex/mine.js
+++ b/pages/mine/mineIndex/mine.js
@@ -79,19 +79,19 @@ Page({
if (res.rows && res.rows.length > 0) {
_self.setData({
'tabList[2].hasMsg': true,
- 'menuList[2].hasMsg': true
+ 'menuList[1].hasMsg': true
})
} else {
_self.setData({
'tabList[2].hasMsg': false,
- 'menuList[2].hasMsg': false
+ 'menuList[1].hasMsg': false
})
}
})
.catch(err => {
_self.setData({
'tabList[2].hasMsg': false,
- 'menuList[2].hasMsg': false
+ 'menuList[1].hasMsg': false
})
})
},
diff --git a/pages/shop/betrayGoods/betrayGoods.js b/pages/shop/betrayGoods/betrayGoods.js
index a009d37..fc34042 100644
--- a/pages/shop/betrayGoods/betrayGoods.js
+++ b/pages/shop/betrayGoods/betrayGoods.js
@@ -25,7 +25,8 @@ Page({
listRefreshTrig: false,
isLoadMore: false,
hasMore: true,
- goodsList: []
+ goodsList: [],
+ needRefresh: false
},
/**
@@ -45,6 +46,14 @@ Page({
})
this.doRefreshList()
},
+ onShow() {
+ if (this.data.needRefresh) {
+ this.setData({
+ needRefresh: false
+ })
+ this.doRefreshList()
+ }
+ },
inputKeywords(e) {
this.setData({
'pageData.keywords': e.detail.value
diff --git a/pages/shop/betrayGoodsDetail/betrayGoodsDetail.js b/pages/shop/betrayGoodsDetail/betrayGoodsDetail.js
index bba0f1a..6495a2d 100644
--- a/pages/shop/betrayGoodsDetail/betrayGoodsDetail.js
+++ b/pages/shop/betrayGoodsDetail/betrayGoodsDetail.js
@@ -3,6 +3,24 @@ import Shop from '../../../net/api/shop'
import {
sImgPrefix
} from '../../../net/mainUrl'
+const Cache = require('../../../utils/storage')
+var docFix = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf'];
+var imgFix = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'svg', 'ico', 'tiff', 'tif'];
+
+// 工具函数:检查文件类型
+function getFileExtension(filename) {
+ if (!filename || typeof filename !== 'string') return '';
+ var lastDot = filename.lastIndexOf('.');
+ return lastDot === -1 ? '' : filename.substring(lastDot + 1).toLowerCase();
+}
+
+function isImageFile(filename) {
+ return imgFix.indexOf(getFileExtension(filename)) !== -1;
+}
+
+function isDocumentFile(filename) {
+ return docFix.indexOf(getFileExtension(filename)) !== -1;
+}
Page({
/**
@@ -34,6 +52,9 @@ Page({
listRefreshTrig: false,
replenlishList: [], //补充资料
kind: 'buy', //用来标识 buy买家 sell卖家
+ files: [],
+ downloadProgress: 0,
+ downloading: false
},
/**
@@ -78,8 +99,33 @@ Page({
})
this.upPageNeedRefresh()
this.doGetOrderDetail()
+ this.doRefreshList()
}
},
+ //显示补充详情
+ doShowReplishDetail(e) {
+ const item = e.currentTarget.dataset.item
+ console.log(item)
+ if (this.data.kind == 'buy' && item.buyId == '') {
+ this.setData({
+ msgHint: '请补充内容',
+ msgType: 'error',
+ msgShow: true
+ })
+ return
+ }
+ if (this.data.kind == 'sell' && item.sellId == '') {
+ this.setData({
+ msgHint: '请补充内容',
+ msgType: 'error',
+ msgShow: true
+ })
+ return
+ }
+ wx.navigateTo({
+ url: '/pages/shop/replenishDetail/replenishDetail?id=' + item.correctionId + '&kind=' + this.data.kind,
+ })
+ },
bindChangeTab(e) {
const tabIndex = e.currentTarget.dataset.value
this.setData({
@@ -155,6 +201,9 @@ Page({
_self.setData({
order: res
})
+ if (res.orderStatus == '过户已完成' && res.producePhoto != '') {
+ _self.doGetFileInfo(res.producePhoto)
+ }
})
.catch(err => {
wx.hideLoading()
@@ -168,8 +217,45 @@ Page({
}, 1800);
})
},
- //获取商品详情
+ // 添加baseUrl
+ addPrefix: function (list) {
+ return list.map(function (item) {
+ item.netUrl = sImgPrefix + item.fileId;
+ return item;
+ });
+ },
+ //获取文件详情
+ doGetFileInfo(ids) {
+ var that = this;
+ var data = {
+ ids: ids
+ };
+ wx.showLoading({
+ title: '加载中...'
+ });
+ Shop.doGetFileInfos(data)
+ .then(function (res) {
+ wx.hideLoading();
+ if (res && res !== null) {
+ const list = that.addPrefix(res)
+ that.setData({
+ files: list
+ })
+ }
+ })
+ .catch(function (err) {
+ wx.hideLoading();
+ that.showMessage(err.msg || '获取证书详情失败,请稍后重试', 'error');
+ });
+ },
+ showMessage: function (msg, type) {
+ this.setData({
+ msgHint: msg,
+ msgType: type || 'info',
+ msgShow: true
+ });
+ },
doPreImg(e) {
wx.previewImage({
urls: [e.currentTarget.dataset.value],
@@ -267,5 +353,86 @@ Page({
wx.navigateTo({
url: '/pages/shop/reportReplenish/reportReplenish?id=' + item.correctionId,
})
- }
+ },
+ doPreImg: function (e) {
+ var url = e.currentTarget.dataset.value;
+ wx.previewImage({
+ urls: [url]
+ });
+ },
+
+
+
+ // 下载文件
+ doDownloadFile: function (e) {
+ var item = e.currentTarget.dataset.item;
+ // 判断是否是图片
+ if (isImageFile(item.fileName)) {
+ wx.previewImage({
+ urls: [item.netUrl]
+ });
+ } else {
+ // 判断是否支持打开
+ if (isDocumentFile(item.fileName)) {
+ // 去下载文件
+ this.goDownloadFile(item);
+ } else {
+ this.showMessage('该文件无法在小程序中打开,请前往电脑端查看', 'info');
+ }
+ }
+ },
+
+ goDownloadFile: function (item) {
+ var that = this;
+ that.setData({
+ downloadProgress: 0,
+ downloading: true
+ });
+
+ var token = Cache.get('token');
+ var header = {};
+ if (token) {
+ header.Auth = 'Bearer ' + token;
+ }
+
+ var downloadTask = wx.downloadFile({
+ url: item.netUrl,
+ header: header,
+ success: function (res) {
+ that.setData({
+ downloadProgress: 0,
+ downloading: false
+ });
+
+ if (res.statusCode === 200) {
+ wx.getFileSystemManager().saveFile({
+ tempFilePath: res.tempFilePath,
+ filePath: wx.env.USER_DATA_PATH + '/' + item.fileName,
+ success: function (res) {
+ wx.openDocument({
+ filePath: res.savedFilePath,
+ showMenu: true
+ });
+ },
+ fail: function (err) {
+ console.error('文件保存失败', err);
+ that.showMessage('很抱歉,文件下载出现问题。建议您稍作等待,之后再尝试下载。', 'error');
+ }
+ });
+ } else {
+ that.showMessage('很抱歉,文件下载出现问题。建议您稍作等待,之后再尝试下载。', 'error');
+ }
+ },
+ fail: function (err) {
+ console.log('下载失败', err);
+ that.showMessage('很抱歉,文件下载出现问题。建议您稍作等待,之后再尝试下载。', 'error');
+ }
+ });
+
+ downloadTask.onProgressUpdate(function (res) {
+ that.setData({
+ downloadProgress: res.progress
+ });
+ });
+ },
})
\ No newline at end of file
diff --git a/pages/shop/betrayGoodsDetail/betrayGoodsDetail.json b/pages/shop/betrayGoodsDetail/betrayGoodsDetail.json
index 0fbec82..32d558c 100644
--- a/pages/shop/betrayGoodsDetail/betrayGoodsDetail.json
+++ b/pages/shop/betrayGoodsDetail/betrayGoodsDetail.json
@@ -2,6 +2,7 @@
"usingComponents": {
"mp-toptips": "weui-miniprogram/toptips/toptips",
"container-loading": "/components/container-loading/container-loading",
- "mp-loading": "weui-miniprogram/loading/loading"
+ "mp-loading": "weui-miniprogram/loading/loading",
+ "down-progress": "/components/down-progress/down-progress"
}
}
\ No newline at end of file
diff --git a/pages/shop/betrayGoodsDetail/betrayGoodsDetail.wxml b/pages/shop/betrayGoodsDetail/betrayGoodsDetail.wxml
index 4a0441f..b7e620b 100644
--- a/pages/shop/betrayGoodsDetail/betrayGoodsDetail.wxml
+++ b/pages/shop/betrayGoodsDetail/betrayGoodsDetail.wxml
@@ -12,6 +12,7 @@
{{order.waitCorrectionCount}}
受让人信息
+ 证书详情
@@ -112,31 +113,31 @@
-
-
+
+
{{item.correctionTitle}}
- {{item.correctionRemark}}
+
+
+ {{item.sellId==''?'待补充':'已补充'}}
+
+
+
+
+ {{item.buyId==''?'待补充':'已补充'}}
+
+
+ {{item.correctionRemark}}
+
+
+ {{item.createTime}}
去补充
去补充
-
-
-
- {{item.sellId==''?'待补充':'已补充'}}
-
-
-
-
- {{item.buyId==''?'待补充':'已补充'}}
-
-
- {{item.createTime}}
-
@@ -152,37 +153,66 @@
类别
- {{order.buyUserDTO.type}}
+ {{order.buyUserDTO.type != ''? order.buyUserDTO.type:'暂无'}}
姓名或机构名称
- {{order.buyUserDTO.name}}
+ {{order.buyUserDTO.name != ''?order.buyUserDTO.name:'暂无'}}
所在省市
- {{order.buyUserDTO.city}}
+ {{order.buyUserDTO.city != '' ?order.buyUserDTO.city:'暂无'}}
联系电话
- {{order.buyUserDTO.phone}}
+ {{order.buyUserDTO.phone !='' ?order.buyUserDTO.phone:'暂无'}}
证件类型
- {{order.buyUserDTO.idcardType}}
+ {{order.buyUserDTO.idcardType != '' ?order.buyUserDTO.idcardType:'暂无'}}
证件号码
- {{order.buyUserDTO.idcard}}
+ {{order.buyUserDTO.idcard != ''? order.buyUserDTO.idcardType:'暂无'}}
+
+
+
+
+
+
+ 下证时间
+
+ {{order.produceTime}}
+
+
+
+ 证书
+
+
+
+
+
+
+
+ {{item.fileName}}
+
+
+
+ {{item.fileName}}
+
+
+
+
@@ -198,5 +228,6 @@
+
\ No newline at end of file
diff --git a/pages/shop/betrayGoodsDetail/betrayGoodsDetail.wxss b/pages/shop/betrayGoodsDetail/betrayGoodsDetail.wxss
index 3b743d3..1154969 100644
--- a/pages/shop/betrayGoodsDetail/betrayGoodsDetail.wxss
+++ b/pages/shop/betrayGoodsDetail/betrayGoodsDetail.wxss
@@ -249,7 +249,7 @@
.item-content {
display: flex;
- flex-direction: column;
+ flex-direction: row;
font-size: 28rpx;
flex: 1;
width: 100%;
@@ -266,6 +266,7 @@
text-overflow: ellipsis;
box-sizing: border-box;
min-width: 0;
+ flex: 1;
}
.item-desc {
@@ -318,4 +319,42 @@
.col-green {
background-color: var(--bg-green-status-light-color);
+}
+
+.accessory-box {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+}
+
+.accessory-item {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-between;
+ width: 40%;
+ padding: 15rpx;
+ margin: 10rpx;
+ border: 1rpx solid var(--divider-color);
+ box-sizing: border-box;
+ min-width: auto;
+}
+
+.accessory-img {
+ width: 100%;
+ height: 200rpx;
+}
+
+.file-name {
+ width: 100%;
+ font-size: 20rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.icon-source {
+ background-image: url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSI2NCA2NCA4OTYgODk2IiB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHN0eWxlPSIiIGZpbHRlcj0ibm9uZSI+CiAgICAKICAgIDxnPgogICAgPHBhdGggZD0iTTkyOCAxNjFINjk5LjJjLTQ5LjEgMC05Ny4xIDE0LjEtMTM4LjQgNDAuN0w1MTIgMjMzbC00OC44LTMxLjNBMjU1LjIgMjU1LjIgMCAwIDAgMzI0LjggMTYxSDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1NjhjMCAxNy43IDE0LjMgMzIgMzIgMzJoMjI4LjhjNDkuMSAwIDk3LjEgMTQuMSAxMzguNCA0MC43bDQ0LjQgMjguNmMxLjMuOCAyLjggMS4zIDQuMyAxLjNzMy0uNCA0LjMtMS4zbDQ0LjQtMjguNkM2MDIgODA3LjEgNjUwLjEgNzkzIDY5OS4yIDc5M0g5MjhjMTcuNyAwIDMyLTE0LjMgMzItMzJWMTkzYzAtMTcuNy0xNC4zLTMyLTMyLTMyek00MDQgNTUzLjVjMCA0LjEtMy4yIDcuNS03LjEgNy41SDIxMS4xYy0zLjkgMC03LjEtMy40LTcuMS03LjV2LTQ1YzAtNC4xIDMuMi03LjUgNy4xLTcuNWgxODUuN2MzLjkgMCA3LjEgMy40IDcuMSA3LjV2NDV6bTAtMTQwYzAgNC4xLTMuMiA3LjUtNy4xIDcuNUgyMTEuMWMtMy45IDAtNy4xLTMuNC03LjEtNy41di00NWMwLTQuMSAzLjItNy41IDcuMS03LjVoMTg1LjdjMy45IDAgNy4xIDMuNCA3LjEgNy41djQ1em00MTYgMTQwYzAgNC4xLTMuMiA3LjUtNy4xIDcuNUg2MjcuMWMtMy45IDAtNy4xLTMuNC03LjEtNy41di00NWMwLTQuMSAzLjItNy41IDcuMS03LjVoMTg1LjdjMy45IDAgNy4xIDMuNCA3LjEgNy41djQ1em0wLTE0MGMwIDQuMS0zLjIgNy41LTcuMSA3LjVINjI3LjFjLTMuOSAwLTcuMS0zLjQtNy4xLTcuNXYtNDVjMC00LjEgMy4yLTcuNSA3LjEtNy41aDE4NS43YzMuOSAwIDcuMSAzLjQgNy4xIDcuNXY0NXoiIGZpbGw9InJnYmEoMTI5LDE3OSw1NSwxKSI+PC9wYXRoPgogICAgPC9nPgogIDwvc3ZnPg==');
+ background-size: cover;
+ background-repeat: no-repeat;
}
\ No newline at end of file
diff --git a/pages/shop/goodsDetail/goodsDetail.js b/pages/shop/goodsDetail/goodsDetail.js
index 6f1ea77..6221a24 100644
--- a/pages/shop/goodsDetail/goodsDetail.js
+++ b/pages/shop/goodsDetail/goodsDetail.js
@@ -139,7 +139,7 @@ Page({
});
setTimeout(() => {
- wx.navigateBack();
+ this.backPageRefresh()
}, 1500);
} catch (err) {
wx.hideLoading();
@@ -186,5 +186,13 @@ Page({
wx.navigateBack()
}, 1200);
})
+ },
+ backPageRefresh: function () {
+ var pages = getCurrentPages();
+ var beforePage = pages[pages.length - 2];
+ beforePage.setData({
+ needRefresh: true
+ });
+ wx.navigateBack();
}
})
\ No newline at end of file
diff --git a/pages/shop/goodsDetail/goodsDetail.wxml b/pages/shop/goodsDetail/goodsDetail.wxml
index 8f9868a..78afdd6 100644
--- a/pages/shop/goodsDetail/goodsDetail.wxml
+++ b/pages/shop/goodsDetail/goodsDetail.wxml
@@ -1,11 +1,11 @@
-
+
我要买
-