feat(产品类别)
This commit is contained in:
parent
8f339a1ecc
commit
b577f0730c
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"prompt": "template"
|
||||
}
|
Binary file not shown.
118
manifest.json
118
manifest.json
|
@ -1,31 +1,34 @@
|
|||
{
|
||||
"name": "mall-app-t",
|
||||
"appid": "__UNI__B201544",
|
||||
"description": "",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": "100",
|
||||
"transformPx": false,
|
||||
"name" : "豫京牛商家端",
|
||||
"appid" : "__UNI__B201544",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : "100",
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
"nvueStyleCompiler": "uni-app",
|
||||
"compilerVersion": 3,
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
"nvueStyleCompiler" : "uni-app",
|
||||
"compilerVersion" : 3,
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
"compatible": {
|
||||
"ignoreVersion": true
|
||||
"compatible" : {
|
||||
"ignoreVersion" : true
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules": {},
|
||||
"modules" : {
|
||||
"Barcode" : {},
|
||||
"Camera" : {}
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
"distribute": {
|
||||
"distribute" : {
|
||||
/* android打包配置 */
|
||||
"android": {
|
||||
"permissions": [
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
|
@ -44,32 +47,71 @@
|
|||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios": {},
|
||||
"ios" : {
|
||||
"dSYMs" : false
|
||||
},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs": {}
|
||||
"sdkConfigs" : {
|
||||
"ad" : {}
|
||||
},
|
||||
"icons" : {
|
||||
"android" : {
|
||||
"hdpi" : "unpackage/res/icons/72x72.png",
|
||||
"xhdpi" : "unpackage/res/icons/96x96.png",
|
||||
"xxhdpi" : "unpackage/res/icons/144x144.png",
|
||||
"xxxhdpi" : "unpackage/res/icons/192x192.png"
|
||||
},
|
||||
"ios" : {
|
||||
"appstore" : "unpackage/res/icons/1024x1024.png",
|
||||
"ipad" : {
|
||||
"app" : "unpackage/res/icons/76x76.png",
|
||||
"app@2x" : "unpackage/res/icons/152x152.png",
|
||||
"notification" : "unpackage/res/icons/20x20.png",
|
||||
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||
"proapp@2x" : "unpackage/res/icons/167x167.png",
|
||||
"settings" : "unpackage/res/icons/29x29.png",
|
||||
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||
"spotlight" : "unpackage/res/icons/40x40.png",
|
||||
"spotlight@2x" : "unpackage/res/icons/80x80.png"
|
||||
},
|
||||
"iphone" : {
|
||||
"app@2x" : "unpackage/res/icons/120x120.png",
|
||||
"app@3x" : "unpackage/res/icons/180x180.png",
|
||||
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||
"notification@3x" : "unpackage/res/icons/60x60.png",
|
||||
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||
"settings@3x" : "unpackage/res/icons/87x87.png",
|
||||
"spotlight@2x" : "unpackage/res/icons/80x80.png",
|
||||
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"splashscreen" : {
|
||||
"useOriginalMsgbox" : true
|
||||
}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp": {},
|
||||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin": {
|
||||
"appid": "wx64387dc8bba916ec",
|
||||
"setting": {
|
||||
"urlCheck": false
|
||||
"mp-weixin" : {
|
||||
"appid" : "wx64387dc8bba916ec",
|
||||
"setting" : {
|
||||
"urlCheck" : false
|
||||
},
|
||||
"usingComponents": true
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-alipay": {
|
||||
"usingComponents": true
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-baidu": {
|
||||
"usingComponents": true
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-toutiao": {
|
||||
"usingComponents": true
|
||||
"mp-toutiao" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"uniStatistics": {
|
||||
"enable": false
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion": "3"
|
||||
"vueVersion" : "3"
|
||||
}
|
||||
|
|
|
@ -207,9 +207,6 @@
|
|||
},
|
||||
{
|
||||
"pagePath": "pages/index/my"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/icons"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<pb-layout navbar="inner" tabbar="/pages/index/index" :bgStyle="bgStyle">
|
||||
<pb-layout navbar="inner" tabbar="/pages/index/index" :bgStyle="bgStyle" :leftIcon="''">
|
||||
<view class="dashboard-module ss-p-x-30">
|
||||
<view class="merchant-info flex align-center justify-between">
|
||||
<view class="flex align-center ss-gap-10">
|
||||
|
@ -17,7 +17,7 @@
|
|||
|
||||
<view class="statistic ss-m-t-24">
|
||||
<view class="title ss-font-24 ss-m-b-20">
|
||||
{{ `今日收款金额(成功收款${state.statistic.todayPaymentCount}笔)` }}
|
||||
{{ `今日收款金额(成功收款${state.statistic?.todayPaymentCount || 0}笔)` }}
|
||||
</view>
|
||||
<view class="income flex justify-between align-center">
|
||||
<view class="left flex align-center">
|
||||
|
@ -27,8 +27,8 @@
|
|||
<!-- <button class="right-btn ss-reset-button">查看详情</button> -->
|
||||
</view>
|
||||
<view class="des ss-m-t-20">
|
||||
总销售额 {{ fen2yuan(state.statistic.totalSalesAmount) }} 元 | 成功退款
|
||||
{{ state.statistic.refundCount }} 笔 | 退款金额 {{ fen2yuan(state.statistic.refundAmount) }} 元
|
||||
总销售额 {{ fen2yuan(state.statistic.totalSalesAmount) }} 元 | 成功退款 {{ state.statistic.refundCount }} 笔 |
|
||||
退款金额 {{ fen2yuan(state.statistic.refundAmount) }} 元
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
|||
<view class="item" v-for="(item, index) in state.more" :key="item.name">
|
||||
<view class="label">{{ item.name }}</view>
|
||||
<view class="value">{{ index !== 0 ? item.value : fen2yuan(item.value) }}</view>
|
||||
<view class="last"> 昨日 {{ index === 0 ? fen2yuan(item.last) : item.last }} </view>
|
||||
<view class="last"> 昨日 {{ index === 0 ? fen2yuan(item.last) : item.last ? item.last : 0 }} </view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -6,15 +6,32 @@
|
|||
</view>
|
||||
<uni-forms ref="smsLoginRef" v-model="state.model" :rules="state.rules" validateTrigger="bind">
|
||||
<uni-forms-item name="mobile">
|
||||
<uni-easyinput :styles="state.inputStyle" trim="all" placeholder="请输入手机号" v-model="state.model.mobile"
|
||||
:inputBorder="false" type="number" />
|
||||
<uni-easyinput
|
||||
:styles="state.inputStyle"
|
||||
trim="all"
|
||||
placeholder="请输入手机号"
|
||||
v-model="state.model.mobile"
|
||||
:inputBorder="false"
|
||||
type="number"
|
||||
/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item name="code">
|
||||
<uni-easyinput :styles="state.inputStyle" trim="all" placeholder="验证码" v-model="state.model.code"
|
||||
:inputBorder="false" type="number" maxlength="4">
|
||||
<uni-easyinput
|
||||
:styles="state.inputStyle"
|
||||
trim="all"
|
||||
placeholder="验证码"
|
||||
v-model="state.model.code"
|
||||
:inputBorder="false"
|
||||
type="number"
|
||||
maxlength="4"
|
||||
>
|
||||
<template #right>
|
||||
<button :disabled="state.isMobileEnd" :class="{ 'code-btn-end': state.isMobileEnd }"
|
||||
class="ss-reset-button code-btn code-btn-start" @tap="getSmsCode('smsLogin', state.model.mobile)">
|
||||
<button
|
||||
:disabled="state.isMobileEnd"
|
||||
:class="{ 'code-btn-end': state.isMobileEnd }"
|
||||
class="ss-reset-button code-btn code-btn-start"
|
||||
@tap="getSmsCode('smsLogin', state.model.mobile)"
|
||||
>
|
||||
{{ getSmsTimer('smsLogin') }}
|
||||
</button>
|
||||
</template>
|
||||
|
@ -24,8 +41,12 @@
|
|||
<button class="ss-reset-button login-btn-start" @tap="smsLoginSubmit">登录</button>
|
||||
<view class="agreement-box ss-flex ss-row-center" :class="{ shake: state.isShaking }">
|
||||
<label class="radio ss-flex" @tap="onChange">
|
||||
<radio :checked="state.agreeStatus" color="var(--ui-BG-Main)" style="transform: scale(0.8)"
|
||||
@tap.stop="onChange" />
|
||||
<radio
|
||||
:checked="state.agreeStatus"
|
||||
color="var(--ui-BG-Main)"
|
||||
style="transform: scale(0.8)"
|
||||
@tap.stop="onChange"
|
||||
/>
|
||||
<view class="agreement-text ss-flex ss-m-l-8">
|
||||
我已阅读并遵守
|
||||
<view class="tcp-text" @tap.stop="onProtocol('商家入驻协议')"> 《商家入驻协议》 </view>
|
||||
|
@ -51,8 +72,8 @@ const state = ref({
|
|||
agreeStatus: false,
|
||||
isShaking: false,
|
||||
model: {
|
||||
mobile: '15036370128',
|
||||
code: '9999',
|
||||
mobile: '',
|
||||
code: '',
|
||||
},
|
||||
rules: {
|
||||
mobile,
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
<template>
|
||||
<pb-layout navbar="inner" tabbar="/pages/index/my" :bgStyle="bgStyle">
|
||||
<pb-layout navbar="inner" tabbar="/pages/index/my" :bgStyle="bgStyle" :leftIcon="''">
|
||||
<view class="my-module ss-p-x-30">
|
||||
<view class="user-info flex align-center justify-between">
|
||||
<view class="flex align-center ss-gap-10">
|
||||
<image
|
||||
class="avatar"
|
||||
:src="userInfo.avatar || '/static/default_avatar.png'"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<image class="avatar" :src="userInfo.avatar || '/static/default_avatar.png'" mode="aspectFill"></image>
|
||||
|
||||
<view class="detail flex flex-column justify-center gap-10">
|
||||
<view class="name ss-font-26">{{ userInfo.nickname }}</view>
|
||||
|
@ -81,7 +77,7 @@ const state = ref({
|
|||
{
|
||||
name: '提现规则',
|
||||
icon: '/static/rule.png',
|
||||
path: '',
|
||||
path: '/pages/public/richtext?title=提现规则',
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -6,16 +6,12 @@
|
|||
:bgStyle="bgStyle"
|
||||
opacityBgUi="bg-white"
|
||||
color="black"
|
||||
:leftIcon="''"
|
||||
>
|
||||
<pb-sticky bgColor="#fff">
|
||||
<pb-tabs :list="tabMaps" :scrollable="false" @change="onTabsChange" :current="state.currentTab" />
|
||||
</pb-sticky>
|
||||
<p-empty
|
||||
v-if="state.pagination.total === 0"
|
||||
icon="/static/order-empty.png"
|
||||
text="暂无订单"
|
||||
bgColor="transparent"
|
||||
/>
|
||||
<p-empty v-if="state.pagination.total === 0" icon="/static/order-empty.png" text="暂无订单" bgColor="transparent" />
|
||||
<view v-if="state.pagination.total > 0">
|
||||
<view
|
||||
class="bg-white order-list-card-box ss-r-10 ss-m-t-14 ss-m-20"
|
||||
|
@ -104,9 +100,7 @@
|
|||
</view>
|
||||
<view class="pay-box ss-m-t-30 ss-flex ss-gap-40 ss-p-b-40 ss-row-right ss-p-r-20">
|
||||
<view class="ss-flex ss-col-center">
|
||||
<view class="discounts-title pay-color"
|
||||
>共 {{ totalNumsPerOrder(order) }} 件商品,总金额:</view
|
||||
>
|
||||
<view class="discounts-title pay-color">共 {{ totalNumsPerOrder(order) }} 件商品,总金额:</view>
|
||||
<view class="discounts-money pay-color"> ¥{{ fen2yuan(totalPricePerOrder(order)) }} </view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
:bgStyle="bgStyle"
|
||||
opacityBgUi="bg-white"
|
||||
color="black"
|
||||
:leftIcon="''"
|
||||
>
|
||||
<view v-if="state.pagination.total > 0" class="goods-list ss-m-t-20">
|
||||
<view class="ss-p-l-20 ss-p-r-20 ss-m-b-20" v-for="item in state.pagination.list" :key="item.id">
|
||||
|
|
|
@ -9,18 +9,46 @@
|
|||
<view class="property-value ss-flex ss-gap-40">
|
||||
<view class="property-value-text">规格值</view>
|
||||
<view class="property-value-value ss-flex ss-gap-10">
|
||||
<view v-for="sitem in item.propertyValues" @tap="chooseProperty(sitem)"
|
||||
:class="['item', sitem.checked ? 'active' : '']">{{ sitem.name }}</view>
|
||||
<view
|
||||
v-for="sitem in item.propertyValues"
|
||||
@tap="chooseProperty(sitem)"
|
||||
@longpress="longPropertyValuePress(sitem)"
|
||||
:class="['item', sitem.checked ? 'active' : '']"
|
||||
>{{ sitem.name }}</view
|
||||
>
|
||||
</view>
|
||||
<view v-if="canEdit" style="height: 60rpx" @click="addPropertyValueClick(item)">
|
||||
<text style="color: #ff3300; font-size: 30px" class="cicon-add-round-o"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<uni-popup ref="inputPropertyValueDialogRef" type="dialog">
|
||||
<uni-popup-dialog
|
||||
mode="input"
|
||||
:title="propertyValueTitle"
|
||||
v-model="inputPropertyValueFormdata.name"
|
||||
placeholder="请输入商品规格"
|
||||
:before-close="true"
|
||||
@confirm="dialogInputPropertyValueConfirm"
|
||||
@close="inputPropertyValueDialogRef.close()"
|
||||
></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { defineProps, defineEmits, ref, computed } from 'vue'
|
||||
import { goodsPropertyList, canEdit } from '../js/sku'
|
||||
import {
|
||||
goodsPropertyList,
|
||||
canEdit,
|
||||
addPropertyValueClick,
|
||||
inputPropertyValueDialogRef,
|
||||
inputPropertyValueFormdata,
|
||||
propertyValueTitle,
|
||||
dialogInputPropertyValueConfirm,
|
||||
longPropertyValuePress,
|
||||
} from '../js/sku'
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
|
|
|
@ -3,14 +3,34 @@
|
|||
<uni-popup type="bottom" ref="propertyListPopupRef" background-color="#fff">
|
||||
<view class="popup-header">
|
||||
<view class="button-cancel" @click="onClosePopup">取消</view>
|
||||
<view style="color: #c0c0c0; font-size: 12px">长按规格修改/删除</view>
|
||||
<view class="button-link" @click="onConfirmPopup">确定</view>
|
||||
</view>
|
||||
<view class="popup-content">
|
||||
<view v-for="item in nowGoodsPropertyList" :key="item.id"
|
||||
:class="['property-item', item.checked ? 'active' : '']" @tap="chooseProperty(item)">
|
||||
<view
|
||||
v-for="item in nowGoodsPropertyList"
|
||||
:key="item.id"
|
||||
:class="['property-item', item.checked ? 'active' : '']"
|
||||
@tap="chooseProperty(item)"
|
||||
@longpress="longPress(item)"
|
||||
>
|
||||
{{ item.name }}
|
||||
</view>
|
||||
<view v-if="canEdit" style="height: 60rpx" @click="addPropertyClick">
|
||||
<text style="color: #ff3300; font-size: 30px" class="cicon-add-round-o"></text>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
<uni-popup ref="inputDialogRef" type="dialog">
|
||||
<uni-popup-dialog
|
||||
mode="input"
|
||||
:title="propertyTitle"
|
||||
v-model="inputFormdata.name"
|
||||
placeholder="请输入商品规格"
|
||||
:before-close="true"
|
||||
@confirm="dialogInputConfirm"
|
||||
@close="inputDialogRef.close()"
|
||||
></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
@ -18,7 +38,9 @@
|
|||
<script setup>
|
||||
import { ref, computed, defineEmits, defineProps, defineExpose } from 'vue'
|
||||
import peach from '@/peach'
|
||||
import { cloneDeep } from 'lodash';
|
||||
import GoodsApi from '@/peach/api/trade/goods'
|
||||
import { getGoodsProperty, canEdit } from '../js/sku'
|
||||
import { cloneDeep } from 'lodash'
|
||||
|
||||
/**
|
||||
* todo 底部高度配置
|
||||
|
@ -51,8 +73,30 @@ function chooseProperty(item) {
|
|||
item.checked = !item.checked
|
||||
}
|
||||
|
||||
function onConfirmPopup() {
|
||||
function longPress(item) {
|
||||
if (canEdit) {
|
||||
// 震动提示
|
||||
uni.vibrateShort()
|
||||
uni.showActionSheet({
|
||||
itemList: ['编辑', '删除'],
|
||||
success: async (res) => {
|
||||
if (res.tapIndex === 0) {
|
||||
propertyTitle.value = '编辑'
|
||||
inputFormdata.value.id = item.id
|
||||
inputFormdata.value.name = item.name
|
||||
inputDialogRef.value.open()
|
||||
}
|
||||
if (res.tapIndex === 1) {
|
||||
await GoodsApi.delProperty({ id: item.id })
|
||||
await getGoodsProperty()
|
||||
nowGoodsPropertyList.value = cloneDeep(props.goodsPropertyList)
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function onConfirmPopup() {
|
||||
let result = nowGoodsPropertyList.value
|
||||
.filter((item) => {
|
||||
if (item.checked) {
|
||||
|
@ -67,13 +111,40 @@ function onConfirmPopup() {
|
|||
}
|
||||
})
|
||||
|
||||
|
||||
peach.$store('trade').selectedProperty = result
|
||||
emit('confirm')
|
||||
emit('update:modelValue', result)
|
||||
onClosePopup()
|
||||
}
|
||||
|
||||
const propertyTitle = ref('新增')
|
||||
const inputDialogRef = ref()
|
||||
const inputFormdata = ref({
|
||||
id: '',
|
||||
name: '',
|
||||
remark: '',
|
||||
})
|
||||
function addPropertyClick() {
|
||||
propertyTitle.value = '新增'
|
||||
inputFormdata.value.name = ''
|
||||
inputDialogRef.value.open()
|
||||
}
|
||||
|
||||
async function dialogInputConfirm(value) {
|
||||
if (!value) {
|
||||
peach.$helper.toast('请输入商品属性')
|
||||
return
|
||||
}
|
||||
if (inputFormdata.value.id) {
|
||||
await GoodsApi.editProperty(inputFormdata.value)
|
||||
} else {
|
||||
await GoodsApi.createProperty(inputFormdata.value)
|
||||
}
|
||||
await getGoodsProperty()
|
||||
inputDialogRef.value.close()
|
||||
nowGoodsPropertyList.value = cloneDeep(props.goodsPropertyList)
|
||||
}
|
||||
|
||||
function onOpen() {
|
||||
nowGoodsPropertyList.value = cloneDeep(props.goodsPropertyList)
|
||||
propertyListPopupRef.value.open('bottom')
|
||||
|
|
|
@ -46,7 +46,6 @@ function pickerProperty() {
|
|||
|
||||
async function onPropertyConfirm(e) {
|
||||
await getGoodsProperty()
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
function onConfirm() {
|
||||
|
@ -270,6 +269,60 @@ function initial() {
|
|||
})
|
||||
}
|
||||
|
||||
const propertyValueTitle = ref('新增')
|
||||
const inputPropertyValueDialogRef = ref()
|
||||
const inputPropertyValueFormdata = ref({
|
||||
id: '',
|
||||
propertyId: '',
|
||||
name: '',
|
||||
remark: '',
|
||||
})
|
||||
function addPropertyValueClick(item) {
|
||||
console.log(item)
|
||||
propertyValueTitle.value = '新增'
|
||||
inputPropertyValueFormdata.value.name = ''
|
||||
inputPropertyValueFormdata.value.propertyId = item.id
|
||||
inputPropertyValueDialogRef.value.open()
|
||||
}
|
||||
|
||||
async function dialogInputPropertyValueConfirm(value) {
|
||||
if (!value) {
|
||||
peach.$helper.toast('请输入商品属性')
|
||||
return
|
||||
}
|
||||
if (inputPropertyValueFormdata.value.id) {
|
||||
await GoodsApi.editPropertyValue(inputPropertyValueFormdata.value)
|
||||
} else {
|
||||
await GoodsApi.createPropertyValue(inputPropertyValueFormdata.value)
|
||||
}
|
||||
await getGoodsProperty()
|
||||
inputPropertyValueDialogRef.value.close()
|
||||
}
|
||||
|
||||
function longPropertyValuePress(item) {
|
||||
console.log(item)
|
||||
if (canEdit.value) {
|
||||
// 震动提示
|
||||
uni.vibrateShort()
|
||||
uni.showActionSheet({
|
||||
itemList: ['编辑', '删除'],
|
||||
success: async (res) => {
|
||||
if (res.tapIndex === 0) {
|
||||
propertyValueTitle.value = '编辑'
|
||||
inputPropertyValueFormdata.value.id = item.id
|
||||
inputPropertyValueFormdata.value.propertyId = item.propertyId
|
||||
inputPropertyValueFormdata.value.name = item.name
|
||||
inputPropertyValueDialogRef.value.open()
|
||||
}
|
||||
if (res.tapIndex === 1) {
|
||||
await GoodsApi.delPropertyValue({ id: item.id })
|
||||
await getGoodsProperty()
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
initial,
|
||||
canEdit,
|
||||
|
@ -287,4 +340,11 @@ export {
|
|||
showPropertyList,
|
||||
goodsPropertyList,
|
||||
changeSubProperty,
|
||||
getGoodsProperty,
|
||||
addPropertyValueClick,
|
||||
dialogInputPropertyValueConfirm,
|
||||
longPropertyValuePress,
|
||||
inputPropertyValueDialogRef,
|
||||
inputPropertyValueFormdata,
|
||||
propertyValueTitle,
|
||||
}
|
||||
|
|
|
@ -89,12 +89,7 @@
|
|||
</view>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="商品关键词" name="keyword" required>
|
||||
<uni-easyinput
|
||||
type="text"
|
||||
v-model="formData.keyword"
|
||||
:disabled="!canEdit"
|
||||
placeholder="请输入商品关键词"
|
||||
/>
|
||||
<uni-easyinput type="text" v-model="formData.keyword" :disabled="!canEdit" placeholder="请输入商品关键词" />
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="商品简介" name="introduction" required>
|
||||
<uni-easyinput
|
||||
|
@ -152,18 +147,13 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<p-picker
|
||||
ref="pickerRef"
|
||||
:mode="pickerMode"
|
||||
:options-cols="optionsCols"
|
||||
@confirm="onRDPickerConfirm"
|
||||
></p-picker>
|
||||
<p-picker ref="pickerRef" :mode="pickerMode" :options-cols="optionsCols" @confirm="onRDPickerConfirm"></p-picker>
|
||||
</pb-layout>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed } from 'vue'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { onLoad, onPageScroll } from '@dcloudio/uni-app'
|
||||
import _ from 'lodash'
|
||||
import GoodsApi from '@/peach/api/trade/goods'
|
||||
import piaoyiEditor from '@/uni_modules/piaoyi-editor/components/piaoyi-editor/piaoyi-editor.vue'
|
||||
|
@ -197,26 +187,22 @@ const pickerRef = ref()
|
|||
const richValues = ref('')
|
||||
const photoUrl = baseUrl + apiPath
|
||||
const richApi = '/infra/file/upload'
|
||||
const richReadOnly = ref(false)
|
||||
const richReadOnly = ref(true)
|
||||
const formData = ref({
|
||||
picUrl: 'http://101.43.181.163:9001/mall-backend/8f11e372520501531d06bfce15ea97bbecead41c5e4a36d15d7e40af85729ff3.png',
|
||||
sliderPicUrls: [
|
||||
'http://101.43.181.163:9001/mall-backend/8f11e372520501531d06bfce15ea97bbecead41c5e4a36d15d7e40af85729ff3.png',
|
||||
'http://101.43.181.163:9001/mall-backend/8f11e372520501531d06bfce15ea97bbecead41c5e4a36d15d7e40af85729ff3.png',
|
||||
'http://101.43.181.163:9001/mall-backend/8f11e372520501531d06bfce15ea97bbecead41c5e4a36d15d7e40af85729ff3.png',
|
||||
],
|
||||
name: '测试商品',
|
||||
categoryId: 91,
|
||||
picUrl: '',
|
||||
sliderPicUrls: [],
|
||||
name: '',
|
||||
categoryId: '',
|
||||
categoryText: '',
|
||||
brandId: 4,
|
||||
keyword: '香酥鸭,但家',
|
||||
deliveryTypes: [3],
|
||||
brandId: '',
|
||||
keyword: '',
|
||||
deliveryTypes: [],
|
||||
deliveryText: '',
|
||||
sort: 0,
|
||||
giveIntegral: 0,
|
||||
virtualSalesCount: 0,
|
||||
subCommissionType: false,
|
||||
introduction: '但家贵阳香酥鸭现榨香酥鸭无任何添加剂香酥鸭但家贵阳香酥鸭现榨香酥鸭无任何添加剂香酥鸭',
|
||||
introduction: '',
|
||||
})
|
||||
|
||||
const rules = {
|
||||
|
@ -494,18 +480,17 @@ onLoad(async (options) => {
|
|||
|
||||
goodsTitle.value = options.title
|
||||
|
||||
// 避免页面自动滚动到富文本框,先设置为只读
|
||||
// richReadOnly.value = true
|
||||
|
||||
/**
|
||||
* todo 滚动一定距离后,修改富文本状态和 canEdit 一致
|
||||
*/
|
||||
|
||||
if (options.id) {
|
||||
getProduct(options.id)
|
||||
peach.$store('trade').detailTag = options.mark
|
||||
}
|
||||
})
|
||||
|
||||
onPageScroll((e) => {
|
||||
if (canEdit.value && e.scrollTop > 200) {
|
||||
richReadOnly.value = false
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</view>
|
||||
<template v-if="formData.specType">
|
||||
<!-- 添加商品 -->
|
||||
<button v-if="canEdit" class="ss-reset-button add-property" @tap="showPropertyList">+添加规格</button>
|
||||
<button v-if="canEdit" class="ss-reset-button add-property" @tap="showPropertyList">选择规格</button>
|
||||
<!-- 商品属性展示 -->
|
||||
<property-detail
|
||||
v-if="propertyList.length > 0"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
<script setup>
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import ArticleApi from '@/peach/api/promotion/article'
|
||||
import { reactive } from 'vue'
|
||||
|
||||
const state = reactive({
|
||||
|
@ -17,15 +18,18 @@ const state = reactive({
|
|||
})
|
||||
|
||||
async function getRichTextContent(id, title) {
|
||||
// 获取文章配置
|
||||
// state.content = data.content;
|
||||
const { code, data } = await ArticleApi.getArticle(id, title)
|
||||
if (code !== 0) {
|
||||
return
|
||||
}
|
||||
state.content = data.content
|
||||
// 标题不一致时,修改标题
|
||||
// if (state.title !== data.title) {
|
||||
// state.title = data.title;
|
||||
// uni.setNavigationBarTitle({
|
||||
// title: state.title,
|
||||
// });
|
||||
// }
|
||||
if (state.title !== data.title) {
|
||||
state.title = data.title
|
||||
uni.setNavigationBarTitle({
|
||||
title: state.title,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
onLoad((options) => {
|
||||
|
@ -35,7 +39,7 @@ onLoad((options) => {
|
|||
title: state.title,
|
||||
})
|
||||
}
|
||||
// getRichTextContent(options.id, options.title);
|
||||
getRichTextContent(options.id, options.title)
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -24,8 +24,14 @@
|
|||
</view>
|
||||
|
||||
<view class="combo ss-m-t-90 ss-m-b-50 ss-p-x-40">
|
||||
<button class="ss-reset-button draw-btn ui-Shadow-Main">购买5000积分/50元</button>
|
||||
<button class="ss-reset-button draw-btn-raw ui-Shadow-Main">购买5000积分/50元</button>
|
||||
<template v-for="(item, index) in state.pointList">
|
||||
<button
|
||||
:class="['ss-reset-button', state.currentIndex === index ? 'draw-btn' : 'draw-btn-raw', 'ui-Shadow-Main']"
|
||||
@click="chooseItemClick(index)"
|
||||
>
|
||||
{{ `购买${item.point}积分/${item.price}元` }}
|
||||
</button>
|
||||
</template>
|
||||
</view>
|
||||
|
||||
<view class="agreement-box ss-flex ss-row-center" :class="{ shake: state.isShaking }">
|
||||
|
@ -47,10 +53,15 @@
|
|||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import PointApi from '@/peach/api/pay/point'
|
||||
import peach from '@/peach'
|
||||
|
||||
const state = ref({
|
||||
isShaking: false,
|
||||
agreeStatus: false,
|
||||
pointList: [],
|
||||
currentIndex: -1,
|
||||
})
|
||||
|
||||
const bgStyle = {
|
||||
|
@ -61,7 +72,44 @@ const bgStyle = {
|
|||
height: '100%',
|
||||
}
|
||||
|
||||
function onProtocol(title) {}
|
||||
function onProtocol() {
|
||||
peach.$router.go('/pages/public/richtext?title=积分须知')
|
||||
}
|
||||
|
||||
function getPointConfig() {
|
||||
PointApi.getPointConfig().then((res) => {
|
||||
if (res.data.packagePoint) state.value.pointList = JSON.parse(res.data.packagePoint)
|
||||
})
|
||||
}
|
||||
|
||||
function onChange() {
|
||||
state.value.agreeStatus = !state.value.agreeStatus
|
||||
}
|
||||
|
||||
function chooseItemClick(index) {
|
||||
if (!state.value.agreeStatus) {
|
||||
state.value.isShaking = true
|
||||
setTimeout(() => {
|
||||
state.value.isShaking = false
|
||||
}, 1000)
|
||||
peach.$helper.toast('请勾选同意积分须知')
|
||||
return
|
||||
}
|
||||
|
||||
state.value.currentIndex = index
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认购买该积分额度?',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
onShow(() => {
|
||||
getPointConfig()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
@ -114,7 +114,7 @@ async function confirmShare() {
|
|||
let user = state.value.userList.find((item) => item.point)
|
||||
|
||||
if (!user) {
|
||||
peach.$helper.toast('请输入要赠送的积分')
|
||||
peach.$helper.toast('请选择需要赠送积分的用户')
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -20,11 +20,11 @@ const PointApi = {
|
|||
})
|
||||
},
|
||||
|
||||
getPointList: (data) => {
|
||||
// 获取积分配置信息
|
||||
getPointConfig: () => {
|
||||
return request({
|
||||
url: '/particulars/point/page-record',
|
||||
url: '/particulars/point/get-config',
|
||||
method: 'get',
|
||||
params: data,
|
||||
})
|
||||
},
|
||||
}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
import request from '@/peach/request'
|
||||
|
||||
export default {
|
||||
// 获得文章详情
|
||||
getArticle: (id, title) => {
|
||||
return request({
|
||||
url: '/promotion/article/get',
|
||||
method: 'GET',
|
||||
params: { id, title },
|
||||
custom: {
|
||||
auth: false,
|
||||
},
|
||||
})
|
||||
},
|
||||
}
|
|
@ -71,6 +71,72 @@ const GoodsApi = {
|
|||
params: data,
|
||||
})
|
||||
},
|
||||
// 创建商品属性项
|
||||
createProperty: (data) => {
|
||||
return request({
|
||||
url: '/product/property/create',
|
||||
method: 'POST',
|
||||
data,
|
||||
custom: {
|
||||
successMsg: '新增成功',
|
||||
},
|
||||
})
|
||||
},
|
||||
// 修改商品属性项
|
||||
editProperty: (data) => {
|
||||
return request({
|
||||
url: '/product/property/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
custom: {
|
||||
successMsg: '修改成功',
|
||||
},
|
||||
})
|
||||
},
|
||||
// 删除商品属性项
|
||||
delProperty: (data) => {
|
||||
return request({
|
||||
url: '/product/property/delete',
|
||||
method: 'DELETE',
|
||||
params: data,
|
||||
custom: {
|
||||
successMsg: '删除成功',
|
||||
},
|
||||
})
|
||||
},
|
||||
// 创建商品属性值
|
||||
createPropertyValue: (data) => {
|
||||
return request({
|
||||
url: '/property/value/create',
|
||||
method: 'POST',
|
||||
data,
|
||||
custom: {
|
||||
successMsg: '新增成功',
|
||||
},
|
||||
})
|
||||
},
|
||||
// 删除商品属性值
|
||||
delPropertyValue: (data) => {
|
||||
return request({
|
||||
url: '/property/value/delete',
|
||||
method: 'DELETE',
|
||||
params: data,
|
||||
custom: {
|
||||
successMsg: '删除成功',
|
||||
},
|
||||
})
|
||||
},
|
||||
// 修改商品属性值
|
||||
editPropertyValue: (data) => {
|
||||
return request({
|
||||
url: '/property/value/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
custom: {
|
||||
successMsg: '修改成功',
|
||||
},
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
export default GoodsApi
|
||||
|
|
|
@ -120,9 +120,9 @@ export function getSmsCode(event, mobile) {
|
|||
}
|
||||
|
||||
AuthUtil.sendSmsCode(mobile, scene).then((res) => {
|
||||
// if (res.code === 0) {
|
||||
// modalStore.lastTimer[event] = dayjs().unix()
|
||||
// }
|
||||
if (res.code === 0) {
|
||||
modalStore.lastTimer[event] = dayjs().unix()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -80,12 +80,6 @@ const useAppStore = defineStore(
|
|||
text: '我的',
|
||||
url: '/pages/index/my',
|
||||
},
|
||||
{
|
||||
activeIconUrl: 'http://mall.yudao.iocoder.cn/static/images/4-002.png',
|
||||
iconUrl: 'http://mall.yudao.iocoder.cn/static/images/4-001.png',
|
||||
text: 'icons',
|
||||
url: '/pages/index/icons',
|
||||
},
|
||||
],
|
||||
style: {
|
||||
activeColor: '#fc4141',
|
||||
|
|
|
@ -1,41 +1,42 @@
|
|||
<template>
|
||||
<view class="uni-popup-dialog">
|
||||
<view class="uni-dialog-title">
|
||||
<text class="uni-dialog-title-text" :class="['uni-popup__'+dialogType]">{{titleText}}</text>
|
||||
<text class="uni-dialog-title-text" :class="['uni-popup__' + dialogType]">{{ titleText }}</text>
|
||||
</view>
|
||||
<view v-if="mode === 'base'" class="uni-dialog-content">
|
||||
<slot>
|
||||
<text class="uni-dialog-content-text">{{content}}</text>
|
||||
<text class="uni-dialog-content-text">{{ content }}</text>
|
||||
</slot>
|
||||
</view>
|
||||
<view v-else class="uni-dialog-content">
|
||||
<slot>
|
||||
<input class="uni-dialog-input" :maxlength="maxlength" v-model="val" :type="inputType"
|
||||
:placeholder="placeholderText" :focus="focus">
|
||||
<input
|
||||
class="uni-dialog-input"
|
||||
:maxlength="maxlength"
|
||||
v-model="val"
|
||||
:type="inputType"
|
||||
:placeholder="placeholderText"
|
||||
:focus="focus"
|
||||
/>
|
||||
</slot>
|
||||
</view>
|
||||
<view class="uni-dialog-button-group">
|
||||
<view class="uni-dialog-button" v-if="showClose" @click="closeDialog">
|
||||
<text class="uni-dialog-button-text">{{closeText}}</text>
|
||||
<text class="uni-dialog-button-text">{{ closeText }}</text>
|
||||
</view>
|
||||
<view class="uni-dialog-button" :class="showClose?'uni-border-left':''" @click="onOk">
|
||||
<text class="uni-dialog-button-text uni-button-color">{{okText}}</text>
|
||||
<view class="uni-dialog-button" :class="showClose ? 'uni-border-left' : ''" @click="onOk">
|
||||
<text class="uni-dialog-button-text uni-button-color">{{ okText }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import popup from '../uni-popup/popup.js'
|
||||
import {
|
||||
initVueI18n
|
||||
} from '@dcloudio/uni-i18n'
|
||||
import messages from '../uni-popup/i18n/index.js'
|
||||
const {
|
||||
t
|
||||
} = initVueI18n(messages)
|
||||
/**
|
||||
import popup from '../uni-popup/popup.js'
|
||||
import { initVueI18n } from '@dcloudio/uni-i18n'
|
||||
import messages from '../uni-popup/i18n/index.js'
|
||||
const { t } = initVueI18n(messages)
|
||||
/**
|
||||
* PopUp 弹出层-对话框样式
|
||||
* @description 弹出层-对话框样式
|
||||
* @tutorial https://ext.dcloud.net.cn/plugin?id=329
|
||||
|
@ -58,64 +59,63 @@
|
|||
* @event {Function} close 点击取消按钮触发
|
||||
*/
|
||||
|
||||
export default {
|
||||
name: "uniPopupDialog",
|
||||
export default {
|
||||
name: 'uniPopupDialog',
|
||||
mixins: [popup],
|
||||
emits: ['confirm', 'close', 'update:modelValue', 'input'],
|
||||
props: {
|
||||
inputType: {
|
||||
type: String,
|
||||
default: 'text'
|
||||
default: 'text',
|
||||
},
|
||||
showClose: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
// #ifdef VUE2
|
||||
value: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
// #endif
|
||||
// #ifdef VUE3
|
||||
modelValue: {
|
||||
type: [Number, String],
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
// #endif
|
||||
|
||||
|
||||
placeholder: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: 'error'
|
||||
default: 'error',
|
||||
},
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'base'
|
||||
default: 'base',
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
content: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
beforeClose: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
cancelText: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
confirmText: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
maxlength: {
|
||||
type: Number,
|
||||
|
@ -124,27 +124,27 @@
|
|||
focus: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dialogType: 'error',
|
||||
val: ""
|
||||
val: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
okText() {
|
||||
return this.confirmText || t("uni-popup.ok")
|
||||
return this.confirmText || t('uni-popup.ok')
|
||||
},
|
||||
closeText() {
|
||||
return this.cancelText || t("uni-popup.cancel")
|
||||
return this.cancelText || t('uni-popup.cancel')
|
||||
},
|
||||
placeholderText() {
|
||||
return this.placeholder || t("uni-popup.placeholder")
|
||||
return this.placeholder || t('uni-popup.placeholder')
|
||||
},
|
||||
titleText() {
|
||||
return this.title || t("uni-popup.title")
|
||||
}
|
||||
return this.title || t('uni-popup.title')
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
type(val) {
|
||||
|
@ -157,7 +157,7 @@
|
|||
},
|
||||
value(val) {
|
||||
if (this.maxlength != -1 && this.mode === 'input') {
|
||||
this.val = val.slice(0, this.maxlength);
|
||||
this.val = val.slice(0, this.maxlength)
|
||||
} else {
|
||||
this.val = val
|
||||
}
|
||||
|
@ -165,13 +165,16 @@
|
|||
val(val) {
|
||||
// #ifdef VUE2
|
||||
// TODO 兼容 vue2
|
||||
this.$emit('input', val);
|
||||
this.$emit('input', val)
|
||||
// #endif
|
||||
// #ifdef VUE3
|
||||
// TODO 兼容 vue3
|
||||
this.$emit('update:modelValue', val);
|
||||
this.$emit('update:modelValue', val)
|
||||
// #endif
|
||||
}
|
||||
},
|
||||
modelValue(newVal, oldVal) {
|
||||
this.val = newVal
|
||||
},
|
||||
},
|
||||
created() {
|
||||
// 对话框遮罩不可点击
|
||||
|
@ -179,9 +182,9 @@
|
|||
// this.popup.closeMask()
|
||||
if (this.mode === 'input') {
|
||||
this.dialogType = 'info'
|
||||
this.val = this.value;
|
||||
this.val = this.value
|
||||
// #ifdef VUE3
|
||||
this.val = this.modelValue;
|
||||
this.val = this.modelValue
|
||||
// #endif
|
||||
} else {
|
||||
this.dialogType = this.type
|
||||
|
@ -210,33 +213,33 @@
|
|||
},
|
||||
close() {
|
||||
this.popup.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.uni-popup-dialog {
|
||||
.uni-popup-dialog {
|
||||
width: 300px;
|
||||
border-radius: 11px;
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-dialog-title {
|
||||
.uni-dialog-title {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
padding-top: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-dialog-title-text {
|
||||
.uni-dialog-title-text {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-dialog-content {
|
||||
.uni-dialog-content {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
|
@ -244,14 +247,14 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-dialog-content-text {
|
||||
.uni-dialog-content-text {
|
||||
font-size: 14px;
|
||||
color: #6C6C6C;
|
||||
}
|
||||
color: #6c6c6c;
|
||||
}
|
||||
|
||||
.uni-dialog-button-group {
|
||||
.uni-dialog-button-group {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
|
@ -259,9 +262,9 @@
|
|||
border-top-color: #f5f5f5;
|
||||
border-top-style: solid;
|
||||
border-top-width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-dialog-button {
|
||||
.uni-dialog-button {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
|
@ -271,24 +274,24 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 45px;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-border-left {
|
||||
.uni-border-left {
|
||||
border-left-color: #f0f0f0;
|
||||
border-left-style: solid;
|
||||
border-left-width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-dialog-button-text {
|
||||
.uni-dialog-button-text {
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-button-color {
|
||||
.uni-button-color {
|
||||
color: #007aff;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-dialog-input {
|
||||
.uni-dialog-input {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
border: 1px #eee solid;
|
||||
|
@ -296,21 +299,21 @@
|
|||
padding: 0 10px;
|
||||
border-radius: 5px;
|
||||
color: #555;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-popup__success {
|
||||
.uni-popup__success {
|
||||
color: #4cd964;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-popup__warn {
|
||||
.uni-popup__warn {
|
||||
color: #f0ad4e;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-popup__error {
|
||||
.uni-popup__error {
|
||||
color: #dd524d;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-popup__info {
|
||||
.uni-popup__info {
|
||||
color: #909399;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue