|
|
@@ -35,10 +35,10 @@
|
|
|
|
|
|
<view class="scroll-middle_bx">
|
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view">
|
|
|
- <div v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
|
|
|
+ <view v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
|
|
|
<text v-if="item.classId=='-1' || item.classId=='-3' || item.classId=='-2'" style="color: red;font-weight:bold;text-align: center;">{{ item.className || "" }}</text>
|
|
|
<text v-else style="text-align: center;">{{ item.className }}</text>
|
|
|
- </div>
|
|
|
+ </view>
|
|
|
<view style="height:150upx"></view>
|
|
|
</scroll-view>
|
|
|
<scroll-view scroll-y class="right-box" :scroll-into-view="scroll_into_view" scroll-with-animation="true"
|
|
|
@@ -49,49 +49,47 @@
|
|
|
<block v-if="!$util.isEmpty(filterProductInfo)">
|
|
|
<view class="item_list_bx selectAll" v-for="(classItem, classIndex) in filterProductInfo" :key="classIndex" :id="`class_${classIndex}`">
|
|
|
<view class="item_list_title">{{ classItem.className }}</view>
|
|
|
- <template v-for="(productItem, productIndex) in classItem.child">
|
|
|
- <view style="position: relative;" :class="[productItem.variety == 1 ? 'big-box' : (productItem.presell == 1 || Number(productItem.reachNum)>0) ? 'middle-box' : 'box']" :id="`class_${classItem.classId}_${productItem.id}`" :key="productIndex">
|
|
|
- <Commondity v-if="classItem.isActive"
|
|
|
- :info="productItem"
|
|
|
- :offVerifyRepertory="true"
|
|
|
- :bigCount="getSelectItemById(productItem.id, classItem.classId).bigCount"
|
|
|
- :smallCount="getSelectItemById(productItem.id, classItem.classId).smallCount"
|
|
|
- :discount.sync="ghsInfo.giveDiscount"
|
|
|
- :showStock.sync="ghsInfo.showStock"
|
|
|
- :showSold.sync="ghsInfo.showSold"
|
|
|
- :shopId.sync="ghsInfo.shopId"
|
|
|
- @customNum="customNum"
|
|
|
- @add="addEvent"
|
|
|
- @addOneEvent="addCustomNumEvent"
|
|
|
- @del="delEvent"
|
|
|
- @showBigCover="showBigCover"
|
|
|
- @goToSpecialVariety="goToSpecialVariety"
|
|
|
- ></Commondity>
|
|
|
- <view v-if="productItem.variety && productItem.variety == 1" class="has-color" @click="goToSpecialVariety(productItem)">
|
|
|
- <view class="has-color-button">选颜色</view>
|
|
|
- </view>
|
|
|
- <view v-if="productItem.presell == 1 || Number(productItem.reachNum)>0" style="position:absolute;top:145upx;font-size:26upx;color:#3385ff;white-space: normal;word-wrap: break-word;">
|
|
|
- <text style="font-weight:bold;" v-if="Number(productItem.reachNum)>0">
|
|
|
- 满{{productItem.reachNum}}扎,每扎优惠 ¥{{parseFloat(productItem.reachNumDiscount)}}<block v-if="productItem.presell == 0">(提交订单后优惠)</block>
|
|
|
- </text>
|
|
|
- <block v-if="productItem.presell && productItem.presell == 1"><block v-if="Number(productItem.reachNum)>0">,</block>到货日期
|
|
|
- <block v-if="!$util.isEmpty(productItem.presellDateShow)">
|
|
|
- <text v-for="(dateItem, dateIndex) in productItem.presellDateShow" :key="dateIndex" style="">{{dateItem}}<text v-if="dateIndex!=productItem.presellDateShow.length-1">,</text></text>
|
|
|
- </block>
|
|
|
- </block>
|
|
|
- </view>
|
|
|
- <view v-else style="position:absolute;top:145upx;font-size:24upx;color:#3385ff;white-space: normal;word-wrap: break-word;">
|
|
|
- <block v-if="productItem.myDisplay == 1">
|
|
|
- <text v-if="productItem.myLack == 0" style="color:green;font-weight:normal;">
|
|
|
- 我剩{{productItem.myStock?productItem.myStock:0}}<text style="margin-left:9upx;" v-if="productItem.myOnStock>0">路上{{productItem.myOnStock?productItem.myOnStock:0}}</text>
|
|
|
- </text>
|
|
|
- <text v-else style="color:#3385ff;font-weight:bold;">
|
|
|
- 我剩{{productItem.myStock?productItem.myStock:0}}<text style="margin-left:9upx;" v-if="productItem.myOnStock>0">路上{{productItem.myOnStock?productItem.myOnStock:0}}</text>
|
|
|
- </text>
|
|
|
+ <view v-for="(productItem, productIndex) in classItem.child" :key="productIndex" style="position: relative;" :class="[productItem.variety == 1 ? 'big-box' : (productItem.presell == 1 || Number(productItem.reachNum)>0) ? 'middle-box' : 'box']" :id="`class_${classItem.classId}_${productItem.id}`">
|
|
|
+ <Commondity v-if="classItem.isActive"
|
|
|
+ :info="productItem"
|
|
|
+ :offVerifyRepertory="true"
|
|
|
+ :bigCount="getSelectItemById(productItem.id, classItem.classId).bigCount"
|
|
|
+ :smallCount="getSelectItemById(productItem.id, classItem.classId).smallCount"
|
|
|
+ :discount.sync="ghsInfo.giveDiscount"
|
|
|
+ :showStock.sync="ghsInfo.showStock"
|
|
|
+ :showSold.sync="ghsInfo.showSold"
|
|
|
+ :shopId.sync="ghsInfo.shopId"
|
|
|
+ @customNum="customNum"
|
|
|
+ @add="addEvent"
|
|
|
+ @addOneEvent="addCustomNumEvent"
|
|
|
+ @del="delEvent"
|
|
|
+ @showBigCover="showBigCover"
|
|
|
+ @goToSpecialVariety="goToSpecialVariety"
|
|
|
+ ></Commondity>
|
|
|
+ <view v-if="productItem.variety && productItem.variety == 1" class="has-color" @click="goToSpecialVariety(productItem)">
|
|
|
+ <view class="has-color-button">选颜色</view>
|
|
|
+ </view>
|
|
|
+ <view v-if="productItem.presell == 1 || Number(productItem.reachNum)>0" style="position:absolute;top:145upx;font-size:26upx;color:#3385ff;white-space: normal;word-wrap: break-word;">
|
|
|
+ <text style="font-weight:bold;" v-if="Number(productItem.reachNum)>0">
|
|
|
+ 满{{productItem.reachNum}}扎,每扎优惠 ¥{{parseFloat(productItem.reachNumDiscount)}}<block v-if="productItem.presell == 0">(提交订单后优惠)</block>
|
|
|
+ </text>
|
|
|
+ <block v-if="productItem.presell && productItem.presell == 1"><block v-if="Number(productItem.reachNum)>0">,</block>到货日期
|
|
|
+ <block v-if="!$util.isEmpty(productItem.presellDateShow)">
|
|
|
+ <text v-for="(dateItem, dateIndex) in productItem.presellDateShow" :key="dateIndex">{{dateItem}}<text v-if="dateIndex!=productItem.presellDateShow.length-1">,</text></text>
|
|
|
</block>
|
|
|
- </view>
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+ <view v-else style="position:absolute;top:145upx;font-size:24upx;color:#3385ff;white-space: normal;word-wrap: break-word;">
|
|
|
+ <block v-if="productItem.myDisplay == 1">
|
|
|
+ <text v-if="productItem.myLack == 0" style="color:green;font-weight:normal;">
|
|
|
+ 我剩{{productItem.myStock?productItem.myStock:0}}<text style="margin-left:9upx;" v-if="productItem.myOnStock>0">路上{{productItem.myOnStock?productItem.myOnStock:0}}</text>
|
|
|
+ </text>
|
|
|
+ <text v-else style="color:#3385ff;font-weight:bold;">
|
|
|
+ 我剩{{productItem.myStock?productItem.myStock:0}}<text style="margin-left:9upx;" v-if="productItem.myOnStock>0">路上{{productItem.myOnStock?productItem.myOnStock:0}}</text>
|
|
|
+ </text>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
- </template>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
@@ -118,21 +116,8 @@
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
|
|
|
- <modal-module :show="showInvite" color="#333" :size="32" padding="60upx 30upx" width="98%" :button="[]">
|
|
|
- <template slot="customContent">
|
|
|
- <view>
|
|
|
- <view style="margin-bottom:60upx;margin-top:20upx;font-size:30upx;">邀请新朋友下单,您得<text style="color:red;font-weight:bold;">{{parseFloat(ghsInfo.tjFlAmount)}}元</text>红包<text v-if="ghsInfo.xrFl==1">,朋友得<text style="color:red;font-weight:bold;">{{parseFloat(ghsInfo.xrFlAmount)}}元</text>红包</text></view>
|
|
|
- <view>
|
|
|
- <button style="padding-left:88upx;padding-right:88upx;" class="admin-button-com default big" @click="closeInvite()">取消</button>
|
|
|
- <button style="padding-left:160upx;padding-right:160upx;margin-left:30upx;" class="admin-button-com blue big" @click="closeInvite()" open-type="share">邀请</button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </modal-module>
|
|
|
-
|
|
|
<FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" @showCartItem="showCartItem"></FooterCart>
|
|
|
<wangCg :notOpenShop.sync="notOpenShop" :pass.sync="pass" @bthClick="goToCg()" @refresh="toRefresh" @contactShop="contactShop()"></wangCg>
|
|
|
- <sel-popup :show="popupShow" :info="infoData" @close="hidePopup" />
|
|
|
<app-activily-coupon :show.sync="isNewCustom" :info="newCustomGift" :ghsId="ghsId" />
|
|
|
|
|
|
<view v-if="cartItemShow == true" style="position: fixed;z-index: 190;top: 0;left: 0;width: 100vw;height: 100vh;background: rgba(0, 0, 0, 0.6);color: #fff;" @click="hideCartItem()">
|
|
|
@@ -143,7 +128,7 @@
|
|
|
</view>
|
|
|
<view class="commodity-list">
|
|
|
<view class="commodity-item" v-for="(item, index) in selectList" :key="index">
|
|
|
- <image class="item-icon" :src="item.cover" alt="" />
|
|
|
+ <image class="item-icon" :src="item.cover" />
|
|
|
<view class="item-info">
|
|
|
<view class="info-line">
|
|
|
<text class="item-name">{{ item.name }}</text>
|
|
|
@@ -156,12 +141,12 @@
|
|
|
</view>
|
|
|
<view style="text-align:right;">
|
|
|
<view class="open-bx" >
|
|
|
- <i class="iconfont iconjian" @click.stop="delItem(item)" v-if="item.bigCount > 0 || item.smallCount > 0"></i>
|
|
|
+ <text class="iconfont iconjian" @click.stop="delItem(item)" v-if="item.bigCount > 0 || item.smallCount > 0"></text>
|
|
|
<text class="num" @click.stop="customUpdate(item)">
|
|
|
<text v-if="item.bigCount > 0" style="font-weight:bold;color:#3385ff;">{{ item.bigCount }}</text>
|
|
|
<text v-if="item.smallCount > 0"><text v-if="item.bigCount > 0">/</text>{{ item.smallCount }}</text>
|
|
|
</text>
|
|
|
- <i class="iconfont iconzeng" @click.stop="addAction(item)"></i>
|
|
|
+ <text class="iconfont iconzeng" @click.stop="addAction(item)"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -212,33 +197,24 @@
|
|
|
|
|
|
<script>
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
-import AppTabs from "@/components/plugin/tabs";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import Commondity from "./components/item";
|
|
|
-import PxClassCommondity from "@/components/module/app-pxClass-commodity";
|
|
|
import FooterCart from "@/components/module/app-footer-cart";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
import wangCg from "./components/wangCg";
|
|
|
-import allMoreSelectInput from "@/components/module/allMoreSelectInput";
|
|
|
-import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
|
-import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import productMins from "@/mixins/cgProduct";
|
|
|
-import { getGhsDataApi, ghsInfo,visitMall,getClassRemind,hasClassRemind } from "@/api/ghs";
|
|
|
-import SelPopup from "@/components/sel-popup.vue";
|
|
|
+import { getGhsDataApi, ghsInfo, visitMall } from "@/api/ghs";
|
|
|
import AppActivilyCoupon from "@/components/module/app-activily-coupon";
|
|
|
import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
name: "ghsProduct",
|
|
|
components: {
|
|
|
- AppTabs,
|
|
|
AppSearchModule,
|
|
|
AppWrapperEmpty,
|
|
|
Commondity,
|
|
|
ModalModule,
|
|
|
FooterCart,
|
|
|
- allMoreSelectInput,
|
|
|
- PxClassCommondity,
|
|
|
- wangCg,SelPopup,
|
|
|
+ wangCg,
|
|
|
AppActivilyCoupon
|
|
|
},
|
|
|
props: {
|
|
|
@@ -247,12 +223,10 @@ export default {
|
|
|
default: 0
|
|
|
},
|
|
|
},
|
|
|
- mixins: [productMins,allMoreSelectInputMins],
|
|
|
+ mixins: [productMins],
|
|
|
data() {
|
|
|
return {
|
|
|
pageType: "cg",
|
|
|
- COMMODITY_TYPE,
|
|
|
- popupShow:false,
|
|
|
isGhsProduct:true,
|
|
|
isFocus: false,
|
|
|
isModel: false,
|
|
|
@@ -261,7 +235,6 @@ export default {
|
|
|
bigCount: 0,
|
|
|
smallCount: 0
|
|
|
},
|
|
|
- showSubmitModel: false,
|
|
|
notOpenShop:true,
|
|
|
pass:true,
|
|
|
hdShopAdminId:0,
|
|
|
@@ -277,19 +250,13 @@ export default {
|
|
|
},
|
|
|
myClass: 'fadeInSmall',
|
|
|
shopId:0,
|
|
|
- infoData:{},
|
|
|
xjData:{},
|
|
|
hasColorInfo:{},
|
|
|
- shareDiscount:1,
|
|
|
ghsId:0,
|
|
|
newCustomGift:{xrFlAmount:0},
|
|
|
isNewCustom:false,
|
|
|
- showInvite:false,
|
|
|
- tjFl:0,
|
|
|
cartItemShow:false,
|
|
|
- showClassRemind:false,
|
|
|
buyNotice:0,
|
|
|
- getappIdList: {},
|
|
|
backAction:'',
|
|
|
shareImgUrl:'',
|
|
|
superWx:'',
|
|
|
@@ -298,9 +265,8 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
- this.init().then(res => {
|
|
|
- uni.stopPullDownRefresh();
|
|
|
- });
|
|
|
+ this.init();
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters({ loginInfo: "getLoginInfo" })
|
|
|
@@ -376,11 +342,6 @@ export default {
|
|
|
}
|
|
|
this.xjData = {}
|
|
|
},
|
|
|
- onLoad() {
|
|
|
-
|
|
|
- },
|
|
|
- onUnload() {
|
|
|
- },
|
|
|
onShareAppMessage(res) {
|
|
|
let ghsShopAdminId = this.option.ghsShopAdminId ? this.option.ghsShopAdminId : 0
|
|
|
if(this.option.shopId){
|
|
|
@@ -401,7 +362,6 @@ export default {
|
|
|
uni.makePhoneCall({ phoneNumber: this.telephone })
|
|
|
},
|
|
|
goSearchFn(){
|
|
|
- let ghsShopId = this.ghsInfo.shopId ? this.ghsInfo.shopId : 0
|
|
|
//源花汇暂时开放一个字也能搜索
|
|
|
//let limit = ghsShopId == 10649 ? 0 : 1
|
|
|
let limit = 1
|
|
|
@@ -410,13 +370,6 @@ export default {
|
|
|
hideCartItem(){
|
|
|
this.cartItemShow = false
|
|
|
},
|
|
|
- hideClassRemind(){
|
|
|
- hasClassRemind().then(res=>{
|
|
|
- if(res.code ==1){
|
|
|
- this.showClassRemind = false
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
changeClass(index){
|
|
|
this.$refs.selectFlowerNumRef.close()
|
|
|
this.swichClass(index)
|
|
|
@@ -488,18 +441,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- closeInvite(){
|
|
|
- this.showInvite = false
|
|
|
- },
|
|
|
- invite(){
|
|
|
- this.showInvite = true
|
|
|
- },
|
|
|
getReadMe(shopId){
|
|
|
this.$util.pageTo({url:'/pagesPurchase/readMe?shopId='+shopId})
|
|
|
},
|
|
|
- recharge(item){
|
|
|
- this.$util.pageTo({url:'/pagesStore/me/recharge',query:{ghsId:item.id}})
|
|
|
- },
|
|
|
//颜色选择
|
|
|
goToSpecialVariety(info){
|
|
|
this.hasColorInfo = info
|
|
|
@@ -509,12 +453,6 @@ export default {
|
|
|
this.$util.pageTo({url: "/pagesPurchase/xj",query: {stock:info.stock,price: info.price,ghsId:this.ghsId,ptItemId:info.itemId}})
|
|
|
}
|
|
|
},
|
|
|
- showPopup() {
|
|
|
- this.popupShow = true;
|
|
|
- },
|
|
|
- hidePopup() {
|
|
|
- this.popupShow = false;
|
|
|
- },
|
|
|
showBigCover(item){
|
|
|
this.$util.pageTo({url: "/admin/ghsProduct/detail",query: {id: item.id, ghsId:this.ghsId, shopId:this.shopId}})
|
|
|
},
|
|
|
@@ -554,6 +492,20 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ setGhsInfo(data){
|
|
|
+ this.ghsInfo = data
|
|
|
+ this.pass = data.passStatus == 1 ? true : false
|
|
|
+ this.buyNotice = data.buyNotice
|
|
|
+ this.shareImgUrl = data.shareLogo ? data.shareLogo : ''
|
|
|
+ this.superWx = data.superWx ? data.superWx : ''
|
|
|
+ this.telephone = data.telephone ? data.telephone : ''
|
|
|
+ if(this.buyNotice == 1){
|
|
|
+ this.myClass = 'fadeIn'
|
|
|
+ }
|
|
|
+ this.isNewCustom = !(data.hasCg == 1 || data.new == 0 || data.xrFl == 0 || data.sendNewGift == 1)
|
|
|
+ this.newCustomGift.xrFlAmount = data.xrFlAmount
|
|
|
+ uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
|
+ },
|
|
|
init(){
|
|
|
|
|
|
//通过供货商小程序分享进采购页,注册的客户,注册后引导返回采购页
|
|
|
@@ -600,74 +552,27 @@ export default {
|
|
|
|
|
|
if(this.option.id == 0) {
|
|
|
ghsInfo({shopId: this.option.shopId}).then(res => {
|
|
|
- this.ghsInfo = res.data
|
|
|
- this.pass = res.data.passStatus == 1 ? true : false
|
|
|
- this.shareImgUrl = res.data.shareLogo ? res.data.shareLogo : ''
|
|
|
- this.superWx = res.data.superWx ? res.data.superWx : ''
|
|
|
- this.telephone = res.data.telephone ? res.data.telephone : ''
|
|
|
+ this.setGhsInfo(res.data)
|
|
|
let id = res.data.id
|
|
|
this.ghsId = id
|
|
|
this.shopId = this.option.shopId
|
|
|
- this.buyNotice = res.data.buyNotice
|
|
|
- //只有注册了和没有列入黑名单才判断他是不是花店身份
|
|
|
- if(this.buyNotice == 1){
|
|
|
- this.myClass = 'fadeIn'
|
|
|
- }
|
|
|
//获取供货商花材
|
|
|
if(id>0){
|
|
|
this.visitMall(id)
|
|
|
this.initGhsDataV2(id,shopId,0)
|
|
|
- //不是新人或者已经下过单的或者活动没有开启不显示新人红包
|
|
|
- if(this.ghsInfo.hasCg == 1 || this.ghsInfo.new == 0 || this.ghsInfo.xrFl == 0 || this.ghsInfo.sendNewGift == 1){
|
|
|
- this.isNewCustom = false
|
|
|
- }else{
|
|
|
- this.isNewCustom = true
|
|
|
- }
|
|
|
- this.tjFl = res.data.tjFl
|
|
|
}
|
|
|
- uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
|
this.option.id = res.data.id;
|
|
|
- this.newCustomGift.xrFlAmount = res.data.xrFlAmount
|
|
|
}).catch(err => {})
|
|
|
} else {
|
|
|
this.ghsId = this.option.id
|
|
|
//获取供货商花材
|
|
|
this.initGhsDataV2(id,shopId,0)
|
|
|
getGhsDataApi({id: this.option.id}).then(res => {
|
|
|
- this.ghsInfo = res.data
|
|
|
- this.pass = res.data.passStatus == 1 ? true : false
|
|
|
+ this.setGhsInfo(res.data)
|
|
|
this.shopId = res.data.shopId
|
|
|
- this.buyNotice = res.data.buyNotice
|
|
|
- this.shareImgUrl = res.data.shareLogo ? res.data.shareLogo : ''
|
|
|
- this.superWx = res.data.superWx ? res.data.superWx : ''
|
|
|
- this.telephone = res.data.telephone ? res.data.telephone : ''
|
|
|
- //只有注册了和没有列入黑名单才判断他是不是花店身份
|
|
|
- if(this.buyNotice == 1){
|
|
|
- this.myClass = 'fadeIn'
|
|
|
- }
|
|
|
this.visitMall(this.option.id)
|
|
|
- uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
|
- //不是新人或者已经下过单的或者活动没有开启不显示新人红
|
|
|
- if(this.ghsInfo.hasCg == 1 || this.ghsInfo.new == 0 || this.ghsInfo.xrFl == 0 || this.ghsInfo.sendNewGift == 1){
|
|
|
- this.isNewCustom = false
|
|
|
- }else{
|
|
|
- this.isNewCustom = true
|
|
|
- }
|
|
|
- this.tjFl = res.data.tjFl
|
|
|
- this.newCustomGift.xrFlAmount = res.data.xrFlAmount
|
|
|
}).catch(err => {})
|
|
|
}
|
|
|
-
|
|
|
- //提醒花材分类位置移动
|
|
|
- getClassRemind().then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- if(res.data.hasRemind == 1){
|
|
|
- this.showClassRemind = false
|
|
|
- }else{
|
|
|
- this.showClassRemind = true
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
},
|
|
|
visitMall(ghsId){
|
|
|
//访客记录
|
|
|
@@ -681,11 +586,6 @@ export default {
|
|
|
this.get_node_details(options);
|
|
|
};
|
|
|
},
|
|
|
- rightScroll(e) {
|
|
|
- if(e.detail.scrollTop > 20) {
|
|
|
- this.myClass = 'fadeOut'
|
|
|
- }
|
|
|
- },
|
|
|
//自定义数量
|
|
|
customNum(info) {
|
|
|
this.isModel = true;
|
|
|
@@ -706,17 +606,12 @@ export default {
|
|
|
goToCg() {
|
|
|
this.$util.pageTo({ url: "/pagesClient/official/apply",query:{ghsShopAdminId:this.ghsShopAdminId,hdShopAdminId:this.hdShopAdminId,fromGhsId:this.fromGhsId},type:2})
|
|
|
},
|
|
|
- // 拨打电话 wangn 2021-5-6
|
|
|
- toPhone(phone){
|
|
|
- uni.makePhoneCall({ phoneNumber: phone })
|
|
|
- },
|
|
|
modalCancel() {
|
|
|
this.isModel = false;
|
|
|
this.customData = {};
|
|
|
}, // 取消 确认
|
|
|
affirm(val) {
|
|
|
this.isFocus = false;
|
|
|
- this.isFocusOne = false;
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
|
//取消
|
|
|
@@ -762,28 +657,6 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
- cancelEvent() {
|
|
|
- this.showSubmitModel = false;
|
|
|
- },
|
|
|
- submitEvent(val) {
|
|
|
- if (val.index === 0) {
|
|
|
- this.cancelEvent();
|
|
|
- } else {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/admin/billing/affirm"
|
|
|
- });
|
|
|
- this.cancelEvent();
|
|
|
- }
|
|
|
- },
|
|
|
- confirmSelectGoodsEvent() {
|
|
|
- if (this.selectList.length > 0) {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/admin/billing/affirmGoods"
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$msg("请选择花材");
|
|
|
- }
|
|
|
- },
|
|
|
confirmSelectEvent() {
|
|
|
if (this.selectList.length > 0) {
|
|
|
|
|
|
@@ -807,14 +680,6 @@ export default {
|
|
|
} else {
|
|
|
this.$msg("请选择花材");
|
|
|
}
|
|
|
- },
|
|
|
- change(e) {
|
|
|
- this.resetSelectInfoByType(this.pageType);
|
|
|
- if (this.tabIndex == e.index) {
|
|
|
- return false;
|
|
|
- } else {
|
|
|
- this.tabIndex = e.index;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -901,39 +766,8 @@ export default {
|
|
|
padding:6upx 15upx;
|
|
|
position:absolute;
|
|
|
}
|
|
|
- .level-common{
|
|
|
- margin-left:30upx;
|
|
|
- color:white;
|
|
|
- background:#76a9f5;
|
|
|
- border:1px solid #76a9f5;
|
|
|
- border-radius:50upx;
|
|
|
- font-size:20upx;
|
|
|
- padding:5upx 10upx;
|
|
|
- position:absolute;
|
|
|
- }
|
|
|
- }
|
|
|
- &>.shop_intro{
|
|
|
- margin-top: 15upx;
|
|
|
- font-size: 26upx;
|
|
|
- font-weight: 400;
|
|
|
- color: #666666;
|
|
|
}
|
|
|
}
|
|
|
- .hbInfo{
|
|
|
- font-size:20upx;
|
|
|
- position: absolute;
|
|
|
- right:15upx;
|
|
|
- top: 120upx;
|
|
|
- color: #3385FF;
|
|
|
- }
|
|
|
- .hbImg{
|
|
|
- width:120upx;
|
|
|
- height:120upx;
|
|
|
- position: absolute;
|
|
|
- right:0;
|
|
|
- top: 10upx;
|
|
|
- background: white;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
.input-wrap {
|
|
|
@@ -966,19 +800,6 @@ export default {
|
|
|
font-size: 26upx;
|
|
|
color: #444;
|
|
|
font-weight: 400;
|
|
|
- .tag {
|
|
|
- display: flex;
|
|
|
- padding: 0 20upx;
|
|
|
- align-items: center;
|
|
|
- position: absolute;
|
|
|
- right: 0;
|
|
|
- top: 0;
|
|
|
- height: 32upx;
|
|
|
- background: #ff2842;
|
|
|
- border-radius: 16upx;
|
|
|
- color: #fff;
|
|
|
- font-size: 20upx;
|
|
|
- }
|
|
|
&:last-child{
|
|
|
margin-bottom: 110upx;
|
|
|
}
|
|
|
@@ -1066,9 +887,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .PxClass-box{
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
.fadeOut{
|
|
|
height: 0;
|
|
|
overflow: hidden;
|
|
|
@@ -1157,14 +975,6 @@ export default {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
- .item-type {
|
|
|
- color: #999;
|
|
|
- font-size: 24upx;
|
|
|
- }
|
|
|
- .item-count {
|
|
|
- color: #666;
|
|
|
- font-size: 24upx;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -1175,18 +985,6 @@ export default {
|
|
|
font-size: 60upx;
|
|
|
}
|
|
|
|
|
|
- .position{
|
|
|
- display: block;
|
|
|
- width: 70upx;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- .iconcachu {
|
|
|
- margin: 0 6upx 0 20upx;
|
|
|
- color: #ccc;
|
|
|
- &.edit {
|
|
|
- color: #3385ff;
|
|
|
- }
|
|
|
- }
|
|
|
& > .num {
|
|
|
display: inline-block;
|
|
|
width: 130upx;
|
|
|
@@ -1199,25 +997,6 @@ export default {
|
|
|
background-color: #f5f5f5;
|
|
|
font-size: 28upx;
|
|
|
}
|
|
|
- .change-input {
|
|
|
- width: 164upx;
|
|
|
- height: 60upx;
|
|
|
- line-height: 60upx;
|
|
|
- text-align: center;
|
|
|
- background: #ffffff;
|
|
|
- border: 1upx solid #dddddd;
|
|
|
- border-radius: 4upx;
|
|
|
- font-size: 25upx;
|
|
|
- }
|
|
|
- .btn-box{
|
|
|
- width: 100upx;
|
|
|
- height: 60upx;
|
|
|
- line-height: 60upx;
|
|
|
- color: #ffffff;
|
|
|
- background: #3385ff;
|
|
|
- text-align: center;
|
|
|
- border-radius: 10upx;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -1231,28 +1010,6 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
border-top: 1px solid #eeeeee;
|
|
|
- .operate-view {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- color: #3385ff;
|
|
|
- font-size: 28upx;
|
|
|
- font-weight:bold;
|
|
|
- .iconfont {
|
|
|
- margin-right: 20upx;
|
|
|
- font-size: 40upx;
|
|
|
- }
|
|
|
- }
|
|
|
- .describe-view {
|
|
|
- display: flex;
|
|
|
-
|
|
|
- align-items: center;
|
|
|
- color: #333;
|
|
|
- font-size: 24upx;
|
|
|
- .price {
|
|
|
- font-weight: bold;
|
|
|
- font-size: 36upx;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
</style>
|