商品展示字段完善,注释无用代码
This commit is contained in:
parent
21e0a7b9a1
commit
79491193ad
|
|
@ -10,9 +10,9 @@ export default {
|
||||||
title: '加载中'
|
title: '加载中'
|
||||||
})
|
})
|
||||||
// request 触发前拼接 url
|
// request 触发前拼接 url
|
||||||
// args.url = 'https://www.opsoul.com' + args.url;
|
args.url = 'https://www.opsoul.com' + args.url;
|
||||||
// args.url = 'http://120.79.136.57' + args.url;
|
// args.url = 'http://120.79.136.57' + args.url;
|
||||||
args.url = 'http://127.0.0.1:80' + args.url;
|
// args.url = 'http://127.0.0.1:80' + args.url;
|
||||||
if (args.data) {
|
if (args.data) {
|
||||||
args.data.deptId = globalData.deptId;
|
args.data.deptId = globalData.deptId;
|
||||||
args.data.from = globalData.from;
|
args.data.from = globalData.from;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<view class="margin-left-sm product-content">
|
<view class="margin-left-sm product-content">
|
||||||
<view>
|
<view>
|
||||||
<view class="text-black">{{product.goodsName}}</view>
|
<view class="text-black">{{product.goodsName}}</view>
|
||||||
<view class="text-sm" v-if="ifShowComments">{{product.remark}}</view>
|
<view class="text-sm" v-if="ifShowComments">{{product.goodsDesc}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between align-center">
|
<view class="flex justify-between align-center">
|
||||||
<view v-if="product.discountPrice" class="flex justify-start align-center">
|
<view v-if="product.discountPrice" class="flex justify-start align-center">
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<view class="cu-item item-margin-custom">
|
<view class="cu-item item-margin-custom">
|
||||||
<view class="content flex-sub">
|
<view class="content flex-sub">
|
||||||
<view class="text-xl">{{item.goodsName}}</view>
|
<view class="text-xl">{{item.goodsName}}</view>
|
||||||
<view class="text-sm text-gray margin-tb-xs">{{item.remark}}</view>
|
<view class="text-sm text-gray margin-tb-xs">{{item.goodsDesc}}</view>
|
||||||
<view class="flex justify-between align-end">
|
<view class="flex justify-between align-end">
|
||||||
<view class="text-red text-sm">自营直选,不满意重新服务,全程上险</view>
|
<view class="text-red text-sm">自营直选,不满意重新服务,全程上险</view>
|
||||||
<view class="text-red text-price text-xl">{{item.goodsStandardList[0].goodsPrice}}</view>
|
<view class="text-red text-price text-xl">{{item.goodsStandardList[0].goodsPrice}}</view>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"pages": [{
|
"pages": [{
|
||||||
"path": "pages/index/index"
|
"path": "pages/index/index"
|
||||||
// "path": "components/multi-level-nav/vertical-nav"
|
|
||||||
}],
|
}],
|
||||||
"subPackages": [{
|
"subPackages": [{
|
||||||
"root": "pages/order/",
|
"root": "pages/order/",
|
||||||
|
|
@ -33,14 +32,6 @@
|
||||||
"path": "my-address"
|
"path": "my-address"
|
||||||
}, {
|
}, {
|
||||||
"path": "edit-address"
|
"path": "edit-address"
|
||||||
}, {
|
|
||||||
"path": "my-operator"
|
|
||||||
}, {
|
|
||||||
"path": "contract"
|
|
||||||
}, {
|
|
||||||
"path": "apply-operator"
|
|
||||||
}, {
|
|
||||||
"path": "Certification"
|
|
||||||
}, {
|
}, {
|
||||||
"path": "my-team-member"
|
"path": "my-team-member"
|
||||||
}, {
|
}, {
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="margin-bottom-lg">
|
<view class="margin-bottom-lg">
|
||||||
<!-- 顶部操作条 -->
|
<!-- 顶部操作条 -->
|
||||||
<cu-custom :bgColor="'bg-main-color'" :isBack="true">
|
<!-- <cu-custom :bgColor="'bg-main-color'" :isBack="true">
|
||||||
<block slot="backText">返回</block>
|
<block slot="backText">返回</block>
|
||||||
<block slot="content">实名认证</block>
|
<block slot="content">实名认证</block>
|
||||||
</cu-custom>
|
</cu-custom> -->
|
||||||
<!-- 表单 -->
|
<!-- 表单 -->
|
||||||
<view class="margin-lr-sm margin-top-sm">
|
<!-- <view class="margin-lr-sm margin-top-sm">
|
||||||
<form @submit="submit">
|
<form @submit="submit">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<view class="title">姓名</view>
|
<view class="title">姓名</view>
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
<button class="bg-main-color long-btn" form-type="submit">提交</button>
|
<button class="bg-main-color long-btn" form-type="submit">提交</button>
|
||||||
</view>
|
</view>
|
||||||
</form>
|
</form>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,11 @@
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
<view class="margin-lr-sm margin-tb-lg shadow-warp">
|
<view class="margin-lr-sm margin-tb-lg shadow-warp">
|
||||||
<view class="bg-gray flex justify-start align-center text-xl padding-lr padding-top-xs">
|
<view class="bg-gray flex justify-start align-center text-xl padding-lr padding-top-xs">
|
||||||
<view class="padding-lr padding-tb-sm" :class="curAccountType === '0' ? 'curTab' : ''" data-type="0" @click="changAccountType">支付宝</view>
|
<!-- <view class="padding-lr padding-tb-sm" :class="curAccountType === '0' ? 'curTab' : ''" data-type="0" @click="changAccountType">支付宝</view> -->
|
||||||
<view class="padding-lr padding-tb-sm" :class="curAccountType === '1' ? 'curTab' : ''" data-type="1" @click="changAccountType">银行卡</view>
|
<view class="padding-lr padding-tb-sm" :class="curAccountType === '1' ? 'curTab' : ''" data-type="1" @click="changAccountType">银行卡</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 支付宝 -->
|
<!-- 支付宝 -->
|
||||||
<view v-if="curAccountType == '0'" class="bg-white padding text-lg">
|
<!-- <view v-if="curAccountType == '0'" class="bg-white padding text-lg">
|
||||||
<view>
|
<view>
|
||||||
<view class="margin-bottom-sm">开户人姓名</view>
|
<view class="margin-bottom-sm">开户人姓名</view>
|
||||||
<input type="digit" placeholder="请输入开户人姓名" placeholder-style="color:#989898" v-model="formData.name">
|
<input type="digit" placeholder="请输入开户人姓名" placeholder-style="color:#989898" v-model="formData.name">
|
||||||
|
|
@ -20,9 +20,9 @@
|
||||||
<view class="margin-bottom-sm">支付宝账户</view>
|
<view class="margin-bottom-sm">支付宝账户</view>
|
||||||
<input type="digit" placeholder="请输入支付宝账户" placeholder-style="color:#989898" v-model="formData.account">
|
<input type="digit" placeholder="请输入支付宝账户" placeholder-style="color:#989898" v-model="formData.account">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<!-- 银行卡 -->
|
<!-- 银行卡 -->
|
||||||
<view v-else-if="curAccountType === '1'" class="bg-white padding text-lg">
|
<view v-if="curAccountType === '1'" class="bg-white padding text-lg">
|
||||||
<view>
|
<view>
|
||||||
<view class="margin-bottom-sm">开户人姓名</view>
|
<view class="margin-bottom-sm">开户人姓名</view>
|
||||||
<input type="text" placeholder="请输入开户人姓名" placeholder-style="color:#989898" v-model="formData.name">
|
<input type="text" placeholder="请输入开户人姓名" placeholder-style="color:#989898" v-model="formData.name">
|
||||||
|
|
@ -55,6 +55,9 @@
|
||||||
<view class="margin-lr">
|
<view class="margin-lr">
|
||||||
<button class="cu-btn lg bg-main-color long-btn shadow-blur" @click="submit">提交</button>
|
<button class="cu-btn lg bg-main-color long-btn shadow-blur" @click="submit">提交</button>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="text-red padding">
|
||||||
|
工圈子小程序承诺此账户只用于接收推广收益
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -67,7 +70,7 @@
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
curAccountType: '0',
|
curAccountType: '1',
|
||||||
provinceList: [],
|
provinceList: [],
|
||||||
cityList: [],
|
cityList: [],
|
||||||
formData: {
|
formData: {
|
||||||
|
|
|
||||||
|
|
@ -48,17 +48,17 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-end" v-if="tabCur === 1">
|
<view class="flex justify-end" v-if="tabCur === 1">
|
||||||
<button class="cu-btn bg-gray margin-right-sm shadow-blur">取消订单</button>
|
<button class="cu-btn bg-gray margin-right-sm shadow-blur">取消订单</button>
|
||||||
<button class="cu-btn bg-gray margin-right-sm shadow-blur">撤换师傅</button>
|
<!-- <button class="cu-btn bg-gray margin-right-sm shadow-blur">撤换师傅</button> -->
|
||||||
<button class="cu-btn bg-main-color margin-right-sm shadow-blur">催单</button>
|
<!-- <button class="cu-btn bg-main-color margin-right-sm shadow-blur">催单</button> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-end" v-if="tabCur === 2">
|
<view class="flex justify-end" v-if="tabCur === 2">
|
||||||
<button class="cu-btn bg-gray margin-right-sm shadow-blur">取消订单</button>
|
<!-- <button class="cu-btn bg-gray margin-right-sm shadow-blur">取消订单</button> -->
|
||||||
<button class="cu-btn bg-gray margin-right-sm shadow-blur">撤换师傅</button>
|
<!-- <button class="cu-btn bg-gray margin-right-sm shadow-blur">撤换师傅</button> -->
|
||||||
<button class="cu-btn bg-main-color margin-right-sm shadow-blur" @click="showServDetail(shopOrder)">查看</button>
|
<button class="cu-btn bg-main-color margin-right-sm shadow-blur" @click="showServDetail(shopOrder)">查看</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-end" v-if="tabCur === 3">
|
<view class="flex justify-end" v-if="tabCur === 3">
|
||||||
<!-- <button class="cu-btn bg-gray margin-right-sm shadow-blur">申请售后</button> -->
|
<!-- <button class="cu-btn bg-gray margin-right-sm shadow-blur">申请售后</button> -->
|
||||||
<button class="cu-btn bg-main-color margin-right-sm shadow-blur">加价</button>
|
<!-- <button class="cu-btn bg-main-color margin-right-sm shadow-blur">加价</button> -->
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="flex justify-end" v-if="tabCur === 4">
|
<!-- <view class="flex justify-end" v-if="tabCur === 4">
|
||||||
<button class="cu-btn bg-main-color margin-right-sm shadow-blur">评价</button>
|
<button class="cu-btn bg-main-color margin-right-sm shadow-blur">评价</button>
|
||||||
|
|
|
||||||
|
|
@ -33,12 +33,14 @@
|
||||||
<text class="text-del">
|
<text class="text-del">
|
||||||
<text class="text-xxl">¥{{curProductSpecs.goodsPrice}}</text>
|
<text class="text-xxl">¥{{curProductSpecs.goodsPrice}}</text>
|
||||||
</text>
|
</text>
|
||||||
|
<text class="margin-left-xs text-xxl">/{{curProductSpecs.goodsUnit}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
<text class="text-sl text-price">{{curProductSpecs.goodsPrice}}</text>
|
<text class="text-sl text-price">{{curProductSpecs.goodsPrice}}</text>
|
||||||
|
<text class="margin-left-xs text-xxl">/{{curProductSpecs.goodsUnit}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<!-- <text class="text-df">已售:{{curProductSpecs.saledCount}}</text> -->
|
<text class="text-df">已售:{{curProductSpecs.saleNum}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view id="pageAnchor0" class="flex justify-between align-end">
|
<view id="pageAnchor0" class="flex justify-between align-end">
|
||||||
|
|
@ -66,7 +68,7 @@
|
||||||
</view>
|
</view>
|
||||||
{{productDetail.goodsName}}
|
{{productDetail.goodsName}}
|
||||||
</view>
|
</view>
|
||||||
<view class="text-sm text-gray margin-top-xs">{{productDetail.remark}}</view>
|
<view class="text-sm text-gray margin-top-xs">{{productDetail.goodsDesc}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-xl text-right padding-lr">
|
<view class="text-xl text-right padding-lr">
|
||||||
<!-- <view class="margin-tb-xs"><text class="cuIcon-share"></text></view> -->
|
<!-- <view class="margin-tb-xs"><text class="cuIcon-share"></text></view> -->
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="content margin-left">
|
<view class="content margin-left">
|
||||||
<text class="text-price text-red text-xxl">{{curSpec.goodsPrice}}</text>
|
<text class="text-price text-red text-xxl">{{curSpec.goodsPrice}}</text>
|
||||||
|
<text class="margin-left-xs">/{{curSpec.goodsUnit}}</text>
|
||||||
<text class="text-gray text-sm flex justify-between">
|
<text class="text-gray text-sm flex justify-between">
|
||||||
{{productInfo.remark}}
|
{{productInfo.goodsDesc}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -82,7 +83,6 @@
|
||||||
methods: {
|
methods: {
|
||||||
loadData() {
|
loadData() {
|
||||||
this.curSpec = this.specsList[0];
|
this.curSpec = this.specsList[0];
|
||||||
console.log(this.curSpec)
|
|
||||||
this.specsList.forEach(function(item) {
|
this.specsList.forEach(function(item) {
|
||||||
this.pickList.push({
|
this.pickList.push({
|
||||||
price: item.goodsPrice,
|
price: item.goodsPrice,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue