Commit 57720aab by wangzhihui

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas/mini-program/…

…points-mall into SAAS+V4.56.0-0908
2 parents 6e6c08e3 5dcbe771
......@@ -28,7 +28,7 @@ module.exports = {
...data
})
},
/**获取积分商城首页配置数据 */
/**获取积分会首页配置数据 */
getHomeConfigData(data) {
return api.post({
method: 'scrm.api.shopmall.scrm.mallmini.findByType',
......
......@@ -51,5 +51,6 @@ module.exports = {
method: 'scrm.api.shopmall.platform.base.address.list',
...data
})
}
},
}
\ No newline at end of file
......@@ -154,4 +154,15 @@ queryExpressList(data={}){
...data
})
},
/**云中鹤查看可申请售后的商品数量 */
getYzhAvailableQty(data) {
return api.post({
method: 'scrm.api.shopmall.platform.afterSales.available.qty',
...data
})
},
/**自营查看可申请售后的商品数量(暂无) */
getAvailableQty(data) {
return Promise.resolve(null)
}
}
\ No newline at end of file
......@@ -153,4 +153,4 @@
<!-- <block wx:if="{{showComponent&&!isGH}}">
<coupons-list bind:getCoupons="getCouponsItem" couponsId="{{query.couponId}}" show="{{showCoupons}}" goodsId="{{curentGoodsItem.id}}"></coupons-list>
</block> -->
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
......@@ -8,4 +8,4 @@
</block>
</view>
<authorize scopeType="userLocation" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
......@@ -39,4 +39,4 @@
</view>
<glsx-privacy appletName="积分商城"></glsx-privacy>
<glsx-privacy appletName="积分会"></glsx-privacy>
......@@ -26,4 +26,4 @@
</block>
</view>
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
......@@ -67,4 +67,4 @@
</Dialog>
<!-- <dialog show="{{showModal}}" confirmText="{{success?'去兑换':'我知道了'}}" cancelText="我知道了" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}"> -->
<!-- </dialog> -->
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
......@@ -43,7 +43,7 @@
<goods list="{{goodsList}}" bindjoin="handleAddToCart"></goods>
</view>
<view class="suggest">若以上没有心仪商品,您可以点击<text>“去商城”</text>一键跳转积分商城选购更多商品</view>
<view class="suggest">若以上没有心仪商品,您可以点击<text>“去商城”</text>一键跳转积分会选购更多商品</view>
</block>
<view class="suggest">若您仍然想提现,请点击<text>“继续提现”</text>按钮提交提现申请。</view>
<view class="btns flex_scb">
......
......@@ -68,4 +68,4 @@
</view>
<authorize scopeType="userLocation" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<area-select provinceShow="{{showAreaSelect}}" provinceList="{{areaCode}}" bind:cancelProvince="cancelProvince" bind:getProvinceCode="getProvinceCode"></area-select>
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
......@@ -96,11 +96,11 @@ Page({
},
toAfterSale() {
const { orderInfo } = this.data;
const { orderGoods, imgUrlList, ...rest } = orderInfo;
const order = Object.assign({ imgList: imgUrlList }, orderGoods, rest);
// const { orderGoods, imgUrlList, ...rest } = orderInfo;
// const order = Object.assign({ imgList: imgUrlList }, orderGoods, rest);
wx.p.router.go(
"/packageMine/pages/order/afterSale_step_two/afterSale_step_two",
order
orderInfo
);
},
/**撤销申请 */
......
......@@ -12,4 +12,4 @@
<re-submit-button wx:if="{{button}}" bindresubmit="confirm" button="{{button}}"></re-submit-button>
</view>
</block>
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
......@@ -21,9 +21,9 @@ Page({
wx.p.router.getRouterParams(options).then((orderObj) => {
const { goodsSource, tparReturnOrderCode, subOrderCode, goodsSkuCode } =
orderObj;
this.setData({
method: API_Methods[orderObj.goodsSource][APIS.AFTER_SALE],
});
// this.setData({
// method: API_Methods[orderObj.goodsSource][APIS.AFTER_SALE],
// });
if (tparReturnOrderCode) {
this.getOrderAfterSaleDetail(
{ goodsSource, tparReturnOrderCode, subOrderCode, goodsSkuCode },
......@@ -39,7 +39,7 @@ Page({
setOrderInfo(order) {
const _order = Object.assign({}, order, {
returnType: order.returnType || 1001,
imgList: order.imgList || [],
imgList: order.imgList || []
});
this.setData({
orderObj: _order,
......@@ -128,7 +128,7 @@ Page({
if (orderObj.goodsSource === GoodsSource.YZH) {
delete orderObj.refundPoints;
}
this.data.method(orderObj).then(({ code, data, message }) => {
API_Methods[orderObj.goodsSource][APIS.AFTER_SALE](orderObj).then(({ code, data, message }) => {
if (code == "0") {
wx.p.wxApi.showToast("申请成功!");
setTimeout(() => {
......@@ -149,19 +149,37 @@ Page({
cb
) {
wx.p.wxApi.showLoading("加载中...");
// const Methods = goodsSource == 2 ? "afterSaleDetail" : "platformSaleDetail";
API_Methods[goodsSource][APIS.AFTER_SALE_DETAIL]({
subOrderCode,
tparReturnOrderCode,
goodsSkuCode,
}).then((res) => {
const { orderGoods, imgUrlList, ...rest } = res;
const order = Object.assign({ imgList: imgUrlList }, orderGoods, rest);
const { ___qty, ___price, ___totalPrice } = calcOrderProp(order);
Object.assign(order, { ___qty, ___price, ___totalPrice });
const {
imgUrlList: imgList,
refundPoints,
returnContent,
returnType,
returnReasonType,
applyQty,
} = res;
const order = {
imgList,
refundPoints,
returnContent,
returnType,
returnReasonType,
applyQty,
goodsSource,
tparReturnOrderCode,
subOrderCode,
goodsSkuCode,
};
// const { ___qty, ___price, ___totalPrice } = calcOrderProp(order);
// Object.assign(order, { ___qty, ___price, ___totalPrice });
cb(order);
}).finally(() => {
wx.hideLoading();
});
})
.finally(() => {
wx.hideLoading();
});
},
});
......@@ -30,4 +30,4 @@
<view class="btn text-center" bindtap="submit">提交</view>
</view>
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
......@@ -88,7 +88,6 @@ Page({
}
} : {})
});
console.log(this.data)
})
.catch((err) => {
wx.p.sentry.reportError(`订单详情异常:${err.message}`, {
......
......@@ -29,4 +29,4 @@
</BlockBox> -->
</view>
</block>
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
......@@ -171,15 +171,18 @@ export function calcOrderProp(order = {}) {
export const APIS = {
AFTER_SALE_DETAIL: "AFTER_SALE_DETAIL",
AFTER_SALE: "AFTER_SALE",
AVAILABLE_QTY: "AVAILABLE_QTY",
};
export const API_Methods = {
[GoodsSource.YZH]: {
[APIS.AFTER_SALE_DETAIL]: wx.p.api.shopmallApi.platformSaleDetail, //售后详情
[APIS.AFTER_SALE]: wx.p.api.shopmallApi.afterSalesPlatform, // 售后
[APIS.AVAILABLE_QTY]: wx.p.api.shopmallApi.getYzhAvailableQty, // 云中鹤查看可申请售后的商品数量
},
[GoodsSource.SELF]: {
[APIS.AFTER_SALE_DETAIL]: wx.p.api.shopmallApi.afterSaleDetail, //售后详情
[APIS.AFTER_SALE]: wx.p.api.shopmallApi.afterSale, // 售后
[APIS.AFTER_SALE]:wx.p.api.shopmallApi.afterSale, // 售后
[APIS.AVAILABLE_QTY]:wx.p.api.shopmallApi.getAvailableQty
},
};
......@@ -7,7 +7,7 @@
<block wx:if="{{loginType==0}}">
<view class="h1">您好</view>
<view class="h2">
欢迎使用积分商城小程序
欢迎使用积分会小程序
</view>
<view class="login-img">
<glsx-image src="/login/login-img.png"></glsx-image>
......@@ -60,7 +60,7 @@
</view>
</view>
</view>
<glsx-privacy appletName="积分商城"></glsx-privacy>
<glsx-privacy appletName="积分会"></glsx-privacy>
<Dialog show="{{ showAgreeModal }}" mask="true" bindbuttontap="dialogConfirm" buttons="{{buttons}}" title="隐私协议与用户协议">
<view class="suggest-box">
<view>为保障你的合法权益,请阅读并同意</view>
......
......@@ -102,7 +102,7 @@ Page({
})
},
// 获取积分商城配置
// 获取积分会配置
getHomeData() {
homeApi.getHomeConfigData({miniType: 1}).then(res => {
res?.specialEvents?.forEach(item => {
......
<navigation-bar page-title="积分商城" custom navStyle="{{navStyle}}" bindnavbarReady="navbarReady">
<view class="page-title">积分商城</view>
<navigation-bar page-title="积分会" custom navStyle="{{navStyle}}" bindnavbarReady="navbarReady">
<view class="page-title">积分会</view>
</navigation-bar>
<view class="bg">
<glsx-image wx:if="{{!bannerUrl}}" src="/index/index-bg.png"></glsx-image>
......@@ -76,4 +76,4 @@
<!-- 开通钱包 -->
<enable-wallet show="{{showEnableWallet}}" walletObj="{{walletObj}}"></enable-wallet>
<sku bind:cancelSku="closeSku" wx:if="{{showSku}}" bind:getCount="getCount" show="{{showSku}}" goods="{{detailInfo}}" clickType="join"></sku>
<glsx-privacy appletName="积分商城"></glsx-privacy>
\ No newline at end of file
<glsx-privacy appletName="积分会"></glsx-privacy>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!