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