tianyi 1 month ago
parent
commit
982ed55324
  1. 45
      package1/myCenter/goodsList.vue

45
package1/myCenter/goodsList.vue

@ -135,9 +135,23 @@
</view>
<view class="bottom-box">
<view class="bottom-btn" @tap="goDetail('goods')" style="background: rgba(0, 35, 28, 1);color: rgba(166, 255, 234, 1);">新增商品</view>
<view class="bottom-btn" @tap="goDetail('type')">新增分类</view>
<view class="bottom-btn" @tap="$refs.payDialog.open()">更多</view>
</view>
<u-loadmore :status="status" />
<!-- 弹出输入框 -->
<uni-popup ref="payDialog" background-color="#fff">
<view class="popup-pay-content">
<view class="popup-pay-title">
<text>请选择</text>
</view>
<view class="popup-pay-container" @tap="goDetail('type')">
<text style="display: inline-block">分类管理</text>
</view>
<view class="popup-pay-container" @tap="goDetail('attribute')">
<text style="display: inline-block">属性管理</text>
</view>
</view>
</uni-popup>
</view>
</template>
@ -308,8 +322,10 @@
let url=""
if(type == 'goods'){
url = '/package1/myCenter/addGoods?dataList='+ JSON.stringify(item)
}else{
}else if(type == 'type'){
url = '/package1/myCenter/addType'
}else{
url = '/package1/myCenter/attributeList'
}
uni.navigateTo({
url:url
@ -547,7 +563,32 @@
display: flex;
padding-top: 20rpx;
}
.popup-pay-content {
align-items: center;
justify-content: center;
padding: 15px;
width: 500rpx;
height: auto;
background-color: #fff;
}
.popup-pay-title {
font-size: 36rpx;
font-weight: bold;
text-align: center;
position: relative;
}
.popup-pay-container {
margin-top: 20rpx;
height: 100rpx;
border-radius: 10px;
background: #088FEB;
line-height: 100rpx;
text-align: center;
border-bottom: 1px solid #eee;
border-top: 1px solid #eee;
color: #fff;
}
.bottom-btn {
width: 50%;
height: 90rpx;

Loading…
Cancel
Save