完善签到

This commit is contained in:
2025-05-07 17:42:12 +08:00
parent 6b5c475dd1
commit 35967a152c
184 changed files with 2678 additions and 1440 deletions

View File

@ -0,0 +1,150 @@
<template>
<view class="contact-offical">
<view class="header"> </view>
<view class="content column-center">
<view class="content-view column-center bg-white">
<img class="content-img" :src="server.image" />
<view class="primary wechat-num lg">客服微信</view>
<view class="row-center copy-btn xxl white" @click="onCopy(server.wechat)">
<!-- <image class="mr5" style="width: 32px;height: 25px;"
src="../../static/images/wechat-btn-icon.png" /> -->
微信扫码添加
</view>
<view class="mt20 normal xs" style="line-height: 35px">{{ server.time }}</view>
<!-- #ifndef MP-WEIXIN -->
<!-- <view class="sm row-center br60" @click="tipsShow()">
<text style="line-height: 50px;">在线客服</text>
</view> -->
<!-- #endif -->
</view>
<view class="xs white" style="margin-top: 40px;line-height: 49px;">
无法添加或疑难问题请联系工作人员
</view>
<view class="row white">
<view class="xs" style="line-height: 49px;">{{ server.phone }}</view>
<!-- #ifdef H5 -->
<a class="ml20 phone-btn xs row-center white" :href="'tel:' + server.phone">拨打</a>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN || MP-ALIPAY -->
<a class="ml20 phone-btn xs row-center white" @click="showTelTips">拨打</a>
<!-- #endif -->
<view class="ml20 copy-phone-btn xs row-center" @click="onCopy(server.phone)">复制</view>
</view>
</view>
<u-modal :content="content" v-model="showPhoneCall" show-cancel-button confirm-text='呼叫'
:confirm-color="primaryColor" @confirm="onCall">
</u-modal>
</view>
</template>
<script>
import { getService } from "@/api/app"
import { copy } from '@/utils/tools'
export default {
name: 'contactOffical',
data() {
return {
server: {},
showPhoneCall: false,
content: '即将打电话给'
}
},
onLoad() {
this.$getService()
},
methods: {
$getService() {
getService().then(res => {
if (res.code == 1) {
this.server = res.data
}
})
},
tipsShow() {
this.$toast({ title: "该功能暂未开放" })
},
onCopy(str) {
copy(str);
},
showTelTips() {
this.showPhoneCall = true;
this.content = '即将打电话给' + this.server.phone
},
onCall() {
wx.makePhoneCall({
phoneNumber: this.server.phone.toString(),
success(e) {
console.log('成功', e)
},
fail(err) {
console.log('失败', err)
}
})
}
}
}
</script>
<style lang="scss">
.contact-offical {
min-height: 100vh;
background: linear-gradient(180deg, #355883 0%, #254062 100%);
.header {
height: 383px;
width: 100%;
}
.content {
.content-view {
border: 5px solid #254062;
width: 310px;
border-radius: 10px;
margin-top: -350px;
.content-img {
margin-top: 20px;
height: 192px;
width: 192px;
}
.wechat-num {
line-height: 45px;
}
.copy-btn {
background: linear-gradient(180deg, #355883 0%, #254062 100%);
width: 230px;
height: 50px;
border-radius: 50px;
line-height: 49px;
margin-top: 30px;
}
.contact-btn {
width: 300rpx;
height: 60rpx;
margin-bottom: 20rpx;
}
}
.phone-btn {
background: linear-gradient(180deg, #355883 0%, #254062 100%);
height: 24px;
width: 60px;
line-height: 33px;
border-radius: 50px;
}
.copy-phone-btn {
background-color: rgba($color: #fff, $alpha: 0.5);
height: 24px;
width: 60px;
line-height: 33px;
border-radius: 50px;
}
}
}
</style>

View File

@ -39,7 +39,7 @@
</view>
</view>
</view>
<view class="column-end" @click.stop="count++">
<view class="column-end" @click.stop="addCart(item)">
<u-icon name="plus-circle-fill" color="#254062" size="48"></u-icon>
</view>
</view>
@ -57,16 +57,28 @@
</view>
</view>
<view class="buy mx40 px40 br60 row-between">
<view class="row" @tap="showCart = true">
<view class="row" @tap="showCartPopup">
<view class="u-relative">
<u-image :src="cloudPath + 'img/icon_cart.png'" width="80" height="80"></u-image>
<view class="u-absolute top-0 right-0 text-fff number u-text-center xxs" v-if="buyNumber">
{{ buyNumber }}
<view class="u-absolute top-0 right-0 text-fff number u-text-center xxs" v-if="cartNum">
{{ cartNum }}
</view>
</view>
<view class="u-m-l-32">
<view class="row-center" v-if="totalPrice">
<text class="text-fff">
共计
</text>
<view class="primary u-m-t-10 u-m-l-20">
<price-format :price="totalPrice" :subscriptSize="26" :firstSize="34" :secondSize="26"></price-format>
</view>
</view>
<view class="text-fff" v-else>
未选购商品
</view>
</view>
<view class="text-fff u-m-l-32">未选购商品</view>
</view>
<view class="text-999">去结算</view>
<view class="text-999" @tap="goSettle">去结算</view>
</view>
<!-- 购物车 -->
@ -75,31 +87,41 @@
<view class="px20 text-999 mt20">
温馨提示:请适量点餐
</view>
<view>
<view v-if="cartLists.length > 0">
<scroll-view style="height: 700rpx;" scroll-y="true" scroll-with-animation="true">
<view class="row-start u-row-between u-p-t-20 u-padding-bottom-20 px20" v-for="(item, index) in 20" :key="index">
<view class="row-start u-row-between u-p-t-20 u-padding-bottom-20 px20" v-for="(item, index) in cartLists" :key="index">
<view class="row-start">
<view>
<u-image :src="cloudPath + 'img/banner.png'" width="136" height="136" border-radius="16"></u-image>
<u-image :src="item.img" width="136" height="136" border-radius="16"></u-image>
</view>
<view class="ml20">
<view class="u-line-2 u-p-t-10">葱烩海鲜卷边披萨</view>
<view class="primary u-p-t-40">
<price-format :price="12.9" :subscriptSize="22" :firstSize="34" :secondSize="26"></price-format>
<view class="u-line-2 sm">{{ item.name }}</view>
<view class="xxs text-999 u-m-t-8 attr u-p-6-8 u-p-b-8">
<text>味浓芳香</text>
<text class="u-m-l-8 u-m-r-8">|</text>
<text>味浓芳香</text>
<text class="u-m-l-8 u-m-r-8">|</text>
<text>味浓芳香</text>
</view>
<view class="primary">
<price-format :price="item.price" :subscriptSize="22" :firstSize="34" :secondSize="26"></price-format>
</view>
</view>
</view>
<view>
<view class="u-text-right">
<view class="u-text-right" @tap="deleteGoods(item.cart_id)">
<u-icon class="u-p-t-10" name="trash" size="32"></u-icon>
</view>
<view class="u-p-t-30">
<u-number-box min="1" v-model="numberVal" @change="changeNumber"></u-number-box>
<u-number-box :disabled="item.cart_status != 0" :min="1" :max="item.item_stock" :value="item.goods_num" @blur="countChange($event, item.cart_id, item)" @minus="countChange($event, item.cart_id, item)" @plus="countChange($event, item.cart_id, item)"></u-number-box>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="u-text-center" style="height: 700rpx;line-height: 700rpx;" v-else>
~ 暂无商品 ~
</view>
</view>
</u-popup>
<shop-spec v-model="showSpec" @close="showSpec = false"></shop-spec>
@ -107,11 +129,21 @@
</template>
<script>
import {
mapActions,
mapGetters
} from 'vuex';
import {
loadingFun
} from '@/utils/tools'
import {
getGoodsSearch,
addCart,
getPoster,
getCartNum,
getCartList,
changeGoodsCount,
deleteGoods
} from '@/api/store';
import {
loadingType
@ -136,10 +168,18 @@
numberVal: 1,
showCart: false,
showSpec: false,
count: 0
goods_num: 0,
cartLists: [],
totalPrice: 0
}
},
created() {
this.getCartNum()
},
methods: {
...mapActions(['getCartNum']),
// 切换商品分类
changeActive(index) {
const {
cateList
@ -186,22 +226,107 @@
this.status = data.status
},
changeNumber() {
// 显示购物车弹出窗
showCartPopup() {
if (this.cartLists.length > 0) {
this.showCart = true
}
// else {
// this.$toast({
// title: '请先添加商品'
// });
// }
},
// 添加到购物车(默认商品数量+1,可以让后端连表查询商品数量字段)
async addCart(item) {
const {
code,
data,
msg
} = await addCart({
item_id: item.id,
goods_num: 1
});
if (code == 1) {
this.getCartListFun()
}
},
// 购物车商品里面的数量
countChange({value}, cartId, item) {
console.log("countChange", value, cartId, item);
changeGoodsCount({
cart_id: cartId,
goods_num: value,
}).then((res) => {
if (res.code == 1) {
this.getCartListFun()
}
});
},
// 获取购物车列表数据
getCartListFun() {
console.log("1>>>", 1);
getCartList().then((res) => {
if (res.code == 1) {
console.log("res>>>", res);
let {
lists,
total_amount
} = res.data;
// let cartType = 0;
// if (lists.length == 0) {
// cartType = 2;
// } else {
// cartType = 1;
// }
this.cartLists = lists;
// this.cartType = cartType;
this.totalPrice = total_amount
// this.isShow = true;
this.getCartNum();
}
});
},
// 购物车删除商品
deleteGoods(cart_id) {
deleteGoods({
cart_id
}).then((res) => {
if (res.code == 1) {
this.getCartListFun();
}
});
},
// 去结算
goSettle() {
uni.navigateTo({
url: `/pages/order_now/order_now?id=${id}`
})
},
// 跳转商品详情页
toShop(id) {
console.log(id)
uni.navigateTo({
url: `/pages/shop/shop?id=${id}`
})
}
},
computed: {
...mapGetters(['cartNum']),
// 显示购物车数量
buyNumber() {
if (this.count > 0) {
return this.count > 99 ? '99+' : this.count
if (this.goods_num > 0) {
return this.goods_num > 99 ? '99+' : this.goods_num
}
return ''

View File

@ -175,6 +175,12 @@
"style": {
"navigationBarTitleText": "收货地址"
}
},
{
"path": "pages/contact_offical/contact_offical",
"style": {
"navigationBarTitleText": "联系客服"
}
}
]
}

View File

@ -88,21 +88,14 @@
addCart,
getPoster,
getCartNum
} from '@/api/store';
} from '@/api/store'
import {
toLogin
} from '@/utils/login'
export default {
data() {
return {
list: [
{
image: "http://jianbing-media.stnav.com/frontend/img/banner.png",
title: "昨夜星辰昨夜风,画楼西畔桂堂东",
},
{
image: "http://jianbing-media.stnav.com/frontend/img/banner.png",
title: "身无彩凤双飞翼,心有灵犀一点通",
}
],
id: 0,
showSpec: false,
goods: []
@ -139,7 +132,7 @@
// 购买商品
onBuy() {
console.log(this.isLogin);
if (!this.isLogin) return toLogin();
uni.navigateTo({
url: `/pages/order_now/order_now`
})

View File

@ -4,10 +4,10 @@
<view class="bold-700 title">每日签到</view>
<view class="day">
<text class="lg">已经连续签到</text>
<text class="">1</text>
<text class="">{{ signDays }}</text>
</view>
<view class="row-between u-m-t-32 u-m-l-24 u-m-r-24">
<view class="sigin-day expire column-center">
<!-- <view class="sigin-day expire column-center">
<view class="date mt10">第一天</view>
<view class="mt10">
<u-image :src="cloudPath + 'img/icon_signin_gray.png'" width="30" height="30"></u-image>
@ -61,10 +61,18 @@
<u-image :src="cloudPath + 'img/icon_signin_white.png'" width="30" height="30"></u-image>
</view>
<view class="points mt10">x140</view>
</view> -->
<view :class="getDayActive(item)" v-for="(item, index) in signList" :key="index">
<view class="date mt10">{{ item.days }}</view>
<view class="mt10">
<!-- <u-image :src="cloudPath + 'img/icon_signin_gray.png'" width="30" height="30"></u-image> -->
<u-image :src="signinCurrent(item)" width="30" height="30"></u-image>
</view>
<view class="points mt10">x{{ item.integral }}</view>
</view>
</view>
<view class="u-m-t-26 signin-btn">
签到
<view class="u-m-t-26 signin-btn" @tap="userSignFun">
{{ canSign == 1 ? '已签到' : '签到' }}
</view>
</view>
@ -88,8 +96,117 @@
</template>
<script>
import { getSignList, userSign } from "@/api/user"
import { trottle } from '@/utils/tools.js'
export default {
data() {
return {
// 积分
integral: 0,
avatar: "",
signList: [],
showPop: false,
canSign: 0,
addIntegral: 0,
addGrowth: 0,
signDays: 0,
makeInegral: [],
weekDay: 1
}
},
onLoad() {
this.userSignFun = trottle(this.userSignFun, 1000, this)
},
onShow() {
this.getSignListFun();
},
methods: {
// 获取签到数据
getSignListFun() {
getSignList().then(res => {
if (res.code == 1) {
let {
sign_list
} = res.data;
console.log("sign_list>>>", sign_list);
this.signList = sign_list
this.integral = res.data.user.user_integral
this.canSign = res.data.user.today_sign
this.signDays = res.data.user.days
this.weekDay = res.data.user.week_day
this.makeInegral = res.data.make_inegral
}
});
},
// 用户开始签到
userSignFun() {
if (this.canSign == 1) {
return;
}
userSign().then(res => {
if (res.code == 1) {
let {
days,
growth,
integral
} = res.data;
this.addIntegral = integral;
this.signDays = days
this.getSignListFun();
}
});
}
},
computed: {
// 处理签到图片显示
signinCurrent() {
return (item) => {
// 如果签到天数为0的话,也指向第一天的高亮图片
const day = this.signDays || 1
if (day == item.days && this.canSign == 0) {
// 当天日期
return `${this.cloudPath}img/icon_signin_white.png`
} else if (item.status == 0) {
// 未签到
return `${this.cloudPath}img/icon_signin_gray.png`
} else if (item.status == 1) {
// 已签到
return `${this.cloudPath}img/icon_signin_blue.png`
}
}
},
// 处理签到class显示
getDayActive() {
return (item) => {
let obj = {'sigin-day': true, 'column-center': true}
// 如果签到天数为0的话,也指向第一天的高亮样式
const day = this.signDays || 1
if (day == item.days && this.canSign == 0) {
// 当天日期
return Object.assign(obj, {'last': true})
} else if (item.status == 0) {
// 未签到
return Object.assign(obj, {'expire': true})
} else if (item.status == 1) {
// 已签到
return Object.assign(obj, {'normal': true})
}
}
}
}
}
</script>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -32,7 +32,8 @@
"pages/coupon/coupon",
"pages/setting/setting",
"pages/address/address",
"pages/address/address_edit"
"pages/address/address_edit",
"pages/contact_offical/contact_offical"
]
}
],

View File

@ -0,0 +1,65 @@
@charset "UTF-8";
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
.contact-offical {
min-height: 100vh;
background: linear-gradient(180deg, #355883 0%, #254062 100%);
}
.contact-offical .header {
height: 383px;
width: 100%;
}
.contact-offical .content .content-view {
border: 5px solid #254062;
width: 310px;
border-radius: 10px;
margin-top: -350px;
}
.contact-offical .content .content-view .content-img {
margin-top: 20px;
height: 192px;
width: 192px;
}
.contact-offical .content .content-view .wechat-num {
line-height: 45px;
}
.contact-offical .content .content-view .copy-btn {
background: linear-gradient(180deg, #355883 0%, #254062 100%);
width: 230px;
height: 50px;
border-radius: 50px;
line-height: 49px;
margin-top: 30px;
}
.contact-offical .content .content-view .contact-btn {
width: 300rpx;
height: 60rpx;
margin-bottom: 20rpx;
}
.contact-offical .content .phone-btn {
background: linear-gradient(180deg, #355883 0%, #254062 100%);
height: 24px;
width: 60px;
line-height: 33px;
border-radius: 50px;
}
.contact-offical .content .copy-phone-btn {
background-color: rgba(255, 255, 255, 0.5);
height: 24px;
width: 60px;
line-height: 33px;
border-radius: 50px;
}

View File

@ -0,0 +1 @@
<view class="contact-offical"><view class="header"></view><view class="content column-center"><view class="content-view column-center bg-white"><image class="content-img _img" src="{{server.image}}"></image><view class="primary wechat-num lg">客服微信</view><view data-event-opts="{{[['tap',[['onCopy',['$0'],['server.wechat']]]]]}}" class="row-center copy-btn xxl white" onTap="__e">微信扫码添加</view><view class="mt20 normal xs" style="line-height:35px;">{{server.time}}</view></view><view class="xs white" style="margin-top:40px;line-height:49px;">无法添加或疑难问题请联系工作人员</view><view class="row white"><view class="xs" style="line-height:49px;">{{server.phone}}</view><navigator data-event-opts="{{[['tap',[['showTelTips',['$event']]]]]}}" class="ml20 phone-btn xs row-center white _a" onTap="__e">拨打</navigator><view data-event-opts="{{[['tap',[['onCopy',['$0'],['server.phone']]]]]}}" class="ml20 copy-phone-btn xs row-center" onTap="__e">复制</view></view></view><u-modal vue-id="3abd222a-1" content="{{content}}" show-cancel-button="{{true}}" confirm-text="呼叫" confirm-color="{{primaryColor}}" value="{{showPhoneCall}}" data-event-opts="{{[['^confirm',[['onCall']]],['^input',[['__set_model',['','showPhoneCall','$event',[]]]]]]}}" onConfirm="__e" onInput="__e" onVueInit="__l"></u-modal></view>

View File

@ -0,0 +1,288 @@
(my["webpackJsonp"] = my["webpackJsonp"] || []).push([["bundle/pages/contact_offical/contact_offical"],{
/***/ 678:
/*!**********************************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/main.js?{"page":"bundle%2Fpages%2Fcontact_offical%2Fcontact_offical"} ***!
\**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
__webpack_require__(/*! uni-pages */ 22);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 21));
var _contact_offical = _interopRequireDefault(__webpack_require__(/*! ./bundle/pages/contact_offical/contact_offical.vue */ 679));
// @ts-ignore
my.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_contact_offical.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["createPage"]))
/***/ }),
/***/ 679:
/*!*************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/bundle/pages/contact_offical/contact_offical.vue ***!
\*************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./contact_offical.vue?vue&type=template&id=3370d7de& */ 680);
/* harmony import */ var _contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./contact_offical.vue?vue&type=script&lang=js& */ 682);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _contact_offical_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./contact_offical.vue?vue&type=style&index=0&lang=scss& */ 684);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 49);
var renderjs
/* normalize component */
var component = Object(_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__["render"],
_contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null,
false,
_contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "bundle/pages/contact_offical/contact_offical.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 680:
/*!********************************************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/bundle/pages/contact_offical/contact_offical.vue?vue&type=template&id=3370d7de& ***!
\********************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./contact_offical.vue?vue&type=template&id=3370d7de& */ 681);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_template_id_3370d7de___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 681:
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Hbuilder/Project/jianbing/bundle/pages/contact_offical/contact_offical.vue?vue&type=template&id=3370d7de& ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
components = {
uModal: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-modal/u-modal */ "components/uview-ui/components/u-modal/u-modal").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-modal/u-modal.vue */ 539))
},
}
} catch (e) {
if (
e.message.indexOf("Cannot find module") !== -1 &&
e.message.indexOf(".vue") !== -1
) {
console.error(e.message)
console.error("1. 排查组件名称拼写是否正确")
console.error(
"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
)
console.error(
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
)
} else {
throw e
}
}
var render = function () {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 682:
/*!**************************************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/bundle/pages/contact_offical/contact_offical.vue?vue&type=script&lang=js& ***!
\**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./contact_offical.vue?vue&type=script&lang=js& */ 683);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 683:
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Hbuilder/Project/jianbing/bundle/pages/contact_offical/contact_offical.vue?vue&type=script&lang=js& ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(wx) {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _app = __webpack_require__(/*! @/api/app */ 46);
var _tools = __webpack_require__(/*! @/utils/tools */ 37);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = {
name: 'contactOffical',
data: function data() {
return {
server: {},
showPhoneCall: false,
content: '即将打电话给'
};
},
onLoad: function onLoad() {
this.$getService();
},
methods: {
$getService: function $getService() {
var _this = this;
(0, _app.getService)().then(function (res) {
if (res.code == 1) {
_this.server = res.data;
}
});
},
tipsShow: function tipsShow() {
this.$toast({
title: "该功能暂未开放"
});
},
onCopy: function onCopy(str) {
(0, _tools.copy)(str);
},
showTelTips: function showTelTips() {
this.showPhoneCall = true;
this.content = '即将打电话给' + this.server.phone;
},
onCall: function onCall() {
wx.makePhoneCall({
phoneNumber: this.server.phone.toString(),
success: function success(e) {
console.log('成功', e);
},
fail: function fail(err) {
console.log('失败', err);
}
});
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
/***/ }),
/***/ 684:
/*!***********************************************************************************************************************!*\
!*** D:/Hbuilder/Project/jianbing/bundle/pages/contact_offical/contact_offical.vue?vue&type=style&index=0&lang=scss& ***!
\***********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./contact_offical.vue?vue&type=style&index=0&lang=scss& */ 685);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_contact_offical_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 685:
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Hbuilder/Project/jianbing/bundle/pages/contact_offical/contact_offical.vue?vue&type=style&index=0&lang=scss& ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
if(false) { var cssReload; }
/***/ })
},[[678,"common/runtime","common/vendor"]]]);

View File

@ -0,0 +1,6 @@
{
"defaultTitle": "联系客服",
"usingComponents": {
"u-modal": "/components/uview-ui/components/u-modal/u-modal"
}
}

File diff suppressed because one or more lines are too long

View File

@ -124,13 +124,6 @@ var render = function () {
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function ($event) {
$event.stopPropagation()
_vm.count++
}
_vm.e1 = function ($event) {
_vm.showCart = true
}
_vm.e2 = function ($event) {
_vm.showSpec = false
}
}
@ -176,117 +169,13 @@ Object.defineProperty(exports, "__esModule", {
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 26));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 28));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
var _vuex = __webpack_require__(/*! vuex */ 29);
var _tools = __webpack_require__(/*! @/utils/tools */ 37);
var _store = __webpack_require__(/*! @/api/store */ 36);
var _type = __webpack_require__(/*! @/utils/type */ 38);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var _default2 = {
name: "cate-one",
props: {
@ -308,10 +197,16 @@ var _default2 = {
numberVal: 1,
showCart: false,
showSpec: false,
count: 0
goods_num: 0,
cartLists: [],
totalPrice: 0
};
},
methods: {
created: function created() {
this.getCartNum();
},
methods: _objectSpread(_objectSpread({}, (0, _vuex.mapActions)(['getCartNum'])), {}, {
// 切换商品分类
changeActive: function changeActive(index) {
var cateList = this.cateList;
this.cateName = cateList[index].name;
@ -377,23 +272,121 @@ var _default2 = {
}, _callee);
}))();
},
changeNumber: function changeNumber() {},
// 显示购物车弹出窗
showCartPopup: function showCartPopup() {
if (this.cartLists.length > 0) {
this.showCart = true;
}
// else {
// this.$toast({
// title: '请先添加商品'
// });
// }
},
// 添加到购物车(默认商品数量+1,可以让后端连表查询商品数量字段)
addCart: function addCart(item) {
var _this3 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
var _yield$_addCart, code, data, msg;
return _regenerator.default.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0, _store.addCart)({
item_id: item.id,
goods_num: 1
});
case 2:
_yield$_addCart = _context2.sent;
code = _yield$_addCart.code;
data = _yield$_addCart.data;
msg = _yield$_addCart.msg;
if (code == 1) {
_this3.getCartListFun();
}
case 7:
case "end":
return _context2.stop();
}
}
}, _callee2);
}))();
},
// 购物车商品里面的数量
countChange: function countChange(_ref, cartId, item) {
var _this4 = this;
var value = _ref.value;
console.log("countChange", value, cartId, item);
(0, _store.changeGoodsCount)({
cart_id: cartId,
goods_num: value
}).then(function (res) {
if (res.code == 1) {
_this4.getCartListFun();
}
});
},
// 获取购物车列表数据
getCartListFun: function getCartListFun() {
var _this5 = this;
console.log("1>>>", 1);
(0, _store.getCartList)().then(function (res) {
if (res.code == 1) {
console.log("res>>>", res);
var _res$data = res.data,
lists = _res$data.lists,
total_amount = _res$data.total_amount;
// let cartType = 0;
// if (lists.length == 0) {
// cartType = 2;
// } else {
// cartType = 1;
// }
_this5.cartLists = lists;
// this.cartType = cartType;
_this5.totalPrice = total_amount;
// this.isShow = true;
_this5.getCartNum();
}
});
},
// 购物车删除商品
deleteGoods: function deleteGoods(cart_id) {
var _this6 = this;
(0, _store.deleteGoods)({
cart_id: cart_id
}).then(function (res) {
if (res.code == 1) {
_this6.getCartListFun();
}
});
},
// 去结算
goSettle: function goSettle() {
uni.navigateTo({
url: "/pages/order_now/order_now?id=".concat(id)
});
},
// 跳转商品详情页
toShop: function toShop(id) {
console.log(id);
uni.navigateTo({
url: "/pages/shop/shop?id=".concat(id)
});
}
},
computed: {
}),
computed: _objectSpread(_objectSpread({}, (0, _vuex.mapGetters)(['cartNum'])), {}, {
// 显示购物车数量
buyNumber: function buyNumber() {
if (this.count > 0) {
return this.count > 99 ? '99+' : this.count;
if (this.goods_num > 0) {
return this.goods_num > 99 ? '99+' : this.goods_num;
}
return '';
}
},
}),
watch: {
list: {
handler: function handler(val) {

View File

@ -1,8 +1,8 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
"u-button": "/components/uview-ui/components/u-button/u-button"
},
"component": true,
"styleIsolation": "apply-shared"
}
}

View File

@ -1,7 +1,7 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
},
"component": true,
"styleIsolation": "apply-shared"
}
}

View File

@ -1,7 +1,7 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
},
"component": true,
"styleIsolation": "apply-shared"
}
}

View File

@ -1,5 +1,5 @@
{
"usingComponents": {},
"component": true,
"styleIsolation": "apply-shared"
"styleIsolation": "apply-shared",
"usingComponents": {}
}

View File

@ -1,8 +1,8 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
"u-loading": "/components/uview-ui/components/u-loading/u-loading"
},
"component": true,
"styleIsolation": "apply-shared"
}
}

View File

@ -1,7 +1,7 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
},
"component": true,
"styleIsolation": "apply-shared"
}
}

View File

@ -1,5 +1,5 @@
{
"usingComponents": {},
"component": true,
"styleIsolation": "apply-shared"
"styleIsolation": "apply-shared",
"usingComponents": {}
}

View File

@ -1,7 +1,7 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"u-icon": "/components/uview-ui/components/u-icon/u-icon"
},
"component": true,
"styleIsolation": "apply-shared"
}
}

View File

@ -1,7 +1,7 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"u-popup": "/components/uview-ui/components/u-popup/u-popup"
},
"component": true,
"styleIsolation": "apply-shared"
}
}

View File

@ -1,6 +1,4 @@
{
"format": 2,
"compileOptions": {
"component2": true
}
"component2": true,
"enableAppxNg": true
}

View File

@ -188,6 +188,7 @@ exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 26));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 28));
var _store = __webpack_require__(/*! @/api/store */ 36);
var _login = __webpack_require__(/*! @/utils/login */ 45);
//
//
//
@ -275,13 +276,6 @@ var _store = __webpack_require__(/*! @/api/store */ 36);
var _default = {
data: function data() {
return {
list: [{
image: "http://jianbing-media.stnav.com/frontend/img/banner.png",
title: "昨夜星辰昨夜风,画楼西畔桂堂东"
}, {
image: "http://jianbing-media.stnav.com/frontend/img/banner.png",
title: "身无彩凤双飞翼,心有灵犀一点通"
}],
id: 0,
showSpec: false,
goods: []
@ -328,7 +322,7 @@ var _default = {
},
// 购买商品
onBuy: function onBuy() {
console.log(this.isLogin);
if (!this.isLogin) return (0, _login.toLogin)();
uni.navigateTo({
url: "/pages/order_now/order_now"
});

View File

@ -1 +1 @@
<view><view class="signin"><view class="bold-700 title">每日签到</view><view class="day"><text class="lg">已经连续签到</text><text>1天</text></view><view class="row-between u-m-t-32 u-m-l-24 u-m-r-24"><view class="sigin-day expire column-center"><view class="date mt10">第一天</view><view class="mt10"><u-image vue-id="4a88de16-1" src="{{cloudPath+'img/icon_signin_gray.png'}}" width="30" height="30" onVueInit="__l"></u-image></view><view class="points mt10">x20</view></view><view class="sigin-day normal column-center"><view class="date mt10">第二天</view><view class="mt10"><u-image vue-id="4a88de16-2" src="{{cloudPath+'img/icon_signin_blue.png'}}" width="30" height="30" onVueInit="__l"></u-image></view><view class="points mt10">x40</view></view><view class="sigin-day normal column-center"><view class="date mt10">第三天</view><view class="mt10"><u-image vue-id="4a88de16-3" src="{{cloudPath+'img/icon_signin_blue.png'}}" width="30" height="30" onVueInit="__l"></u-image></view><view class="points mt10">x60</view></view><view class="sigin-day normal column-center"><view class="date mt10">第四天</view><view class="mt10"><u-image vue-id="4a88de16-4" src="{{cloudPath+'img/icon_signin_blue.png'}}" width="30" height="30" onVueInit="__l"></u-image></view><view class="points mt10">x80</view></view><view class="sigin-day normal column-center"><view class="date mt10">第五天</view><view class="mt10"><u-image vue-id="4a88de16-5" src="{{cloudPath+'img/icon_signin_blue.png'}}" width="30" height="30" onVueInit="__l"></u-image></view><view class="points mt10">x100</view></view><view class="sigin-day normal column-center"><view class="date mt10">第六天</view><view class="mt10"><u-image vue-id="4a88de16-6" src="{{cloudPath+'img/icon_signin_blue.png'}}" width="30" height="30" onVueInit="__l"></u-image></view><view class="points mt10">x120</view></view><view class="sigin-day last column-center"><view class="date mt10">第七天</view><view class="mt10"><u-image vue-id="4a88de16-7" src="{{cloudPath+'img/icon_signin_white.png'}}" width="30" height="30" onVueInit="__l"></u-image></view><view class="points mt10">x140</view></view></view><view class="u-m-t-26 signin-btn">签到</view></view><view class="bg-white ad row-between u-padding-left-20 u-padding-right-20"><view class="row"><view><u-image vue-id="4a88de16-8" src="{{cloudPath+'img/red-packet.png'}}" width="90" height="90" onVueInit="__l"></u-image></view><view class="ml20"><view class="bold-600 xs">看广告获取积分</view><view class="text-AE xxs u-m-t-12">每日观看5分钟最高可领取376金币</view></view></view><view><u-button vue-id="4a88de16-9" hover-class="none" customStyle="{{$root.a0}}" plain="{{true}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['mobileLogin']]]]}}" onClick="__e" onVueInit="__l" vue-slots="{{['default']}}">看广告</u-button></view></view></view>
<view><view class="signin"><view class="bold-700 title">每日签到</view><view class="day"><text class="lg">已经连续签到</text><text>{{signDays+"天"}}</text></view><view class="row-between u-m-t-32 u-m-l-24 u-m-r-24"><view class="{{item.m0}}" a:for="{{$root.l0}}" a:for-item="item" a:for-index="index" a:key="index"><view class="date mt10">{{"第"+item.$orig.days+"天"}}</view><view class="mt10"><u-image vue-id="{{'4a88de16-1-'+index}}" src="{{item.m1}}" width="30" height="30" onVueInit="__l"></u-image></view><view class="points mt10">{{"x"+item.$orig.integral}}</view></view></view><view data-event-opts="{{[['tap',[['userSignFun',['$event']]]]]}}" class="u-m-t-26 signin-btn" onTap="__e">{{''+(canSign==1?'已签到':'签到')+''}}</view></view><view class="bg-white ad row-between u-padding-left-20 u-padding-right-20"><view class="row"><view><u-image vue-id="4a88de16-2" src="{{cloudPath+'img/red-packet.png'}}" width="90" height="90" onVueInit="__l"></u-image></view><view class="ml20"><view class="bold-600 xs">看广告获取积分</view><view class="text-AE xxs u-m-t-12">每日观看5分钟最高可领取376金币</view></view></view><view><u-button vue-id="4a88de16-3" hover-class="none" customStyle="{{$root.a0}}" plain="{{true}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['mobileLogin']]]]}}" onClick="__e" onVueInit="__l" vue-slots="{{['default']}}">看广告</u-button></view></view></view>

View File

@ -97,56 +97,10 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
components = {
uImage: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-image/u-image */ "components/uview-ui/components/u-image/u-image").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-image/u-image.vue */ 340))
},
uButton: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 326))
},
}
} catch (e) {
if (
e.message.indexOf("Cannot find module") !== -1 &&
e.message.indexOf(".vue") !== -1
) {
console.error(e.message)
console.error("1. 排查组件名称拼写是否正确")
console.error(
"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
)
console.error(
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
)
} else {
throw e
}
}
var render = function () {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
var a0 = {
color: _vm.themeColor,
border: "1px solid " + _vm.themeColor,
width: "120rpx",
height: "60rpx",
fontSize: "28rpx",
}
_vm.$mp.data = Object.assign(
{},
{
$root: {
a0: a0,
},
}
)
}
var recyclableRender = false
var render = function () {}
var staticRenderFns = []
render._withStripped = true
var recyclableRender
var components
@ -182,6 +136,8 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _user = __webpack_require__(/*! @/api/user */ 30);
var _tools = __webpack_require__(/*! @/utils/tools.js */ 37);
//
//
//
@ -271,7 +227,122 @@ exports.default = void 0;
//
//
//
var _default = {};
//
//
//
//
//
//
//
//
var _default = {
data: function data() {
return {
// 积分
integral: 0,
avatar: "",
signList: [],
showPop: false,
canSign: 0,
addIntegral: 0,
addGrowth: 0,
signDays: 0,
makeInegral: [],
weekDay: 1
};
},
onLoad: function onLoad() {
this.userSignFun = (0, _tools.trottle)(this.userSignFun, 1000, this);
},
onShow: function onShow() {
this.getSignListFun();
},
methods: {
// 获取签到数据
getSignListFun: function getSignListFun() {
var _this = this;
(0, _user.getSignList)().then(function (res) {
if (res.code == 1) {
var sign_list = res.data.sign_list;
console.log("sign_list>>>", sign_list);
_this.signList = sign_list;
_this.integral = res.data.user.user_integral;
_this.canSign = res.data.user.today_sign;
_this.signDays = res.data.user.days;
_this.weekDay = res.data.user.week_day;
_this.makeInegral = res.data.make_inegral;
}
});
},
// 用户开始签到
userSignFun: function userSignFun() {
var _this2 = this;
if (this.canSign == 1) {
return;
}
(0, _user.userSign)().then(function (res) {
if (res.code == 1) {
var _res$data = res.data,
days = _res$data.days,
growth = _res$data.growth,
integral = _res$data.integral;
_this2.addIntegral = integral;
_this2.signDays = days;
_this2.getSignListFun();
}
});
}
},
computed: {
// 处理签到图片显示
signinCurrent: function signinCurrent() {
var _this3 = this;
return function (item) {
// 如果签到天数为0的话,也指向第一天的高亮图片
var day = _this3.signDays || 1;
if (day == item.days && _this3.canSign == 0) {
// 当天日期
return "".concat(_this3.cloudPath, "img/icon_signin_white.png");
} else if (item.status == 0) {
// 未签到
return "".concat(_this3.cloudPath, "img/icon_signin_gray.png");
} else if (item.status == 1) {
// 已签到
return "".concat(_this3.cloudPath, "img/icon_signin_blue.png");
}
};
},
// 处理签到class显示
getDayActive: function getDayActive() {
var _this4 = this;
return function (item) {
var obj = {
'sigin-day': true,
'column-center': true
};
// 如果签到天数为0的话,也指向第一天的高亮样式
var day = _this4.signDays || 1;
if (day == item.days && _this4.canSign == 0) {
// 当天日期
return Object.assign(obj, {
'last': true
});
} else if (item.status == 0) {
// 未签到
return Object.assign(obj, {
'expire': true
});
} else if (item.status == 1) {
// 已签到
return Object.assign(obj, {
'normal': true
});
}
};
}
}
};
exports.default = _default;
/***/ }),

View File

@ -32,7 +32,8 @@
"pages/coupon/coupon",
"pages/setting/setting",
"pages/address/address",
"pages/address/address_edit"
"pages/address/address_edit",
"pages/contact_offical/contact_offical"
]
}
],

View File

@ -101,10 +101,10 @@ var components
try {
components = {
uIcon: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 327))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 335))
},
uModal: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-modal/u-modal */ "components/uview-ui/components/u-modal/u-modal").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-modal/u-modal.vue */ 554))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-modal/u-modal */ "components/uview-ui/components/u-modal/u-modal").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-modal/u-modal.vue */ 562))
},
}
} catch (e) {

View File

@ -101,25 +101,25 @@ var components
try {
components = {
uForm: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-form/u-form */ "components/uview-ui/components/u-form/u-form").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-form/u-form.vue */ 428))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-form/u-form */ "components/uview-ui/components/u-form/u-form").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-form/u-form.vue */ 436))
},
uFormItem: function () {
return Promise.all(/*! import() | components/uview-ui/components/u-form-item/u-form-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-form-item/u-form-item")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-form-item/u-form-item.vue */ 435))
return Promise.all(/*! import() | components/uview-ui/components/u-form-item/u-form-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-form-item/u-form-item")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-form-item/u-form-item.vue */ 443))
},
uInput: function () {
return Promise.all(/*! import() | components/uview-ui/components/u-input/u-input */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-input/u-input")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-input/u-input.vue */ 446))
return Promise.all(/*! import() | components/uview-ui/components/u-input/u-input */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-input/u-input")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-input/u-input.vue */ 454))
},
uIcon: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 327))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 335))
},
uCheckbox: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-checkbox/u-checkbox */ "components/uview-ui/components/u-checkbox/u-checkbox").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-checkbox/u-checkbox.vue */ 367))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-checkbox/u-checkbox */ "components/uview-ui/components/u-checkbox/u-checkbox").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-checkbox/u-checkbox.vue */ 375))
},
uButton: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 334))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 342))
},
uSelect: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-select/u-select */ "components/uview-ui/components/u-select/u-select").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-select/u-select.vue */ 561))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-select/u-select */ "components/uview-ui/components/u-select/u-select").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-select/u-select.vue */ 569))
},
}
} catch (e) {

Some files were not shown because too many files have changed in this diff Show More