init
This commit is contained in:
11
miniprogram/pages/order/order-confirm/getNotes.wxs
Normal file
11
miniprogram/pages/order/order-confirm/getNotes.wxs
Normal file
@@ -0,0 +1,11 @@
|
||||
var getNotes = function (storeInfoList, storeIndex) {
|
||||
if (!storeInfoList || typeof storeInfoList !== 'object' || typeof storeInfoList.length !== 'number' || storeIndex < 0 || storeIndex >= storeInfoList.length) {
|
||||
return '';
|
||||
}
|
||||
var storeInfo = storeInfoList[storeIndex];
|
||||
if (!storeInfo) {
|
||||
return '';
|
||||
}
|
||||
return storeInfo.remark || '';
|
||||
};
|
||||
module.exports = getNotes;
|
||||
Reference in New Issue
Block a user