Commit 31582beb authored by zhengke's avatar zhengke

修改

parent 9c3504e0
<template> <template>
<view class="setPage"> <view class="setPage">
<button class="saveBtn" size='mini' type="primary" @click="save" :disabled="loading">保存</button> <button class="saveBtn" size='mini' type="primary" @click="save(),saveScore()" :disabled="loading">保存</button>
<view class="topBox"> <view class="topBox">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/bg.png" mode="widthFix"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/bg.png" class="bg" />
mode="widthFix"
class="bg"
/>
<view class="headImgBox"></view> <view class="headImgBox"></view>
<view class="nameBox" <view class="nameBox">{{ msg.MallName }}
>{{ msg.MallName }} <u-icon name="edit" style="margin-left: 10rpx" @click="showBox1 = true"></u-icon>
<u-icon
name="edit"
style="margin-left: 10rpx"
@click="showBox1 = true"
></u-icon>
</view> </view>
<u-modal <u-modal v-model="showBox1" :show-cancel-button="true" title="修改商城名称" contentSlot
v-model="showBox1" @confirm="showBox1 = false">
:show-cancel-button="true"
title="修改商城名称"
contentSlot
@confirm="showBox1 = false"
>
<input type="text" v-model="msg.MallName" class="nameInput" /> <input type="text" v-model="msg.MallName" class="nameInput" />
</u-modal> </u-modal>
</view> </view>
...@@ -124,94 +111,55 @@ ...@@ -124,94 +111,55 @@
<view class="boxGroup"> <view class="boxGroup">
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox"> <view class="rightBox">
<view class="name">联系电话</view> <view class="name">联系电话</view>
<input <input type="number" placeholder="联系电话" style="text-align: right" v-model="msg.ContactNumber" />
type="number"
placeholder="联系电话"
style="text-align: right"
v-model="msg.ContactNumber"
/>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox"> <view class="rightBox">
<view class="name">外部客服链接</view> <view class="name">外部客服链接</view>
<input <input type="number" placeholder="外部客服链接" style="text-align: right"
type="number" v-model="msg.OuterServiceLink" />
placeholder="外部客服链接"
style="text-align: right"
v-model="msg.OuterServiceLink"
/>
</view> </view>
</view> </view>
<view class="colTitle">一键导航:</view> <view class="colTitle">一键导航:</view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox"> <view class="rightBox">
<view class="name">详细地址</view> <view class="name">详细地址</view>
<input <input type="number" placeholder="详细地址" style="text-align: right" v-model="msg.Address" />
type="number"
placeholder="详细地址"
style="text-align: right"
v-model="msg.Address"
/>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox"> <view class="rightBox">
<view class="name">经纬度</view> <view class="name">经纬度</view>
<input <input type="number" placeholder="经纬度" style="text-align: right" v-model="msg.LongAndLat"
type="number" disabled />
placeholder="经纬度"
style="text-align: right"
v-model="msg.LongAndLat"
disabled
/>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox"> <view class="rightBox">
<view class="name">地图</view> <view class="name">地图</view>
<button <button size="mini" type="primary" style="float: right; margin: 0" @click="map">
size="mini"
type="primary"
style="float: right; margin: 0"
@click="map"
>
打开地图 打开地图
</button> </button>
</view> </view>
...@@ -219,38 +167,22 @@ ...@@ -219,38 +167,22 @@
<view class="colTitle">跳转小程序:</view> <view class="colTitle">跳转小程序:</view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox"> <view class="rightBox">
<view class="name">小程序APPID</view> <view class="name">小程序APPID</view>
<input <input type="number" placeholder="小程序APPID" style="text-align: right" v-model="msg.MinAppId" />
type="number"
placeholder="小程序APPID"
style="text-align: right"
v-model="msg.MinAppId"
/>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" style="border: none"> <view class="rightBox" style="border: none">
<view class="name">小程序路径</view> <view class="name">小程序路径</view>
<input <input type="number" placeholder="小程序路径" style="text-align: right" v-model="msg.MinUrl" />
type="number"
placeholder="小程序路径"
style="text-align: right"
v-model="msg.MinUrl"
/>
</view> </view>
</view> </view>
</view> </view>
...@@ -258,81 +190,56 @@ ...@@ -258,81 +190,56 @@
<view class="boxGroup"> <view class="boxGroup">
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/money.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/money.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" @click="showBox3 = true"> <view class="rightBox" @click="showBox3 = true">
<view class="name">未支付订单超时时间</view> <view class="name">未支付订单超时时间</view>
<view class="flex-center"> <view class="flex-center">
{{ msg.CancelTime }} {{ msg.CancelTime }}
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
></view> </view>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shouhuo.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shouhuo.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" @click="showBox4 = true"> <view class="rightBox" @click="showBox4 = true">
<view class="name">自动确认收货时间</view> <view class="name">自动确认收货时间</view>
<view class="flex-center"> <view class="flex-center">
{{ msg.AutoReceiving }} {{ msg.AutoReceiving }}
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
></view> </view>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shouhou.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shouhou.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" style="border: none" @click="showBox5 = true"> <view class="rightBox" style="border: none" @click="showBox5 = true">
<view class="name">售后时间</view> <view class="name">售后时间</view>
<view class="flex-center"> <view class="flex-center">
{{ msg.AfterTime }} {{ msg.AfterTime }}
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
></view>
</view> </view>
</view> </view>
<u-modal </view>
v-model="showBox3" <u-modal v-model="showBox3" :show-cancel-button="true" title="未支付订单超时时间" contentSlot
:show-cancel-button="true" @confirm="showBox3 = false">
title="未支付订单超时时间"
contentSlot
@confirm="showBox3 = false"
>
<view class="modelBox3 flex-center"> <view class="modelBox3 flex-center">
<input type="number" class="input3" v-model="msg.CancelTime" />分钟 <input type="number" class="input3" v-model="msg.CancelTime" />分钟
</view> </view>
</u-modal> </u-modal>
<u-modal <u-modal v-model="showBox4" :show-cancel-button="true" title="自动确认收货时间" contentSlot
v-model="showBox4" @confirm="showBox4 = false">
:show-cancel-button="true"
title="自动确认收货时间"
contentSlot
@confirm="showBox4 = false"
>
<view class="modelBox3 flex-center"> <view class="modelBox3 flex-center">
<input type="number" class="input3" v-model="msg.AutoReceiving" /> <input type="number" class="input3" v-model="msg.AutoReceiving" />
</view> </view>
</u-modal> </u-modal>
<u-modal <u-modal v-model="showBox5" :show-cancel-button="true" title="售后时间" contentSlot @confirm="showBox5 = false">
v-model="showBox5"
:show-cancel-button="true"
title="售后时间"
contentSlot
@confirm="showBox5 = false"
>
<view class="modelBox3 flex-center"> <view class="modelBox3 flex-center">
<input type="number" class="input3" v-model="msg.AfterTime" /> <input type="number" class="input3" v-model="msg.AfterTime" />
</view> </view>
...@@ -341,281 +248,265 @@ ...@@ -341,281 +248,265 @@
<view class="boxGroup"> <view class="boxGroup">
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/Payment.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/Payment.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" style="border: none" @click="showBox6 = true"> <view class="rightBox" style="border: none" @click="showBox6 = true">
<view class="name">支付方式</view> <view class="name">支付方式</view>
<view class="flex-center"> <view class="flex-center">
<view class="weeek">{{ payTypeStr }}</view> <view class="weeek">{{ payTypeStr }}</view>
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
></view>
</view> </view>
</view> </view>
<u-modal </view>
v-model="showBox6" <u-modal v-model="showBox6" :show-cancel-button="true" title="支付方式" contentSlot @confirm="showBox6 = false">
:show-cancel-button="true"
title="支付方式"
contentSlot
@confirm="showBox6 = false"
>
<view class="modelBox6 flex-center"> <view class="modelBox6 flex-center">
<view <view v-for="(item, index) in payTypeArr" :key="index" class="flex-between modelBox6Item"
v-for="(item, index) in payTypeArr" :class="item.choose ? 'modelBox6ItemActive' : ''" @click="changePayType(item)">
:key="index"
class="flex-between modelBox6Item"
:class="item.choose ? 'modelBox6ItemActive' : ''"
@click="changePayType(item)"
>
<view class="flex-center"> <view class="flex-center">
<image <image :src="item.img" mode="aspectFit" style="
:src="item.img"
mode="aspectFit"
style="
width: 60rpx; width: 60rpx;
height: 60rpx; height: 60rpx;
border-radius: 6rpx; border-radius: 6rpx;
margin-right: 20rpx; margin-right: 20rpx;
" " />
/>
<view class="modelBox6ItemName">{{ item.name }}</view> <view class="modelBox6ItemName">{{ item.name }}</view>
</view> </view>
<u-icon <u-icon name="success" color="#446dfc" size="30" v-if="item.choose"></u-icon>
name="success"
color="#446dfc"
size="30"
v-if="item.choose"
></u-icon>
</view> </view>
</view> </view>
</u-modal> </u-modal>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/Payment.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/Payment.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" @click="showBox10 = true"> <view class="rightBox" @click="showBox10 = true">
<view class="name">商品面议联系方式</view> <view class="name">商品面议联系方式</view>
<view class="flex-center"> <view class="flex-center">
<view class="weeek">{{ concatTypeStr }}</view> <view class="weeek">{{ concatTypeStr }}</view>
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
></view>
</view> </view>
</view> </view>
<u-modal </view>
v-model="showBox10" <u-modal v-model="showBox10" :show-cancel-button="true" title="商品面议联系方式" contentSlot
:show-cancel-button="true" @confirm="showBox10 = false">
title="商品面议联系方式"
contentSlot
@confirm="showBox10 = false"
>
<view class="modelBox6 flex-center"> <view class="modelBox6 flex-center">
<view <view v-for="(item, index) in contactTypeArr" :key="index" class="flex-between modelBox6Item"
v-for="(item, index) in contactTypeArr" :class="item.choose ? 'modelBox6ItemActive' : ''" @click="changeConcatType(item)">
:key="index"
class="flex-between modelBox6Item"
:class="item.choose ? 'modelBox6ItemActive' : ''"
@click="changeConcatType(item)"
>
<view class="flex-center"> <view class="flex-center">
<image <image :src="item.img" mode="aspectFit" style="
:src="item.img"
mode="aspectFit"
style="
width: 60rpx; width: 60rpx;
height: 60rpx; height: 60rpx;
border-radius: 6rpx; border-radius: 6rpx;
margin-right: 20rpx; margin-right: 20rpx;
" " />
/>
<view class="modelBox6ItemName">{{ item.name }}</view> <view class="modelBox6ItemName">{{ item.name }}</view>
</view> </view>
<u-icon <u-icon name="success" color="#446dfc" size="30" v-if="item.choose"></u-icon>
name="success"
color="#446dfc"
size="30"
v-if="item.choose"
></u-icon>
</view> </view>
</view> </view>
</u-modal> </u-modal>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shop.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shop.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox"> <view class="rightBox">
<view class="name">余额功能</view> <view class="name">余额功能</view>
<u-switch <u-switch v-model="msg.BalanceFun" :active-value="1" :inactive-value="0" @change="BalanceFun">
v-model="msg.BalanceFun" </u-switch>
:active-value="1"
:inactive-value="0"
@change="BalanceFun"
></u-switch>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shop.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shop.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" style="border: none"> <view class="rightBox" style="border: none">
<view class="name">储值卡功能</view> <view class="name">储值卡功能</view>
<u-switch <u-switch v-model="msg.DepositFun" :active-value="1" :inactive-value="0" @change="DepositFun">
v-model="msg.DepositFun" </u-switch>
:active-value="1"
:inactive-value="0"
@change="DepositFun"
></u-switch>
</view> </view>
</view> </view>
</view> </view>
<view class="boxGroup"> <view class="boxGroup">
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/fahuo.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/fahuo.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" @click="showBox7 = true"> <view class="rightBox" @click="showBox7 = true">
<view class="name">发货方式</view> <view class="name">发货方式</view>
<view class="flex-center"> <view class="flex-center">
<view class="weeek">{{ deliveryTypeStr }}</view> <view class="weeek">{{ deliveryTypeStr }}</view>
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
></view> </view>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/dizhi.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/dizhi.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view <view class="rightBox" style="border: none" @click="jumpPage(`/pages/MallMange/address`)">
class="rightBox"
style="border: none"
@click="jumpPage(`/pages/MallMange/address`)"
>
<view class="name">退货地址</view> <view class="name">退货地址</view>
<view class="flex-center"> <view class="flex-center">
<view class="weeek">{{ addrStr }}</view> <view class="weeek">{{ addrStr }}</view>
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
></view>
</view> </view>
</view> </view>
<u-modal </view>
v-model="showBox7" <u-modal v-model="showBox7" :show-cancel-button="true" title="发货方式" contentSlot @confirm="showBox7 = false">
:show-cancel-button="true"
title="发货方式"
contentSlot
@confirm="showBox7 = false"
>
<view class="modelBox6 flex-center"> <view class="modelBox6 flex-center">
<view <view v-for="(item, index) in deliveryTypeArr" :key="index" class="flex-between modelBox6Item"
v-for="(item, index) in deliveryTypeArr" :class="item.choose ? 'modelBox6ItemActive' : ''" @click="changeDeliveryType(item)">
:key="index"
class="flex-between modelBox6Item"
:class="item.choose ? 'modelBox6ItemActive' : ''"
@click="changeDeliveryType(item)"
>
<view class="flex-center"> <view class="flex-center">
<image <image :src="item.img" mode="aspectFit" style="
:src="item.img"
mode="aspectFit"
style="
width: 60rpx; width: 60rpx;
height: 60rpx; height: 60rpx;
border-radius: 6rpx; border-radius: 6rpx;
margin-right: 20rpx; margin-right: 20rpx;
" " />
/>
<view class="modelBox6ItemName">{{ item.name }}</view> <view class="modelBox6ItemName">{{ item.name }}</view>
</view> </view>
<u-icon <u-icon name="success" color="#446dfc" size="30" v-if="item.choose"></u-icon>
name="success"
color="#446dfc"
size="30"
v-if="item.choose"
></u-icon>
</view> </view>
</view> </view>
</u-modal> </u-modal>
</view> </view>
<view class="boxGroup"> <view class="boxGroup">
<view class="colTitle">添加到我的小程序:</view>
<view class="boxItem">
<view class="leftBox flex-center">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shop.png"
mode="widthFix" style="width: 100%" />
</view>
<view class="rightBox" style="border: none">
<view class="name">开关</view>
<u-switch v-model="msg.MinSwitch" :active-value="1" :inactive-value="0"></u-switch>
</view>
</view>
<template v-if="msg.MinSwitch">
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/jizhi.png" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode="widthFix" mode="widthFix" style="width: 100%" />
style="width: 100%" </view>
/> <view class="rightBox">
<view class="name">背景透明度</view>
<input type="number" placeholder="背景透明度" style="text-align: right"
v-model="msg.MinBackClarity" />
</view>
</view>
<view class="boxItem">
<view class="leftBox flex-center">
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode="widthFix" style="width: 100%" />
</view>
<view class="rightBox">
<view class="name">背景框圆角</view>
<input type="number" placeholder="背景框圆角" style="text-align: right"
v-model="msg.MinBackCircularBead" />
</view>
</view>
<view class="boxItem">
<view class="leftBox flex-center">
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode="widthFix" style="width: 100%" />
</view>
<view class="rightBox">
<view class="name">提示文本内容</view>
<input type="text" placeholder="提示文本内容" style="text-align: right" v-model="msg.MinTips" />
</view>
</view>
<view class="boxItem">
<view class="leftBox flex-center">
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode="widthFix" style="width: 100%" />
</view>
<view class="rightBox">
<view class="name">图标颜色</view>
<u-radio-group v-model="msg.MinIcoColor" :size="30">
<u-radio shape="circle" :name="1">白色</u-radio>
<u-radio shape="circle" :name="2">黑色</u-radio>
</u-radio-group>
</view>
</view>
</template>
<view class="colTitle">转发小程序:</view>
<view class="boxItem">
<view class="leftBox flex-center">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode="widthFix" style="width: 100%" />
</view>
<view class="rightBox">
<view class="name">转发标题</view>
<input type="text" placeholder="提示文本内容" style="text-align: right" v-model="msg.MinShareTitle" />
</view>
</view>
<view class="colTitle">首页购买记录框:</view>
<view class="boxItem">
<view class="leftBox flex-center">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shop.png"
mode="widthFix" style="width: 100%" />
</view>
<view class="rightBox" style="border: none">
<view class="name">开关</view>
<u-switch v-model="msg.BuySwitch" :active-value="1" :inactive-value="0"></u-switch>
</view>
</view>
<view class="boxItem">
<view class="leftBox flex-center">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shop.png"
mode="widthFix" style="width: 100%" />
</view>
<view class="rightBox" style="border: none">
<view class="name">轮播订单数</view>
<input type="number" style="text-align: right" v-model="msg.CarouselOrder" />
</view>
</view>
</view>
<view class="boxGroup">
<view class="boxItem">
<view class="leftBox flex-center">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/jizhi.png"
mode="widthFix" style="width: 100%" />
</view> </view>
<view class="rightBox" @click="showBox8 = true"> <view class="rightBox" @click="showBox8 = true">
<view class="name">积分抵扣</view> <view class="name">积分抵扣</view>
<view class="flex-center" <view class="flex-center">{{ ScoreMsg.IntegralNum }}积分抵扣一元
>{{ msg.integral }}积分抵扣一元 <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon </view>
></view>
</view> </view>
</view> </view>
<view class="boxItem"> <view class="boxItem">
<view class="leftBox flex-center"> <view class="leftBox flex-center">
<image <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/jifenguize.png"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/jifenguize.png" mode="widthFix" style="width: 100%" />
mode="widthFix"
style="width: 100%"
/>
</view> </view>
<view class="rightBox" style="border: none" @click="showBox9 = true"> <view class="rightBox" style="border: none" @click="showBox9 = true">
<view class="name">积分使用规则</view> <view class="name">积分使用规则</view>
<view class="flex-center" <view class="flex-center">{{
>{{ ScoreMsg.Explain && ScoreMsg.Explain != "" ? "已填写" : "未填写"
msg.IntegralRule && msg.IntegralRule != "" ? "已填写" : "未填写"
}} }}
<u-icon name="arrow" style="margin-left: 10rpx"></u-icon <u-icon name="arrow" style="margin-left: 10rpx"></u-icon>
></view>
</view> </view>
</view> </view>
<u-modal </view>
v-model="showBox8" <u-modal v-model="showBox8" :show-cancel-button="true" title="积分抵扣" contentSlot @confirm="showBox8 = false">
:show-cancel-button="true"
title="积分抵扣"
contentSlot
@confirm="showBox8 = false"
>
<view class="modelBox8 flex-center"> <view class="modelBox8 flex-center">
<input <input type="number" class="input8" v-model="ScoreMsg.IntegralNum" />积分抵扣一元
type="number"
class="input8"
v-model="msg.integral"
/>积分抵扣一元
</view> </view>
</u-modal> </u-modal>
<u-modal <u-modal v-model="showBox9" :show-cancel-button="true" title="积分使用规则" contentSlot
v-model="showBox9" @confirm="showBox9 = false">
:show-cancel-button="true"
title="积分使用规则"
contentSlot
@confirm="showBox9 = false"
>
<view class="modelBox8 flex-center"> <view class="modelBox8 flex-center">
<textarea v-model="msg.IntegralRule" class="modelBoxItem" /> <textarea v-model="ScoreMsg.Explain" class="modelBoxItem" />
</view> </view>
</u-modal> </u-modal>
</view> </view>
...@@ -623,14 +514,14 @@ ...@@ -623,14 +514,14 @@
</view> </view>
</template> </template>
<script> <script>
import tabbar from "./components/tabbar.vue"; import tabbar from "./components/tabbar.vue";
export default { export default {
components: { components: {
tabbar, tabbar,
}, },
data() { data() {
return { return {
loading:false, loading: false,
showBox1: false, showBox1: false,
username: "", username: "",
showBox2: false, showBox2: false,
...@@ -671,54 +562,58 @@ export default { ...@@ -671,54 +562,58 @@ export default {
MinShareIco: "", //选择图标 MinShareIco: "", //选择图标
BuySwitch: 0, //首页购买记录框开关 BuySwitch: 0, //首页购买记录框开关
CarouselOrder: 0, //轮播订单数 CarouselOrder: 0, //轮播订单数
ListShopCar: 0, ListShopCar: 0, //购物车
ListBuyCount: 1, ListBuyCount: 1, //已售量
ListName: 1, ListName: 1, //商品名称
DetailsComment: 1, DetailsComment: 1, //商城评论
DetailsLineationPrice: 1, DetailsLineationPrice: 1, //划线价
DetailsMemberPrice: 1, DetailsMemberPrice: 1, //普通用户会员价
DetailsVipMemberPrice: 1, DetailsVipMemberPrice: 1, //会员用户会员价
DeatilsExpress: 1, DeatilsExpress: 1, //快递
DetailsBuyNum: 1, DetailsBuyNum: 1, //已售量
DetailsSharePrice: 1, DetailsSharePrice: 1, //分销价
DetailsVideo: 1, DetailsVideo: 1, //商品视频特色样式开关
OtherNoShare: 1, OtherNoShare: 1, //非分销商分销中心显示
OtherIndexMoblie: 0, OtherIndexMoblie: 0, //首页授权手机号
OtherManualMobile: 1, OtherManualMobile: 1, //手动授权手机号
OtherTencent: 0, OtherTencent: 0, //关联公众号组件
OtherMemerLevel: 0, OtherMemerLevel: 0, //会员等级标识
OtherMustAddress: 0, OtherMustAddress: 0, //定位地址是否必填
OtherApplyShare: 0, OtherApplyShare: 0, //申请分销商提示弹窗
SuspendBtn: 0, SuspendBtn: 0, //启用悬浮按钮
BackTopBtn: 1, BackTopBtn: 1, //启用回到顶部悬浮按钮
CarSuspendBtn: 0, CarSuspendBtn: 0, //启用购物车悬浮按钮
SellOutIcoSwitch: 1, SellOutIcoSwitch: 1, //售罄图标显示开关
SellOutDefaultIco: 0, SellOutDefaultIco: 0, //是否使用默认图标
GoodsNormalPic: "", GoodsNormalPic: "", //商品图
GoodsZoomPic: "", GoodsZoomPic: "", //商品图4:3尺寸
SuspendStyle: 1, SuspendStyle: 1, //悬浮按钮样式
UnfoldIco: 0, UnfoldIco: 0, //展开图标
PackUpIco: "", PackUpIco: "", //收起图标
OnlineService: 0, OnlineService: 0, //在线客服开关
OnlineServiceIco: "", OnlineServiceIco: "", //建议尺寸:100 * 100
BackTopNavigation: 0, BackTopNavigation: 0, //返回首页导航开关
BackTopNavigationIco: "", BackTopNavigationIco: "", //返回首页导航图标
OneCall: 0, OneCall: 0, //一键拨号开关
OneCallIco: "", OneCallIco: "", //一键拨号开关图标
ServiceOutLink: 0, ServiceOutLink: 0, //客服外链开关
ServiceOutLinkIco: "", ServiceOutLinkIco: "", //客服外链开关图标
ShortcutNavigation: 0, ShortcutNavigation: 0, //快捷导航开关
ShortcutNavigationIco: "", ShortcutNavigationIco: "", //快捷导航开关图标
TurnMini: 0, TurnMini: 0, //跳转小程序开关
TurnMiniIco: "", TurnMiniIco: "", //跳转小程序开关图标
Custom: 0, Custom: 0, //自定义按钮
TurnLink: "", TurnLink: "", //跳转链接
TurnIco: 0, TurnIco: 0, //跳转链接图标
LookWeChatTimes: 0, //每月可查看微信次数 LookWeChatTimes: 0, //每月可查看微信次数
IsOpenGuide: 1, //是否开启引导页 IsOpenGuide: 1, //是否开启引导页
}, },
businessTimeList: [ ScoreMsg: {
{ ID: 0,
IntegralNum: 0,
Explain: '',
},
businessTimeList: [{
name: "全天24小时", name: "全天24小时",
key: 1, key: 1,
}, },
...@@ -728,8 +623,7 @@ export default { ...@@ -728,8 +623,7 @@ export default {
}, },
], ],
businessKey: 1, businessKey: 1,
weekArr: [ weekArr: [{
{
name: "周一", name: "周一",
key: 1, key: 1,
choose: false, choose: false,
...@@ -767,8 +661,7 @@ export default { ...@@ -767,8 +661,7 @@ export default {
], ],
weekStr: "", weekStr: "",
timeArr: [], timeArr: [],
payTypeArr: [ payTypeArr: [{
{
Id: 1, Id: 1,
img: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/cloudypay.png", img: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/cloudypay.png",
name: "线上支付", name: "线上支付",
...@@ -812,8 +705,7 @@ export default { ...@@ -812,8 +705,7 @@ export default {
deliveryTypeStr: "快递配送", deliveryTypeStr: "快递配送",
addrStr: "退货地址", addrStr: "退货地址",
// 商品面议联系方式 // 商品面议联系方式
contactTypeArr: [ contactTypeArr: [{
{
Id: 1, Id: 1,
img: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/cloudypay.png", img: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/cloudypay.png",
name: "在线客服", name: "在线客服",
...@@ -910,24 +802,35 @@ export default { ...@@ -910,24 +802,35 @@ export default {
} }
}, },
save() { save() {
this.loading=true uni.showLoading({
title: '保存中'
});
this.requestAdmin( this.requestAdmin(
"/api/MallBase/AddOrUpdateMallBase", "/api/MallBase/AddOrUpdateMallBase",
this.msg, this.msg,
(res) => { (res) => {
this.loading=false uni.hideLoading();
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon:'none' icon: 'none'
}); });
this.getSetup(); this.getSetup();
} }
); );
}, },
saveScore() {
this.requestAdmin("/api/Integral//AddOrUpdateIntegralSettings", this.ScoreMsg, res => {
if (res.resultCode == 1) {
this.getIntegralSettingsList();
} else {
}
})
},
map() { map() {
let that = this; let that = this;
uni.chooseLocation({ uni.chooseLocation({
success: function (res) { success: function(res) {
that.msg.Address = res.address; that.msg.Address = res.address;
that.msg.LongAndLat = res.latitude + "," + res.longitude; that.msg.LongAndLat = res.latitude + "," + res.longitude;
}, },
...@@ -969,11 +872,26 @@ export default { ...@@ -969,11 +872,26 @@ export default {
.join("、"); .join("、");
}); });
}, },
BalanceFun(e){ getIntegralSettingsList() {
this.msg.BalanceFun=Number(e) this.requestAdmin("/api/Integral//GetIntegralSettingsList", {}, res => {
console.log(res);
if (res.resultCode == 1) {
this.ScoreMsg.ID = res.data.ID
this.ScoreMsg.IntegralNum = res.data.IntegralNum
this.ScoreMsg.Explain = res.data.Explain
} else {
uni.showToast({
title: res.message,
icon: 'none'
});
}
})
},
BalanceFun(e) {
this.msg.BalanceFun = Number(e)
}, },
DepositFun(e){ DepositFun(e) {
this.msg.DepositFun=Number(e) this.msg.DepositFun = Number(e)
}, },
}, },
onLoad() { onLoad() {
...@@ -981,32 +899,38 @@ export default { ...@@ -981,32 +899,38 @@ export default {
title: "商城设置", title: "商城设置",
}); });
this.getSetup(); this.getSetup();
this.getIntegralSettingsList();
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.flex-center { .flex-center {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.flex-between {
.flex-between {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.setPage {
.setPage {
min-height: 100vh; min-height: 100vh;
background-color: #f7f7f7; background-color: #f7f7f7;
box-sizing: border-box; box-sizing: border-box;
padding-bottom: 100rpx; padding-bottom: 100rpx;
} }
.topBox {
.topBox {
position: relative; position: relative;
margin-bottom: 20rpx; margin-bottom: 20rpx;
.bg { .bg {
width: 100%; width: 100%;
} }
.headImgBox { .headImgBox {
position: absolute; position: absolute;
top: 30rpx; top: 30rpx;
...@@ -1020,6 +944,7 @@ export default { ...@@ -1020,6 +944,7 @@ export default {
overflow: hidden; overflow: hidden;
background-color: #f00; background-color: #f00;
} }
.nameBox { .nameBox {
width: 700rpx; width: 700rpx;
height: 200rpx; height: 200rpx;
...@@ -1035,22 +960,26 @@ export default { ...@@ -1035,22 +960,26 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
} }
.boxGroup {
.boxGroup {
width: 700rpx; width: 700rpx;
padding: 0 30rpx; padding: 0 30rpx;
margin: 20rpx auto; margin: 20rpx auto;
background-color: #fff; background-color: #fff;
border-radius: 10rpx; border-radius: 10rpx;
.boxItem { .boxItem {
height: 100rpx; height: 100rpx;
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
.leftBox { .leftBox {
width: 50rpx; width: 50rpx;
margin-right: 20rpx; margin-right: 20rpx;
} }
.rightBox { .rightBox {
width: 560rpx; width: 560rpx;
height: 100rpx; height: 100rpx;
...@@ -1058,11 +987,13 @@ export default { ...@@ -1058,11 +987,13 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.name { .name {
font-size: 28rpx; font-size: 28rpx;
color: #606266; color: #606266;
} }
} }
.radioGroup { .radioGroup {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -1070,25 +1001,30 @@ export default { ...@@ -1070,25 +1001,30 @@ export default {
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
} }
/deep/.u-radio {
/deep/.u-radio {
margin-right: 60rpx; margin-right: 60rpx;
} }
/deep/.u-radio__icon-wrap {
/deep/.u-radio__icon-wrap {
margin-right: 20rpx; margin-right: 20rpx;
} }
/deep/.u-model {
/deep/.u-model {
border-radius: 10rpx; border-radius: 10rpx;
} }
.weeek {
.weeek {
max-width: 260rpx; max-width: 260rpx;
white-space: nowrap; white-space: nowrap;
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
font-size: 28rpx; font-size: 28rpx;
color: #606266; color: #606266;
} }
.nameInput {
.nameInput {
width: 560rpx; width: 560rpx;
height: 70rpx; height: 70rpx;
border-radius: 10rpx; border-radius: 10rpx;
...@@ -1096,8 +1032,9 @@ export default { ...@@ -1096,8 +1032,9 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: 0 20rpx; padding: 0 20rpx;
background-color: #f7f7f7; background-color: #f7f7f7;
} }
.modelBox2 {
.modelBox2 {
width: 560rpx; width: 560rpx;
border-radius: 10rpx; border-radius: 10rpx;
margin: 20rpx auto; margin: 20rpx auto;
...@@ -1106,6 +1043,7 @@ export default { ...@@ -1106,6 +1043,7 @@ export default {
background-color: #fff; background-color: #fff;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.modelBox2Item { .modelBox2Item {
width: 160rpx; width: 160rpx;
height: 60rpx; height: 60rpx;
...@@ -1118,17 +1056,21 @@ export default { ...@@ -1118,17 +1056,21 @@ export default {
align-items: center; align-items: center;
margin: 10rpx 20rpx 10rpx 0; margin: 10rpx 20rpx 10rpx 0;
} }
& .modelBox2Item:nth-child(3n) { & .modelBox2Item:nth-child(3n) {
margin-right: 0; margin-right: 0;
} }
.modelBox2ItemActive { .modelBox2ItemActive {
border-color: #111 !important; border-color: #111 !important;
color: #111; color: #111;
} }
} }
.modelBox3 {
.modelBox3 {
margin: 40rpx auto; margin: 40rpx auto;
font-size: 26rpx; font-size: 26rpx;
.input3 { .input3 {
width: 280rpx; width: 280rpx;
height: 80rpx; height: 80rpx;
...@@ -1137,11 +1079,13 @@ export default { ...@@ -1137,11 +1079,13 @@ export default {
padding: 0 30rpx; padding: 0 30rpx;
font-size: 26rpx; font-size: 26rpx;
} }
} }
.modelBox6 {
.modelBox6 {
margin: 30rpx auto; margin: 30rpx auto;
font-size: 26rpx; font-size: 26rpx;
flex-wrap: wrap; flex-wrap: wrap;
.modelBox6Item { .modelBox6Item {
width: 550rpx; width: 550rpx;
height: 100rpx; height: 100rpx;
...@@ -1149,17 +1093,21 @@ export default { ...@@ -1149,17 +1093,21 @@ export default {
margin: 10rpx 0; margin: 10rpx 0;
border: 2rpx solid #ccced5; border: 2rpx solid #ccced5;
padding: 0 50rpx; padding: 0 50rpx;
.modelBox6ItemName { .modelBox6ItemName {
font-size: 30rpx; font-size: 30rpx;
} }
} }
.modelBox6ItemActive { .modelBox6ItemActive {
border-color: #446dfc; border-color: #446dfc;
} }
} }
.modelBox8 {
.modelBox8 {
margin: 40rpx auto; margin: 40rpx auto;
font-size: 26rpx; font-size: 26rpx;
.input8 { .input8 {
width: 200rpx; width: 200rpx;
height: 80rpx; height: 80rpx;
...@@ -1168,6 +1116,7 @@ export default { ...@@ -1168,6 +1116,7 @@ export default {
padding: 0 30rpx; padding: 0 30rpx;
font-size: 26rpx; font-size: 26rpx;
} }
.modelBoxItem { .modelBoxItem {
width: 550rpx; width: 550rpx;
border: 2rpx solid #999; border: 2rpx solid #999;
...@@ -1175,19 +1124,22 @@ export default { ...@@ -1175,19 +1124,22 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: 20rpx; padding: 20rpx;
} }
} }
.colTitle {
.colTitle {
line-height: 100rpx; line-height: 100rpx;
} }
::-webkit-scrollbar {
::-webkit-scrollbar {
/*隐藏滚轮*/ /*隐藏滚轮*/
display: none; display: none;
} }
.saveBtn{
.saveBtn {
margin: 0; margin: 0;
position: fixed; position: fixed;
top: 20rpx; top: 20rpx;
right: 20rpx; right: 20rpx;
z-index: 5; z-index: 5;
} }
</style> </style>
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