我的,添加订单

This commit is contained in:
shane 2021-12-02 23:56:20 +08:00
parent 2d18e58518
commit 2e77e00724

View File

@ -51,13 +51,18 @@
<text class="text-grey">生活服务</text> <text class="text-grey">生活服务</text>
</view> </view>
</view> </view>
<view class="cu-item arrow" @click="toMallOrders()">
<view class="content">
<text class="cuIcon-goodsfavor text-pink"></text>
<text class="text-grey">商城订单</text>
</view>
</view>
<view class="cu-item arrow" @click="mySettings()"> <view class="cu-item arrow" @click="mySettings()">
<view class="content"> <view class="content">
<text class="cuIcon-settings text-gray"></text> <text class="cuIcon-settings text-gray"></text>
<text class="text-grey">设置</text> <text class="text-grey">设置</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
@ -175,10 +180,7 @@
}, },
loadOwenrInfo: function() { loadOwenrInfo: function() {
let _that = this; let _that = this;
context.getOwner(function(_ownerInfo) { context.getOwner(function(_ownerInfo) {
console.log(_ownerInfo);
if (_ownerInfo) { if (_ownerInfo) {
_that.ownerFlag = true; _that.ownerFlag = true;
} else { } else {
@ -186,6 +188,19 @@
} }
}); });
}, },
toMallOrders() {
if (!this.ckeckUserInfo()) {
this.vc.navigateTo({
url: '../showlogin/showlogin'
}, () => {
this.refreshPageLoginInfo();
});
return;
}
this.vc.navigateToMall({
url: '/pages/myOrder/myOrder'
})
},
onGotUserInfo: function(e) { onGotUserInfo: function(e) {
console.log("nickname=" + JSON.stringify(e.detail.userInfo)); console.log("nickname=" + JSON.stringify(e.detail.userInfo));
}, },