Commit 6da79576 authored by 罗超's avatar 罗超

1

parent cb0bd4fd
...@@ -227,14 +227,7 @@ export default { ...@@ -227,14 +227,7 @@ export default {
// ----------橙霜--------------- // ----------橙霜---------------
let AppletID = this.GetMiniAppId().TenantId; let AppletID = this.GetMiniAppId().TenantId;
if (AppletID === 24) { if (AppletID === 24) {
let basedata = wx.getStorageSync("basedata"); this.updateData();
let isAttestation = basedata?.user_info?.isAttestation ?? 0;
let IsOpenGuide = wx.getStorageSync("basedata")?.mall?.setting?.IsOpenGuide??0;
if (isAttestation === 0&&IsOpenGuide===1) {
uni.navigateTo({
url: "/pages/user-center/user-center",
});
}
} }
// -------------------------------- // --------------------------------
if (res.couponResultCode == 1) { if (res.couponResultCode == 1) {
...@@ -281,6 +274,26 @@ export default { ...@@ -281,6 +274,26 @@ export default {
closeBtn() { closeBtn() {
this.showCoupons = false; this.showCoupons = false;
}, },
updateData() {
this.request2(
{
url: "/api/Mall/GetHome",
data: {},
},
(res) => {
uni.setStorageSync("basedata", res.data);
let basedata = uni.getStorageSync("basedata");
let isAttestation = basedata?.user_info?.isAttestation ?? 0;
let IsOpenGuide =
wx.getStorageSync("basedata")?.mall?.setting?.IsOpenGuide ?? 0;
if (isAttestation === 0 && IsOpenGuide === 1) {
uni.navigateTo({
url: "/pages/user-center/user-center",
});
}
}
);
},
}, },
}; };
</script> </script>
......
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
</view> </view>
<view class="goodsBox"> <view class="goodsBox">
<view class="goodsName">{{ item.GoodsName }}</view> <view class="goodsName">{{ item.GoodsName }}</view>
<view class="weight">规格:{{getSpecificationsStr(item.SpecificationList)}}</view> <view class="weight"
>规格:{{ getSpecificationsStr(item.SpecificationList) }}</view
>
<view class="flex-between"> <view class="flex-between">
<text>x{{ item.Number }}</text> <text>x{{ item.Number }}</text>
<text>{{ item.SmallShopsCostPrice }}</text> <text>{{ item.SmallShopsCostPrice }}</text>
...@@ -44,18 +46,24 @@ ...@@ -44,18 +46,24 @@
> >
</view> </view>
<view class="btnBox"> <view class="btnBox">
<button class="btn" @click="modal = true">备注</button> <button class="btn" @click="modal = true" v-if="orderType === 1">备注</button>
<button class="btn">拒绝</button> <button class="btn" v-if="orderType === 2">拒绝</button>
<button class="btn">同意</button> <button class="btn" v-if="orderType === 2">同意</button>
</view> </view>
<u-modal <u-modal
v-model="modal" v-model="modal"
:show-cancel-button="false" :show-cancel-button="false"
@confirm="modal = false" @confirm="confirm"
contentSlot contentSlot
title="备注" title="备注"
> >
<input type="number" class="input" placeholder="(限15字)" :maxlength="15" v-model="data.Remark" /> <input
type="number"
class="input"
placeholder="(限15字)"
:maxlength="15"
v-model="exitMsg.Remark"
/>
</u-modal> </u-modal>
</view> </view>
</template> </template>
...@@ -63,10 +71,16 @@ ...@@ -63,10 +71,16 @@
export default { export default {
props: { props: {
data: Object, data: Object,
orderType:Number,
}, },
data() { data() {
return { return {
modal: false, modal: false,
exitMsg: {
OrderId: 0,
Type: 1,
Remark: "",
},
}; };
}, },
methods: { methods: {
...@@ -75,13 +89,29 @@ export default { ...@@ -75,13 +89,29 @@ export default {
phoneNumber: num, phoneNumber: num,
}); });
}, },
getSpecificationsStr(arr){ getSpecificationsStr(arr) {
let str=arr.map((e)=>{return e}).toString() let str = arr
return str .map((e) => {
return e;
})
.toString();
return str;
},
setOrderInfo() {
this.requestAdmin("/api/order/SetOrderOperation", this.exitMsg, (res) => {
if (res.resultCode === 1) {
this.$emit('update')
}
});
},
confirm(){
this.modal=false;
this.setOrderInfo();
} }
}, },
mounted() { created() {
console.log(54, this.data); this.exitMsg.Remark=this.data?.Remark;
this.exitMsg.OrderId=this.data?.OrderId;
}, },
}; };
</script> </script>
......
...@@ -40,14 +40,14 @@ ...@@ -40,14 +40,14 @@
<view class="iconname">订单消息</view> <view class="iconname">订单消息</view>
<view class="tipNum">1</view> <view class="tipNum">1</view>
</view> </view>
<view class="itemBox"> <!-- <view class="itemBox">
<image <image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/msg.png" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/msg.png"
mode="" mode=""
class="imgicon" class="imgicon"
/> />
<view class="iconname">审核消息</view> <view class="iconname">审核消息</view>
</view> </view> -->
<view class="itemBox"> <view class="itemBox">
<image <image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/cash.png" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/cash.png"
......
...@@ -148,7 +148,11 @@ ...@@ -148,7 +148,11 @@
v-if="orderType === 2" v-if="orderType === 2"
></u-tabs> ></u-tabs>
</view> </view>
<u-empty v-if="orderList.length == 0" text="暂无相关订单" mode="order"></u-empty> <u-empty
v-if="orderList.length == 0"
text="暂无相关订单"
mode="order"
></u-empty>
<view <view
v-if="orderList.length > 0" v-if="orderList.length > 0"
style=" style="
...@@ -167,7 +171,7 @@ ...@@ -167,7 +171,7 @@
:style="{ height: '100%' }" :style="{ height: '100%' }"
> >
<view v-for="(item, index) in orderList" :key="index"> <view v-for="(item, index) in orderList" :key="index">
<orderItem :data="item" /> <orderItem :data="item" :orderType="orderType" @update="updateList" />
</view> </view>
<u-loadmore <u-loadmore
:status="status" :status="status"
...@@ -427,10 +431,6 @@ export default { ...@@ -427,10 +431,6 @@ export default {
Id: 0, Id: 0,
Name: "全部", Name: "全部",
}); });
this.orderStatusList.push({
Id: 8,
Name: "回收站",
});
}); });
}, },
//普通订单数据 //普通订单数据
...@@ -500,6 +500,16 @@ export default { ...@@ -500,6 +500,16 @@ export default {
} }
); );
}, },
// 刷新页面
updateList() {
if (this.orderType === 1) {
this.msg.pageIndex = 1;
this.getList();
} else if (this.orderType === 2) {
this.msg2.pageIndex = 1;
this.getList2();
}
},
}, },
onLoad(options) { onLoad(options) {
this.timeStr = this.timeArr[0].name; this.timeStr = this.timeArr[0].name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment